Skip to main content
v2026.11,858 entries · CC-BY 4.0

Direct comparison

Ridge vs Lasso Regression: Shrink or Select

Ridge shrinks every coefficient toward zero; LASSO can zero them out entirely. A worked example shows when that difference changes your final model.

Written and maintained by CASRAI Editorial Board

Last updated

Ask CASRAI · free to try

Ask about Ridge vs Lasso Regression: Shrink or Select

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

Ask CASRAI answers research-administration questions and cites the passages behind every claim. When our sources don't cover a question, it says so.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

How do Ridge regression, LASSO regression compare side by side?

The table below compares Ridge regression, LASSO regression across 10 procurement-relevant dimensions, from penalty type through combines both behaviors.

Side-by-side comparison

DimensionRidge regressionLASSO regression
Penalty typeL2 — sum of squared coefficientsL1 — sum of absolute coefficients
Effect on coefficientsShrinks every coefficient toward zero, proportionallyCan shrink a coefficient exactly to zero
Performs variable selection?No — every predictor stays in the modelYes — zeroed predictors are effectively dropped
Behavior on correlated predictorsShrinks the correlated group together ("grouping effect")Tends to pick one predictor from the group somewhat arbitrarily and zero the rest
Resulting model shapeDense — all predictors present, all shrunkSparse — some predictors present, others absent
Well-posed when predictors > observations?YesYes, but selects at most n non-zero coefficients
Best default when…You want to keep every predictor and just control overfittingYou want a smaller, more interpretable final model
Tuning parameterλ (lambda), selected by cross-validationλ (lambda), selected by cross-validation
OriginHoerl and Kennard, 1970Tibshirani, 1996
Combines both behaviorsSee elastic net (α = 0 recovers ridge)See elastic net (α = 1 recovers lasso)

Common questions

Common questions about Ridge regression vs LASSO regression

Does LASSO always give a simpler, better model than ridge?

+

Not automatically. LASSO gives a sparser model, but sparsity isn't the same as accuracy — when predictors are correlated, LASSO's variable selection can be unstable (which predictor it keeps can change with small changes in the sample), and a properly cross-validated ridge model can predict just as well or better while keeping every predictor. Which one wins on prediction accuracy is an empirical question for the specific dataset, not a rule.

What does it mean if LASSO zeroes out a coefficient I expected to matter?

+

It usually means that predictor's information is redundant with another predictor still in the model, not that it has no real relationship with the outcome. This is especially likely if the zeroed predictor is correlated with one that survived — LASSO is picking one representative from a correlated group, not concluding the dropped variable is irrelevant.

Can I use ridge and LASSO together instead of choosing?

+

Yes — that combination is elastic net regression, which blends the L1 and L2 penalties with a mixing parameter and is specifically designed to keep LASSO's sparsity while fixing its instability on correlated predictors.

Do ridge and LASSO need the same data preparation?

+

Yes. Both penalties are scale-dependent, so predictors should be standardized (mean zero, unit variance) before fitting either model — otherwise a predictor measured in larger units gets penalized more heavily purely because of its scale.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →