Safe Haskell | None |
---|
Functions for regression analysis.
Documentation
:: Matrix | A has at least as many rows as columns. |
-> Vector | b has the same length as columns in A. |
-> Vector |
Compute the ordinary least-squares solution to A x = b.
Compute R², the coefficient of determination that indicates goodness-of-fit of a regression.
This value will be 1 if the predictors fit perfectly, dropping to 0 if they have no explanatory power.