Abstract: The issue of sample size determination is crucial for constructing an effective machine learning model. However, the existing methods for determining a sufficient sample size are either not strictly proven, or relate to the specific statistical hypothesis about the distribution of model parameters. In this paper we present two approaches based on the proximity of posterior distributions of model parameters on similar subsamples. We show that these two methods are valid for the model with normal posterior distribution of parameters. Computational experiments demonstrate the convergence of the proposed functions as the sample size increases. We also compare the proposed methods with other approaches on different datasets.
- [2025/01/07] Paper was published in Computational Management Science journal.
- [2024/12/30] Paper was accepted to be published in Computational Management Science journal.
- [2024/03/28] Paper and Code were released.
This repository is structured as follows:
code
: The computational experiments code with its ownREADME.md
paper
: Preprintmain.pdf
with source LaTeX filemain.tex
.
To compare our proposed methods with baselines, we used the following experiment setup.
We have chosen 4 open-source datasets with regression task:
- Boston,
- Diabetes,
- Forestfires,
- Servo.
We have applied 9 different baseline methods of sample size estimation on them:
- Lagrange Multipliers Test,
- Likelihood Ratio Test,
- Wald Test,
- Cross Validation,
- Bootstrap,
- Average Posterior Variance Criterion (APVC),
- Average Coverage Criterion (ACC),
- Average Length Criterion (ALC),
- Utility function.
Default parameters values were used for this purpose. All these methods were utilized with the help of SampleSizeLib.
Methods and sample sets | Boston | Diabetes | Forest Fires | Servo |
---|---|---|---|---|
Lagrange Multipliers Test | 18 | 25 | 44 | 38 |
Likelihood Ratio Test | 17 | 25 | 43 | 18 |
Wald Test | 66 | 51 | 46 | 76 |
Cross Validation | 178 | 441 | 171 | 120 |
Bootstrap | 113 | 117 | 86 | 60 |
APVC | 98 | 167 | 351 | 20 |
ACC | 228 | 441 | 346 | 65 |
ALC | 98 | 267 | 516 | 25 |
Utility function | 148 | 172 | 206 | 105 |
KL (ours) | 493 | 437 | 86 | 165 |
S (ours) | 28 | 22 | 26 | 10 |
The results show that KL-divergence criterion is much more conservative, as it requires more sample size. In contrast, S-sufficiency tells us that an almost minimal number of objects in the sample is required.
We have made a comprehensive analysis of the various sample size determination methods. We have analysed, how the sufficient sample size depends on the available sample set. Particularly, we increased the sample size, and calculated the sufficient one, based on the different methods.
- One can see that S-sufficient sample size is often the minimum one.
The reason lies in the fact that it was developed to compare different machine learning models, in particular for the case of uninformative distributions. This means that if the distributions have a large variance, then the proximity function will be close to one. Because of this, even with a small sample size, the criterion considers it sufficient. - Also, the KL-sufficient sample size tends to require an almost total sample.
In our opinion, this is due to the fact that the Kullback-Leibler divergence is extremely sensitive to changes in the mean and variance of the distributions being compared. Thus, the stabilization of the distance between them occurs quite late.
@article{kiselev2025ssdposterior,
author={Kiselev, Nikita and Grabovoy, Andrey},
title={Sample size determination: posterior distributions proximity},
journal={Computational Management Science},
year={2025},
volume={22},
number={1},
pages={1}
}