Determine the required sample size for comparisons of means or proportions

Leave one of the inputs blank to determine its value. By default the sample size input is left empty and the required sample size is calculated. Note that only one input can be left blank.


Input for a comparison of means

Input for a comparison of proportions

Note: The (matching) ratio of the control group sample size (n1) to the test group sample size (n2) is 1 by default (i.e., groups are of the same size). If no value is provided, a value of 1 is assumed.

1 The significance level, often denoted by \(\alpha\), is the highest probability you are willing to accept of rejecting the null hypothesis when it is actually true. A commonly used significance level is 0.05 (or 5%)

2 \(1 - \alpha\) is called the confidence level. A commonly used confidence level is 0.95 (or 95%)

3 Beta (\(\beta\)), is the probability of accepting the null hypothesis when it is actually false. The power of a test is calculated as 1 - \(\beta\). A commonly used power level is 0.8 (or 80%)

© Vincent Nijs (2016) Creative Commons License