45.06.05 · mathematical-statistics / 06-high-dimensional-regularization

Subset Selection and the Curse of Dimensionality

shipped3 tiersLean: none

Anchor (Master): Hastie, Tibshirani & Friedman 2009 The Elements of Statistical Learning 2e (Springer) Ch. 3 §3.3 and Ch. 18 (high-dimensional problems, p ≫ n); Berk, Brown, Buja, Zhang & Zhao 2013 Annals of Statistics 41 (valid post-selection inference); Donoho 2000 AMS Lecture (high-dimensional data analysis: the curses and blessings of dimensionality)

Intuition Beginner

Suppose you have a hundred possible predictors and you suspect only a few of them actually matter. The honest thing to do seems simple: try every possible handful of predictors, fit each one, and keep the combination that predicts best. This is subset selection, and it has two problems. The first is that the number of handfuls explodes. With a hundred predictors there are more than a billion billion billion combinations, far too many to ever check. The second is sneakier: the very act of picking the winner from a huge pile of candidates flatters that winner. Some combination will look great on your data by luck alone, and you will mistake luck for signal.

Because checking everything is impossible, people use greedy shortcuts. Forward selection starts with nothing and adds the single best predictor, then the next best given the first, and so on. Backward selection starts with everything and drops the least useful one at a time. These are fast, but they are jumpy: change a few data points and the chosen set can flip entirely. A predictor is either fully in or fully out, with nothing in between, so small wiggles in the data cause big jumps in the answer.

Compare this to the smooth approach of the previous units, where every predictor's weight is gently dialed up or down. Shrinkage moves continuously; selection moves in hard steps. The steps are what make selection unstable.

There is a second, deeper trouble lurking behind all of this, and it is purely about having many predictors at once. In high dimensions, space behaves in ways that defeat our everyday intuition. Points that you think of as "close" are almost all about the same distance apart, so the idea of a nearby neighbour stops meaning much. To cover the space with examples, you would need an absurd number of them. This is the curse of dimensionality, and it is the real reason that throwing more predictors at a problem so often backfires.

Visual Beginner

Two pictures sit at the heart of this unit. The first contrasts how selection and shrinkage move. The second shows how empty high-dimensional space is.

Method How a predictor's weight changes as you tune Behaviour when data wiggles
Best-subset / stepwise selection jumps between zero and its full value (in or out) unstable: the chosen set can flip
Shrinkage (ridge) slides smoothly toward zero, never exactly off stable: small data changes, small weight changes

The second table shows how much data you need just to keep your examples close together as the number of predictors grows. To capture a small fixed fraction of the space around a point, the side length of the little box you need swells toward covering the whole range.

Number of predictors Side length needed to enclose 1% of the data volume
1 0.01
2 0.10
5 0.40
10 0.63

The takeaway: selection is a staircase, shrinkage is a ramp, and in many dimensions the staircase has to reach across almost the entire room to find anything to stand on.

Worked example Beginner

Here is the curse made concrete with arithmetic. Imagine your data live in a cube whose sides each run from to . You want to find a little sub-cube around a point that contains a fixed fraction of the data, say , one percent. Assume the data are spread out evenly.

In one dimension the cube is just a line of length . To capture of it you need a piece of length . Short and local, just as intuition says.

In two dimensions the cube is a square of area . A little sub-square with side has area . To make that area equal you need , so . The side already grew tenfold.

In ten dimensions the cube has volume , and a little sub-cube with side has volume multiplied by itself ten times. To make that equal you need raised to the tenth power to be . Solving, .

So in ten dimensions, capturing a mere of the data forces your "local" box to stretch across of the full range in every direction. That is not local at all. What this tells us: in high dimensions there is no such thing as a small neighbourhood that still contains data. Any method that relies on looking at nearby points, such as nearest-neighbours, is forced to look far away, where the points no longer resemble the one you care about.

Check your understanding Beginner

Formal definition Intermediate+

Fix a design matrix with columns indexed by and response . A submodel is a subset ; writing for the columns in , the least-squares fit on has residual sum of squares . Best-subset selection of size solves the combinatorial problem

