Empirical forecasting models · Model guide
LASSO: question, structure, and use cases
L1-penalized linear regression -- drives some coefficients to zero, doing variable selection inside the fit.
Which of these hundred candidate predictors actually matter for forecasting, and can you estimate their effects simultaneously?
Background
OLS treats every predictor as essential. Ridge regression treats every predictor as relevant but shrinks them toward zero. Neither eliminates variables. Tibshirani (1996) proposed the LASSO---Least Absolute Shrinkage and Selection Operator---which replaces ridge's L2 penalty with an L1 penalty: . The geometry of the L1 ball (a diamond in two dimensions) means that the constrained optimum hits a corner where one or more coefficients are exactly zero. The LASSO simultaneously estimates coefficients and selects variables, producing a sparse model directly from the optimization.
The mechanics are sharp. The objective is . Unlike ridge, this problem has no closed-form solution because the L1 penalty is not differentiable at zero. The solution is computed by coordinate descent: cycle through predictors, update each coefficient by soft-thresholding, and repeat until convergence. The LARS (Least Angle Regression) algorithm of Efron et al. (2004) computes the entire solution path---all coefficient values for every from infinity to zero---in the same computational cost as a single OLS fit. This path is piecewise linear, with kinks at the values where variables enter or leave the active set.
In macroeconomics, LASSO gained traction through the work of Bai and Ng (2008) on factor-augmented forecasting and Li and Chen (2014) on selecting relevant predictors from large macro panels. Central bank researchers use LASSO to identify which of dozens of financial indicators actually predict recessions, to select lag lengths in high-dimensional VARs, and to estimate sparse Phillips curves. The Bank of Canada, Reserve Bank of Australia, and Bank of England have all published research using LASSO or its variants for macro forecasting.
The method's limitation is well-understood: LASSO's variable selection is unstable when predictors are correlated. If two variables carry the same information, LASSO arbitrarily picks one and zeros the other. Which one it picks can flip with small data perturbations. The elastic net (Zou and Hastie, 2005) addresses this by combining L1 and L2 penalties. The adaptive LASSO (Zou, 2006) uses data-dependent weights to achieve oracle properties---the same selection and estimation efficiency as if the true sparse model were known in advance.
How the Parts Fit Together
Inputs mirror those of ridge: observations, predictors (standardized to unit variance), and a dependent variable . Typical macro applications involve ranging from 50 to 500 candidate predictors: monthly financial variables, survey indices, labor market indicators, international series, and their lags. The critical difference from ridge is that the analyst expects only a subset---perhaps 5 to 20---of these predictors to be active in the true model.
The model solves . The L1 penalty creates a non-smooth optimization landscape. At each coordinate , the solution is where is the partial residual regression coefficient and is the soft-thresholding operator. If , the coefficient is set exactly to zero. If , it is shrunk toward zero by . The entire algorithm cycles through coordinates repeatedly until all coefficients stabilize.
Penalty selection uses -fold cross-validation, typically . The CV curve plots prediction error against , and the minimum identifies . The one-standard-error rule picks , the largest within one SE of the minimum---a more parsimonious model that protects against overfitting. For time-series data, the CV folds must respect temporal ordering (rolling or expanding window). Information criteria (BIC, extended BIC) are alternatives that penalize model complexity directly and avoid the need for cross-validation.
Applications
The Reserve Bank of Australia uses LASSO to select predictors from a pool of 150+ monthly indicators when nowcasting GDP. The selected model typically retains 8 - 15 variables, which shifts in composition across vintages as the economic environment changes. The sparsity constraint forces the model to identify which signals are genuinely informative in each forecast round, avoiding the "kitchen sink" problem that plagues OLS with large predictor sets.
Academic research on Phillips-curve specification uses LASSO to adjudicate among competing slack measures.Stock and Watson (2019) included unemployment, output gap, capacity utilization, and various labor-market indicators (with lags) as candidates. LASSO's selection reveals which measures contain independent forecasting power for inflation after accounting for the others---a question that generates long debates when addressed by eyeball comparison of in-sample fit.
In financial economics, LASSO identifies which of hundreds of firm characteristics predict stock returns in the cross-section. Gu, Kelly, and Xiu (2020) used LASSO (among other ML methods) on a large set of firm-level predictors, finding that 20 - 30 characteristics survive regularization. This approach has replaced ad hoc "anomaly" testing in much of the recent empirical asset pricing literature.
LASSO breaks down in three settings. First, when predictors are highly correlated, selection is unstable: LASSO picks one from a correlated group and discards the others, and which one it picks can change with minor data revisions. Elastic net fixes this by adding an L2 penalty that encourages correlated predictors to share weight. Second, LASSO can select at most variables. In extreme high-dimensional settings (), this cap binds before all true predictors are captured. Third, LASSO coefficients are biased toward zero by construction. Post-LASSO OLS---running OLS on the LASSO-selected variables---corrects the bias but introduces a two-stage procedure whose statistical properties are harder to characterize.
Components
The vector of L1-penalized coefficients. Some entries are exactly zero; the nonzero entries identify the selected variables.
Non-negative scalar controlling sparsity. Larger sets more coefficients to zero. At , all coefficients are zero.
The core nonlinearity: . Shrinks toward zero by and sets it to zero if .
The set of predictors with nonzero coefficients at penalty : . This is the selected model.
The smallest at which all coefficients are zero: . The regularization path starts here.
For the LASSO, the effective degrees of freedom equals the number of nonzero coefficients (Zou, Hastie, Tibshirani, 2007). Discrete, unlike ridge's continuous df.
Assumptions
The true coefficient vector has nonzero entries with . Most predictors are irrelevant.
If violated: If the truth is dense (all predictors contribute weakly), LASSO zeroes out some true signals and underperforms ridge. Elastic net is more robust to this case.
The design matrix satisfies for all in a restricted set around the true sparse support.
If violated: Without this condition, the LASSO cannot distinguish the true support from spurious alternatives. Estimation and selection consistency both fail.
The correlation between relevant and irrelevant predictors is bounded: .
If violated: LASSO may select incorrect variables even as . This condition is strong and often violated in macro data where predictors are correlated.
for some .
If violated: LASSO selects a linear approximation. Nonlinear effects are missed; important nonlinear predictors may be incorrectly zeroed out.
Errors are i.i.d. or weakly dependent for oracle inequality results to hold.
If violated: Serial correlation invalidates standard cross-validation and weakens the theoretical guarantees on selection and estimation rates.
All predictors are scaled to zero mean and unit variance before applying the penalty.
If violated: The L1 penalty treats coefficients on different scales unequally. A predictor measured in large units gets penalized more heavily per unit of predictive power.
Continue reading
Concepts, data, and nearby models
Open the concept, data series, policy setting, or neighboring model that anchors this page.