Definition
Bias-Variance Tradeoff
In supervised regression with target , and , the expected squared error of a learner — averaged over training samples and noise — decomposes as
from three independent sources:
- Bias : how far the average prediction misses , the cost of a hypothesis class that cannot represent it.
- Variance : how much the prediction shifts between training sets drawn from the same distribution.
- Irreducible noise : the variance of , a floor no model can beat.
The tradeoff is that the two model-dependent terms move against each other: enriching the class lowers bias by letting be represented, but raises variance by making more sensitive to the particular sample.
…
\draw[cyan!30!white, thick] (0.2, 2.2) .. controls (1.75, 0.4) .. (3.3, 1.8);
\node[text=cyan!30!white, font=\tiny\bfseries, anchor=west] at (3.3, 1.8) {risk};\draw[dashed, cyan!30!white, thin] (1.75, 0.1) — (1.75, 0.85);
\node[text=cyan!30!white, font=\tiny\bfseries, anchor=south] at (1.75, 0.85) {best model};% Axes
\draw[→, cyan!30!white] (0,0) — (3.8, 0) node[below, font=\tiny\bfseries, text=cyan!30!white] {model complexity};
\draw[→, cyan!30!white] (0,0) — (0, 2.5);
\end{tikzpicture}
\end{document}
Bias
Definition
Link to originalApproximation Error
The approximation error is the gap between the risk of the best model a hypothesis class can express and the lowest risk attainable by any predictor. Writing
for the best-in-class model and for the Bayes risk, it is
It measures a limitation of itself, independent of any data: even with infinitely many samples, no model in can beat . A class too restrictive for the target leaves a large approximation error, the learning-theory counterpart of bias and the source of underfitting. It is reduced only by enlarging or changing , never by collecting more data.
Variance
Definition
Link to originalEstimation Error
The estimation error is the gap between the empirical-risk minimiser returned from a finite training set and the best model its hypothesis class could express. Writing
for the best-in-class, it is
It is the cost of choosing from one sample rather than knowing exactly: different training sets yield different , and the spread of those picks is the learning-theory counterpart of variance. Together with the approximation error, it partitions the excess risk over the Bayes optimum (see the decomposition).