When would Ridge regression be expected to outperform Lasso in predictive accuracy?

Quick Overview

Asks when Ridge regression should beat Lasso on out-of-sample prediction error. Tests understanding of dense versus sparse true coefficients, how each penalty handles correlated predictors, the Bayesian prior view, and how to choose between them with cross-validation or elastic net.

When would Ridge regression be expected to outperform Lasso in predictive accuracy?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When would Ridge regression be expected to outperform Lasso in predictive accuracy? Assume both are linear models on standardized features, each tuned by cross-validation, and that the goal is low error on new data. ```hint Picture the true coefficients Think about how the true signal is spread across the features, and what each penalty does to an effect that is real but small. ``` ```hint Add correlation Consider a group of predictors that are nearly copies of each other. Work out what each method does with that group from one training sample to the next. ``` ### What a Strong Answer Covers - How the density or sparsity of the true coefficients favors one penalty over the other - How each method treats a group of correlated predictors, and what that does to variance - What each penalty does to an individual estimate, or the prior it corresponds to - The settings where Lasso wins instead - How to choose in practice when the true structure is unknown ### Follow-up Questions - Why can Lasso select at most n variables when p is larger than n, and why can that hurt prediction? - How does elastic net change Lasso's behavior on correlated groups? - Why should features be standardized before fitting either model? - If Ridge and Lasso reach about the same cross-validated error, which would you ship and why?

Overview: Asks when Ridge regression should beat Lasso on out-of-sample prediction error. Tests understanding of dense versus sparse true coefficients, how each penalty handles correlated predictors, the Bayesian prior view, and how to choose between them with cross-validation or elastic net.

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

When would Ridge regression be expected to outperform Lasso in predictive accuracy? Assume both are linear models on standardized features, each tuned by cross-validation, and that the goal is low error on new data.

What a Strong Answer Covers Guidance

  • How the density or sparsity of the true coefficients favors one penalty over the other
  • How each method treats a group of correlated predictors, and what that does to variance
  • What each penalty does to an individual estimate, or the prior it corresponds to
  • The settings where Lasso wins instead
  • How to choose in practice when the true structure is unknown

Follow-up Questions Guidance

  • Why can Lasso select at most n variables when p is larger than n, and why can that hurt prediction?
  • How does elastic net change Lasso's behavior on correlated groups?
  • Why should features be standardized before fitting either model?
  • If Ridge and Lasso reach about the same cross-validated error, which would you ship and why?