Cross-Validation: What Does It Estimate and How Well Does It Do It?

被引:54
|
作者
Bates, Stephen [1 ,2 ]
Hastie, Trevor [3 ]
Tibshirani, Robert [4 ]
机构
[1] Univ Calif Berkeley, Dept Stat, Berkeley, CA 94720 USA
[2] Univ Calif Berkeley, EECS, Berkeley, CA 94720 USA
[3] Stanford Univ, Dept Stat & Biomed Data Sci, Stanford, CA USA
[4] Stanford Univ, Dept Biomed Data Sci & Stat, Stanford, CA USA
基金
美国国家卫生研究院; 美国国家科学基金会;
关键词
Bootstrap/resampling; Computationally intensive methods; Cross-validation; Goodness-of-fit methods; MODEL SELECTION; PREDICTION ERROR; VARIANCE;
D O I
10.1080/01621459.2023.2197686
中图分类号
O21 [概率论与数理统计]; C8 [统计学];
学科分类号
020208 ; 070103 ; 0714 ;
摘要
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 C-p. 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. for this article are available online.
引用
收藏
页码:1434 / 1445
页数:12
相关论文
共 50 条
  • [1] How Cross-Validation Can Go Wrong and What to Do About It
    Neunhoeffer, Marcel
    Sternberg, Sebastian
    [J]. POLITICAL ANALYSIS, 2019, 27 (01) : 101 - 106
  • [2] WHAT DOES THE EPIDIDYMIS DO AND HOW DOES IT DO IT
    HINTON, BT
    [J]. JOURNAL OF ANDROLOGY, 1995, : 18 - 20
  • [3] Cross-validation: What is it and how is it used in regression?
    Morin, Kristi
    Davis, John L.
    [J]. COMMUNICATIONS IN STATISTICS-THEORY AND METHODS, 2017, 46 (11) : 5238 - 5251
  • [4] Commentary: What does melatonin do and how does it do it?
    Menaker, M
    [J]. JOURNAL OF BIOLOGICAL RHYTHMS, 1997, 12 (06) : 532 - 534
  • [5] Does cross-validation work in telling rankings apart?
    Sziklai, Balazs R.
    Baranyi, Mate
    Heberger, Karoly
    [J]. CENTRAL EUROPEAN JOURNAL OF OPERATIONS RESEARCH, 2024,
  • [6] What Does the Human Olfactory System Do, and How Does It Do It?
    Dikecligil, Gulce Nazli
    Gottfried, Jay A.
    [J]. ANNUAL REVIEW OF PSYCHOLOGY, 2024, 75 : 155 - 181
  • [7] WHAT DOES HOMEOPATHT DO AND HOW
    BUCKMAN, R
    LEWITH, G
    [J]. BRITISH MEDICAL JOURNAL, 1994, 309 (6947): : 103 - 106
  • [8] WHAT DOES FIBER DO AND HOW
    RICCARDI, G
    RIVELLESE, A
    [J]. DIABETES 1988, 1989, 800 : 597 - 600
  • [9] Open questions: how does Wolbachia do what it does?
    Francis M. Jiggins
    [J]. BMC Biology, 14
  • [10] Open questions: how does Wolbachia do what it does?
    Jiggins, Francis M.
    [J]. BMC BIOLOGY, 2016, 14