How does Ridge regression affect the weights of two perfectly collinear features?
Last updated
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.