and then a size is chosen by a complexity-penalized criterion such as , , or cross-validation 45.06.02. There are candidates of size and submodels in total, so direct enumeration is infeasible for moderate ; the leaps-and-bounds algorithm prunes the search but is still exponential in the worst case.

Two greedy heuristics replace the search with a path. Forward stepwise selection begins with and at each step adds the index that most reduces the residual sum of squares, . Backward stepwise selection begins with the full model and at each step deletes the index whose removal least increases the residual sum of squares; it requires so the full model is defined. Forward stagewise selection is gentler still: it repeatedly identifies the predictor most correlated with the current residual and moves its coefficient a small step in that direction, leaving all others fixed, so the coefficient paths are built up in tiny increments rather than by full least-squares refits.

The discreteness of selection is its defining structural feature. The selection map is piecewise constant: it takes finitely many values, and the data space partitions into regions on whose boundaries the selected set jumps. A selection estimator is therefore discontinuous in the data, in sharp contrast to ridge regression 45.06.03, whose coefficient path is a continuous, indeed smooth, function of . The discontinuity is the source of selection's high variance: a small perturbation of can flip to an entirely different subset, and averaging over the sampling distribution of then averages over qualitatively different fitted models.

Two geometric definitions organize the high-dimensional half. For points drawn i.i.d. uniformly on the unit ball , the median nearest-neighbour distance to the origin is the median of ; it is the radius of the smallest ball about the origin expected to contain a data point. Two random vectors are near-orthogonal when their normalized inner product is close to zero; in high dimensions this holds with high probability for independent isotropic vectors, with fluctuations controlled by the concentration inequalities of 45.05.01 and 40.07.05.

Counterexamples to common slips

  • Forward stepwise need not find the best subset of its own size. The greedy path is not guaranteed to pass through ; a predictor that is useless alone but decisive in combination with another can be passed over forever. Greedy optimality is a heuristic, not a theorem.
  • Selection is not a continuous limit of shrinkage. Ridge never sets a coefficient exactly to zero, so it cannot reproduce a hard selection at any finite penalty; the discontinuity of is a genuine difference, not a tuning artifact. The lasso 45.06.06 is the object that interpolates, by being continuous yet capable of exact zeros.
  • The curse is not merely "more parameters, more overfitting". Even with the true model known, density and distance estimation degrade with dimension because the geometry itself thins out the data; the curse is about the ambient space, not only about model complexity.
  • Distance concentration does not say all points coincide. Pairwise distances concentrate around a common value in relative terms; the absolute spread can still grow. What collapses is the contrast between nearest and farthest, which is what nearest-neighbour methods exploit.

Key theorem with proof Intermediate+

Theorem (median nearest-neighbour distance and the emptiness of high-dimensional neighbourhoods). Let be i.i.d. uniform on the unit ball . The median distance from the origin to its nearest data point is

Consequently, for and the median nearest-neighbour distance is about , more than halfway to the boundary: with five hundred points the typical nearest neighbour of the centre lies past the midradius, not nearby.

Proof. A single uniform point on has for , because the ball of radius scales every coordinate by and volume scales by . Hence . With independent points, the nearest distance exceeds exactly when all points do, so by independence

The median of solves , that is . Taking -th roots gives , so and , as claimed. For , , so ; raising to the power gives .

Bridge. This computation builds toward the operational failure of every local method in the chapter, because a nearest neighbour that sits past the midradius is not a local datum at all, so -nearest-neighbour regression and kernel density estimation lose the locality on which their low bias depends. The foundational reason is the volume law : high-dimensional volume hugs the boundary, which is exactly the thin-shell phenomenon proved in the advanced section and is dual to the distance-concentration statement that nearest and farthest neighbours become indistinguishable. The same exponent appears again in 45.06.06, where sparsity assumptions are precisely what let regularized selection beat the curse by acting as though the effective dimension were the small number of relevant predictors rather than the full . Putting these together, the median-distance identity is the quantitative skeleton on which the case for structure-exploiting regularization, rather than brute-force local fitting, is built; this is exactly the bias-variance trade-off of 45.06.02 read through the geometry of the sample space.

