Key insight: The distributions under H₀ and H₁ must be separated enough that:
- The critical value from H₀ cuts off α (Type I error)
- The critical value from H₁ cuts off β (Type II error)
The distance between distributions (in standard error units) must span both critical values:
\[\frac{\delta}{SE} = z_\alpha + z_\beta\]
Since \(SE = \frac{\sigma}{\sqrt{n}}\), we have:
\[\frac{\delta}{\sigma/\sqrt{n}} = z_\alpha + z_\beta\]
Solving for n: \[\sqrt{n} = \frac{(z_\alpha + z_\beta) \cdot \sigma}{\delta}\]
Square both sides: \[n = (z_\alpha + z_\beta)^2 \left(\frac{\sigma}{\delta}\right)^2\]