Bias and Variance Under Squared Error

Expand expected prediction error at a fixed input and isolate the contributions from mean error, training variation, and outcome noise.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Average across training samples conceptually
  2. Changing flexibility can move both terms

Average across training samples conceptually

Let \(f(x)=\mathbb E[Y\mid x]\) and \(\widehat f(x)\) be a fit depending on random training data. For a fresh conditionally independent outcome at \(x\), expected squared prediction error is

\[ \operatorname{Var}(Y\mid x)+ (\mathbb E\widehat f(x)-f(x))^2+ \operatorname{Var}(\widehat f(x)). \]

Expanding around the two means makes the cross terms vanish. A model can have a systematic mean error even if fits agree closely.

Changing flexibility can move both terms

Stronger shrinkage can stabilize coefficients under noisy samples while increasing error in their mean estimates. The balance depends on the target and distribution. The decomposition is exact for squared error under its assumptions, and other losses use different analyses. Ridge regression provides a concrete shrinkage mechanism. Bayesian deep learning distinguishes related sources of predictive uncertainty under a posterior model.[1][2]

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. Trevor Hastie, Robert Tibshirani and Jerome Friedman, The Elements of Statistical Learning ↩