Methods for correcting inference based on outcomes predicted by machine learning

Siruo Wang, Tyler H. McCormick, Jeffrey T. Leek

Research output: Contribution to journalArticlepeer-review

Abstract

Many modern problems in medicine and public health leverage machine-learning methods to predict outcomes based on observable covariates. In a wide array of settings, predicted outcomes are used in subsequent statistical analysis, often without accounting for the distinction between observed and predicted outcomes. We call inference with predicted outcomes postprediction inference. In this paper, we develop methods for correcting statistical inference using outcomes predicted with arbitrarily complicated machine-learning models including random forests and deep neural nets. Rather than trying to derive the correction from first principles for each machine-learning algorithm, we observe that there is typically a low-dimensional and easily modeled representation of the relationship between the observed and predicted outcomes. We build an approach for postprediction inference that naturally fits into the standard machine-learning framework where the data are divided into training, testing, and validation sets. We train the prediction model in the training set, estimate the relationship between the observed and predicted outcomes in the testing set, and use that relationship to correct subsequent inference in the validation set. We show our postprediction inference (postpi) approach can correct bias and improve variance estimation and subsequent statistical inference with predicted outcomes. To show the broad range of applicability of our approach, we show postpi can improve inference in two distinct fields: modeling predicted phenotypes in repurposed gene expression data and modeling predicted causes of death in verbal autopsy data. Our method is available through an open-source R package: https://github.com/leekgroup/postpi.

Original languageEnglish (US)
Pages (from-to)30266-30275
Number of pages10
JournalProceedings of the National Academy of Sciences of the United States of America
Volume117
Issue number48
DOIs
StatePublished - Dec 1 2020

Keywords

  • Statistics | machine learning | postprediction inference | interpretability

ASJC Scopus subject areas

  • General

Fingerprint Dive into the research topics of 'Methods for correcting inference based on outcomes predicted by machine learning'. Together they form a unique fingerprint.

Cite this