Loading
Quantify uncertainty when comparing success rates across two independent groups.
Statistics has always been driven by the need to make reliable comparisons. When a pharmaceutical company tests a new drug against a placebo, when a political analyst compares voter preferences between two demographic groups, or when an educator examines pass rates across two curricula, the fundamental question is the same: is there a real difference between these two groups, or could the observed gap be due to chance alone? The confidence interval for the difference of two proportions provides a principled framework for answering this question, offering not just a point estimate of the difference but a plausible range of values that accounts for sampling variability.
The intellectual foundations of this method trace back centuries, from early probability theory through the formalization of sampling distributions and the development of modern inferential statistics. Understanding this history reveals why the method works the way it does and why certain conditions must hold for the interval to be valid.
The central question this lesson addresses is: given two independent random samples from two populations, how do we construct an interval estimate for the true difference in population proportions, p1 − p2, and how do we interpret that interval correctly? Mastering this procedure is essential for the AP Statistics exam, where it appears in both multiple-choice and free-response contexts.
Before diving into formulas, it is essential to establish the conceptual pillars that support the two-proportion confidence interval. Each principle below connects sampling theory to the practical mechanics of the procedure. These ideas will recur throughout the lesson, so internalizing them now will make the mathematical framework far more intuitive.
The diagram below illustrates the core idea behind the two-proportion confidence interval. The sampling distribution of p̂₁ − p̂₂ is approximately normal when the large counts condition is satisfied. The interval is centered at the observed difference and extends one margin of error in each direction. The shaded central region represents the confidence level — the proportion of intervals from repeated samples that would capture the true parameter.
Notice that the interval is symmetric about the point estimate p̂₁ − p̂₂. The width of the interval depends on two factors: the critical value z* (which increases with confidence level) and the standard error (which decreases as sample sizes grow). Increasing both n₁ and n₂ shrinks the standard error, producing a narrower — and therefore more informative — interval.
The formula for a two-proportion z-interval follows directly from the general structure of all confidence intervals: point estimate ± (critical value)(standard error). Here we develop each component, explain where the standard error formula comes from, and list the conditions that must be verified before constructing the interval.
Constructing the interval is only half the task; interpreting it correctly is equally important — and a frequent source of lost points on the AP exam. The interpretation must reference the confidence level, the parameter (not the statistic), and the context of the problem. Furthermore, whether the interval contains zero has direct implications for whether there is convincing evidence of a difference between the two population proportions.
A well-written interpretation on the AP exam follows this template: "We are C% confident that the true difference in the proportion of [context for group 1] and the proportion of [context for group 2] who [response] is between (lower bound) and (upper bound)." Notice the three essential components: the confidence level, the parameter in context (referencing both populations and the variable), and the interval bounds. Omitting any of these components risks a deduction.
A researcher wants to compare the proportion of adults who support a proposed policy in City A versus City B. A random sample of 400 adults in City A finds that 220 support the policy. An independent random sample of 500 adults in City B finds that 245 support the policy. Construct a 95% confidence interval for the difference in the proportion of adults who support the policy (City A − City B). There are over 100,000 adults in each city.
Like any statistical procedure, the two-proportion z-interval has both strengths that make it widely useful and limitations that must be understood to apply it responsibly. Recognizing these helps you make informed decisions about when the procedure is appropriate and how to communicate results honestly.
| Strengths | Limitations |
|---|---|
| Provides a range of plausible values rather than a single point estimate, quantifying uncertainty. | Relies on the normal approximation, which may be poor when sample sizes are small or proportions are near 0 or 1. |
| Straightforward to compute by hand or with a calculator; widely supported by technology (TI-83/84, software). | Assumes independent random samples; cannot be applied to matched-pairs or dependent data. |
| Can be used to assess whether a difference exists (check if 0 is in the interval) without a formal hypothesis test. | Width depends on both sample sizes; very large samples can produce misleadingly narrow intervals that highlight trivial differences. |
| Interpretable by a broad audience — easier to communicate than p-values or test statistics. | Does not establish causation; only a randomized experiment (not an observational study) permits causal conclusions. |
The two-proportion z-interval is closely related to the two-proportion z-test, but there is a critical mechanical difference in how the standard error is computed. Understanding this distinction deepens your conceptual grasp and prevents a common AP exam error. Beyond the AP curriculum, the Wald interval has been refined by methods that achieve better coverage in small-sample and extreme-proportion scenarios.
| Feature | Confidence Interval | Hypothesis Test |
|---|---|---|
| Goal | Estimate a plausible range for p₁ − p₂ | Test whether p₁ − p₂ = 0 (or another hypothesized value) |
| Standard Error | Uses individual sample proportions: p̂₁ and p̂₂ separately | Uses the pooled proportion p̂c = (x₁ + x₂)/(n₁ + n₂) |
| Why? | No assumed value for p₁ − p₂; estimate each separately | Under H₀: p₁ = p₂, so pooling gives the best single estimate |
| Output | An interval: (lower bound, upper bound) | A z-statistic and a p-value |
| Relationship | If 0 is not in the C% CI, then the two-sided test at α = 1 − C rejects H₀ | If the test rejects H₀ at α, then 0 is not in the (1 − α) CI |
Looking beyond the AP curriculum, researchers frequently use the Agresti–Caffo interval, which adds one success and one failure to each sample before computing the Wald interval. This simple adjustment dramatically improves coverage when sample sizes are modest. In more advanced settings, logistic regression provides a framework for comparing proportions while controlling for confounding variables — a natural extension of the ideas you are learning here. The foundational logic, however, remains the same: estimate the difference, quantify the uncertainty, and interpret in context.
A confidence interval for the difference of two proportions estimates the parameter p₁ − p₂ using the formula (p̂₁ − p̂₂) ± z* × SE, where the standard error is √[p̂₁(1 − p̂₁)/n₁ + p̂₂(1 − p̂₂)/n₂]. Crucially, the SE uses unpooled sample proportions — unlike the two-proportion z-test, which pools under the null hypothesis.
Before constructing the interval, verify the Random, Independent (10%), and Normal (Large Counts ≥ 10) conditions. When interpreting, state the confidence level, reference the parameter in context, and provide the interval bounds. If the interval does not contain 0, there is convincing evidence of a difference; if it does contain 0, the data are consistent with no difference — but that does not prove the proportions are equal.
Keep learning with more lessons from the same subject.