Exercises Intermediate+

Advanced results Master

The volume law underlies a sharp concentration statement. For uniform on , , so the density of the radius is on , with mean and standard deviation of order . The mass therefore collapses onto a thin shell at the boundary: for any fixed , . A fraction of the ball's volume lies within relative distance of the surface, the thin-shell phenomenon. The Gaussian analogue is cleaner: for the squared norm is with mean and standard deviation , so concentrates at with fluctuation, and by the sub-exponential tail bounds of 45.05.01, . High-dimensional Gaussian mass lives on a sphere of radius , the Gaussian annulus.

Distance concentration is the consequence that breaks nearest-neighbour methods. For i.i.d. data with independent coordinates of bounded variance, the pairwise squared distance is a sum of independent bounded-variance terms, so by the law of large numbers it concentrates at with fluctuations of order controlled by the bounded-differences inequality of 40.07.05. The ratio of the largest to the smallest pairwise distance among points therefore tends to : in probability as with fixed. The notion "nearest neighbour" loses contrast, and the relevance of the nearest point over a random point vanishes. This is the precise statement behind the worked example's empty neighbourhoods, and it explains why -NN regression bias grows with dimension: the nearest points are at almost the same distance as arbitrary points, so averaging over them is averaging over a region as large as the whole support.

Near-orthogonality has a quantitative concentration form. For independent uniform on , the inner product has mean and variance (Exercise 3), and it is sub-Gaussian with parameter , so . The number of pairwise near-orthogonal vectors one can pack grows exponentially in : there exist unit vectors with pairwise inner products below any fixed , the Johnson-Lindenstrauss regime. This is the blessing of dimensionality: random projection into a space of dimension preserves all pairwise distances among points to relative error with high probability, because the projected coordinates concentrate. The same concentration that empties neighbourhoods also makes high-dimensional geometry regular and predictable, so that low-dimensional structure, when present, can be recovered.

Selection-induced optimism is the statistical curse paired to the geometric one. When a model is chosen by minimizing a fit criterion over many candidates, the in-sample error of the winner understates its true error by more than the fixed-model optimism of 45.06.02, because the selection step actively seeks the most favourable noise realization. With pure-noise candidate statistics, the selected maximum has expectation of order rather than (Exercise 6), so naive post-selection confidence intervals and p-values are invalid: they are computed as though the model were specified in advance, ignoring the data-dependence of . Valid post-selection inference (Berk, Brown, Buja, Zhang and Zhao, 2013) restores coverage by widening intervals to be simultaneously valid over all submodels the procedure could have chosen, at a multiplicative cost in width that itself grows like . The discreteness of selection that drives its instability is the same discreteness that makes its inference intractable; both are cured, or at least softened, by passing to the continuous convex surrogate of 45.06.06.

Synthesis. The foundational reason a single circle of ideas governs subset selection, the curse of dimensionality, and post-selection inference is that all three are consequences of measure concentration in high dimensions, and the bias-variance decomposition of 45.06.02 reads each one as a motion along the same trade-off. The volume law is the central insight: it forces mass onto a thin shell, which is exactly the distance-concentration statement that nearest and farthest neighbours become indistinguishable, and this is dual to the near-orthogonality of random directions that simultaneously empties neighbourhoods and, through Johnson-Lindenstrauss, makes random projection faithful. Putting these together, the curse and the blessing are one phenomenon viewed from two sides — concentration destroys locality and creates regularity at once — so the right response is not brute-force local fitting but exploiting structure such as sparsity. The discreteness of selection generalises the same lesson on the statistical side: best-subset selection is the combinatorial extreme whose discontinuity in the data produces both high variance and invalid naive inference, and the bridge to a workable method is the convex relaxation of 45.06.06, which keeps exact zeros while restoring continuity. This is exactly the passage from a staircase to a ramp, promoted from the one-coordinate picture of shrinkage in 45.06.03 to the full geometry of the sample space.

