statistics-linreg-0.2: Linear regression between two samples, based on the 'statistics' package

Statistics.LinearRegression

Synopsis

linearRegression :: Sample -> Sample -> (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

correl :: Sample -> Sample -> DoubleSource

Pearson's product-moment correlation coefficient

covar :: Sample -> Sample -> DoubleSource

Covariance of two samples