Tool/Probability and Statistics/No. 0835
Regularization
Regularization is the use of constraints or penalties to reduce a model’s sensitivity to data. In statistics, methods such as ridge regression, developed by Hoerl and Kennard, trade some fit to observed data for more stable estimates and, often, better predictions on new cases.
- Evidence
- Well established
- Read
- 6 min
- Links
- 10 connections
- Useful when
- Deciding under uncertainty · Forecasting · Reading data and statistics
01You've seen this when…
- in life
You use recent mornings to estimate how long getting the kids ready takes. You allow only two adjustments, for packed lunches and rainy weather, even though extra rules would explain each delay. A morning spent searching for a shoe leaves the next week’s departure estimates almost unchanged.
- at work
An analyst estimates how advertising affects sales. Search ads and social ads usually rise together; removing a few rows makes their estimated effects swap signs.
- out in the world
A city predicts road maintenance needs from dozens of neighborhood indicators. After the annual data update, several streets jump from the bottom of the repair list to the top.
02The idea
A flexible model has many ways to explain the data it sees. Some capture patterns that recur. Others capture accidents: an unusually cold week, a recording error, or a coincidence between two columns. A close fit can contain both.
Regularization adds a preference to the fitting process. Alongside the cost of prediction errors, the model pays a cost for certain kinds of solutions. That cost can discourage large coefficients, rough curves or excessive flexibility. Constraints, such as limiting a tree’s depth, can serve the same purpose.
In regression, ridge penalizes the sum of squared coefficients. It pulls them toward zero, usually leaving every predictor in the model. Lasso penalizes the sum of their absolute values and can set some coefficients exactly to zero. Both use shrinkage, though regularization also includes methods that constrain other features of a model.
The penalty has a strength setting. At zero, it has no effect. As its strength rises, the model has less freedom to fit the observations. An excessive penalty can flatten useful patterns into underfitting.
The aim is a productive bias-variance trade-off: accepting some systematic error can reduce how much the fitted model changes across samples. A slightly worse fit to today’s observations may produce steadier estimates and better predictions tomorrow.
03How to use it
- Define the job and the error that matters. Decide whether the model must predict prices, rank risks or estimate an association. Choose an evaluation measure that matches that job. Regularization can stabilize an estimate, but causal interpretation still requires assumptions about how the data arose.
- Create an evaluation split that resembles future use. For forecasting, train on earlier observations and evaluate on later ones. If several rows belong to the same customer, keep that customer within one split. Reserve a final test set before choosing the penalty.
- Choose a constraint that fits the model. Ridge is often useful when many predictors contribute and some move together. Lasso can produce a smaller set of predictors. For curves, a smoothness penalty can discourage implausible wiggles; for trees, depth or leaf-size limits restrict flexibility.
- Make the penalty comparable across inputs. For ridge and lasso, predictors on different scales usually need standardization. Otherwise, changing dollars to thousands of dollars changes the effective penalty. Learn scaling values from the training data within each evaluation split. The intercept is usually left unpenalized.
- Tune the strength and check stability. Compare several penalty settings using cross-validation, which evaluates performance on held-out portions of the data. Include an unregularized baseline where feasible. After selecting a setting, evaluate once on the reserved test set. Also check whether small changes in the training sample still cause large changes in predictions.
Cross-validation evaluates a fitting procedure; regularization changes that procedure. Keeping the final test data outside all tuning decisions helps prevent data leakage.
04A worked example
Consider an illustrative housing model. An analyst has 120 recent sales and 20 predictors, including floor area, room count and tax assessment. Several predictors overlap heavily. She reserves 30 sales for a final test and uses the other 90 to develop the model.
What it looks like Ordinary regression fits the development data closely, with a mean absolute price error of $8,000. Ridge regression, tuned using cross-validation within those 90 sales, has a larger training error of $11,000. Judged by training fit alone, the ordinary model leads.
What’s actually going on The ordinary model uses large, opposing coefficients to exploit small differences between correlated predictors. Those coefficients are sensitive to which homes enter the sample. Ridge discourages that behavior. On the untouched 30 sales, the ordinary model’s mean absolute error is $24,000, while ridge’s is $16,000. These figures are invented to illustrate the trade-off.
What made it work Scaling and penalty selection happen inside the development process, with the final test set kept separate. The penalty sacrifices some fit while reducing sensitivity to the sample. Thirty test sales still give an uncertain estimate of performance, so the analyst checks a later period before deploying the model.
05When to reach for it
06When it misleads
- The penalty encodes an unsuitable preference. Shrinking every coefficient toward zero or favoring smooth curves makes assumptions about plausible solutions. A penalty can suppress an important abrupt change. Some penalties can also be interpreted through a Bayesian prior, making those assumptions explicit.
- Feature selection becomes a discovery claim. Lasso can select one of several correlated predictors and discard the others. Small data changes may alter the selection. A selected variable does not establish a causal effect.
- Evaluation rewards the wrong setting. Random splits can flatter a model intended for future forecasting. Repeatedly consulting the test set turns it into another tuning set.
- Stability creates false reassurance. Regularization cannot repair mislabeled outcomes, unmeasured confounding or distribution shift. A model can produce consistent answers while remaining consistently wrong. Check performance in the population and conditions where it will be used.
07Roots
Andrey Tikhonov approached the problem through inverse mathematics: reconstructing a hidden cause from its measured effects. Recovering a temperature profile from imperfect readings captures the difficulty. Very different profiles can explain nearly the same measurements, including ones with huge oscillations. His 1943 work examined the stability of inverse problems; in 1963 he gave an influential formulation of regularization, balancing agreement with measurements against a penalty on the solution.
In industrial regression, Arthur Hoerl and Robert Kennard faced a related difficulty. Predictors often moved together, allowing large positive and negative coefficients to cancel each other. Their influential 1970 ridge regression papers showed how accepting bias could improve estimation in these unstable problems. The familiar goal of minimizing fitting error acquired a second consideration: sensitivity to the data.
Robert Tibshirani’s 1996 lasso paper made shrinkage and variable selection part of one procedure. Regularization spread across statistical learning as datasets and models grew larger. The shared idea survived the change in scale: build a preference for stable or restricted solutions into the fitting process.
08How solid is this?
Regularization has strong mathematical foundations and extensive empirical support for stabilizing ill-conditioned estimation and improving prediction. Benefits depend on the penalty, its strength, the data and the evaluation setting; improvement is not guaranteed for every problem.
09Connections
- Helps counter Overfitting, Multicollinearity, Distribution Shift
- Can lead toUnderfitting
- Part of Bayesian Prior
- IncludesShrinkage
- See also Occam’s Razor, Bias-Variance Trade-Off, Cross-Validation, Data Leakage
10Origin and sources
Andrey Tikhonov’s work on inverse-problem stability dates to 1943; his influential regularization formulation appeared in 1963. Arthur Hoerl and Robert Kennard published their foundational ridge regression papers in 1970.
- [1]Tikhonov, A. N., & Arsenin, V. Y. (1977). Solutions of Ill-Posed Problems. V. H. Winston & Sons.
- [2]Hoerl, A. E., & Kennard, R. W. (1970). Ridge Regression: Biased Estimation for Nonorthogonal Problems. Technometrics, 12(1), 55–67.
- [3]Tibshirani, R. (1996). Regression Shrinkage and Selection via the Lasso. Journal of the Royal Statistical Society. Series B (Methodological), 58(1), 267–288.
- [4]Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning: Data Mining, Inference, and Prediction. Second edition. Springer.
Updated 2026-10-05