U6.10 Two-Proportion z-Test
Master the two-proportion z-test for AP Statistics: set up hypotheses, use the pooled proportion in the standard error, compute z, find the p-value, and conclude in context.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on U6.10 Two-Proportion z-Test, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
You already know how to build a two-proportion confidence interval. Now we flip to hypothesis testing: is there real evidence that two population proportions differ? The two-proportion z-test answers exactly that. The one twist that trips students up is the standard error — because the null hypothesis assumes the two proportions are equal, we combine the samples into a single pooled proportion before computing the SE. This lesson walks through hypotheses, the pooled SE, the test statistic, the p-value, and the conclusion, all in the four-step format the exam rewards.
Setting Up the Hypotheses
A two-proportion z-test compares the true proportions of two independent populations, and . Because we are testing for a difference, we write hypotheses about .
The null hypothesis always states there is no difference: , equivalently . The alternative reflects the research question and comes in three flavors:
Define your groups clearly in words (for example, " = true proportion of treated patients who recover") so the direction of is unambiguous. A common mistake is writing hypotheses about sample proportions and ; hypotheses are always about population parameters. State your significance level, commonly , before looking at the data. On the exam, points are awarded for correct parameter definitions and correctly-directed hypotheses, so never skip this step.
The null hypothesis always states there is no difference: , equivalently . The alternative reflects the research question and comes in three flavors:
| Claim | Alternative |
|---|---|
| Proportions differ | |
| Group 1 higher | |
| Group 1 lower |
Why We Pool the Proportion
Here is the defining feature of the test. Under we assume , meaning both samples are estimating the same common proportion. So it makes sense to combine all the successes from both samples into a single best estimate, the pooled (combined) proportion:Here and are the counts of successes and , are the sample sizes. We then use in the standard error for the test statistic:This is the single biggest difference between the two-proportion z-test and the two-proportion z-interval. The confidence interval does NOT pool — it uses each sample's own because it is not assuming the proportions are equal. The test pools because the null hypothesis explicitly assumes equality. Mixing these up is one of the most frequent errors on FRQs. If a count is not given directly, compute it as and round to a whole number of successes.
Computing z and the p-value
With the pooled SE in hand, the test statistic measures how many standard errors the observed difference sits from zero:The numerator uses the actual sample proportions and ; only the SE in the denominator uses the pooled value. The comes from the null value of the difference.
Once you have , find the p-value from the standard normal distribution. For a two-sided , the p-value is . For a one-sided test, use just the appropriate tail. On a calculator this is the 2-PropZTest function, which reports and the p-value directly — but you must still show the formula and inputs to earn full credit.
Before trusting the result, verify conditions: independent random samples (or random assignment), the 10% condition if sampling without replacement, and the large-counts condition. For the test, check the expected counts using the pooled proportion: , , , and should all be at least 10.
Once you have , find the p-value from the standard normal distribution. For a two-sided , the p-value is . For a one-sided test, use just the appropriate tail. On a calculator this is the 2-PropZTest function, which reports and the p-value directly — but you must still show the formula and inputs to earn full credit.
Before trusting the result, verify conditions: independent random samples (or random assignment), the 10% condition if sampling without replacement, and the large-counts condition. For the test, check the expected counts using the pooled proportion: , , , and should all be at least 10.
Concluding in Context
A conclusion is a two-part sentence linking the p-value to the significance level and then to the real-world question.
If the p-value is less than or equal to , reject : there is convincing statistical evidence of a difference. If the p-value is greater than , fail to reject : there is not convincing evidence of a difference. Notice you never "accept" and never "prove" anything.
A full-credit conclusion template: "Because the p-value of ___ is (less than / greater than) , we (reject / fail to reject) . We (do / do not) have convincing evidence that [the proportion of ... differs from the proportion of ...]."
Always name the two groups and the context in the final clause — a bare "reject " earns little. Watch the direction: if was one-sided, your conclusion should reference "greater than" or "less than," not just "different." Finally, remember that failing to reject does not mean the proportions are equal; it means the data did not provide enough evidence to distinguish them.
If the p-value is less than or equal to , reject : there is convincing statistical evidence of a difference. If the p-value is greater than , fail to reject : there is not convincing evidence of a difference. Notice you never "accept" and never "prove" anything.
A full-credit conclusion template: "Because the p-value of ___ is (less than / greater than) , we (reject / fail to reject) . We (do / do not) have convincing evidence that [the proportion of ... differs from the proportion of ...]."
Always name the two groups and the context in the final clause — a bare "reject " earns little. Watch the direction: if was one-sided, your conclusion should reference "greater than" or "less than," not just "different." Finally, remember that failing to reject does not mean the proportions are equal; it means the data did not provide enough evidence to distinguish them.
Key terms
- Two-Proportion z-Test.
- A significance test that assesses whether two independent population proportions differ, using a z statistic based on the difference of sample proportions.
- Pooled Proportion ().
- The combined estimate used in the standard error because the null hypothesis assumes the two proportions are equal.
- Null Hypothesis ().
- The claim of no difference, , meaning the two population proportions are equal.
- Standard Error (pooled).
- , the estimated standard deviation of the difference under .
- p-value.
- The probability, assuming is true, of getting a difference in sample proportions at least as extreme as the observed one.
- Large-Counts Condition.
- For the test, all of , , , must be at least 10 to justify the normal approximation.
Worked example
A researcher tests whether a new flu vaccine reduces infection rates. In a randomized experiment, 30 of 200 vaccinated people got the flu, while 50 of 200 unvaccinated people got the flu. At , is there evidence that the vaccinated group has a lower infection proportion?
Let = true infection proportion for vaccinated and = true infection proportion for unvaccinated. Since we expect the vaccine to lower infection, use a one-sided test.
and .
Sample proportions: and .
Pooled proportion: .
Check conditions: random assignment (experiment); expected counts and for each group, all at least 10.
Standard error: .
Test statistic: .
p-value: for , p-value .
Conclusion: Because , we reject . There is convincing evidence that the true infection proportion is lower for vaccinated people than for unvaccinated people.
and .
Sample proportions: and .
Pooled proportion: .
Check conditions: random assignment (experiment); expected counts and for each group, all at least 10.
Standard error: .
Test statistic: .
p-value: for , p-value .
Conclusion: Because , we reject . There is convincing evidence that the true infection proportion is lower for vaccinated people than for unvaccinated people.
Practice questions
In a two-proportion z-test, why is the pooled proportion used in the standard error instead of the separate sample proportions?
- Because it always produces a smaller standard error
- Because the null hypothesis assumes the two population proportions are equal
- Because it increases the p-value
- Because the sample sizes are unequal
Answer: Because the null hypothesis assumes the two population proportions are equal
The test is conducted assuming is true. Under that assumption both samples estimate one common proportion, so combining them gives the best single estimate, , for the standard error. The confidence interval, which makes no equality assumption, does not pool.
A poll finds that 120 of 400 city residents and 90 of 360 suburban residents support a new tax. Set up the hypotheses and compute the pooled proportion and the test statistic for a two-sided test.
Answer: , ; fail to reject .
Let = city support proportion, = suburban. , . Sample proportions: , . Pooled: . . Then . The two-sided p-value , so fail to reject : not enough evidence of a difference in support.
A student computes a two-proportion z-test and reports 'the p-value is 0.20, so we accept the null hypothesis that the proportions are equal.' Identify and correct the error.
Answer: You never accept ; you fail to reject it, and this does not prove the proportions are equal.
With a large p-value we conclude there is not convincing evidence of a difference, so we fail to reject . This is different from proving true — the data simply could not distinguish the proportions. A correct statement: 'Because 0.20 is greater than , we fail to reject ; we do not have convincing evidence that the two proportions differ.'
FAQ
- When do I pool and when do I not pool the proportions?
- Pool for the two-proportion z-test (hypothesis test), because assumes the proportions are equal. Do NOT pool for the two-proportion z-interval, because a confidence interval does not assume equality — it uses each sample's own .
- What conditions do I need to check for a two-proportion z-test?
- Independence (two independent random samples or two groups from random assignment), the 10% condition if sampling without replacement, and the large-counts condition using the pooled proportion: , , , and must all be at least 10.
- How do I find the counts if the problem only gives proportions?
- Multiply each sample proportion by its sample size: , then round to the nearest whole number since counts of successes must be integers. Use these counts in the pooled proportion formula.
- How is my conclusion graded on the AP exam?
- You must connect the p-value to , state reject or fail to reject , and describe the result in the context of the two groups. A conclusion without context, or one that says you 'accept' or 'prove' the null, loses credit.
Learn this with a teacher, not a page
The Crimsora tutor teaches U6.10 Two-Proportion z-Test live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.