The Bias-Variance Tradeoff Is an Exact Decomposition
Let be any estimator (fitted model) of a true function , trained on a random dataset. For a fixed test point , define the expected prediction error under squared loss:
where with (mean-zero noise, independent of everything), and the expectation is over both the randomness in the training data and the noise .
Show that EPE decomposes exactly as:
where:
- is irreducible noise,
- ,
- .
Then answer: why can't any single model simultaneously minimize all three terms? Give a concrete example illustrating the tradeoff.
Answer: Bias-Variance Decomposition
Key Idea / Intuition
The expected prediction error has three distinct sources: noise you can never escape (), systematic error from model assumptions being wrong (bias), and sensitivity to the particular training data you got (variance). The decomposition is just a careful application of "add and subtract the mean" โ the same trick that gives . The tradeoff is inevitable because making a model more flexible reduces bias but amplifies variance, and vice versa.
Formal Proof / Solution
Step 1: Separate noise from estimation error.
Write . Since is independent of (which depends only on training data, not on the new noise):
Let , so we need . Expanding:
Since is independent of (and hence of ), and :
Therefore:
Step 2: Decompose the mean squared error term.
Now add and subtract inside the square:
Let (a constant with respect to the expectation) and (zero-mean random variable since ):
Substituting back:
Step 3: Collect everything.
Why can't we minimize all three simultaneously?
- is irreducible โ no model can remove measurement noise.
- Bias decreases as model complexity increases (e.g., high-degree polynomial fits the training signal closely).
- Variance increases as model complexity increases (a high-degree polynomial is very sensitive to which exact training points were drawn).
Concrete example โ polynomial regression:
| Model | Bias | Variance | |-------|------|----------| | Constant fit () | High | Very low | | Degree- polynomial (interpolates all data) | ~0 | Huge | | Degree-2 fit for truly quadratic | 0 | Moderate |
As you increase the degree beyond the true complexity, bias keeps dropping toward zero but variance explodes. The optimal model lives at the sweet spot where . This is the fundamental reason regularization (ridge, LASSO) and cross-validation exist: they deliberately introduce a little bias to dramatically cut variance, reducing total EPE.
The punchline: The decomposition is exact and additive โ there is no "free lunch." Any change to the model that reduces bias must work against reducing variance, making the tradeoff a mathematical inevitability, not just a heuristic.
Source: The Elements of Statistical Learning, Hastie, Tibshirani, Friedman, 2nd ed., Section 2.9 / 7.3