Linear least squares minimizes over a vector . Its normal equations for linear least squares are ; geometrically is the orthogonal projection of onto the range of .
A linear least-squares projection is the affine predictor that minimizes mean squared error. For real random variables with finite second moments and , minimizing gives
The residual satisfies and . Consequently it is orthogonal, in the inner product , to the span of the constant variable and . For any other affine predictor , expanding the square yields
because the cross term vanishes. This proves optimality and uniqueness of the predicted random variable. The residual variance is the Schur complement covariance. No normal distribution is needed. For several predictors, the same orthogonality argument gives the normal equations for Linear least squares; a singular predictor covariance can make coefficients nonunique while leaving the projected prediction unique.
For finite second moments and , the residual variance after affine projection onto one predictor is , a covariance Schur complement.

Articles by others on the same topic (1)

Linear least squares is a statistical method used to find the best-fitting linear relationship between a dependent variable and one or more independent variables. The goal of linear least squares is to minimize the sum of the squares of the differences (residuals) between the observed values and the values predicted by the linear model.