When to Impute? Imputation before and during cross-validation

Byron C. Jaeger, Nicholas J. Tierney, Noah R. Simon
10/1/2020
stat.MLcs.LGstat.CO

Official code: bcjaeger/Imputation-and-CV (4 stars, R, last commit 2020-08-26).

Abstract

Cross-validation (CV) is a technique used to estimate generalization error for prediction models. For pipeline modeling algorithms (i.e. modeling procedures with multiple steps), it has been recommended the entire sequence of steps be carried out during each replicate of CV to mimic the application of the entire pipeline to an external testing set.

Show full abstract

While theoretically sound, following this recommendation can lead to high computational costs when a pipeline modeling algorithm includes computationally expensive operations, e.g. imputation of missing values. There is a general belief that unsupervised variable selection (i.e. ignoring the outcome) can be applied before conducting CV without incurring bias, but there is less consensus for unsupervised imputation of missing values. We empirically assessed whether conducting unsupervised imputation prior to CV would result in biased estimates of generalization error or result in poorly selected tuning parameters and thus degrade the external performance of downstream models. Results show that despite optimistic bias, the reduced variance of imputation before CV compared to imputation during each replicate of CV leads to a lower overall root mean squared error for estimation of the true external R-squared and the performance of models tuned using CV with imputation before versus during each replication is minimally different. In conclusion, unsupervised imputation before CV appears valid in certain settings and may be a helpful strategy that enables analysts to use more flexible imputation techniques without incurring high computational costs.

View on arXivView PDF

Code Implementations(1)

When to impute if imputation is unsupervised?

42RApr 26, 20206 years ago

Similar Papers

Cite this paper

@article{jaeger2020when,
  title  = {When to Impute? Imputation before and during cross-validation},
  author = {Byron C. Jaeger and Nicholas J. Tierney and Noah R. Simon},
  year   = {2020},
  eprint = {2010.00718},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.00718}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.00718.svg)](https://codeofpaper.com/paper/2010.00718)

Discussion