3.10 - Constructing a Confidence Interval for the Difference Between Two Population Proportions
Overview
When you want to estimate how much two population proportions differ, the single number isn't enough, because it changes from sample to sample. A confidence interval gives a range of plausible values for the true difference . This topic covers choosing the procedure, checking its conditions, and calculating the interval, its standard error, and its margin of error. Interpreting the interval and using it to support a claim come next, in Topic 3.11.
The procedure and the parameters
Based on sample data, a confidence interval can estimate the difference between two population proportions. The procedure is a two-sample -interval for a difference between population proportions.
The parameters must be defined in context. Name the difference in proportions, the response variable, and both populations. For example: ", where is the true proportion of all rural adults in the state who have a library card and is the true proportion of all urban adults in the state who have a library card."
The order you subtract in only changes the sign of the answer, so pick one order and use it everywhere.
Conditions
A two-sample -interval for requires three conditions:
- Randomization condition: the data should be collected using two independent random samples or a randomized experiment.
- 10% condition: when sampling without replacement, each sample size must be at most 10% of its population size: and . This condition isn't needed when the data come from a randomized experiment.
- Normality condition: the numbers of observed successes, and , and observed failures, and , are all at least 10.
Why observed counts? To build an interval we don't know or (that's the point of estimating them), so we check the counts we actually saw in each sample. Compare this with Topic 3.9, where the true proportions were known.
Calculating the interval
The point estimate for is . Like every interval in AP Statistics, the interval has the form
For the difference between two population proportions, that's
This matches the formula sheet's general form: statistic (critical value)(standard error of statistic).
Standard error
The standard error of the difference is
It's the standard deviation from Topic 3.9 with the unknown and replaced by the sample proportions. It estimates how far typically is from the true difference .
Margin of error
The margin of error (MOE) is the critical value times the standard error:
The critical value comes from the confidence level, the same way as in Topic 3.3:
Confidence level | 90% | 95% | 99% |
Critical value |
For any other level, use
invNorm. For 95% confidence, the middle 95% leaves in each tail, so invNorm(0.975, 0, 1) .A higher confidence level means a larger and a wider interval. Larger samples mean a smaller standard error and a narrower interval.
Example 1: Library cards (AP-style)
A state library system wants to estimate the difference between the proportions of rural and urban adults in the state who have a library card. It selects a random sample of 300 rural adults and an independent random sample of 400 urban adults. In the samples, 141 rural adults and 236 urban adults have a library card. Construct a 95% confidence interval for the difference.
State: We want to estimate , where is the true proportion of all rural adults in the state who have a library card and is the true proportion of all urban adults in the state who have a library card, with 95% confidence.
Plan: Two-sample -interval for . Check the conditions:
- Randomization: two independent random samples.
- 10%: 300 is less than 10% of all rural adults in the state, and 400 is less than 10% of all urban adults in the state.
- Normality: the counts , , , and are all at least 10.
Do: The sample proportions are and , so the point estimate is .

Conclude: We are 95% confident that the interval from to captures the true difference in the proportions of rural and urban adults in this state who have a library card (rural minus urban). Put simply, the rural proportion is plausibly between 4.6 and 19.4 percentage points lower than the urban proportion.
Calculator check: STAT, TESTS,
2-PropZInt with , , , , and C-Level gives .If you subtract the other way (urban minus rural), the interval becomes . Same information, opposite sign.
Example 2: Reminder emails (randomized experiment)
A dental clinic wants to know whether reminder emails get more patients to book a cleaning. It recruits 360 volunteers who are overdue for a cleaning and randomly assigns 240 of them to get a reminder email and the other 120 to get no reminder. Within 30 days, 108 patients in the email group and 36 in the no-reminder group booked a cleaning. Construct a 90% confidence interval for the difference in the proportions.
State: We want to estimate , where is the true proportion of patients like these who would book a cleaning within 30 days if they got a reminder email and is the true proportion who would book a cleaning within 30 days with no reminder, with 90% confidence.
Plan: Two-sample -interval for .
- Randomization: patients were randomly assigned to the two groups (a randomized experiment).
- 10%: not needed, because the data come from a randomized experiment, not from sampling a population.
- Normality: the counts , , , and are all at least 10.
Do: and , so the point estimate is .
The groups don't have to be the same size. Each term under the square root uses its own group's sample size.
Conclude: We are 90% confident that the interval from to captures the true difference in the proportions of patients like these who book a cleaning within 30 days (email minus no reminder). The volunteers weren't a random sample, so the results apply to patients like the ones in this study. Using an interval like this to back up a claim, such as "reminders work," is the focus of Topic 3.11.
Common mistakes
- Defining the parameter as . The parameter is the difference in the true population proportions, , described in context.
- Not saying which way you subtracted. A negative interval means nothing to a reader who doesn't know the order.
- Checking normality with only one sample, or with proportions instead of counts. All four observed counts must be at least 10.
- Requiring the 10% condition for an experiment, or calling volunteers a random sample.
- Adding standard errors. Add the two variance terms under one square root.
- Pooling the proportions. A confidence interval uses each sample's own . A combined (pooled) proportion is only used in the test for a difference (Topics 3.12 and 3.13).