is equivalent to solving the normal equations
. Thus the solution for
is given by: 
.Pros: | Good performance. Parameter values are recalculated very quickly when adding or removing predictor variables. Model selection performance is best with this calculation method. |
Cons: | Calculation fails when the regression matrix X has less than full rank. (A matrix has less than full rank if the columns of X are linearly dependent.) Results may not be accurate if X is extremely ill-conditioned. |
Pros: | Calculation succeeds for regression matrices of less than full rank. However, calculations fail if the regression matrix contains a column of all 0s. |
Cons: | Slower than the straight QR technique described in “RWLeastSqQRCalc.” |
, where P is an
matrix consisting of p orthonormalized eigenvectors associated with the p largest eigenvalues of
, Q is a
orthogonal matrix consisting of the orthonormalized eigenvectors of
, and Σ = diag(σ1, σ2, ... , σp) is a
diagonal matrix of singular values of X. This singular value decomposition of X is used to solve the equation in “Calculation Methods for Linear Regression”.Pros: | Works on matrices of less than full rank. Produces accurate results when X has full rank, but is highly ill-conditioned. |
Cons: | Slower than the straight QR technique described in “RWLeastSqQRCalc.” |