How can ridge regression be reproduced as ordinary least squares on an augmented dataset?

Last updated 3 November 2026

  • Append p pseudo-rows √λ·I to X and p zeros to y. The augmented RSS equals ||y − Xw||² + λ||w||², so OLS returns the ridge solution.

  • The normal equations become (XᵀX + λI)w = Xᵀy. Each pseudo-row is a fake observation saying a coefficient should be 0.

  • This reuses any OLS solver (e.g. QR for numerical stability). Leave the intercept unpenalized, and generalize to Tikhonov with √λ·Γ.

  • https://forum.casact.org/article/132224-credibility-as-data-augmentation
  • https://d2l.smola.org/chapter_linear-regression/weight-decay.html
All Regularization interview questions