AP® Statistics · Unit 3 · Topic 3.13
Carrying Out a Two-Proportion z-Test
A two-proportion z-test checks whether two groups truly differ by pooling their data into one combined proportion, using it to build the standard error, then converting the observed gap into a z statistic and p-value.
The null hypothesis for this test claims the two population proportions are equal: p1 = p2. If that is true, there is really just one proportion underneath both samples, so the best estimate of it combines both samples into a pooled proportion, p-hatc = (x1 + x2) / (n1 + n2). Using this pooled value in the standard error, instead of each sample's own p-hat, makes the test assume the null hypothesis is correct while it checks how surprising the observed difference is. That assumption tightens the standard error compared to using separate proportions, which makes the test more sensitive to picking up a real difference.
The pooled standard error is SE = √(p-hatc(1-p-hatc)(1/n1 + 1/n2)). The z statistic is z = (p-hat1 - p-hat2) / SE, the observed gap between sample proportions divided by that pooled SE. Once you have z, the p-value comes from the standard normal curve: two-sided tests double the tail area beyond |z|, one-sided tests use just one tail, matching the direction stated in the alternative hypothesis.
This test is the natural next step after the one-proportion z-test and the two-proportion confidence interval: the interval estimates the size of a difference, while this test asks whether a difference exists at all, and the pooling step is the one piece that separates testing from estimating. It also sets up chi-square tests for comparing more than two groups, which extend this same logic of comparing observed proportions to what a shared null proportion would predict.
Key terms
- Pooled proportion
- The combined success rate from both samples, used as the shared estimate under the null hypothesis of equal proportions.
- Pooled standard error
- The standard error of the difference in sample proportions, computed using the pooled proportion rather than each sample's own.
- z statistic
- The number of pooled standard errors the observed difference in sample proportions falls from zero.
- p-value
- The probability of seeing a difference as extreme as observed, or more extreme, if the null hypothesis of equal proportions is true.
Watch it explained
Check yourself
End of topic.