Cross-Validation: What Does It Estimate and How Well Does It Do It?
Open accessThe DOI matches its Crossref record; 55 of the 55 references it cites were found in a registry or an index.
Abstract
Cross-validation is a widely used technique to estimate prediction error, but its behavior is complex and not fully understood. Ideally, one would like to think that cross-validation estimates the prediction error for the model at hand, fit to the training data. We prove that this is not the case for the linear model fit by ordinary least squares; rather it estimates the average prediction error of models fit on other unseen training sets drawn from the same population. We further show that this phenomenon occurs for most popular estimates of prediction error, including data splitting, bootstrapping, and Mallow’s Cp. Next, the standard confidence intervals for prediction error derived from cross-validation may have coverage far below the desired level. Because each data point is used for both training and testing, there are correlations among the measured accuracies for each fold, and so the usual estimate of variance is too small. We introduce a nested cross-validation scheme to estimate this variance more accurately, and show empirically that this modification leads to intervals with approximately correct coverage in many examples where traditional cross-validation intervals fail. Lastly, our analysis also shows that when producing confidence intervals for prediction accuracy with simple data splitting, one should not refit the model on the combined data, since this invalidates the confidence intervals. Supplementary materials for this article are available online.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
A new look at the statistical model identification
Akaike, H. (1974) · IEEE Transactions on Automatic Control · doi:10.1109/tac.1974.1100705 · Cited by 51,879
Estimating the Dimension of a Model
Schwarz, G. (1978) · The Annals of Statistics · doi:10.1214/aos/1176344136 · Cited by 47,033
An Introduction to the Bootstrap
Efron, B., & Tibshirani, R. J. (1994) · doi:10.1201/9780429246593 · Cited by 40,500
Self-citationThe Elements of Statistical Learning
Hastie, T., Tibshirani, R., & Friedman, J. (2009) · Springer Series in Statistics · doi:10.1007/978-0-387-84858-7 · Cited by 25,970
Self-citationUCI Machine Learning Repository
Asuncion, A. (2007) · Medical Entomology and Zoology · Cited by 25,373
The Elements of Statistical Learning
Hastie, T., Friedman, J., & Tibshirani, R. (2001) · Springer Series in Statistics · doi:10.1007/978-0-387-21606-5 · Cited by 24,162
Self-citationAn Introduction to the Bootstrap
Efron, B., & Tibshirani, R. J. (1993) · doi:10.1007/978-1-4899-4541-9 · Cited by 21,230
Self-citationProceedings of the 24th international conference on Machine learning
(2007) · doi:10.1145/1273496 · Cited by 11,630
Cross validatory choice and assessment of statistical predictions
Stone, M. (1974) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/j.2517-6161.1974.tb00994.x · Cited by 10,881
Approximate Statistical Tests for Comparing Supervised Classification Learning Algorithms
Dietterich, T. G. (1998) · Neural Computation · doi:10.1162/089976698300017197 · Cited by 3,840 · cited 4×
“The second primary goal in this work is to provide such confidence intervals, which cannot be reliably created with naïve methods, as shown in our example inFigure 1.”
BackgroundMethodInfluentialA survey of cross-validation procedures for model selection
Arlot, S., & Célisse, A. (2010) · LillOA (Université de Lille (University Of Lille)) · Cited by 3,663
A leisurely look at the bootstrap, the jackknife, and cross-validation
Efron, B., & Gong, G. (1983) · The American Statistician · doi:10.1080/00031305.1983.10483087 · Cited by 3,229 · cited 1×
“The MSE in (14) contains both a bias term and variance term, but the bias is typically small for crossvalidation (Efron, 1983; Efron and Gong, 1983; Efron and Tibshirani, 1997).”
BackgroundThe Predictive Sample Reuse Method with Applications
Geisser, S. (1975) · Journal of the American Statistical Association · doi:10.1080/01621459.1975.10479865 · Cited by 2,748 · cited 1×
“Cross-validation is used ubiquitously to estimate the prediction error of a model (Allen 1974; Geisser 1975; Stone 1977).”
MethodEstimation of the Mean of a Multivariate Normal Distribution
Stein, C. M. (1981) · The Annals of Statistics · doi:10.1214/aos/1176345632 · Cited by 2,729
Bias in error estimation when using cross-validation for model selection
Varma, S., & Simon, R. (2006) · BMC Bioinformatics · doi:10.1186/1471-2105-7-91 · Cited by 2,485 · cited 1×
“To this end, Varma and Simon (2006) and Tibshirani and Tibshirani (2009) suggest a bias-correction for the model selected by cross-validation, Lei (2019) shows how to return a confidence set for the best model parameters, and Yang (2007); Wager (2020) show that for CV, comparing two models is a…”
MethodEstimating the error rate of a prediction rule: improvement on cross-validation
Efron, B. (1983) · Journal of the American Statistical Association · doi:10.1080/01621459.1983.10477973 · Cited by 2,300 · cited 2×
“To achieve nominal coverage, the green curves should approximate the red curves, but they are too narrow in this case. scape of resampling techniques to estimate prediction error, with bootstrap-based techniques as the most common alternative (Efron 1983, 1986; Efron and Tibshirani 1997, 1993).”
MethodMallows, C. L. (1995) · Technometrics · doi:10.1080/00401706.1995.10484370 · Cited by 2,083
Mallows, C. L. (1973) · Technometrics · doi:10.2307/1267380 · Cited by 1,975
Linear Model Selection by Cross-validation
Shao, J. (1993) · Journal of the American Statistical Association · doi:10.1080/01621459.1993.10476299 · Cited by 1,790 · cited 1×
“Lastly, we note that CV is often used to compare predictive models, such as when selecting a model or a good value of a learning algorithm’s hyperparameters (e.g., Stoica et al. 1986; Shao 1993; Zhang 1993; Dietterich 1998; Xu and Liang 2001).”
MethodImprovements on Cross-Validation: The 632+ Bootstrap Method
Efron, B., & Tibshirani, R. (1997) · Journal of the American Statistical Association · doi:10.1080/01621459.1997.10474007 · Cited by 1,636
Self-citationThe Relationship Between Variable Selection and Data Agumentation and a Method for Prediction
Allen, D. M. (1974) · Technometrics · doi:10.1080/00401706.1974.10489157 · Cited by 1,469 · cited 1×
“Cross-validation is used ubiquitously to estimate the prediction error of a model (Allen 1974; Geisser 1975; Stone 1977).”
MethodXu, Q.-S., & Liang, Y.-Z. (2001) · Chemometrics and Intelligent Laboratory Systems · doi:10.1016/s0169-7439(00)00122-2 · Cited by 1,043
Inference for the Generalization Error
Nadeau, C., & Bengio, Y. (2003) · Machine Learning · doi:10.1023/a:1024068626366 · Cited by 1,026
No Unbiased Estimator of the Variance of K-Fold Cross-Validation
Bengio, Y., & Grandvalet, Y. (2003) · neural information processing systems · Cited by 932
No Unbiased Estimator of the Variance of K-Fold Cross-Validation
BengioYoshua, & GrandvaletYves (2004) · Journal of Machine Learning Research · doi:10.5555/1005332.1044695 · Cited by 607
How Biased is the Apparent Error Rate of a Prediction Rule?
Efron, B. (1986) · Journal of the American Statistical Association · doi:10.1080/01621459.1986.10478291 · Cited by 587
Model Selection Via Multifold Cross Validation
Zhang, P. (1993) · The Annals of Statistics · doi:10.1214/aos/1176349027 · Cited by 539 · cited 2×
“In particular, algorithmic stability may not be satisfied in high-dimensional settings or with small sample sizes; see Supplementary Appendix I and Bayle et al. (2020) for more discussion.”
BackgroundMethodOn Measuring and Correcting the Effects of Data Mining and Model Selection
Ye, J. (1998) · Journal of the American Statistical Association · doi:10.1080/01621459.1998.10474094 · Cited by 518
Surprises in high-dimensional ridgeless least squares interpolation
Hastie, T., Montanari, A., Rosset, S., & Tibshirani, R. J. (2022) · The Annals of Statistics · doi:10.1214/21-aos2133 · Cited by 503
Self-citationInference for the Generalization ErrorPreprint
Bengio, Y., & Nadeau, C. (1999) · RePEc: Research Papers in Economics · Cited by 485
The Estimation of Prediction Error: Covariance Penalties and Cross-Validation
Efron, B. (2004) · Journal of the American Statistical Association · doi:10.1198/016214504000000692 · Cited by 467
Beating the hold-out: bounds for K-fold and progressive cross-validation
Blum, A., Kalai, A., & Langford, J. (1999) · Proceedings of the twelfth annual conference on Computational learning theory · doi:10.1145/307400.307439 · Cited by 265 · cited 1×
“The enduring popularity of CV is due to the fact that it is a conceptually simple improvement over a one-time train-test split (Blum, Kalai, and Langford 1999).”
BackgroundLeDell, E., Petersen, M., & van der Laan, M. (2015) · Electronic Journal of Statistics · doi:10.1214/15-ejs1035 · Cited by 239
Asymptotics of cross-validated risk estimation in estimator selection and performance assessment
Dudoit, S., & van der Laan, M. J. (2005) · Statistical Methodology · doi:10.1016/j.stamet.2005.02.003 · Cited by 168
Consistency of cross validation for comparing regression procedures
Yang, Y. (2007) · The Annals of Statistics · doi:10.1214/009053607000000514 · Cited by 166
On the marginal likelihood and cross-validation
Fong, E., & Holmes, C. C. (2020) · Biometrika · doi:10.1093/biomet/asz077 · Cited by 160
Analysis of Variance of Cross-Validation Estimators of the Generalization Error
Markatou, M., Tian, H., Biswas, S., & Hripcsak, G. M. (2005) · Journal of Machine Learning Research · doi:10.7916/d86d5r2x · Cited by 143
Riley, R. D., Snell, K. I. E., Martin, G. P., Whittle, R., Archer, L., Sperrin, M., & Collins, G. S. (2021) · Journal of Clinical Epidemiology · doi:10.1016/j.jclinepi.2020.12.005 · Cited by 142 · cited 2×
“…models, such as when selecting a model or a good value of a learning algorithm’s hyperparameters (e.g., Stoica et al., 1986; Shao, 1993; Zhang, 1993; Dietterich, 1998; Xu and Liang, 2001; Yang, 2007; Arlot and Celisse, 2010; Fong and Holmes, 2020; Sivula et al., 2020; Riley et al., 2021).”
BackgroundMethodPre-validation and inference in microarrays
Tibshirani, R. J., & Efron, B. (2002) · Statistical Applications in Genetics and Molecular Biology · doi:10.2202/1544-6115.1000 · Cited by 136
Self-citationCross-fitting and fast remainder rates for semiparametric estimation
Newey, W. K., & Robins, J. M. (2017) · doi:10.1920/wp.cem.2017.4117 · Cited by 111
Nonparametric variable importance assessment using machine learning techniques
Williamson, B. D., Gilbert, P. B., Carone, M., & Simon, N. (2021) · Biometrics · doi:10.1111/biom.13392 · Cited by 110
Cross-validation Confidence Intervals for Test ErrorPreprint
Bayle, P., Bayle, A., Janson, L., & Mackey, L. W. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2007.12671 · Cited by 104
Cross-Validation for Correlated Data
Rabinowicz, A., & Rosset, S. (2020) · Journal of the American Statistical Association · doi:10.1080/01621459.2020.1801451 · Cited by 92
Uncertainty in Bayesian Leave-One-Out Cross-Validation Based Model ComparisonPreprint
Sivula, T., Magnusson, M., Matamoros, A. A., & Vehtari, A. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2008.10296 · Cited by 87
Rosset, S., & Tibshirani, R. J. (2019) · Journal of the American Statistical Association · doi:10.1080/01621459.2018.1424632 · Cited by 72
Self-citationVariance stabilizing transformations of Poisson, binomial and negative binomial distributions
Yu, G. (2009) · Statistics & Probability Letters · doi:10.1016/j.spl.2009.04.010 · Cited by 67
A Note on the Expected Value of an Inverse Matrix
Groves, T., & Rothenberg, T. J. (1969) · Biometrika · doi:10.1093/biomet/56.3.690 · Cited by 47
Ridge Regression: Structure, Cross-Validation, and SketchingPreprint
Liu, S., & Dobriban, E. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1910.02373 · Cited by 43
Floodgate: inference for model-free variable importancePreprint
Zhang, L., & Janson, L. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2007.01283 · Cited by 43
Cross-Validation, Risk Estimation, and Model Selection: Comment on a Paper by Rosset and Tibshirani
Wager, S. (2020) · Journal of the American Statistical Association · doi:10.1080/01621459.2020.1727235 · Cited by 36
Stability revisited: new generalisation bounds for the Leave-one-OutPreprint
Célisse, A., & Guedj, B. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1608.06412 · Cited by 35
Cross-Validation and Mean-Square Stability
Kale, S., Kumar, R., & Vassilvitskii, S. (2011) · Cited by 34
Improved Small-Sample Estimation of Nonlinear Cross-Validated Prediction Metrics
Benkeser, D. C., Petersen, M. L., & van der Laan, M. J. (2019) · Journal of the American Statistical Association · doi:10.1080/01621459.2019.1668794 · Cited by 22
Near-Optimal Bounds for Cross-Validation via Loss Stability
Kumar, R., Lokshtanov, D., Vassilvitskii, S., & Vattani, A. (2013) · International Conference on Machine Learning · Cited by 15
A Leisurely Look at Versions and Variants of the Cross Validation EstimatorPreprint
Yousef, W. A. (2019) · arXiv (Cornell University) · Cited by 8
Cited by
Elastic Net Regularization Paths for All Generalized Linear Models
Tay, J. K., Narasimhan, B., & Hastie, T. (2023) · Journal of Statistical Software · doi:10.18637/jss.v106.i01 · Cited by 653
Self-citationWilimitis, D., & Walsh, C. G. (2023) · JMIR AI · doi:10.2196/49023 · Cited by 185
“When performing hyperparameter tuning and other model selection steps within cross-validation, the difference in optimistic bias observed between nested and nonnested cross-validation methods should have been mitigated [31].”
MethodHigh-throughput target trial emulation for Alzheimer’s disease drug repurposing with real-world data
Zang, C., Zhang, H., Xu, J., Zhang, H., Fouladvand, S., Havaldar, S., Cheng, F., Chen, K., Chen, Y., Glicksberg, B. S., et al. (2023) · Nature Communications · doi:10.1038/s41467-023-43929-1 · Cited by 69
“…which splits the data into mutually exclusive training and testing sets and picks the hyper-parameters based on cross-validation on the training set (say, accordingtotheareaunderthereceiveroperatingcharacteristiccurve on predicting treatment assignment) 21,22 , may lead to inferior performance.”
SDoH Impact on Periodontal Disease Using Machine Learning and Dental Records
Patel, J., Badi, M., Katiyar, R., Ogwo, C., Wiener, R. C., Tiwari, T., Sambamoorthi, U., & Folks, T. (2025) · Journal of Dental Research · doi:10.1177/00220345251328968 · Cited by 8
“We also applied a 5-fold cross-validation method to reduce bias and further validate the model’s performance (Bates et al. 2023).”
Zhao, Y., Wang, Z., Wang, X., Song, Y., & Han, Y. (2025) · Scientific Reports · doi:10.1038/s41598-025-11941-8 · Cited by 6
Metadata
- Authors
- Bates, S., Hastie, T., & Tibshirani, R.
- Venue
- Journal of the American Statistical Association
- Publisher
- Informa UK Limited
- Published
- 2023-05-15
- Volume
- 119
- Issue
- 546
- Pages
- 1434-1445
- ISSN
- 0162-1459 (ISSN-L)
- 1537-274X
- OpenAlex
- W3146796711
- Cited by
- 442
- References
- 55
- FWCI
- 84.67
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.