Skip to content
AI360Xpert
Beta

High-Dimensional Regression

Fitting $d$ coefficients from $n$ samples with $d$ near or above $n$ only works with structure. Sparsity plus $L_1$ penalties restores rates that look like $\sqrt{s \log d / n}$.

Ordinary least squares explodes with 1000 features and 200 samples while Lasso with the right penalty lands within 0.15 of truth
Ordinary least squares explodes with 1000 features and 200 samples while Lasso with the right penalty lands within 0.15 of truth

Why Does This Exist?

Ordinary least squares needs n≥dn \ge d: with d=1000d = 1000 features and n=200n = 200 samples the design is singular and infinitely many coefficient vectors fit training perfectly. Classical standard errors assume the opposite regime and go vacuous. Yet genomics, text and sensor problems live exactly here with a saving grace: only s=10s = 10 of the 1,0001{,}000 coefficients matter.

High-dimensional regression is the theory of exploiting that sparsity. The Lasso minimises squared error plus λ∥β∥1\lambda \lVert \beta \rVert_1 (least squares with an L1L_1 price on coefficient size), which selects variables and fits them at once. Its error scales with slog⁡ds\log d, the effective dimension, not dd. Without this shift, every d>nd > n regression would be hopeless; with it, 1,5001{,}500 samples can tame 1,0001{,}000 features when 1010 are active.

Prerequisite in one paragraph. You need the linear model y=Xβ+wy = X\beta + w with design XX, coefficients β\beta and noise ww, plus the L1L_1 norm as a sparsity price. Least squares minimises training error with no price. Background is in linear systems and least squares and maximum likelihood estimation.

Think of It Like This

Ten loud voices in a crowded hall

A hall holds 1,000 people but only 10 speak. One microphone per person would need 1,000 recordings. Instead you take 200 mixed recordings from random seat clusters and ask who spoke. Least squares blames everyone a little, producing 1,000 murmurs. Lasso charges per accused speaker, so it names about 10 and fits their volumes.

The L1L_1 charge is the entrance fee per suspect. Set it right and the 10 true speakers pay it gladly from the evidence while 990 silent attendees stay out. Set it to zero and everyone crowds in.

Where the analogy stops: voices overlap linearly and cleanly here, while real designs correlate. Correlated features split blame and the Lasso picks one representative, which the hall picture hides.

How It Actually Works

Observe y=Xβ∗+wy = X\beta^* + w with β∗\beta^* having ss nonzeros, XX an n×dn \times d design with normalised columns and ww sub-Gaussian noise of scale σ\sigma. The Lasso solves β^=arg⁡min⁡β∥y−Xβ∥22/(2n)+λ∥β∥1\hat{\beta} = \arg\min_\beta \lVert y - X\beta \rVert_2^2/(2n) + \lambda\lVert \beta \rVert_1, where λ\lambda is the penalty trading fit against sparsity. With λ≍σlog⁡d/n\lambda \asymp \sigma\sqrt{\log d/n} (proportional to noise times that square root) and a restricted eigenvalue condition on XX (sparse directions keep energy, the regression cousin of RIP), the error obeys ∥β^−β∗∥2≲σslog⁡d/n\lVert \hat{\beta} - \beta^* \rVert_2 \lesssim \sigma\sqrt{s\log d/n}.

Worked example

Take d=1000d = 1000, s=10s = 10, σ=1\sigma = 1 and n=1500n = 1500. Then log⁡d=ln⁡1000≈6.91\log d = \ln 1000 \approx 6.91, slog⁡d/n=10×6.91/1500≈0.0461s\log d/n = 10 \times 6.91/1500 \approx 0.0461, and its square root is 0.0461≈0.215\sqrt{0.0461} \approx 0.215. With constants near 0.70.7 the bound lands near 0.150.15. So 1,5001{,}500 samples pin 1010 active coefficients among 1,0001{,}000 within 0.150.15 Euclidean error.

Least squares cannot even start at n=200<dn = 200 < d: its variance term scales like σd/n=5≈2.24\sigma\sqrt{d/n} = \sqrt{5} \approx 2.24 even where defined via pseudoinverse, an order above the Lasso error and with no selection. The log⁡d\log d price of 6.916.91 replaces the dd price of 1,0001{,}000, a 145145-fold saving in effective dimension.

Watch Out For

Running Lasso with unnormalised columns

If one feature spans 00 to 10001000 and another spans 00 to 11, the same λ\lambda punishes their coefficients unequally: the wide feature looks cheap per unit effect. Selection then favours scale, not signal, and the rate collapses.

Fix: standardise every column to unit L2L_2 or unit variance before fitting. Undo the scaling only when reporting.

Reading selected variables as the true support

Lasso selection is consistent only under an irrepresentability condition limiting correlations between active and inactive features. With strong correlations it swaps members, keeps proxies and drops truth while predicting well. Treating the selected set as discovered biology or causal drivers overclaims.

Fix: separate prediction from selection. For support claims use stability selection or debiased intervals, not the raw Lasso active set.

The Quick Version

  • With d≥nd \ge n, structure is mandatory and sparsity plus L1L_1 is the standard structure.
  • Lasso error scales as slog⁡d/n\sqrt{s\log d/n}, so 10 in 1000 need about 1500 samples for error 0.15.
  • Penalty near σlog⁡d/n\sigma\sqrt{\log d/n} with normalised columns; the design needs a restricted eigenvalue.
  • Least squares scales as d/n\sqrt{d/n} and is undefined below dd samples.
  • Selection needs stronger correlation conditions than prediction, so do not read support as truth.