AP Statistics · Topic 3.13 · Unit 3
AP Stats 3.13: Carrying Out a Two-Prop Test
By Jude Wallis · Published
The two-sample z-statistic for a difference in proportions is (p-hat-1 minus p-hat-2) divided by the pooled standard error sqrt(p-hat-c(1-p-hat-c)(1/n1 + 1/n2)). Find the p-value from the standard normal distribution, then compare it to alpha.
AP Statistics: Unit 3 (topics 3.13). CED topic 3.13 (Carrying Out a Test for the Difference Between Two Population Proportions), skills 3.E, 4.F, 4.G.
What topic 3.13 covers
Topic 3.13 completes the two-proportion test set up in topic 3.12. You calculate the test statistic with the pooled proportion, find the p-value from the standard normal distribution, and state a conclusion in context. The general form remains , where the parameter difference under the null is 0. The observed difference sits in the numerator, and the pooled standard error sits in the denominator.
The test statistic
The two-sample z-statistic is
where is the combined proportion of successes from topic 3.12. The denominator is the pooled standard error, built under the assumption that the two proportions are equal. When the null is true, this follows a standard normal distribution, so the same z-table and technology from the one-proportion test apply here.
p-value and conclusion
Find the p-value from the standard normal distribution using the direction of : one tail for a one-sided alternative, both tails for a two-sided one. Compare it to the significance level . If the p-value is at most , reject and conclude there is convincing evidence of a difference; if it is larger, fail to reject. State the conclusion in context with non-definitive language, referencing the parameters and the two populations.
Test and interval should agree
For a two-sided test at level , the decision usually matches the corresponding confidence interval from topic 3.10 at confidence level . When the interval excludes 0, the two-sided test at that level rejects the null, and when the interval contains 0, the test fails to reject. The agreement is not always exact for proportions, because the test pools the standard error while the interval does not, but the two methods tell a consistent story.
Reporting both the test decision and the interval gives a fuller answer than either alone. When your test and interval seem to disagree, recheck the pooled standard error first, since using the unpooled version by mistake is the usual cause. Confirm as well that the confidence level and significance level are matched, for example a 95% interval against a test at the 0.05 level.
Two-sample z-test for a difference in proportions
Group 1 has 48 successes in 200 trials; group 2 has 30 successes in 150 trials. Test against at .
Sample proportions: and ; difference .
Pooled proportion: .
Pooled standard error: .
Test statistic: .
p-value (two-sided): .
Compare: .
Because the p-value 0.373 is greater than 0.05, fail to reject . There is not convincing evidence that the two population proportions differ.
Frequently asked questions
Which p-hat goes in the standard error, the pooled one or each group's?
For the test statistic, use the pooled proportion in the standard error, because the null assumes the two proportions are equal. The individual and appear only in the numerator as the observed difference.