Documentation
linearRegressionRSqr :: Sample -> Sample -> (Double, Double, Double)Source
Simple linear regression between 2 samples. Takes two vectors Y={yi} and X={xi} and returns (alpha, beta, r*r) such that Y = alpha + beta*X and where r is the Pearson product-moment correlation coefficient