Designing for Prediction: Planning Formulas for Expected Out-of-Sample $R^2$ and $r$
Abstract
Design calculations let researchers gauge, before data is collected, whether a planned study is likely to detect an effect. In this paper, we develop such calculations for predictive models using ordinary least squares and ridge regression under leave-one-out cross-validation. To do so, we derive closed-form expressions relating the expected out-of-sample $R^2$ and the expected correlation between observed and predicted outcomes to four design-stage quantities: sample size, number of predictors,...
Description / Details
Design calculations let researchers gauge, before data is collected, whether a planned study is likely to detect an effect. In this paper, we develop such calculations for predictive models using ordinary least squares and ridge regression under leave-one-out cross-validation. To do so, we derive closed-form expressions relating the expected out-of-sample and the expected correlation between observed and predicted outcomes to four design-stage quantities: sample size, number of predictors, an assumed population () and a design efficiency factor (which summarizes how leverage is distributed across observations). Unlike the classical shrinkage formulas, which depend only on sample size and dimension, these are sensitive to how covariates are arranged -- to imbalance and skew. A simulation study assesses the accuracy of the formulas against realized values under a variety of data generating mechanisms. We apply the methods to a published study predicting personality from smartphone behavior and show that the design formulas would have indicated, before any analyses were run, that least squares could not be expected to beat the sample mean while ridge could. An R package, predpower, implements the calculations.
Source: arXiv:2610.18781v1 - http://arxiv.org/abs/2610.18781v1 PDF: https://arxiv.org/pdf/2610.18781v1 Original Link: http://arxiv.org/abs/2610.18781v1
Please sign in to join the discussion.
No comments yet. Be the first to share your thoughts!
Oct 14, 2026
Data Science
Statistics
0