pub fn pearson_correlation( x: &[f64], y: &[f64], ) -> Result<f64, CointegrationMathError>
Pearson correlation coefficient between two series.