Consistency of least squares Created 2026-09-24 Updated 2026-11-05
For fixed coefficient dimension and , the ordinary least squares error satisfiesConsequently convergence in probability of to a positive-definite matrix , together with in probability, proves statistical consistency by continuity of matrix inversion.
For independent and identically distributed random-design pairs, finite second moments and imply these limits by the law of large numbers, provided is nonsingular. Conditional mean zero, , is a familiar sufficient exogeneity condition. For a deterministic design matrix, the vanishing normalized design-error product must instead be justified from its errors and weights.
Finite moments and a nonsingular design alone are insufficient. In an intercept-only model with errors identically one, the estimated intercept is always . The missing zero-expected value condition changes the limiting target.
Matrix inversion Created 2026-10-20 Updated 2026-11-05
Matrix inversion computes the matrix inverse of a square matrix satisfying . It is possible exactly when has full rank. One method applies Gauss-Jordan elimination to ; another factors and solves a linear system for each column of .
For with , the inverse is . To solve a single numerical system , a factorization followed by triangular solves is usually preferable to explicitly forming the inverse. A large condition number can amplify input errors regardless of the inversion method.
Matrix inversion is not additive Created 2026-10-20 Updated 2026-11-05
Even over the real numbers, matrix inversion does not preserve addition. For of any positive size,All three matrices , and are invertible, so their invertibility does not rescue the proposed rule. The familiar scalar identity already supplies this counterexample through scalar matrices.
The centered regressors make the first normal equation read . DefineThe remaining equations are and . Provided , matrix inversion givesBy the Cauchy-Schwarz inequality, . If , the two regressor columns are linearly dependent, and their separate slopes are not uniquely identifiable. One still has well-defined linear least squares fitted values, but cannot use the displayed divisions by .