Statistical learning theory
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical inference.
In statistical learning, statistical learning theory is the study of how well a rule fitted on one sample predicts a new case, including the role of the richness of the class of rules. Statistical learning theory studies how well a rule fitted on one sample will predict a new case, and it ties that future error to the richness of the class of rules the fit was allowed to search. Training error, the mistakes on the sample already seen, is the wrong number to quote once the class is rich enough to fit noise. A nearest-neighbour classifier with one neighbour has training error zero, because each training point is labelled by itself, and its error on a new case can be large. As the class of rules becomes more flexible, training error falls and test error need not. The theory is the account of that gap.[1][2]
Statistical learning theory
| Fact | Value |
|---|---|
| Topic | Statistical inference |
| Listed on | Statistical inference |
Definition
A prediction rule is chosen from a class of functions by looking at a training sample. The quantity that matters for a new draw from the same joint distribution is the expected prediction error, the expected loss of the prediction. For a quantitative response and squared error, the expected prediction error of a function is . Conditioning on shows that the function that minimises it is the conditional mean . For classification with zero–one loss, the expected prediction error is the expected rate of misclassification, and the rule that attains the minimum in the population is the Bayes classifier, which assigns a new to the class with the largest conditional probability. The rule that attains the minimum in the population is not the same object as the rule fitted on a finite sample. Nearest neighbours try to copy the conditional mean by averaging the responses in a neighbourhood. Least squares tries to copy it by assuming the regression function is approximately linear and estimating the coefficient. Both replace an expectation by an average. They differ in the assumption: a global line, or a local constant.[1]
The gap between training error and this future error is the optimism of the fit. In classification the training error rate is the fraction of training points the fitted rule labels incorrectly,
The test error rate is the same fraction on cases that were not used to fit the rule. With a one-neighbour classifier the training error is zero and the test error need not be. As flexibility increases, training error declines and test error can rise. That pattern is the observable form of overfitting. Cross-validation estimates the future error by scoring observations that were held out of the fit. Capacity measures try to bound the same gap from the geometry of the class, without a second sample.[2][1]
The Vapnik–Chervonenkis dimension is one such measure. For a class of indicator functions, it is the largest number of points that the class can shatter: the points can be labelled in every possible way and some member of the class still separates them perfectly. Lines in the plane shatter three points and not four, so their VC dimension is 3. A linear indicator in dimensions has VC dimension , which matches the number of free parameters. The one-parameter family of indicators has infinite VC dimension, because a high enough frequency can separate an arbitrarily large set. Counting parameters is therefore not a substitute for the definition. For a real-valued class, the dimension is the VC dimension of the indicators obtained by thresholding the functions.[1]
Statistical use
If a class of VC dimension is fitted to training points, bounds of VC type say that the future error sits below the training error plus a penalty that grows with and falls with , and that the inequality holds simultaneously for every function in the class, on a set of training samples of probability at least . One regression form of the bound is
where is of order , and the positive-part subscript sets a nonpositive denominator aside. A classification form adds a term of order to the training error. The constants in front of the logarithm are not unique. Cherkassky and Mulier, whose numerical recommendations are the source of the displayed bounds, suggest and, for regression, constants inside . The bounds are often loose as numerical guarantees. They are still used to compare classes, because only the relative size of the bound is needed to pick a class. Structural risk minimisation fits a nested sequence of classes with increasing VC dimension and chooses the class with the smallest upper bound. Support vector classifiers are a setting in which that programme can actually be carried through, because the dimension of the class can be controlled.[1]
In ordinary practice the same comparison is made with a resampling estimate instead of a VC bound. Cross-validation estimates test error by refitting on complements of held-out blocks. The bootstrap is used both for the variability of a fitted rule and, in variants built for the purpose, for prediction error. Overfitting is the observable symptom the theory is about: training error falls while future error rises. Loss and risk supply the scale on which that future error is an expectation, and zero–one loss is the classification case of the same scale. A bound on misclassification rate is not a bound on squared error. The loss has to be named before the bound is interpreted.[2][1]
The linear case shows what a small dimension does and does not buy. Linear indicators in the plane have VC dimension 3. A mean restricted to a straight line still cannot represent a bend. Low capacity protects against fitting noise and does not protect against choosing the wrong shape. If the true regression function is linear, least squares has no bias of that functional kind, and a more flexible rule has to overcome its extra variance. If the true function bends and the sample is large, the flexible rule can win. The theory does not choose between those situations. It says how the price of flexibility is paid, in optimism, once the situation is given.[1][2]
Common misconceptions
Training error is not an estimate of future error. The one-neighbour classifier is the extreme case, with no mistakes on the points it was shown and no promise about a new point. Quoting the training error of a rich class, a deep tree, or a high-degree polynomial, as if it were the error a new case will see, repeats that extreme case in a milder form. The optimism grows with the richness of the class and shrinks as the training sample grows. A small training error in a small sample, from a class that can shatter many labelings, is the situation the VC penalty was built to mark.[2][1]
A count of parameters is not the VC dimension. The sine indicator has one parameter and infinite dimension. A linear indicator has dimension equal to its parameter count. Using the parameter count as a complexity measure is reasonable for the linear indicator and misleading for the sine. Effective degrees of freedom, of the kind used for some nonlinear smoothers, are a different repair of the same difficulty, and they are not fully general either. The VC definition is the one that covers both examples.[1]
A VC upper bound is not a tight certificate for a particular sample. The bounds hold uniformly over the class, which is why they can survive a search over many functions, and the price of that uniformity is slack. A bound that says the future error is below 0.9 when a resampling estimate says it is near 0.2 has not been contradicted. It has been shown to be loose. Structural risk minimisation uses the bound as a way to rank classes, where the relative size matters, and the handbook exposition of the bounds presents them in that spirit. Calculating the dimension is itself often impossible exactly, and a crude upper bound on the dimension can be too crude to separate the classes one cares about.[1]
A class with a small dimension is not automatically the right class. Dimension 3 for lines in the plane is a fact about lines. A regression function that bends is not a line. Fitting the line minimises a bound inside the wrong class. The bias of that approximation remains, and no penalty for optimism removes it. The matching warning in the decision-theoretic account is the same: least squares pools across by assuming a global linear shape, and nearest neighbours refuse that shape and pay in variance, especially when the dimension of is large and neighbourhoods become empty.[1]
Connections
Cross-validation is the practical estimator of the error that the VC bound only upper-limits. The bootstrap is the resampling cousin used for variability and, in forms built for the purpose, for prediction error. Overfitting is the symptom of quoting training error after a rich search. Loss and risk and zero–one loss are the scales on which expected prediction error is defined. Parametric statistics is the special case in which the class is indexed by a short parameter and the optimism is often summarised by a parameter count. VC dimension agrees with that count for a linear indicator and disagrees for . Regularisation and ridge regression restrict the class, or penalise its members, so that the fitted rule cannot use the whole flexibility of an unrestricted fit. Resampling is the family of devices that estimate the future error from the sample in hand. The difficulty shared by the bound and the resampling estimate is that a future error for one particular training sample is hard to know from that sample alone. The bound gives a probability statement over training samples. The resampling estimate gives a number for the sample that was observed. They answer different versions of the same question.[1][2]
History
The expected-prediction-error account of regression and classification is the decision-theoretic setting in which modern prediction methods are compared. Squared error leads to the conditional mean. Zero–one loss leads to the Bayes classifier. Nearest neighbours and least squares are two classical attempts to estimate those targets from a finite sample, and the difference between them is already a difference in capacity. VC theory was developed to give a complexity measure that applies to classes, such as a sine wave of free frequency, where the number of free parameters is a misleading count, and to turn that measure into bounds on the optimism of training error. The dimension and the structural risk minimisation programme are set out by Vapnik. The bibliographic notes point to Vapnik (1996) for the dimension. The numerical form of the bounds quoted above is taken from later recommendations, Cherkassky and Mulier (2007), and those bounds are offered as model-selection devices rather than as tight numerical certificates. The same notes record that estimating the test error of one particular training set, from that set alone, is not easy in general, and that cross-validation may estimate the expected error instead. Holding out cases, refitting, and scoring the held-out cases is the version a first course now teaches.[1][2]
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h i j k l m a. (pp. 18–20, §2.4; pp. 237–239, §7.9) b. (pp. 18–20, §2.4) c. (p. 237, §7.9) d. (pp. 237–238, §7.9) e. (p. 239, §7.9) f. (pp. 18–20, §2.4; p. 239, §7.9) g. (pp. 19–20, §2.4; pp. 237–239, §7.9) h. (p. 237, §7.9) i. (pp. 237–238, §7.9) j. (p. 239, §7.9) k. (pp. 19–20, §2.4; p. 239, §7.9) l. (pp. 237–239, §7.9) m. (pp. 18–20, §2.4; pp. 237–239, §7.9; p. 257, Bibliographic Notes) Hastie, T., Tibshirani, R. & Friedman, J. (2009). The Elements of Statistical Learning. Springer. https://doi.org/10.1007/978-0-387-84858-7
- ^ a b c d e f g a. (pp. 37–38, §2.2.3) b. (pp. 37–38, §2.2.3) c. (pp. 37–38, §2.2.3; p. 176, §5.1) d. (pp. 36–38, §2.2.2, §2.2.3) e. (pp. 37–38, §2.2.3) f. (pp. 36–38, §2.2.2, §2.2.3) g. (p. 176, §5.1) James, G., Witten, D., Hastie, T. & Tibshirani, R. (2013). An Introduction to Statistical Learning: with Applications in R (1st ed.). Springer, New York. https://doi.org/10.1007/978-1-4614-7138-7
Cite this page
StatWiki (2026). "Statistical learning theory." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/statistical-learning-theory.html
@misc{statwiki_statistical_learning_theory,
author = {{StatWiki}},
title = {{Statistical learning theory}},
year = {2026},
url = {https://www.statwiki.io/articles/statistical-learning-theory.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}