Why can ridge regression still produce a unique solution when p > n, whereas ordinary least squares fails?

Last updated 3 November 2026

  • With p > n, XᵀX is 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⁺y as λ → 0⁺. Uniqueness doesn't guarantee good generalization.

  • https://practicaldsc.org/guides/machine-learning/ridge-regression/
  • https://sibylse.github.io/TUEML/regression_ridge.html
  • https://arxiv.org/html/2006.00371v2
All Regularization interview questions