Two-proportion z-test
The two-proportion z-test compares two population proportions, such as conversion rates in two markets, using a pooled proportion and the normal approximation to compute a z-statistic. A large z indicates a real difference.
See it move
Market A converts 60 of 400 visitors, Market B converts 42 of 350. Pooling gives p̂ = 102/750 = 0.136, with a standard error of 0.0251. The z-statistic, (0.150 − 0.120) ÷ 0.0251, equals 1.20 — well below the 1.96 critical value, so the 3-point gap in conversion rates is not statistically significant.
The formula
Variables
- Number of successes in sample 1
- Number of successes in sample 2
- Size of sample 1
- Size of sample 2
Combines both samples into one estimate of the common proportion assumed under the null hypothesis.
Variables
- Sample 1 proportion
- Sample 2 proportion
- Pooled proportion
- Size of sample 1
- Size of sample 2
Standardises the observed difference in sample proportions to compare against the standard normal distribution.