Skip to main content

Module general_least_squares

Module general_least_squares 

Source
Expand description

Weighted and generalised least squares.

See the book entry Linear regression.

Structs§

GeneralLeastSquares
Least squares with a known error structure: minimise (y - Xw)ᵀ Σ⁻¹ (y - Xw) where Σ is the covariance of the errors (generalised least squares), or the special case of independent errors with per-sample weights (weighted least squares, Σ = diag(1/weight)). This is the best linear unbiased estimator when Σ is right: noisy or correlated samples count for less.