Lesson 8 of 81974–today7 min
Evaluation and cross-validation
In 1974 the statistician Mervyn Stone read a paper to the Royal Statistical Society titled “Cross-Validatory Choice and Assessment of Statistical Predictions”. His point was that the same data cannot honestly be used both to fit a model and to judge it; but if you leave part out, fit on the rest and rotate, every observation can serve as a test case once.
Stone also separated two jobs that people still mix up: choosing a model (or its hyperparameters) and assessing the one you chose. Doing both with the same held-out data makes the reported score optimistic.
The rest of this lesson is part of Pro
Create a free account to read the first lesson of every path, and go Pro for the rest.
Sources
- Cross-Validatory Choice and Assessment of Statistical Predictions (M. Stone, Journal of the Royal Statistical Society, Series B 36(2), 1974) — Journal of the Royal Statistical Society
- Cross-validation: evaluating estimator performance — scikit-learn documentation
- Common pitfalls and recommended practices: data leakage — scikit-learn documentation