AP Statistics · Topic 3.12 · Unit 3
AP Stats 3.12: Setting Up a Two-Prop Test
By Jude Wallis · Published
A two-sample z-test for a difference in proportions has null hypothesis p1 equals p2. Verify randomization, the 10% condition, and normality using the combined (pooled) proportion p-hat-c, checking that its expected success and failure counts in both groups are at least 10.
AP Statistics: Unit 3 (topics 3.12). CED topic 3.12 (Setting Up a Test for the Difference Between Two Population Proportions), skills 2.C, 2.E, 4.E.
What topic 3.12 covers
Topic 3.12 sets up a significance test comparing two population proportions. The correct method is the two-sample z-test for the difference between two population proportions. You identify the parameters, state the hypotheses, and verify conditions, saving the test statistic and p-value for topic 3.13. This is the formal-test partner to the confidence interval in topic 3.10, and it uses the same data structure of two independent groups.
Null and alternative hypotheses
The null hypothesis says the two proportions are equal, written or equivalently . The alternative is one-sided, or , or two-sided, . Each can be written as a statement about the difference instead. State the parameters, response variable, and populations in context, and let the research question decide the direction of the alternative.
The pooled proportion and conditions
Because the null assumes the proportions are equal, you estimate that common value by pooling both samples:
the combined proportion of successes. The three conditions are randomization (two independent random samples or a randomized experiment), the 10% condition when sampling without replacement, and normality. For normality, check that , , , and are all at least 10.
Why pooling belongs to the test
Pooling is the feature that separates the two-proportion test from the two-proportion interval. Under the null, the two groups share one true proportion, so combining their successes gives the best single estimate of it and the most accurate standard error for the test. The interval in topic 3.10 makes no equality assumption, so it keeps each group's own instead.
Deciding up front whether you are building an interval or running a test tells you immediately whether to pool, which prevents one of the most common two-proportion errors. It also helps to write the two counts and two sample sizes in a small table before computing, so the successes and totals do not get swapped. A swapped count changes the pooled proportion and every expected count that follows, which can quietly break an otherwise correct setup. Naming the test, stating the parameters, and checking the pooled conditions in that order gives you a reliable routine to repeat on every two-proportion problem.
Pooled proportion and hypotheses
Group 1 has 48 successes in 200 trials; group 2 has 30 successes in 150 trials. Set up a two-sided test and find the pooled proportion for the conditions.
Parameters: and are the true success proportions for the two populations.
Hypotheses: and .
Pooled proportion: .
Normality check: , , , .
The pooled proportion is about 0.2229, and all four expected counts exceed 10, so the normality condition is met and a two-sample z-test is appropriate.
Frequently asked questions
Why pool the two samples for a test but not for a confidence interval?
The test's null hypothesis assumes , so the best estimate of that shared proportion combines both samples. A confidence interval assumes no equality, so it keeps each group's own .