AP Statistics · Unit 3 · Inference for Categorical Data: Proportions
3.13 Carrying out a two-proportion test
Calculate the z statistic for a two-proportion test, find and interpret its p-value, and write a conclusion in context.
1/5The test statistic measures a difference in standard errors
- The test statistic measures a difference in standard errors
- The standard error uses the combined proportion
- The p-value is a tail area under the standard normal curve
- A small p-value is evidence against the null hypothesis
- A conclusion links the p-value to the claim in context
- Check your recall
- Practice: 10 questions
Part 1 of 5: The test statistic measures a difference in standard errors
A two-proportion test starts with a gap between two sample proportions. We need to judge whether that gap is large compared with ordinary sampling variation. The test statistic does this by converting the gap into a standardized score.
If is true, the difference between the population proportions is 0. So the statistic subtracts 0 from . It then divides by the standard error, which estimates how much varies from sample to sample.
Key terms · tap one for its definition
test statistic
The test statistic is a standardized value, computed from sample data, that measures how far a result is from the null hypothesis value in standard errors.
standard error
The standard error is the estimated standard deviation of a statistic, here of , across repeated samples.
Part 2 of 5: The standard error uses the combined proportion
To finish the formula, we need the standard error. Because says both populations share one proportion, we estimate it by combining the samples. Find , the overall proportion of successes in both samples.
The statistic is . Larger samples shrink the standard error, so the same gap produces a larger .
Every part of the formula is a proportion or a count, so has no units. A value near 0 means the samples differ little. A value far from 0, in either direction, means a surprising gap.
Worked example
Calculating z
- Sample proportions: and .
- Combined proportion: .
- Standard error: .
- Statistic: .
Answer: . The sample difference is about 2.56 standard errors above 0.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 5: The p-value is a tail area under the standard normal curve
A z value of 2.56 means little until we know how unusual it is. The p-value is a probability calculated assuming is true. It is the chance of a difference at least as extreme as the one observed. We find it as an area under the standard normal curve.
The alternative hypothesis decides which tail to use:
- For , use the area to the right of
- For , use the area to the left of
- For , double the area in one tail
For and a two-sided alternative, each tail has area about 0.005. The p-value is about 0.010.
Key term
p-value
The p-value is the probability, assuming the null hypothesis is true, of a test statistic at least as extreme as the one observed in the direction of the alternative.
Part 4 of 5: A small p-value is evidence against the null hypothesis
With a p-value in hand, we compare it with a cutoff. The significance level, , is that cutoff, chosen before the test. Common choices are 0.05 and 0.01.
If the p-value is less than , we reject . Otherwise, we fail to reject . A small p-value means the data would be unlikely if were true.
Interpret the p-value in context. Suppose the two campuses had the same true proportion of bus riders. There would be about a 1.0% chance of sample proportions at least this far apart.
Key term
significance level
The significance level, , is the p-value cutoff chosen before the test, below which the null hypothesis is rejected.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 5 of 5: A conclusion links the p-value to the claim in context
The last step turns the decision into a sentence about the populations. A complete conclusion has three parts:
- Compare the p-value with
- State the decision about
- Say what it means, in context, about
For the campus example, , so we reject . There is convincing evidence that the true proportions of bus riders differ between the two campuses.
Check your recall[13 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Calculate[3 marks]
Calculate the z statistic for testing when 45 of 90 individuals in sample 1 and 30 of 110 individuals in sample 2 are successes.
Show mark schemeHide mark scheme
Model answer
, and . The standard error is . So .
- 1 mark for finding the combined proportion
- 1 mark for calculating the standard error
- 1 mark for obtaining
- 2.Determine[2 marks]
Determine the p-value for when .
Show mark schemeHide mark scheme
Model answer
The area to the right of 3.30 is about 0.0005. Doubling it for the two-sided alternative gives a p-value of about 0.001.
- 1 mark for finding a one-tail area of about 0.0005
- 1 mark for doubling it to get about 0.001
- 3.Interpret[2 marks]
Interpret a p-value of 0.010 in a test of whether the proportion of bus riders differs between two campuses.
Show mark schemeHide mark scheme
Model answer
If the true proportions of bus riders were equal at the two campuses, there would be about a 1.0% chance of sample proportions at least this far apart.
- 1 mark for assuming the true proportions are equal
- 1 mark for stating a probability of about 0.010 of a difference at least this extreme
- 4.Justify[2 marks]
Justify a conclusion in context for a test of whether the proportion preferring online tutoring differs from the proportion preferring in-person tutoring, when the p-value is 0.036 and .
Show mark schemeHide mark scheme
Model answer
Because , we reject . There is convincing evidence that the true proportions preferring online and in-person tutoring differ.
- 1 mark for comparing the p-value with to reject
- 1 mark for concluding in context that the proportions differ
- 5.Explain[2 marks]
Explain why the standard error in a two-proportion z-test uses the combined proportion.
Show mark schemeHide mark scheme
Model answer
The null hypothesis says both populations have the same proportion. Combining both samples uses all the data to estimate that one shared value.
- 1 mark for stating that the null hypothesis claims equal proportions
- 1 mark for explaining that the samples are combined to estimate the common proportion
- 6.Describe[2 marks]
Describe what it means to fail to reject the null hypothesis in a two-proportion test.
Show mark schemeHide mark scheme
Model answer
The data do not give convincing evidence that the population proportions differ. This does not prove that the proportions are equal.
- 1 mark for stating that there is not convincing evidence of a difference
- 1 mark for stating that this does not prove the proportions are equal

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: B · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: A · Worked explanation
MediumIdentify[2 marks]
Show answer and explanation
Answer: B · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardPredict[2 marks]
Show answer and explanation
Answer: C · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation