AP® Statistics · Unit 3 · Topic 3.10

Confidence Interval for a Difference of Proportions

A confidence interval for p1 - p2 estimates the size of the gap between two group proportions directly, using one interval built around the sample difference instead of comparing two separate intervals.

When you care about whether two groups differ, the question is about the gap itself, not about each group in isolation. Building one interval around phat1 - phat2 answers that question directly: every value inside the interval is a plausible size for the true difference p1 - p2. Comparing two separate intervals instead and checking whether they overlap throws away information, because that overlap check doesn't account correctly for the combined variability of the two samples.

The point estimate is phat1 - phat2. Each sample proportion has its own variability, phat(1-phat)/n, and because the two samples are independent, their variances add. The standard error is √( phat1(1-phat1)/n1 + phat2(1-phat2)/n2 ). The interval is (phat1 - phat2) ± z·times that standard error, with z* = 1.96 for 95 percent confidence. Conditions still matter: both samples need to be random, independent of each other, and large enough that each group has at least 10 successes and 10 failures.

This builds directly on the one-proportion interval from earlier in the unit, just applied to a new parameter, the difference p1 - p2. It sets up the next step in the unit, the significance test for a difference of proportions, where instead of estimating the gap you test a specific claim about it, usually that p1 - p2 = 0. The interval and the test use the same standard error logic, just aimed at different questions: estimation versus decision.

Key terms

p1 - p2
The parameter being estimated: the true difference between two population proportions.
phat1 - phat2
The point estimate from the two samples, used as the center of the confidence interval.
standard error of a difference
√(phat1(1-phat1)/n1 + phat2(1-phat2)/n2), found by adding the two samples' variances because they are independent.
independence of samples
The condition that the two groups are selected separately from each other so their sampling variability can be added.
contains zero
If the interval for p1 - p2 includes 0, a true difference of zero is plausible, meaning the groups might not differ.

Watch it explained

  1. How it worksWalk me through the standard error for the difference between two sample proportions.
  2. Worked exampleFind the 95 percent interval for the difference when 72 of 150 and 55 of 140 say yes.
  3. Common mistakeWhy isn't overlap between two separate intervals proof that the groups are the same?

Check yourself

Your turn1 of 2
Find the margin of error for a 95% confidence interval for p1 - p2, when 65 of 204 say yes in group 1 and 30 of 211 say yes in group 2. Use z* = 1.96.

End of topic.