Power and sample size planning
How to choose a sample size large enough to detect a difference that matters, before you collect data.
Power is the probability that a test detects a difference of a given size. Planning the sample size for adequate power is how you avoid studies that cannot answer the question they were run to answer.
The four quantities
Sample size, the difference to detect (), the standard deviation () and the error rates ( and ) are tied together. Fix three and the fourth follows. For comparing two means, roughly:
With and power 0.90, the bracket is about , so detecting a difference of one standard deviation takes about 21 per group, and half a standard deviation about 84.
Practical guidance
- Choose from engineering judgment: the smallest change that would affect fit, function or cost.
- Get from historical data, a control chart or a pilot run.
- Halving the difference to detect quadruples the sample size.
- Better measurement lowers and can be cheaper than more parts.
After the study
A test that found "no difference" with low power tells you very little. Report the confidence interval: if it includes differences that would matter, the study was inconclusive.
Stat > Sample Size calculates sample size, power or detectable difference for t-tests, proportions, ANOVA and DOE.
See also
References
- Montgomery, D. C., and Runger, G. C. Applied Statistics and Probability for Engineers. Wiley.