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,416
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.”
BackgroundMethodInfluential
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-citationHyperparameter Tuning in Machine Learning: A Comprehensive Review
A Ilemobayo, J., Durodola, O., Alade, O., J Awotunde, O., T Olanrewaju, A., Falana, O., Ogungbire, A., Osinuga, A., Ogunbiyi, D., Ifeanyi, A., et al. (2024) · Journal of Engineering Research and Reports · doi:10.9734/jerr/2024/v26i61188 · Cited by 211
Wilimitis, 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].”
MethodThe benefits and pitfalls of machine learning for biomarker discovery
Ng, S., Masarone, S., Watson, D., & Barnes, M. R. (2023) · Cell and Tissue Research · doi:10.1007/s00441-023-03816-z · Cited by 169
“These include regularisation techniques (Acharjee 2012) and the use of cross-validation to evaluate the performance of the model (Bates et al. 2021).”
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
A large‐scale evolutionary and structural analysis of CLC channels and transporters
Mishra, A., Díaz Vázquez, G., & Robertson, J. L. (2025) · Protein Science · doi:10.1002/pro.70389 · Cited by 3
“This process was repeated for all partitions, providing a robust measure of classifier accuracy (Bates et al., 2024).”
A LARGE-SCALE EVOLUTIONARY AND STRUCTURAL ANALYSIS OF CLC CHANNELS AND TRANSPORTERS
Mishra, A., Vázquez, G. D., & Robertson, J. L. (2025) · doi:10.1101/2025.07.07.663545 · Cited by 3
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.