Skip to content
nonconvexcard

The bias–variance decomposition is an identity

ProofBeginner⏱ 15 minLearning Theorybias-varianceidentitysquared loss

Problem

Prove that for y=f⋆(x)+εy = f^\star(x)+\varepsilon with E[ε∣x]=0\E[\varepsilon\mid x]=0, Var⁡(ε∣x)=σ2\Var(\varepsilon\mid x)=\sigma^2, and an estimator f^S\hat f_S trained on a random sample,

E[(y−f^S(x))2]=σ2+(ESf^S(x)−f⋆(x))2+Var⁡S(f^S(x)).\E\big[(y-\hat f_S(x))^2\big] = \sigma^2 + \big(\E_S\hat f_S(x)-f^\star(x)\big)^2 + \Var_S\big(\hat f_S(x)\big).

State explicitly which hypotheses are used and which are not.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Gradient descent finds the minimum-norm interpolatorLearning TheoryProofIntermediate30 min
Optimal linear shrinkageHigh-Dim StatisticsProofAdvanced1 hour
Reproduce double descent runLearning TheoryCodingAdvanced3 hours
The interpolation peak is a conditioning phenomenonLearning TheoryProofAdvanced30 min
There is always a ridge parameter beating least squares abyssClassical MLProofAdvanced1 hour