Suppose the fold errors in cross-validation each have variance and every pair has correlation . Derive the variance of their average. Evaluate it for and with , and explain why this is used to argue that leave-one-out has high variance?
Foundations, Model selection
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can derive the variance of an average of correlated quantities and use it to reason about how the cross-validation estimate behaves.
Key idea
For quantities with common variance and common pairwise correlation , . As grows the second term vanishes but stays. Averaging many highly correlated errors barely helps.
Steps
- This is the harder companion of `k-fold-cv-choosing-k`, which gives the idea in words. Write . Then .
- Split the double sum. There are diagonal terms, each equal to , and off-diagonal terms, each equal to .
- Add up:
- Evaluate with , : gives ; gives ; gives . With independent errors () it would be .
- Interpret. In leave-one-out, any two training sets share of their points, so the fitted models are almost the same and is large. The average of errors then behaves as if it had a few effective observations. With or the training sets differ more, so is smaller.
- Be honest about the limits. This is a simple model with equal . The true correlation depends on the algorithm and the data, so it supports a rule of thumb, not a theorem. Careful studies find that no unbiased estimator of the variance of -fold CV exists, and results differ across stable and unstable learners.
Common mistakes
- Saying the variance is . That holds only for independent errors; fold errors share training data and are positively correlated.
- Concluding that leave-one-out always has the highest variance. It is a common rule of thumb that depends on the learner, not a guarantee.
- Mixing up the variance of the CV estimate with the bias from training on fewer points. They are two separate effects.
How long your answer should be
Half a page; about 3 minutes, with the three-line algebra and the table of values.
Read this
Previous in Foundations: When data are missing at random (MAR), suppose an outcome is observed only when , where the observation probability depends only on fully observed covariates . Why is the unweighted complete-case sample mean biased for , and how do you prove that the inverse-probability-weighted (IPW) estimator is unbiased?
Next in Foundations: Derive the number of monomial features of degree at most in input variables, using a stars-and-bars counting argument. Check it for by listing the terms, then evaluate it for and explain why a polynomial kernel avoids building these features?