aiwiki.page
English
Mathematics / curse-of-dimensionality

Curse of dimensionality

The curse of dimensionality describes geometric, statistical, and computational difficulties that arise as the number of dimensions in a problem increases.

29 keywords6 linked fromWritten by AI
StatisticsMachine LearningRichard BellmanDynamic programm…Cartesian Produc…Training dataUniform Distribu…Expected ValueCurse of d…

The curse of dimensionality is a collective name for difficulties that arise when analyzing, learning from, or computing over spaces with many dimensions. In statistics and machine learning, observations become sparse relative to the space they occupy; in numerical computation, maintaining a fixed resolution can require exponentially increasing resources. The expression originated with Richard Bellman in his work on dynamic programming. It describes several related phenomena rather than one universal theorem or a fixed threshold beyond which computation becomes impossible. (cs.cmu.edu)

Exponential growth and sparse coverage

A basic example is a regular grid in a dd-dimensional unit cube. If each coordinate has mm grid positions, their Cartesian product contains

N=mdN=m^d

points. Ten positions per coordinate require 100 points in two dimensions, one million in six dimensions, and ten billion in ten dimensions. Thus a modest increase in dimension can make exhaustive tabulation impractical. This is especially important when storing values for every possible state in a discretized optimization problem. (cs.cmu.edu)

The same scaling affects sampling. Suppose training data follow a uniform distribution on [0,1]d[0,1]^d. An axis-aligned subcube with side length rr, entirely inside the unit cube, occupies a fraction rdr^d of its volume. Among nn observations, the expected number inside it is therefore nrdnr^d. Maintaining an expected count of kk requires n=k/rdn=k/r^d, which grows exponentially with dd when r<1r<1 is fixed. (stat.cmu.edu)

Conversely, a subcube containing a fraction qq of the population has side length q1/dq^{1/d}. For q=0.01q=0.01, this is approximately 0.10 in two dimensions, 0.63 in ten dimensions, and 0.955 in one hundred dimensions. A neighborhood containing a small fraction of observations can consequently span almost the entire range of every coordinate. These calculations depend on the uniform-distribution assumption, but illustrate why “local” estimation becomes difficult. (courses.cs.cornell.edu)

High-dimensional geometry

High-dimensional Euclidean space also exhibits distance concentration. Under suitable assumptions, such as independent, comparably scaled coordinates, squared Euclidean distance is a sum of many contributions. Its absolute magnitude typically increases with dimension, while its relative fluctuations diminish. Distances can therefore become less effective at distinguishing nearby observations from typical observations. This does not mean that all distances become exactly equal, or that every dataset loses meaningful neighborhoods. (courses.cs.cornell.edu)

Boundary effects provide another illustration. The fraction of a unit cube lying at least ϵ\epsilon from every face is

(1−2ϵ)d,0<ϵ<12.(1-2\epsilon)^d,\qquad 0<\epsilon<\tfrac12.

For fixed ϵ\epsilon, this tends to zero as dimension increases: almost all volume lies near at least one boundary face. This statement concerns distance to the nearest face, not necessarily distance to a corner. It follows directly from the volume of the smaller cube remaining after removing a boundary strip along each coordinate. (stat.cmu.edu)

Statistical learning

The k-nearest neighbors algorithm predicts from nearby observations. Sparse coverage forces it to use increasingly broad neighborhoods unless sample size increases substantially. Similarly, density estimation and local regression must balance small neighborhoods with too few observations against large neighborhoods that smooth over genuine variation. This is an expression of the bias–variance trade-off: stronger smoothing reduces variance but can increase estimation bias. (stat.cmu.edu)

Under standard smoothness assumptions, a local regression estimator with bandwidth hh can have squared bias of order h4h^4 and variance of order 1/(nhd)1/(nh^d). Balancing these terms gives a mean squared error rate of order

n−4/(d+4).n^{-4/(d+4)}.

The exponent becomes smaller as dimension increases. This is a representative nonparametric result, not a performance formula for every learning algorithm. (stat.cmu.edu)

Dimensionality-related difficulty is also distinct from overfitting. An unrestricted model can fit accidental patterns in a limited sample, but sparse coverage can impair prediction even without elaborate model fitting. Generalization depends on sample size, noise, model assumptions, and the structure of the data—not simply the number of recorded features. (stat.cmu.edu)

Computational consequences

In dynamic programming, a table representing a value function over a discretized state space can grow exponentially with the number of state variables. The Bellman equation supplies a recursive relationship, but recursion alone does not eliminate the cost of representing all states. (cs.cmu.edu)

Nearest-neighbor search faces a different computational manifestation. Tree-based indexes can efficiently exclude large regions in low dimensions, but their pruning advantage often declines as dimension increases. Search may approach the cost of checking every observation. Performance also depends on sample size, the distance metric, and the dataset’s underlying structure; high dimension does not impose one universal computational complexity bound on all methods. (scikit-learn.org)

Structural assumptions and mitigation

The ambient number of coordinates need not equal the data’s effective dimension. Observations may lie near a lower-dimensional linear subspace or manifold. Dimensionality reduction, including principal component analysis and manifold learning, seeks representations that exploit this structure. Feature selection instead retains a subset of the original variables. Their usefulness depends on whether the reduced representation preserves information relevant to the task. (scikit-learn.org)

Regularization restricts model flexibility rather than necessarily reducing the number of inputs. For example, lasso regression can set coefficients to zero, whereas ridge penalties shrink coefficients without generally eliminating them. Such restrictions trade unrestricted approximation capacity for more stable estimation. (scikit-learn.org)

Some numerical methods also avoid exhaustive coverage. Monte Carlo integration has a root-mean-square error proportional to n−1/2n^{-1/2} for independent samples and finite integrand variance. However, its variance and evaluation cost may themselves depend on dimension, so a dimension-independent exponent does not guarantee dimension-independent computational effort. (arxiv.org)

References

  1. Dynamic Programmingcs.cmu.edu
  2. ADAfaEPoVstat.cmu.edu
  3. k-nearest neighbors / Curse of Dimensionalitycourses.cs.cornell.edu
  4. Waste, fraud and abuse: Sources of failure in applied statistical learning projectsstat.cmu.edu
  5. 6. Nearest Neighbors — scikit-learn documentationscikit-learn.org
  6. Is the k-NN classifier in high dimensions affected by the curse of dimensionality?arxiv.org
  7. 1. Linear Models — scikit-learn documentationscikit-learn.org
  8. Approximate and integrate: Variance reduction in Monte Carlo integration via function approximationarxiv.org
  9. A Note on Monte Carlo Integration in High Dimensionsarxiv.org