Why does lasso pick arbitrarily among highly correlated predictors?
Last updated
The L1 penalty is not strictly convex, so it is indifferent to how weight is split among near-duplicate features. It prefers putting all weight on one feature.
Which feature wins depends on tiny sample-noise differences or solver details (feature order, warm starts). Selection therefore flips across resamples.
Ridge's strictly convex L2 penalty spreads weight evenly across correlated features. Elastic net adds an L2 term so correlated groups are selected together.