Full proof set Master

The median-distance identity is proved in full in the Key theorem section, and the near-orthogonality moments and the selection-optimism growth bound in Exercises 3 and 6. The remaining Master claims are recorded here.

Proposition 1 (Thin-shell concentration for the uniform ball). For uniform on and any , , so the fraction of volume outside the shell of relative thickness decays exponentially in , and a fraction of the volume lies within relative distance of the surface.

Proof. The radius law on follows from volume scaling: because dilation by multiplies the Jacobian determinant by . Setting gives the stated probability . To locate the shell, solve for the inner radius, i.e. the volume inside equals : , so . Expanding and inverting gives . Hence the inner ball of radius holds only a fraction of the volume, and the complementary fraction sits in a shell of relative thickness .

Proposition 2 (Gaussian norm concentration on the annulus). For , , , and for all , for an absolute constant ; consequently .

Proof. The coordinates are i.i.d. , so is a sum of i.i.d. variables, whence and , using . Each is sub-exponential (a centered ), so the sum obeys the Bernstein-type tail of 45.05.01: , which is the stated bound. Writing and expanding the square root, the relative fluctuation is , so the norm concentrates on the sphere of radius .

Proposition 3 (Distance contrast vanishes). Let be i.i.d. in with i.i.d. coordinates of mean , variance , and finite fourth moment, with fixed. Then in probability as .

Proof. For each , is a sum of i.i.d. terms with common mean and finite variance, so by the law of large numbers in probability, and by the bounded-fourth-moment central-limit scaling the fluctuation of about is , controlled uniformly over the fixed finite set of indices by 40.07.05. Thus for every simultaneously. The maximum and minimum over the distances therefore both equal , so their difference is while the minimum is of order ; the ratio is .

Proposition 4 (Selection map is discontinuous; ridge is continuous). The best-subset selection map is piecewise constant and discontinuous on a set of positive -dimensional measure, whereas the ridge map is continuous (indeed linear) for every .

Proof. For fixed and model size , where is the projection onto the column span of . Each is a continuous quadratic in , and selects the index of the smallest among finitely many such quadratics; the selected index is constant on each open region where one quadratic is strictly smallest and jumps across the boundaries , which are quadric hypersurfaces of positive surface measure. Hence is piecewise constant with genuine jumps, so it is discontinuous. By contrast is a fixed linear map applied to (the matrix is invertible for 45.06.03), and every linear map is continuous; small changes in give proportionally small changes in . The discontinuity of selection versus the continuity of shrinkage is therefore structural, not a matter of tuning.

Connections Master

The bias-variance decomposition 45.06.02 is the lens through which both halves of this unit are read: the curse of dimensionality inflates the variance of local methods because their effective neighbourhoods are forced to span the whole support, raising bias as well, while the discreteness of subset selection is a variance phenomenon — a discontinuous estimator has high sampling variance — so the staircase-versus-ramp contrast is a bias-variance contrast in disguise.

Ridge regression and shrinkage 45.06.03 is the continuous counterpoint to selection developed here: ridge's coefficient path is a smooth, always-defined function of the data, which is exactly the stability that the piecewise-constant selection map lacks, and the present unit's Proposition 4 makes the discontinuity-versus-continuity distinction precise so that the case for shrinkage over explicit selection is a theorem rather than a preference.

The lasso and sparse selection 45.06.06 is the resolution this unit motivates: it is the convex relaxation that keeps the exact zeros of subset selection while restoring continuity in the data, so it inherits the interpretability of selection and the stability of shrinkage, and the curse-of-dimensionality geometry here is precisely what its sparsity assumptions are designed to defeat by acting on the small effective dimension rather than the full .

Bernstein and sub-exponential concentration 45.05.01 supplies the tail bounds behind the Gaussian-annulus and thin-shell statements: the squared norm of a high-dimensional Gaussian is a sum of centered variables whose sub-exponential tails give the concentration on the sphere of radius used in Proposition 2 and in the distance-concentration argument.

