For a learning algorithm A and a training set of m i.i.d. examples, let the leave-one-out error be L^loo=1m∑i=1mℓ(A(S∖i),zi). Prove that its expectation equals the expected true risk of A trained on m−1 examples. Why is it not an unbiased estimate of the risk for m 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 zi, so zi is a fresh test point for that model. Each term therefore has expectation equal to the risk of a size-(m−1) model, and the average has the same expectation.

Steps

  1. Fix i. The model hi=A(S∖i) depends only on the m−1 examples other than zi. Because examples are i.i.d., zi is independent of hi.
  2. Condition on S∖i: E[ℓ(hi,zi)∣S∖i]=L(hi), where L(h)=Ez[ℓ(h,z)] is the true risk.
  3. Take the expectation over S∖i: E[ℓ(hi,zi)]=ES′∼Dm−1[L(A(S′))]. This does not depend on i.
  4. Average over i: E[L^loo]=ES′∼Dm−1[L(A(S′))].
  5. So it is unbiased for the expected risk of training on m−1 points. For m points the true expected risk is usually a little lower, so the estimate is slightly pessimistic. The gap is small for large m.
  6. The m terms are not independent because the training sets overlap in m−2 points. The terms are positively correlated for unstable algorithms, so the variance of L^loo does not shrink like 1/m. Stability of A is what controls it.

Common mistakes

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 F={x↦w⋅x:∥w∥2≤B} on a sample x1,…,xm with ∥xi∥2≤R is at most BRm?
Next in Learning theory: Three nested hypothesis classes have VC dimensions d=3, 10, 40 and the best training errors on m=1000 examples are 0.12, 0.06, 0.04. Using the penalised bound L^+dln⁡(m/d)+ln⁡(1/δ)m with δ=0.05, which class does structural risk minimisation pick? Why is picking the lowest training error wrong?