Bias in error estimation when using cross-validation for model selection

By Sudhir Varma, Richard M. Simon. BMC Bioinformatics, 2006

2,007 citations recorded by the source corpus.

BackgroundCross-validation (CV) is an effective method for estimating the prediction error of a classifier. Some recent articles have proposed methods for optimizing classifiers by choosing classifier parameter values that minimize the CV error estimate. We have evaluated the validity of using the CV error estimate of the optimized classifier as an estimate of the true error expected on independent data.ResultsWe used CV to optimize the classification parameters for two kinds of classifiers; Shrunken Centroids and Support Vector Machines (SVM). Random training datasets were created, with no difference in the distribution of the features between the two classes. Using these "null" datasets, we selected classifier parameter values that minimized the CV error estimate. 10-fold CV was used for Shrunken Centroids while Leave-One-Out-CV (LOOCV) was used for the SVM. Independent test data was created to estimate the true error. With "null" and "non null" (with differential expression between the classes) data, we also tested a nested CV procedure, where an inner CV loop is used to perform the tuning of the parameters while an outer CV is used to compute an estimate of the error.The CV error estimate for the classifier with the optimal parameters was found to be a substantially biased estimate of the true error that the classifier would incur on independent data. Even though there is no real difference between the two classes for the "null" datasets, the CV error estimate for the Shrunken Centroid with the optimal parameters was less than 30% on 18.5% of simulated training data-sets. For SVM with optimal parameters the estimated error rate was less than 30% on 38% of "null" data-sets. Performance of the optimized classifiers on the independent test set was no better than chance.The nested CV procedure reduces the bias considerably and gives an estimate of the error that is very close to that obtained on the independent testing set for both Shrunken Centroids and SVM classifiers for "null" and "non-null" data distributions.ConclusionWe show that using CV to compute an error estimate for a classifier that has itself been tuned using CV gives a significantly biased estimate of the true error. Proper use of CV for estimating true error of a classifier developed using a well defined algorithm requires that all steps of the algorithm, including classifier parameter tuning, be repeated in each CV loop. A nested CV procedure provides an almost unbiased estimate of the true error.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Molecular Biology

View Paper: https://www.semanticscholar.org/paper/bf75f2555e8485d536ac217068b7963de3d6fa02

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Robert Tibshirani
  2. Kjell Johnson
  3. Aki Vehtari
  4. Trevor J. Hastie
  5. Max Kuhn
  6. Juho Piironen
  7. Cuntai Guan
  8. Davide Bacciu

In Computer Vision and Pattern Recognition

  1. Robert Tibshirani
  2. Trevor J. Hastie
  3. Max Kuhn
  4. Kjell Johnson
  5. Grigorios Tsoumakas
  6. B. Koçak
  7. Yi Ding
  8. Mathias I. Disney

In Molecular Biology

  1. Kjell Johnson
  2. Robert Tibshirani
  3. Max Kuhn
  4. Trevor J. Hastie
  5. Charlotte Soneson
  6. Mauro Delorenzi
  7. Zoe Chrysopoulou
  8. Stamatis Karlos

Citations in the corpus