Azuma and bounded-differences concentration 40.07.05 controls the fluctuation of pairwise distances as sums of independent coordinate contributions, the engine of the distance-contrast collapse in Proposition 3; the same martingale/bounded-differences machinery is what makes the concentration uniform over the finitely many neighbours.

PAC learning and empirical risk minimization 45.07.01 is where selection-induced optimism reappears as the generalization gap: choosing a hypothesis by minimizing empirical risk over a class is the learning-theoretic analogue of choosing a subset by minimizing residual sum of squares, and the maximal-inequality bound of Exercise 6 is the finite-class union-bound penalty that quantifies how much the selected model's empirical fit overstates its true performance.

Historical & philosophical context Master

The phrase curse of dimensionality is due to Richard Bellman, who coined it in his 1957 monograph on dynamic programming to describe the exponential growth in the number of grid points needed to discretize a high-dimensional state space; the same exponential scaling reappears in density estimation, where the number of samples required to estimate a smooth density to fixed accuracy grows exponentially in the dimension. Subset selection as a regression methodology was systematized in the 1960s and 1970s alongside the computing power to attempt it, with the Furnival-Wilson leaps-and-bounds algorithm (1974) making best-subset search feasible for moderate by branch-and-bound pruning; forward and backward stepwise procedures, older and cheaper, were already standard practice and were collected with their pitfalls into the modern account of Hastie, Tibshirani and Friedman [Hastie 2009].

The recognition that selection corrupts subsequent inference matured slowly. The danger of computing confidence intervals and tests on a model chosen by the same data was known informally for decades, but a framework giving valid post-selection inference — confidence intervals simultaneously correct over every model the procedure might have selected — was provided by Richard Berk, Lawrence Brown, Andreas Buja, Kai Zhang and Linda Zhao [Berk 2013], whose PoSI constants make the optimism of the selected maximum into an explicit width correction. David Donoho's millennium lecture [Donoho 2000] reframed the whole subject by naming the blessing alongside the curse: the very measure-concentration that empties neighbourhoods also enforces an asymptotic geometric regularity — random projections preserve distances, independent directions are nearly orthogonal — that makes high-dimensional inference tractable precisely when low-dimensional structure such as sparsity is present, the principle on which the lasso and compressed sensing rest.

Bibliography Master

@book{bellman1957dynamic,
  author    = {Bellman, Richard E.},
  title     = {Dynamic Programming},
  publisher = {Princeton University Press},
  year      = {1957}
}

@article{furnival1974regressions,
  author  = {Furnival, George M. and Wilson, Robert W.},
  title   = {Regressions by Leaps and Bounds},
  journal = {Technometrics},
  volume  = {16},
  number  = {4},
  pages   = {499--511},
  year    = {1974}
}

@book{hastie2009elements,
  author    = {Hastie, Trevor and Tibshirani, Robert and Friedman, Jerome},
  title     = {The Elements of Statistical Learning: Data Mining, Inference, and Prediction},
  edition   = {2},
  publisher = {Springer},
  year      = {2009},
  note      = {Chapter 3 §3.3 subset selection; Chapter 2 §2.5 curse of dimensionality; Chapter 18 high-dimensional problems}
}

@article{berk2013posi,
  author  = {Berk, Richard and Brown, Lawrence and Buja, Andreas and Zhang, Kai and Zhao, Linda},
  title   = {Valid Post-Selection Inference},
  journal = {The Annals of Statistics},
  volume  = {41},
  number  = {2},
  pages   = {802--837},
  year    = {2013}
}

@incollection{donoho2000highdim,
  author    = {Donoho, David L.},
  title     = {High-Dimensional Data Analysis: The Curses and Blessings of Dimensionality},
  booktitle = {AMS Math Challenges of the 21st Century},
  publisher = {American Mathematical Society},
  year      = {2000}
}

@article{johnson1984extensions,
  author  = {Johnson, William B. and Lindenstrauss, Joram},
  title   = {Extensions of Lipschitz Mappings into a Hilbert Space},
  journal = {Contemporary Mathematics},
  volume  = {26},
  pages   = {189--206},
  year    = {1984}
}