Expand description
Pearson and Spearman correlation, and correlation matrices.
Enums§
- Correlation
Method - Which correlation coefficient to compute.
Functions§
- correlation_
matrix - Correlation matrix of
columns(each inner slice is one variable’s values, all the same length). The diagonal is exactly1.0; any pair with a constant column yieldsf64::NANin that cell (so a chart can render it as a distinct “undefined” color) rather than erroring out the whole matrix. - pearson
- Pearson correlation of two equal-length samples.
- rank
- Fractional ranks of
data(average ranks for ties), 1-based. Used by Spearman correlation. - spearman
- Spearman rank correlation — Pearson correlation of the ranks.