KatInterview

Decompose Test MSE into Bias², Variance, and Noise

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsstatisticsbias-variance tradeoffMSE

Last updated

Derive and numerically compute the bias-variance decomposition of MSE for a concrete estimator, then reason about model selection trade-offs.

Setting

You are evaluating two regression estimators — call them Model A and Model B — on a held-out test set drawn from the same distribution used for training.

A colleague hands you the following numbers, estimated via repeated bootstrap resampling over 500 independent training runs:

MetricModel AModel B
Average prediction at a fixed point x₀3.202.95
True value f(x₀)3.003.00
Variance of predictions at x₀0.050.40
Irreducible noise variance σ²0.100.10

What You Are Expected to Do

  1. Derive the bias-variance-noise decomposition of the expected mean squared error (MSE) from first principles. Show every step.

  2. Compute the expected MSE at point x₀ for both models using the numbers above.

  3. Interpret the results: which model would you deploy, and why might the better model on this single point still be the wrong choice in general?

  4. Discuss two concrete techniques — one that reduces variance and one that reduces bias — and explain the trade-off each introduces.

  5. Identify at least two common mistakes practitioners make when reasoning about or acting on bias-variance diagnostics.

No code is required. Show your reasoning step by step, state any assumptions, and give a final recommendation.

</summary>

Hints

Hint 1

Start the derivation by adding and subtracting E[f̂(x₀)] inside the squared-error expression, then expand the square — be careful about which cross-term vanishes and why.

Hint 2

Bias is a property of the estimator's average behavior, not a single prediction. Make sure you square the signed bias before summing.

Hint 3

A model with lower MSE at one point can still have higher integrated MSE across the full input space — think about what the bootstrap estimate does and does not capture.