The biggest mistake engineers make is determining sample sizes. It is not trivial to determine the sample size for a trial without prior knowledge of effect sizes. Instead of waiting for a fixed sample size, I would recommend using a sequential testing framework: set a stopping condition and perform a test for each new batch of sample units.<p>This is called optional stopping and it is not possible using a classic t-test, since Type I and II errors are only valid at a determined sample size. However, other tests make it possible: see safe anytime-valid statistics [1, 2] or, simply, bayesian testing [3, 4].<p>[1] <a href="https://arxiv.org/abs/2210.01948" rel="nofollow noreferrer">https://arxiv.org/abs/2210.01948</a><p>[2] <a href="https://arxiv.org/abs/2011.03567" rel="nofollow noreferrer">https://arxiv.org/abs/2011.03567</a><p>[3]
<a href="https://pubmed.ncbi.nlm.nih.gov/24659049/" rel="nofollow noreferrer">https://pubmed.ncbi.nlm.nih.gov/24659049/</a><p>[4] <a href="http://doingbayesiandataanalysis.blogspot.com/2013/11/optional-stopping-in-data-collection-p.html?m=1" rel="nofollow noreferrer">http://doingbayesiandataanalysis.blogspot.com/2013/11/option...</a>