How does Ridge regression affect the weights of two perfectly collinear features?

Last updated 3 November 2026

  • For identical features the fit depends only on w₁ + w₂, and ridge picks the minimum-L2-norm split: equal weights (1/k each for k copies).

  • For scaled copies the split is proportional to scale, so standardize. The combined weight is still shrunk by λ.

  • Lasso is non-unique here and often puts all weight on one arbitrary feature. Elastic net adds L2 to recover ridge's grouping.

  • https://www.mlvisualization.com/visualizations/elastic-net
  • https://medium.com/@kemaldahha/understanding-linear-regression-by-deriving-the-normal-equation-364d9295be1b
All Regularization interview questions