Compare the proportions of two independent groups, such as the pass rates of two classes. The test pools both samples to estimate the common proportion under H₀.
z = (p̂₁ − p̂₂) ÷ √( p(1 − p)(1/n₁ + 1/n₂) ), p = (x₁ + x₂) ÷ (n₁ + n₂)
For website experiments, the A/B test calculator adds relative uplift and the sample size you need.
Example
45 of 120 (37.5%) versus 30 of 115 (26.1%): the pooled proportion is 75/235 = 0.319, the SE is 0.0608, z = 1.88 and the two-tailed p = 0.060. The difference is not significant at α = 0.05. Cohen’s h = 0.24 indicates a small effect.