TOPICS
Search

Ordinary Least Squares


Ordinary least squares is a method for estimating the coefficient vector in a linear regression model by minimizing the unweighted sum of squared residuals. For a design matrix X and response vector y, the estimate beta^^ minimizes

 ||y-Xbeta||_2^2.

It therefore satisfies the normal equations

 X^TXbeta^^=X^Ty.

When the columns of X are linearly independent, the estimate is unique. In contrast, weighted and generalized least squares modify the residual norm to account for unequal variances or correlated errors.


See also

Least Squares Fitting, Linear Regression, Normal Equation, Regression

Explore with Wolfram|Alpha

References

Seber, G. A. F. and Lee, A. J. Linear Regression Analysis, 2nd ed. Hoboken, NJ: Wiley, 2003.

Cite this as:

Weisstein, Eric W. "Ordinary Least Squares." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/OrdinaryLeastSquares.html

Subject classifications