corr
Calculates the Pearson correlation coefficient:
Note
This function uses a numerically unstable algorithm. If you need numerical stability in calculations, use the corrStable
function. It is slower but provides a more accurate result.
Syntax
Arguments
Returned Value
- The Pearson correlation coefficient. Float64.
Example
Query:
Result: