Ridge and LASSO Regularization
Deliberately biasing a regression to cut its variance, the ridge and LASSO penalties, the L2-versus-L1 geometry that makes LASSO select and ridge shrink, and why penalization is essential in the low-signal, high-collinearity world of finance.
Prerequisites: Ordinary Least Squares (OLS), Bias, Variance, and the Quality of Estimators
Regularization is the deliberate introduction of bias to reduce variance, the bias–variance tradeoff turned into a tool. OLS is unbiased and, by Gauss–Markov, best among unbiased linear estimators; but "best unbiased" is a low bar when the unbiased variance is enormous, which is exactly the situation in finance: many correlated predictors, short samples, and tiny signal-to-noise. Ridge and LASSO give up unbiasedness to buy a large drop in variance, and they are the default estimators whenever the predictor count is large relative to the information in the data.
The two penalties
Both add a penalty on coefficient size to the least-squares objective. Ridge penalizes the squared () norm:
LASSO penalizes the absolute () norm:
The tuning parameter controls the strength: recovers OLS; shrinks all coefficients to zero. You choose by cross-validation, and predictors must be standardized first so the penalty treats them comparably.
Ridge has a closed form, and regularizes the singularity
Ridge's objective is smooth, so setting the gradient to zero gives
Compare to OLS's : ridge adds to before inverting. This is the direct antidote to Multicollinearity, recall that collinearity makes near-singular with tiny eigenvalues that blow up the inverse. Adding lifts every eigenvalue by , so replaces in the denominator, taming the variance. In the eigenbasis, ridge multiplies the OLS coefficient along direction by the shrinkage factor , barely touching high-variance (well-identified) directions while heavily shrinking the low-variance (collinear, poorly-identified) ones. It shrinks smoothly toward zero but never sets a coefficient exactly to zero.
LASSO selects, the geometry of the corner
LASSO's crucial difference is that it drives some coefficients to exactly zero, performing variable selection and yielding a sparse model. The reason is geometric. Both methods can be written as constrained problems, minimize the residual sum of squares subject to (ridge) or (LASSO). The elliptical RSS contours expand until they touch the constraint region. The ball is round, so the tangency generically happens at a point with all coordinates nonzero, ridge shrinks but keeps everything. The ball is a diamond with sharp corners on the axes, and the expanding ellipse very often first touches a corner, where one or more coefficients are exactly zero. Higher-dimensional balls have corners, edges, and faces on the coordinate subspaces, making sparse solutions the rule, not the exception. That corner geometry is the whole story of why selects and does not.
A useful special case: with an orthonormal design, LASSO is soft-thresholding, , shift each coefficient toward zero by and clip at zero, while ridge is proportional shrinkage . Elastic net, , blends the two: it selects like LASSO but handles groups of correlated predictors more gracefully (LASSO tends to pick one of a collinear group arbitrarily).
Why finance needs it: the bias–variance payoff
The bias–variance decomposition is the justification. Ridge/LASSO are biased (), but there always exists a for which the increase in squared bias is more than offset by the decrease in variance, lowering MSE, this is a theorem for ridge, not a hope. In finance the conditions that make the trade favorable are everywhere: predictors (factors, technicals, alternative-data features) are numerous and highly collinear, samples are short, and the true signal is faint. Unregularized OLS in that setting overfits, high in-sample , negative out-of-sample performance (see Overfitting). Shrinkage stabilizes coefficients, prevents sign-flipping, and improves out-of-sample forecasts, which is why penalized regression, not OLS, is the practical default for signal construction. It is the same instinct as covariance Shrinkage in portfolio construction.
Worked example: 50 collinear factors, 200 months
You have 50 candidate return predictors, many correlated, and 200 monthly observations. OLS gives wild coefficients, some huge, several with implausible signs, and an in-sample of 0.35 that collapses to negative out-of-sample. Ridge with a cross-validated pulls the coefficients toward zero, kills the sign instability, and yields a small but positive out-of-sample . LASSO at its CV-optimal zeroes 40 of the 50, leaving a sparse, interpretable 10-factor model you can actually reason about and trade with lower turnover. Same data, the regularized models generalize, the OLS model does not.
Failure modes in financial data
- LASSO instability under collinearity. When predictors are highly correlated, LASSO's choice of which one to keep is unstable across samples, a small data change swaps the selected factor. Elastic net or ridge is steadier when you care about the coefficients themselves.
- Cross-validation leakage in time series. Standard -fold CV shuffles time and leaks future into past, badly under-selecting ; use forward-chaining / Walk-Forward Analysis CV that respects the time order.
- Standardization and stationarity. The penalty is scale-sensitive, so features must be standardized on training data only; and if the underlying relationships drift, the CV-chosen and selected set are themselves non-stationary.
- Naive inference. Post-selection -statistics on the LASSO-chosen coefficients are invalid (the selection used the data); honest inference needs post-selection or debiased-LASSO methods.
In interviews
Write both objectives, ridge with , LASSO with , and give ridge's closed form , noting that the is exactly what cures a near-singular . The signature question is "why does LASSO produce sparse solutions and ridge not?", answer with the constraint geometry: the diamond has corners on the axes that the RSS ellipse tends to hit, zeroing coefficients, while the round ball has no corners. Ground the whole thing in bias–variance: you accept bias to cut variance and lower MSE, which is worthwhile precisely in finance's many-collinear-predictors, low-signal, short-sample regime. A strong closer connects ridge to a Gaussian prior and LASSO to a Laplace prior, regularization is Bayesian MAP estimation. See Bayesian Inference.
Related concepts
Practice in interviews
Further reading
- Hastie, Tibshirani & Friedman, The Elements of Statistical Learning (Ch. 3)
- Tibshirani (1996), Regression Shrinkage and Selection via the Lasso
- Hoerl & Kennard (1970), Ridge Regression