bioRxivBioinformaticsPreprint
Post-prediction inference
Abstract
Many modern problems in medicine and public health leverage machine learning methods to predict outcomes based on observable covariates [1, 2, 3, 4]. In an increasingly wide array of settings, these predicted outcomes are used in subsequent statistical analysis, often without accounting for the distinction between observed and predicted outcomes [1, 5, 6, 7, 8, 9]. We call inference with predicted outcomes post-prediction inference. In this paper, we develop methods for correcting statistical inference using outcomes predicted with an arbitrary machine learning method. Rather than trying to derive the correction from the first principles for each machine learning tool, we make the observation 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 the post-prediction inference that naturally fits into the standard machine learning framework where the data is 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 on the testing set, and use that model of the relationship to correct inference on the validation set and subsequent statistical models. We show our postpi approach can correct bias and improve variance estimation (and thus subsequent statistical inference) with predicted outcome data. To show the broad range of applicability of our approach, we show postpi can improve inference in two totally distinct fields: modeling predicted phenotypes in re-purposed gene expression data [10] and modeling predicted causes of death in verbal autopsy data [11]. We have made our method available through an open-source R package: [https://github.com/leekgroup/postpi]
- Citations
- 4
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Prediction and inference diverge in biomedicine:Simulations and real-world data
Danilo Bzdok, Denis Alexander Engemann, … Bertrand Thirion·bioRxiv·May 21, 2018
- Infectious Disease Forecasting via Physics-Informed Machine Learning
Joseph C Hart, Hudson Smith, … Christopher S. McMahan·bioRxiv·Jun 16, 2026
- Controlling for effects of confounding variables on machine learning predictions
Richard Dinga, Lianne Schmaal, … André F. Marquand·bioRxiv·Aug 17, 2020
- Adaptive predictor-set linear model: an imputation-free method for linear regression prediction on datasets with missing values
Benjamin Planterose Jiménez, Manfred Kayser, … Amke Caliebe·Biometrical JournalPeer-reviewed·May 30, 2024
- Multivariate Bayesian Inversion for Classification and Regression
Joram Soch, Carsten Allefeld·International Journal of Data Science and AnalyticsPeer-reviewed·Jun 25, 2026
- A Bayesian predictive approach for dealing with pseudoreplication
Stanley E. Lazic, Jack R. Mellor, … Marcus Robert Munafo·Scientific ReportsPeer-reviewed·Feb 11, 2020