Why can ridge regression still produce a unique solution when p > n, whereas ordinary least squares fails?
Last updated
With p > n,
XᵀXis singular, so OLS has infinitely many minimizers (any null-space vector can be added without changing the fit).Ridge adds λI, turning zero eigenvalues into λ > 0. The objective becomes strictly convex with one minimizer, preferring the smallest-norm solution.
The solution lies in the row space of X and tends to the pseudoinverse solution
X⁺yas λ → 0⁺. Uniqueness doesn't guarantee good generalization.