Why does lasso pick arbitrarily among highly correlated predictors?

Quick Overview

Explain why lasso regression keeps one of several highly correlated predictors and drops the rest, and why the choice is unstable. Tests your understanding of L1 versus L2 penalties, strict convexity, the grouping effect, and remedies such as elastic net and stability selection.

Why does lasso pick arbitrarily among highly correlated predictors?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why does lasso pick arbitrarily among highly correlated predictors? ```hint Two identical columns Start with the extreme case where two predictors are exact copies. Compare the L1 and L2 penalties for different ways of splitting the same total coefficient between them. ``` ### What a Strong Answer Covers - The exactly duplicated case and why the lasso objective has many minimizers there - Why near-duplicates lead to one feature taking the weight, and what decides which one wins - The contrast with ridge's strictly convex penalty and its grouping effect - Remedies such as elastic net, group lasso and stability selection - The practical consequence for prediction versus interpretation of the selected features ### Follow-up Questions - How does the elastic net mixing parameter change which correlated features get selected? - How would you use stability selection to report which features matter? - Ridge keeps both of two correlated features with similar coefficients. How should you interpret those coefficients? - Does the scaling of the predictors change which feature lasso picks?

Overview: Explain why lasso regression keeps one of several highly correlated predictors and drops the rest, and why the choice is unstable. Tests your understanding of L1 versus L2 penalties, strict convexity, the grouping effect, and remedies such as elastic net and stability selection.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why does lasso pick arbitrarily among highly correlated predictors?

What a Strong Answer Covers Guidance

  • The exactly duplicated case and why the lasso objective has many minimizers there
  • Why near-duplicates lead to one feature taking the weight, and what decides which one wins
  • The contrast with ridge's strictly convex penalty and its grouping effect
  • Remedies such as elastic net, group lasso and stability selection
  • The practical consequence for prediction versus interpretation of the selected features

Follow-up Questions Guidance

  • How does the elastic net mixing parameter change which correlated features get selected?
  • How would you use stability selection to report which features matter?
  • Ridge keeps both of two correlated features with similar coefficients. How should you interpret those coefficients?
  • Does the scaling of the predictors change which feature lasso picks?