statistics-linreg-0.1: 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) such that Y = alpha + betaX