corrStable
Calculates the Pearson correlation coefficient:
Similar to the corr function, but uses a numerically stable algorithm. As a result, corrStable is slower than corr but produces a more accurate result.
Syntax
Arguments
Returned Value
- The Pearson correlation coefficient. Float64.
*Example
Query:
Result:
corrStable
Introduced in: v1.1
Calculates the Pearson correlation coefficient:
Similar to the corr function, but uses a numerically stable algorithm.
As a result, corrStable is slower than corr but produces a more accurate result.
Syntax
Arguments
Returned value
Returns the Pearson correlation coefficient. Float64
Examples
Basic correlation calculation with stable algorithm