Manuscript Offprint
arXiv:2609.09547A Statistical Approach to Estimating Sample Size of Machine Learning Models
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 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 are estimated and region-specific statistical power is calculated using the noncentral -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 , subject to the target power and effect-size filtering threshold .
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
fined functional form. This can limit their flexibility in biomedical applications where outcomes may depend on complex, high-order, and spatially varying interactions and nonlinear relationships among predictors.
The increasing adoption of machine learning (ML) methods in healthcare reflects their ability to capture complex relationships that may be difficult to specify a priori using traditional statistical models. Statistical models typically require predefined functional forms for main effects and interaction relationships, whereas modern ML models, including support vector machines, random forests, and neural networks, can learn complex nonlinear patterns without explicitly specifying these relationships. While this flexibility has contributed to improved predictive performance across a range of clinical tasks, it also complicates sample size determination be-cause the learned relationships are not readily characterized within conventional analytical frameworks. Consequently, rigorous and practical methodological guidance for determining sample size in ML-based clinical studies remains limited .
Several studies have attempted to address this problem using data-driven or performance-based criteria. Rajput et al. proposed empirical guidelines to evaluate sample adequacy by jointly analyzing feature effect sizes and classification accuracy across incremental subsamples, demonstrating that predictive performance often reaches a plateau beyond which additional data provide diminishing returns. Ghasemzadeh et al. addressed sample size determination by developing a simulation-based power analysis framework for machine learning models, demonstrating that robust validation schemes like nested k-fold cross-validation are essential to prevent optimistic performance bias from underestimating sample size requirements. In addition, Riley et al. emphasized that sample size calculations for prediction models should focus on controlling overfitting and ensuring precise risk estimation rather than relying exclusively on traditional hypothesis-testing frameworks. These criteria are important for developing reliable prediction models, but they do not directly address whether a given sample size provides adequate statistical power across the heterogeneous regions of a nonlinear prediction function. In particular, global criteria such as anticipated model complexity, predictor-to-sample ratios, or overall prediction precision do not account for the possibility that different regions of the feature space may exhibit substantially different effect sizes and therefore require different amounts of information to achieve adequate power. Our approach complements these existing criteria by evaluating statistical power locally across the learned prediction surface and aggregating it through a volume-weighted coverage measure, thereby providing a complementary perspective on sample size requirements for nonlinear ML models.
Despite these advances, most machine learning studies in clinical research continue to be limited by insufficient sample sizes and inadequate validation procedures . A key reason is the absence of a framework that connects the flexibility of modern machine learning models with the well-established principles of statistical power analysis. Classical approaches generally require a known parametric model from which effect sizes and degrees of freedom can be derived, whereas machine learning models typically represent complex nonlinear mappings that do not admit a simple analytical form.
To address this gap, we propose a framework that approximates an arbitrary machine learning prediction surface using a neural network with Rectified Linear Unit (ReLU) activations. Because ReLU networks yield a continuous piecewise linear representation, the learned
prediction surface can be decomposed into a collection of local linear regions. Within each region, conventional statistical quantities, including local coefficients of determination and F-test-based power, can be estimated using established methods. We then introduce a volume-weighted coverage power measure that aggregates these local power estimates according to the volume of their corresponding regions, providing a global measure of statistical power across the prediction surface. The required sample size is determined as the minimum sample size that achieves a prespecified global coverage-power threshold. By combining local linear power analysis with this global coverage criterion, the proposed framework provides a practical approach for determining sample size requirements for nonlinear machine learning models.
The main contributions of this work are: (1) a ReLU-based local power estimation framework, (2) a volume-weighted aggregation strategy for global sample size determination, and (3) empirical evaluation on synthetic and real-world datasets.
Background: The Global F-Test and the Linearity Assumption
Classical sample size calculations for continuous outcomes are often based on multiple linear regression models that describe the relationship between a set of predictors and an outcome variable :
where represents measurement noise. Within this framework, the overall predictive contribution of the covariates is commonly assessed through the global null hypothesis
The statistical power of the corresponding global F-test depends on the strength of the relationship between the predictors and the outcome. This relationship is often summarized through Cohen's effect size , which can be expressed in terms of the coefficient of determination :
Given a desired significance level and target power , the required sample size can be obtained using the non-central distribution. This approach forms the basis of many widely used sample size calculations for regression-based studies.
A key assumption underlying this formulation is that the relationship between predictors and outcome can be adequately represented by a single global linear model.
In many biomedical applications, however, risk surfaces may exhibit complex nonlinear and locally varying relationships that are difficult to specify a priori using conventional statistical models. Under such conditions, a global linear approximation may not fully capture the structure of the underlying relationship. As a result, the estimated effect size and corresponding sample size requirements may not accurately reflect the complexity of the prediction problem.
The framework proposed in this study addresses this limitation by replacing the single global approximation with a collection of local linear approximations. Specifically, a Rectified Linear Unit (ReLU) network is used to approximate the learned prediction surface and partition the feature space into continuous piecewise linear regions. Within each region, conventional effect size estimation and -test based power calculations can be performed using established statistical methodology. These local estimates are subsequently combined to derive a global sample size recommendation that accounts for heterogeneity in the underlying prediction surface. Rather than replacing classical power analysis, our approach seeks to extend its applicability to settings in which the underlying prediction surface is highly complex and nonlinear such as those modelled by machine learning models.
Materials and Methods
Study Overview
We developed a machine learning framework for estimating sample size requirements in settings where the underlying predictor–outcome relationship has a complex and potentially unknown functional form. The proposed approach is motivated by the observation that many machine learning models can represent complex prediction surfaces that are not readily amenable to conventional power analysis. Although flexible models such as Random Forests, Support Vector Machines, and neural networks can capture nonlinear interactions, their learned representations generally do not provide the explicit parametric structure required by classical sample size calculation methods.
The central idea of the proposed framework is to approximate the prediction surface of an arbitrary machine learning model using a Rectified Linear Unit (ReLU) neural network. Because ReLU networks represent continuous piecewise linear functions, the approximated prediction surface can be partitioned into a collection of local linear regions. Within each region, conventional statistical quantities, including local effect sizes and -test based power calculations, can be estimated using established regression methodology. These local estimates are then aggregated to obtain a global sample size recommendation that reflects the heterogeneous structure
of the prediction surface.
The proposed framework is evaluated in both synthetic and real-world settings. For synthetic experiments, the underlying data-generating functions were known, allowing the estimated sample size () to be compared against a reference sample size () derived from the ground-truth function , from which pilot data are sampled. Additional experiments on benchmark datasets were conducted to assess the framework's behavior across different machine learning architectures and data domains. The overall workflow is summarized in Algorithm 1 and schematically illustrated in Figure 1.
Data Simulation
To evaluate the proposed framework under controlled conditions, we generated synthetic datasets designed to emulate nonlinear clinical risk surfaces. Each dataset was constructed within a bounded -dimensional feature domain .
The underlying data-generating mechanism was defined by a ground-truth function constructed using continuous piecewise linear (CPWL) functions. Functional complexity was controlled by varying the number of knots () per dimension, thereby introducing structured changes in local gradients to simulate nonlinear threshold effects commonly observed in clinical phenomena.
Synthetic pilot dataset observations were generated by sampling feature vectors from the domain and generating responses , where represents heteroscedastic noise. This design tests the proposed framework's capability to distinguish systematic structural signal from stochastic noise.
ML-Assisted Sample Size Framework
We developed a multi-stage procedure to estimate sample size requirements for nonlinear prediction models. The framework consists of four primary components: (1) base model specification, (2) ReLU-based proxy approximation, (3) local linear power estimation, and (4) global sample size estimation.
Base Model Specification and Reference Surface Construction
In practice, the first step of the framework assumes a user has collected pilot data (or trained a preliminary model) and fitted a prediction model . Alternatively, when pilot data are simulated or provided in benchmark evaluations, the dataset is generated from an underlying ground-truth target function as
, where
where and .
A nonlinear machine learning model , parameterized by estimate , is trained by minimizing empirical risk:
where denotes a task-specific loss function (e.g., mean squared error for regression).
The fitted model defines a reference prediction surface
Because this learned surface does not possess an explicit global parametric representation amenable to the forms allowed by traditional power calculators, such tools (traditional analytical power calculators) are not directly applicable. We approximate via a continuous piecewise-linear function.
ReLU Proxy Approximation
A secondary feedforward neural network with Rectified Linear Unit (ReLU) activations, denoted , is trained on the synthetic proxy dataset to approximate the reference prediction surface:
Because ReLU activations are continuous piecewise linear functions, partitions the feature domain into a finite set of convex polyhedral linear regions. To ensure approximation fidelity and avoid geometric shattering, candidate proxy architectures are trained across multiple random initializations, and the network minimizing approximation error (measured by mean squared error) is selected.
Local Linearization and Regional Power Allocation
As illustrated in Figure 1A, the selected ReLU network induces a polyhedral partition of the feature domain:
Within each polyhedral region , the proxy prediction surface is strictly linear (Figure 1B):
We inherit the polyhedral identification algorithm proposed by Gaines et al. to efficiently extract the hyperplane boundaries and regional coefficient vectors .
For each region , we compute the local coefficient of determination and local Cohen's effect size :
To filter out negligible local signals, an active region set is retained step-by-step based on an effect-size threshold :
Regions with contribute minimal explanatory power and are excluded from the global coverage requirement to avoid mathematically inflating sample size demands for non-informative feature regions.
For a total candidate global sample size N, the expected local sample allocation assigned to region is:
where denotes the empirical probability mass of region . Within region , local statistical power for detecting the local linear regression signal at significance level is derived using the noncentral -distribution:
where is the local noncentrality parameter.
Volume-Weighted Coverage Power
To aggregate regional statistical power into a single global metric, we define volume-weighted coverage power:
where:
is the active region set retained after filtering ,
is the geometric volume of region computed via convex hull integration,
is the empirical probability mass of region ,
is the local statistical power in region ,
is the targeted local power requirement (e.g., 0.80),
• is the indicator function.

