AbstractLSCalculateR2 Method (Matrix, Vector)
|
Calculate R2 - Coefficient of determination - goodness-of-fit of the OLS regression metric.
Method use computed regression parameters.
http://en.wikipedia.org/wiki/Coefficient_of_determination
Namespace:
FinMath.LeastSquares
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public virtual double CalculateR2(
Matrix regressors,
Vector regressand
)
Parameters
- regressors
- Type: FinMath.LinearAlgebraMatrix
Regressors valuess matrix. Rows of X correspond to observations, columns to variables. - regressand
- Type: FinMath.LinearAlgebraVector
Regressand values vector.
Return Value
Type:
DoubleVector of calculated residuals.
See Also