Power Analysis and Sample Size
Power analysis determines the sample size needed to detect an effect of a given size with a specified probability, balancing the tradeoff between type I and type II errors.
The Power Function
The power function of a test with rejection region is This gives the probability of rejection as a function of the true parameter value :
- For (null): (size constraint)
- For (alternative): (power)
The effect size quantifies the magnitude of the departure from :
- For testing : Cohen's
- Small: , Medium: , Large:
The effect size, along with and , determines the power of the test.
Sample Size Formulas
For a two-sided -test of at level with power at : where is the effect size.
To detect an effect size with (two-sided) and power (, ): For a small effect : .
Multiple Testing
When conducting simultaneous tests at level , the probability of at least one false positive is , which grows rapidly with . The Bonferroni correction tests each at level , controlling the family-wise error rate (FWER). For large (e.g., genomics), the Benjamini-Hochberg procedure controls the false discovery rate (FDR) , which is less conservative and more powerful.