Mathematical Formulation of Regional Power Allocation & Volume-Weighted Coverage:
-
Local Linear Model (): , (Local Cohen's Effect Size)
-
Active Region Filtering: (Filters non-informative regions where )
-
Local Power via Noncentral : , , where
-
Volume-Weighted Coverage Power:
Figure 1. Overview of the proposed localized sample size calculation framework in a two-dimensional feature space . (A) Global Polyhedral Partitioning into Linear Regions: An arbitrary nonlinear prediction surface is approximated by a continuous piecewise linear (CPWL) ReLU neural network proxy , partitioning the feature domain into convex polyhedral regions with a highlighted target region . (B) Localized 2D Power Analysis in Region : Within each polyhedral compartment, the proxy behaves as a local linear regression plane (indicated by parallel contour lines), populated by local pilot samples . Bottom Box: The four-stage mathematical formulation: (1) estimating local Cohen's effect size , (2) filtering out uninformative regions where to form the active set , (3) evaluating regional statistical power under expected sample allocation via the noncentral -distribution, and (4) computing global volume-weighted coverage power weighted by geometric volume .
This metric measures the proportion of the active feature space volume for which the allocated sample size achieves local power . In the special case where the prediction surface is globally linear (), this formulation collapses exactly to classical global -test power analysis.
Local power estimates are aggregated using geometric volume as a weighting factor to emphasize coverage of the prediction surface. Under volume weighting, a region contributes according to the physical feature space volume it occupies, regardless of its sample frequency in pilot data. This formulation is desirable in clinical modeling where low-density feature regions may represent critical high-risk subpopulations or key decision boundaries. Alternative weighting schemes (e.g., probability mass weighting or utility-weighted coverage) can also be substituted depending on clinical priorities.
Global Sample Size Optimization
The optimal global sample size is defined as the minimum candidate sample size required to meet or exceed a target global coverage threshold (e.g.,
or 0.90):
For each region , local power is a monotonically increasing function of local sample size . Because scales linearly with , each indicator is non-decreasing in . Consequently, global volume-weighted coverage is a non-decreasing monotonic function of , guaranteeing that the optimization problem in Eqn. 13 has a unique, well-defined minimum.
Experimental Evaluation
Synthetic Data Generation
To evaluate the proposed framework under controlled conditions with a known data-generating mechanism, we constructed multi-dimensional continuous piecewise linear (CPWL) functions with explicitly defined structural boundaries. This design enabled direct comparison between estimated and true local effect structures.
The generative domain was defined as a bounded compact set . The domain was partitioned into a
Algorithm 1 ML-Assisted Sample Size Calculation Framework
Require: Pilot dataset , target local statistical power , target global coverage threshold , effect size threshold , base model .
Ensure: Globally optimized required sample size .
1: 1. Base Model Surface Specification
2: Fit base model on pilot data .
3: 2. Proxy Approximation and Decomposition
4: Sample dense domain grid to generate proxy dataset .
5: Train ReLU network to approximate .
6: Decompose into polyhedral linear regions .
7: 3. Regional Profiling and Active Filtering
8: Initialize active region set: .
9: for each region do
10: Compute regional coefficient of determination on .
11: if then
12: Compute geometric volume of polyhedral region .
13: Estimate empirical probability mass from pilot data .
14: Update active set: .
15: end if
16: end for
17: 4. Global Sample Size Optimization
18: Define volume-weighted coverage power:
19: Solve via monotonic binary search:
20: return
structured hyperrectangular grid. Along each coordinate axis , a sequence of knots was defined to form an initial uniform mesh. To avoid artificial symmetry, interior knots were perturbed using bounded random displacements:
where was sampled from a uniform distribution with bounded support. This perturbation altered local cell geometry while preserving the global domain boundaries.
Scalar values were assigned to each point in the discretized multidimensional feature space and subsequently smoothed using a multidimensional Gaussian filter to reduce extreme local variability. Continuous piecewise linear interpolation over the perturbed grid yielded the target function
Synthetic observations were sampled uniformly from the domain,
and defining responses as
where represents heteroscedastic noise. This design tests the proposed framework's capability to distinguish systematic structural signal from stochastic noise.
Real-World Empirical Datasets
To assess generalizability in empirical settings, we evaluated the framework using three datasets from the UCI Machine Learning Repository representing heterogeneous biomedical and physical modeling tasks.
-
Abalone Dataset (): Predicts the number of shell rings (an age proxy) from physical measurements. The dataset exhibits nonlinear growth patterns and substantial feature collinearity.
-
Concrete Compressive Strength Dataset (): Predicts compressive strength (MPa) from mixture composition and curing age. The relationship between predictors and outcome reflects nonlinear material dynamics.
-
Liver Disorder Dataset (): Predicts clinical risk based on liver enzyme concentrations and alcohol consumption. The dataset is characterized by moderate dimensionality and relatively high measurement variability.
These datasets differ in dimensionality, signal-to-noise characteristics, and structural smoothness, allowing evaluation across diverse nonlinear prediction regimes.
Baseline ML models and Configuration
To evaluate robustness across model classes, we considered three commonly used nonlinear regression ML models:
-
Support Vector Regression (SVR): Implemented with a radial basis function (RBF) kernel to model smooth nonlinear decision surfaces.
-
Random Forest (RF) Regressor: An ensemble of 100 decision trees, enabling flexible partitioning of the feature space.
-
Multi-Layer Perceptron (MLP): A fully connected feedforward neural network with ReLU activations, trained using standard backpropagation to approximate nonlinear prediction functions.
Hyperparameters were selected using standard validation procedures to ensure stable predictive performance prior to application of the sample size estimation framework.
Results
We present the results below, evaluated across (1) controlled synthetic environments with known structural boundaries and (2) empirical benchmark datasets.
Synthetic Evaluation with Known Structural Boundaries
Synthetic experiments were conducted under explicitly defined continuous piecewise linear (CPWL) data-generating mechanisms. Feature dimensionality was varied (), and structural complexity was controlled through knot density (). Pilot sample sizes were set to for lower-dimensional settings and for to ensure stable base model convergence prior to proxy approximation.
ReLU Approximation Fidelity
The ReLU proxy network was trained to approximate the fitted base model surface . Approximation quality and stability were assessed by measuring
the mean squared error (MSE) relative to across 10 independent random initializations of , as well as verifying low variance () in the number of induced polyhedral regions. Across configurations, the proxy consistently achieved stable convergence with low approximation error relative to the base surface, indicating that the induced polyhedral decomposition reflected the geometric structure of the underlying model rather than optimization artifacts.
Because the proxy serves strictly as a geometric representation of the fitted surface (rather than an independent predictive model), this step isolates the topological structure of the learned mapping while preserving its local gradients. The stability observed across random initializations confirms that downstream power estimates are not driven by proxy training instability.
Effect Size Filtering and Regional Structure
Table 1 summarizes the number of active regions () and retained hyper-volume under varying thresholds (), corresponding to small, medium, and large effect sizes based on Cohen's , respectively. Note that regional counts (e.g., ) are reported as mean values with standard deviations averaged across 10 independent simulation replicates.
Across all configurations in Table 1, increasing systematically reduces both the number of retained active regions and the total retained volume. This behavior is expected because regions with small values contribute limited explanatory power and are therefore excluded from global coverage calculations.
For example, in Table 1 (), the SVM model exhibits a reduction from active regions at to at , accompanied by a corresponding reduction in retained volume from 94.0% to 56.7%. This reflects selective exclusion of low-signal regions rather than instability in the decomposition procedure.
Importantly, the monotonic reduction in both and retained volume across thresholds in Table 1 confirms that the filtering mechanism behaves consistently across dimensionalities and model classes.
Global Sample Size Optimization
Global sample size requirements were computed to achieve volume-weighted coverage at local power . Detailed optimization results and empirical power convergence metrics are presented in Table 2. Three consistent patterns emerge from Table 2:
- Dependence on Effect Size Threshold: Across all configurations in Table 2, decreases as increases. This relationship follows directly from
Table 1. Aggregated Topological Characteristics Across the Synthetic Benchmarking Matrix. The table reports the mean and standard deviation of the number of active linear regions () alongside the percentage of total domain hyper-volume retained across three sequential clinical effect size thresholds ().
| Dim () | Knots () | Model | Active Regions () | Mean Volume Retained (%) | ||||
|---|---|---|---|---|---|---|---|---|
| 2 | 2 | RF | ||||||
| 2 | 2 | SVM | ||||||
| MLP | ||||||||
| 2 | 5 | RF | ||||||
| SVM | ||||||||
| MLP | ||||||||
| 2 | 7 | RF | ||||||
| SVM | ||||||||
| MLP | ||||||||
| 2 | 13 | RF | ||||||
| SVM | ||||||||
| MLP | ||||||||
| 3 | 6 | RF | ||||||
| SVM | ||||||||
| MLP | ||||||||
| 4 | 4 | RF | ||||||
| SVM | ||||||||
| MLP | ||||||||
Table 2. Optimized Global Sample Size Requirements () and Empirical Power Convergence Metrics () across synthetic linear piecewise benchmarking configurations.
| Dim () | Knots () | Model | Optimized Global Sample Size Requirement (Power: ) | ||
|---|---|---|---|---|---|
| (Small Effect) | (Medium Effect) | (Large Effect) | |||
| 2 | 2 | RF | |||
| 2 | 2 | SVM | |||
| MLP | |||||
| 2 | 5 | RF | |||
| SVM | |||||
| MLP | |||||
| 2 | 7 | RF | |||
| SVM | |||||
| MLP | |||||
| 2 | 13 | RF | |||
| SVM | |||||
| MLP | |||||
| 3 | 6 | RF | |||
| SVM | |||||
| MLP | |||||
| 4 | 4 | RF | |||
| SVM | |||||
| MLP | |||||
the local noncentrality parameter,
Regions with small require disproportionately large local allocation to achieve local power . When such regions are retained (e.g., ), the global optimization must allocate sufficient total sample size so
that even weak-signal regions satisfy the local power constraint. When these regions are excluded (e.g., ), required sample sizes decrease accordingly.
For instance, in the RF configuration in Table 2, decreases from 252 to 156 when moving from to . This magnitude of reduction is consistent with the nonlinear dependence of on .
Extremely large requirements observed in highly fragmented settings (e.g., for , SVM, in Table 2) arise when many low-effect regions are retained. In such cases, the optimization must ensure adequate power simultaneously across a large number of small-probability regions, which mathematically inflates the global allocation. These values reflect the strict coverage constraint () rather than numerical instability.
* Structural Complexity and Sample Size
For fixed , increasing knot density increases (Table 2). For example, under for RF at , increases from 156 () to 2,075 ().
This pattern reflects growth in the number of active regions and corresponding fragmentation of probability mass . As increases, the expected allocation becomes smaller for each region unless total increases proportionally. Thus, higher structural complexity requires larger total sample sizes to maintain local power constraints across active compartments.
* Architectural Differences
Differences across RF, SVM, and MLP models in Table 2 are attributable to how each architecture partitions the feature space. Tree-based models tend to induce localized hyperrectangular partitions, while kernel-based or neural architectures produce smoother polyhedral decompositions.
These architectural differences affect: (a) the number of active regions , (b) the distribution of regional probability mass , and (c) the retained volume under filtering. Importantly, observed differences in across architectures reflect structural characteristics of the learned surfaces rather than differences in optimization tolerance. Across all configurations in Table 2, empirical coverage at consistently converges to target coverage () with small variance.
Power Curve Dynamics
Figure 2 illustrates representative volume-weighted coverage trajectories as a function of total sample size . In all cases, coverage increases monotonically with , as expected from the monotonicity of the noncentral -distribution with respect to .
Increasing shifts the coverage curve leftward, reflecting exclusion of low-effect regions. The smooth trajectories and narrow variance bands across proxy initializations confirm that global coverage estimates are numerically stable with respect to proxy approximation variability.
Real-World Empirical Evaluation on UCI Datasets
We evaluated the framework on three benchmark datasets from the UCI Machine Learning Repository: Abalone (), Concrete Compressive Strength (), and BUPA Liver Disorders (). Unlike the synthetic experiments, real-world data introduce two methodological considerations.
First, no analytical ground truth function is available. Accordingly, the framework operates as a post hoc structural diagnostic applied to fitted prediction models rather than as a validation against a known generating mechanism.
Second, uniform grid sampling is inappropriate in empirical datasets due to non-uniform feature distributions and sparsity in high-dimensional space. To approximate the empirical feature manifold while avoiding extrapolation into empty regions, we estimated a Gaussian Mixture Model (GMM) over the observed feature distribution and sampled candidate points from this fitted density. These samples were used to approximate regional probability masses and compute volume-weighted coverage.
For empirical experiments, the global coverage threshold was fixed at , and local power was set to . Optimized sample size estimates and corresponding empirical coverage values are reported in Table 3.
Dataset-Specific Observations
Across datasets, three distinct patterns were observed.
* Concrete Compressive Strength
For the Concrete Strength dataset, remains invariant across all effect size thresholds for each model (e.g., RF: 11,611; SVM: 12,412; MLP: 6,206). This indicates that, under the fitted models, few regions exhibit sufficiently small values to be excluded by increasing . In other words, regional explanatory strength appears relatively homogeneous across the empirical feature manifold.
Differences across architectures are attributable to variations in how each model partitions feature space and distributes regional probability mass. For example, the MLP yields smaller than RF and SVM in this dataset, reflecting differences in induced regional fragmentation and corresponding local allocations . These differences arise from structural characteristics of the learned surfaces rather than from changes in the global coverage constraint.
* BUPA Liver Disorders
In the Liver Disorder dataset, decreases with increasing for RF and SVM models (e.g., SVM:
RF
SVM
MLP
A. Small Effect Threshold ( )

B. Medium Effect Threshold

C. Large Effect Threshold

Figure 2. Volume-weighted coverage power trajectories as a function of total cohort sample size (N) for synthetic benchmarking experiments (d = 2, K = 5). Columns represent the three baseline machine learning architectures: Random Forest (RF, left), Support Vector Machine (SVM, center), and Multi-Layer Perceptron (MLP, right). Rows correspond to increasing regional effect-size filtering thresholds: (A) (small effect size), (B) (medium effect size), and (C) (large effect size). In each panel, solid dark-blue curves depict the estimated coverage obtained via the localized ReLU proxy framework (with shaded 95% empirical variance bands across 10 random proxy initializations), solid dark-red curves denote the ground-truth piecewise linear (CPWL) reference, and dashed horizontal lines mark the target 90% global coverage threshold ( ). As increases, low-signal regions are excluded from the active partition , shifting coverage curves leftward and reducing the required global sample size while maintaining rigorous coverage fidelity.
42,642 to 20,620). This behavior mirrors the synthetic experiments: exclusion of low-effect regions reduces the need to simultaneously power multiple weak-signal compartments.
The magnitude of relative to the original dataset size reflects the strict requirement that 80% of the empirical feature manifold achieve local power . In fragmented surfaces with heterogeneous
regional signal strength, satisfying this constraint may require substantial global allocation. These values therefore quantify structural heterogeneity under the fitted model rather than implying infeasibility of the modeling task.
The MLP exhibits minimal variation across thresholds (30,830 to 30,630), suggesting that few regions fall below even the strictest threshold. This indicates comparatively stable regional effect sizes under that architecture.
* Abalone
In the Abalone dataset, architectural differences are more pronounced. The RF model produces constant across thresholds, indicating limited sensitivity to effect-size filtering under the induced partition.
By contrast, the SVM model exhibits a reduction from 49,649 to 38,638 as increases, suggesting the presence of multiple low-effect regions that are excluded under stricter thresholds. The MLP produces consistently large values (approximately 50,000), reflecting substantial fragmentation and/or diffuse regional probability mass under that architecture.
These differences underscore that required sample size is a joint function of (i) the fitted surface geometry, (ii) regional probability mass distribution, and (iii) the imposed global coverage constraint.
Stability of Empirical Coverage Estimates
Across all datasets and architectures, empirical coverage at converges to approximately 0.80 with relatively small variance (Table 3). This consistency indicates that the optimization routine reliably identifies the crossing point where volume-weighted coverage meets the specified threshold.
Because empirical integration relies on GMM-sampled feature densities, minor variability reflects stochastic sampling rather than instability in the optimization procedure. The observed variance bands remain narrow relative to the coverage threshold, supporting numerical stability of the estimation process.
Limitations and Future Work
-
Dependence on Feature Density Estimation: In empirical settings without a known data-generating mechanism, volume-weighted integration relies on sampling from an estimated feature density. In this study, a Gaussian Mixture Model (GMM) was used to approximate the empirical feature distribution. Although this approach reduces extrapolation into unsupported regions of the feature space, results may be sensitive to density misspecification. Rare but structurally important subregions may be underrepresented if not adequately captured by the mixture model. Future work will investigate alternative density estimators, including nonparametric and adaptive sampling strategies, to improve robustness of regional probability mass estimation.
-
Scalability in High Dimensions: The proxy-based decomposition relies on the piecewise linear structure of ReLU networks. As dimensionality increases, the number of induced linear regions may grow rapidly with network depth and width. This expansion increases both memory and computational demands during regional enumeration and volume integration. Practical deployment in very high-dimensional settings may therefore require architectural constraints, dimensionality reduction, or region-clustering approximations to maintain tractable optimization.
-
Extension to Classification and Alternative Outcome Models: The primary formulation presented in the main text anchors local power estimation on continuous outcomes using classical multiple regression assumptions and noncentral -test mechanics. However, many biomedical and clinical applications involve binary classification outcomes (e.g., disease diagnosis, 30-day readmission, or treatment response).
To accommodate binary classification tasks, the localized power framework extends directly to multiple logistic regression models by substituting large-sample normal approximations for regional log-odds coefficients. Within each induced polyhedral region , the proxy network defines a locally linear log-odds surface, enabling local sample size requirements to be calculated via regional variance inflation factors () and regional event probabilities (). Monotonic volume-weighted coverage optimization is then applied analogously to derive the global sample size . A complete mathematical derivation and empirical validation matrix for logistic regression classification tasks are detailed in the Supplementary Material (Appendix S1, Table 4). Extending localized power mapping to time-to-event endpoints (Cox survival models) and correlated longitudinal structures represents an active direction for future research.
Conclusion
We present a framework for estimating sample size requirements for nonlinear machine learning prediction models by leveraging the continuous piecewise linear structure of ReLU networks. By decomposing complex prediction surfaces into locally linear regions, the approach enables region-specific power calculations that are subsequently aggregated through a volume-weighted coverage criterion.
Across synthetic and empirical evaluations, the framework produces internally consistent sample size estimates that reflect structural characteristics of the fit-
Table 3. Optimized Global Sample Size Requirements () and Empirical Power Convergence Metrics () across UCI Repository Manifolds
| Dataset | Dim () | Model | Optimized Global Sample Size Requirement (Power: ) | ||
|---|---|---|---|---|---|
| (Small Effect) | (Medium Effect) | (Large Effect) | |||
| Liver | RF | 43843 () | 39639 () | 35235 () | |
| Disorder | 5 | SVM | 42642 () | 29629 () | 20620 () |
| MLP | 30830 () | 30830 () | 30630 () | ||
| RF | 11611 () | 11611 () | 11611 () | ||
| Concrete | |||||
| Strength | 8 | SVM | 12412 () | 12412 () | 12412 () |
| MLP | 6206 () | 6206 () | 6206 () | ||
| Abalone | 8 | RF | 8008 () | 8008 () | 8008 () |
| SVM | 49649 () | 38638 () | 38638 () | ||
| MLP | 50050 () | 49649 () | 49649 () | ||
ted prediction surface, including effect size heterogeneity and regional fragmentation. The method also provides insight into how model architecture influences regional partitioning and corresponding sample size requirements.
Rather than replacing classical power analysis, this approach extends its applicability to nonlinear predictive settings where global parametric assumptions are not appropriate. With further refinement of density estimation and scalability components, the framework may serve as a complementary tool for study planning in settings involving complex machine learning models.
Funding
This research was partially supported by the Wellcome Trust [grant number: 303030/Z/23/Z], the National Health and Medical Research Council (NHMRC) Centre of Research Excellence in Depression Treatment Precision (grant number: 2024796) and the NHMRC Synergy Grant (grant number: 2026505).
References
-
Cohen J. Statistical power analysis for the behavioral sciences. routledge; 2013.
-
Balki I, Amirabadi A, Levman J, Martel AL, Emersic Z, Meden B, et al. Sample-size determination methodologies for machine learning in medical imaging research: a systematic review. Canadian Association of Radiologists Journal. 2019;70(4):344-53.
-
Figueroa RL, Zeng-Treitler Q, Kandula S, Ngo LH. Predicting sample size required for classification performance. BMC medical informatics and decision making. 2012;12(1):8.
-
Rajput D, Wang WJ, Chen CC. Evaluation of a decided sample size in machine learning applications. BMC bioinformatics. 2023;24(1):48.
-
Ghasemzadeh H, Hillman RE, Mehta DD. Toward generalizable machine learning models in speech, language, and hearing sciences: Estimating sample size and reducing overfitting. Journal of Speech, Language, and Hearing Research. 2024;67(3):753-81.
-
Riley RD, Ensor J, Snell KI, Harrell FE, Martin GP, Reitsma JB, et al. Calculating the sample size required for developing a clinical prediction model. Bmj. 2020;368.
-
Gaines BB, Bi J. Characterizing the Discrete Geometry of ReLU Networks. In: The Fourteenth International Conference on Learning Representations; 2026.
-
Hsieh FY, Bloch DA, Larsen MD. A simple method of sample size calculation for linear and logistic regression. Statistics in medicine. 1998;17(14):1623-34.
Supplementary Material
Extension to Multiple Logistic Regression Tasks
To extend the proposed framework beyond continuous outcomes, we outline an adaptation for multiple logistic regression models with binary responses . In many clinical applications, interest centers on estimating the effect of a target covariate while adjusting for additional predictors. Classical sample size calculations for multivariable logistic regression are typically derived using large-sample normal approximations and may require iterative procedures or simplifying assumptions.
Leveraging the continuous piecewise linear (CPWL) proxy network, the feature space is partitioned into polyhedral regions . Within each region , the proxy induces a locally linear representation of the log-odds surface. This localized structure enables region-specific application of large-sample approximations for logistic regression power calculations.
Localized Sample Size Estimation
Within a given active region , consider estimation of the coefficient associated with . Following the normal approximation described by Hsieh et al. , the baseline sample size required to detect a log-odds coefficient with two-sided significance level and target power is
where and denote standard normal quantiles, is the localized log-odds slope within region , and is the regional event probability.
To account for correlation between and the remaining covariates , the variance of the estimated coefficient is inflated by a regional variance inflation factor (VIF):
where is the squared multiple correlation coefficient obtained by regressing on within region .
Operationally, is estimated via localized ordinary least squares (OLS). Let denote the sum of squared residuals from regressing on the remaining covariates within region , and let denote the corresponding total sum of squares. Then,
The multivariable regional sample size requirement becomes
These expressions rely on standard large-sample approximations for logistic regression and are therefore most appropriate when regional sample allocations are not extremely small.
Local and Global Power Aggregation
Let denote a candidate global sample size. Under the empirical feature distribution, each region has probability mass . The expected allocation within region is .
Using the normal approximation, the localized statistical power for detecting can be expressed as
where denotes the standard normal cumulative distribution function.
A region is considered adequately powered if . Global coverage is then defined analogously to the regression case:
where denotes the geometric volume of region and is an indicator function.
The required global sample size is defined as
This extension preserves the localized decomposition and volume-weighted aggregation structure of the regression framework while adapting the power calculation to large-sample logistic regression theory.
Table 4. Optimized Global Sample Size Requirements () and Empirical Power Convergence Metrics () for Logistic Regression across Synthetic Linear Piecewise Benchmarks.
| Dim (d) | Knots (K) | Model | Optimized Global Sample Size Requirement [Power: ] | ||
|---|---|---|---|---|---|
| (Small Effect) | (Medium Effect) | (Large Effect) | |||
| 2 | 5 | RF | 1615 (0.83 0.04) | 1615 (0.85 0.07) | 1555 (0.80 0.11) |
| SVM | 1245 (0.81 0.08) | 1245 (0.81 0.08) | 1245 (0.81 0.08) | ||
| MLP | 3246 (0.80 0.10) | 1435 (0.83 0.08) | 1175 (0.81 0.17) | ||
| 2 | 7 | RF | 2056 (0.80 0.08) | 1820 (0.81 0.05) | 1595 (0.81 0.09) |
| SVM | 4532 (0.80 0.14) | 4532 (0.80 0.14) | 1920 (0.80 0.08) | ||
| MLP | 1725 (0.83 0.09) | 1545 (0.81 0.11) | 1125 (0.81 0.09) | ||
| 2 | 13 | RF | 555 (0.81 0.17) | 420 (0.80 0.05) | 420 (0.80 0.05) |
| SVM | 845 (0.81 0.11) | 845 (0.81 0.11) | 695 (0.81 0.12) | ||
| MLP | 690 (0.80 0.07) | 690 (0.81 0.06) | 655 (0.80 0.08) | ||