A Statistical Approach to Estimating Sample Size of Machine Learning Models

Phan-Trong, Dat, Gupta, Sunil, Venkatesh, Svetha

–arXiv.org Artificial Intelligence 

Nonlinear ML models learn complex prediction surfaces that do not admit straightforward analytical power calculations. We propose a framework that approximates nonlinear ML models with localized linear representations and estimates sample size requirements by evaluating statistical power across these local regions. Materials and Methods: A trained model fbase is approximated by a Rectified Linear Unit (ReLU) neural network, yielding a continuous piecewise linear representation that partitions the feature space into locally linear regions. Within each region, local effect sizes (R2l,f2l) are estimated and region-specific statistical power is calculated using the noncentral F-distribution for continuous outcomes and large-sample normal approximations for logistic regression. To aggregate these local quantities, we introduce a volume-weighted coverage power metric that accounts for both regional statistical power and the volume of the corresponding feature-space regions.