| Compare two groups: event rates | Fleiss formula, normal approximation, no continuity correction. Optional simplified pooled-variance formula. | Fleiss, Levin & Paik, Statistical Methods for Rates and Proportions, 3rd ed., 2003 | G*Power's normal-approximation (z) test for two independent proportions, which uses the same method. G*Power's exact tests give somewhat larger samples. |
| Compare two groups: averages | Exact two-sample t-test (noncentral t distribution), equal groups, common standard deviation. | Chow, Shao & Wang, Sample Size Calculations in Clinical Research, 2nd ed., 2008; as in G*Power 3 (Faul et al., 2007) | statsmodels TTestIndPower; G*Power's published method |
| Estimate how common something is | n = Z² p(1 − p) / d², simple random sampling, no finite-population correction. | Lwanga & Lemeshow, Sample Size Determination in Health Studies, WHO, 1991 | Independent recalculation (default example: 246) |
| Estimate an average | n = Z² SD² / d², normal approximation, simple random sampling. | Daniel & Cross, Biostatistics: A Foundation for Analysis in the Health Sciences, 10th ed., 2013 | Independent recalculation |
| Evaluate a diagnostic test | Buderer method: the larger of the samples needed for sensitivity and for specificity. | Buderer, Acad Emerg Med 1996;3(9):895–900 | Independent recalculation (default example: 692) |
| All designs: dropout | n ÷ (1 − dropout), rounded up. | Standard adjustment | Independent recalculation |