Skip to main content

pearson

Function pearson 

Source
pub fn pearson(x: &[f64], y: &[f64]) -> Result<Correlation, ErrorsJSL>
Expand description

Pearson’s product-moment correlation, with the p-value from t = r √((n−2)/(1−r²)) on n − 2 degrees of freedom (exact for bivariate normal data).