For a learning algorithm and a training set of i.i.d. examples, let the leave-one-out error be . Prove that its expectation equals the expected true risk of trained on examples. Why is it not an unbiased estimate of the risk for examples, and why can its variance still be large?
Learning theory, Generalisation
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can prove unbiasedness by conditioning on the held-out example, and know what the estimator is and is not unbiased for.
Key idea
Each term uses a model trained without , so is a fresh test point for that model. Each term therefore has expectation equal to the risk of a size- model, and the average has the same expectation.
Steps
- Fix . The model depends only on the examples other than . Because examples are i.i.d., is independent of .
- Condition on : , where is the true risk.
- Take the expectation over : . This does not depend on .
- Average over : .
- So it is unbiased for the expected risk of training on points. For points the true expected risk is usually a little lower, so the estimate is slightly pessimistic. The gap is small for large .
- The terms are not independent because the training sets overlap in points. The terms are positively correlated for unstable algorithms, so the variance of does not shrink like . Stability of is what controls it.
Common mistakes
- Claiming that the terms are independent and so the variance is .
- Saying LOO is unbiased for the risk of the model trained on all points. It is unbiased for the size expected risk.
- Forgetting that the training and held-out points must be independent. Without i.i.d. data the proof fails.
- Treating LOO as free of selection bias when it is used to choose among many models. The selected value is optimistic.
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Learning theory: How do you show that the empirical Rademacher complexity of on a sample with is at most ?
Next in Learning theory: Three nested hypothesis classes have VC dimensions and the best training errors on examples are . Using the penalised bound with , which class does structural risk minimisation pick? Why is picking the lowest training error wrong?