arXiv:2609.09547cs.LGSep 2026

Manuscript Offprint

arXiv:2609.09547

A Statistical Approach to Estimating Sample Size of Machine Learning Models

Dat Phan-Trong, Sunil Gupta, Svetha Venkatesh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

A Statistical Approach to Estimate Sample Size of Machine Learning Models

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

¹Deakin Applied Artificial Intelligence Initiative, Deakin University, Australia

ABSTRACT

Objective: Sample size determination for machine learning (ML) prediction models is challenging because conventional power analysis typically requires the predictor-outcome relationship and effect structure to be specified a priori. 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 fbasef_{\text{base}} 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 (Rl2,fl2)(R_l^2, f_l^2) are estimated and region-specific statistical power is calculated using the noncentral FF-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. The minimum global sample size is then determined by finding the smallest sample size that achieves a prespecified coverage threshold γ\gamma, subject to the target power β\beta and effect-size filtering threshold τR2\tau_{R^2}.

Results: In synthetic experiments with known structural boundaries, required sample size increased with surface complexity and decreased as weak-effect regions were excluded. Empirical evaluation on three UCI datasets demonstrated stable convergence of volume-weighted coverage to target levels and revealed differences in sample size requirements across model architectures.

Discussion: The framework decomposes nonlinear prediction surfaces into locally analyzable regions, enabling classical power calculations in settings where global parametric assumptions are inappropriate. Sample size estimates reflect regional effect heterogeneity and partition structure.

Conclusion: This approach extends traditional power analysis to nonlinear ML models and provides a structured method for estimating sample size requirements in predictive modeling studies.

Keywords: sample size estimation; machine learning; statistical power