The Bootstrap That Fools Itself: 1-Nearest Neighbor on Pure Noise
You have training points , . The are distinct, and the labels are pure noise. Each label is an independent fair coin flip, independent of . The classifier is 1-nearest neighbor (1-NN). Its true test error is exactly .
To estimate the error you draw bootstrap samples. Each one consists of draws with replacement from the training set. Let be the 1-NN classifier fit on bootstrap sample .
(a) Show that the probability that a fixed observation appears in a given bootstrap sample tends to as .
(b) The naive bootstrap error estimate tests every bootstrap model on the original training set:
Compute its expected value as . Is it close to the true error ?
(c) A natural fix is the leave-one-out bootstrap . It scores observation only with bootstrap models whose sample does not contain . Efron's .632 estimator combines this with the training error :
What value does the .632 estimator give in this example? What does this tell you?
Answer: The Bootstrap That Fools Itself: 1-NN on Pure Noise
Key Idea / Intuition
A bootstrap sample is a noisy copy of the training set. About 63% of the original points reappear in it, and 37% are left out.
1-NN memorizes perfectly. When a point is in the bootstrap sample, the model finds the point itself at distance and predicts its label correctly, for free. Only the left-out points actually test the model, and on those it is a coin flip.
So the naive bootstrap reports an error of about , which is badly optimistic. The .632 correction blends in the training error, which is also for 1-NN. That blend is itself fooled, giving .
The moral: these estimators are fooled exactly when the model overfits as hard as possible. This failure is what motivates Efron's .632+ correction.
Formal Proof / Solution
(a) The 0.632 probability
A single draw misses observation with probability . The draws are independent, so
Hence
Equivalently, a bootstrap sample contains only about distinct points.
(b) The naive bootstrap is badly optimistic
Fix a pair and split into two cases.
Case 1: sample . The point is in the bootstrap training set at distance from itself. The 's are distinct, so it is the unique nearest neighbor, and therefore . The loss is .
Case 2: sample . The prediction is the label of some other training point . Labels are independent fair coins, so is independent of . Therefore
Combining the two cases:
This is far below the true error of . The cause is that the bootstrap "training" and "test" sets overlap by about 63%, exactly as in ordinary training error.
(c) The .632 estimator is still fooled
Leave-one-out bootstrap. For each we use only the models with . That is always Case 2 above, so each term has expected loss :
This estimator is honest here. In general it is slightly pessimistic, because each model effectively trains on only about distinct points.
Training error. 1-NN fit on the full data predicts each training point from itself, so
The .632 blend. The weights and are meant to pull the pessimistic toward the optimistic . Here they give
Interpretation. The .632 rule implicitly assumes a moderate amount of overfitting. When the model memorizes completely ( regardless of signal), the blend drags the estimate down by a factor of .
Remark: the .632+ repair. Efron and Tibshirani measure overfitting explicitly. Let be the no-information error rate, the error when and are independent. Here . Define the relative overfitting rate
The adaptive weight is then
So the .632+ estimator puts all its weight on . It returns , which is correct.
Source: Hastie, Tibshirani, Friedman โ The Elements of Statistical Learning (2nd ed.), Section 7.11 (Bootstrap Methods)