All labs

Holdout, k-Fold, LOO, Bootstrap: Estimating an Estimator

The same data and the same model give very different accuracy numbers — see each scheme's sampling distribution against the truth.

Ch 9 9.2
Comparator
Validation & Feature Selection
20 mindifficulty 4/5

Controls

Resampling scheme
40

Small n is where the schemes disagree most.

3

The truth is quadratic; degree 1 underfits, 9 overfits.

1.500

Irreducible MSE = σ² = 2.25

120
Random seed

Every result on this page is a deterministic function of the seed and the controls.

One study

A degree-d polynomial fitted to n points from a quadratic truth.

-6-4-20246-3-2-10123xy
truthdegree 3 fit

Sampling distribution: 70/30 holdout

The estimate you would report, across 120 independent studies.

00.100.200.300.400.501234567[0.66, 0.93) n=3[0.93, 1.21) n=8[1.21, 1.48) n=9[1.48, 1.75) n=10[1.75, 2.03) n=10[2.03, 2.30) n=14[2.30, 2.57) n=15[2.57, 2.85) n=7[2.85, 3.12) n=5[3.12, 3.39) n=6[3.39, 3.67) n=11[3.67, 3.94) n=4[3.94, 4.21) n=5[4.21, 4.49) n=1[4.49, 4.76) n=1[4.76, 5.03) n=2[5.03, 5.31) n=4[5.31, 5.58) n=0[5.58, 5.85) n=1[5.85, 6.12) n=1[6.12, 6.40) n=2[6.40, 6.67) n=1truthmeanestimated prediction MSEdensity

All schemes compared

Mean estimate ± 1 SD across studies.

012341.5022.5033.504truthestimated MSE
  1. 2.70 ± 1.2770/30 holdout
  2. 2.65 ± 0.725-fold CV
  3. 2.58 ± 0.7010-fold CV
  4. 2.55 ± 0.63Leave-one-out
  5. 2.60 ± 0.69Bootstrap .632
True prediction MSE
2.522
4000 fresh points
Estimate mean
2.699
bias 0.177
Estimate SD
1.282
study-to-study variability
Apparent (training) MSE
2.414
always optimistic
Irreducible σ²
2.250
no model can go below
Root mean squared error of the estimator
1.294
bias and variance combined
Judge an estimator, not a number

Every scheme returns a number close enough to look authoritative. The question is its sampling distribution: holdout is nearly unbiased but wide, leave-one-out is narrow but correlated across folds, and the .632 bootstrap trades a little bias for the smallest spread. Choose on total error, not on bias alone.