Inference for Two Population Proportions
Inference for two population proportions: intervals and tests
The parameter and its estimate
Two populations (or two treatment groups) have success proportions p1 and p2. From independent samples, x1 successes out of n1 and x2 out of n2, compute p̂1 = x1/n1 and p̂2 = x2/n2. The parameter is p1 − p2, and its point estimate is p̂1 − p̂2.
Conditions
- Randomness and independence: two independent random samples, or random assignment to two groups. Individuals should not be paired across groups.
- 10% condition: when sampling without replacement, each sample is at most about 10% of its population.
- Large counts: the sampling distribution of p̂1 − p̂2 is close to normal when each group has enough successes and failures. Many courses require at least 10 of each (some use 5). For an interval, check x1, n1 − x1, x2 and n2 − x2. For a test, the pooled expected counts are also used. When the counts are too small, use an alternative such as an exact or simulation-based method, or an adjusted interval like Agresti–Caffo.
Confidence interval for p1 − p2
(p̂1 − p̂2) ± z* √( p̂1(1 − p̂1)/n1 + p̂2(1 − p̂2)/n2 )
The standard error combines the variance from both samples. The margin of error for a single proportion is too small for a difference, because both estimates vary. The interval makes no assumption that p1 = p2, so each group's own p̂ is used.
Hypothesis test of H0: p1 = p2
If H0 is true, both samples come from populations with the same proportion p. The best estimate of that common value combines both samples.
p̂ = (x1 + x2)/(n1 + n2), SE0 = √( p̂(1 − p̂)(1/n1 + 1/n2) ), z = (p̂1 − p̂2)/SE0
Find the P-value from the standard normal distribution, in the direction given by Ha. A two-sided alternative doubles the one-tail area.
Worked example
Group 1: 72 of 120 (p̂1 = 0.60). Group 2: 55 of 110 (p̂2 = 0.50). Estimated difference: 0.10.
- 95% interval: SE = √(0.60 × 0.40/120 + 0.50 × 0.50/110) = √(0.002000 + 0.002273) ≈ 0.0654. Margin = 1.96 × 0.0654 ≈ 0.128. Interval ≈ (−0.028, 0.228).
- Two-sided test: p̂ = 127/230 ≈ 0.552. SE0 = √(0.552 × 0.448 × (1/120 + 1/110)) ≈ 0.0656. z ≈ 0.10/0.0656 ≈ 1.52, and the P-value ≈ 0.13.
The two methods lead to the same conclusion. The interval contains 0, and the test does not reject H0 at α = 0.05. Their standard errors differ slightly because each is built for its own purpose.
Interpreting results
- A small P-value is evidence that the population proportions differ. It is not a measure of how large the difference is. Report an interval for the size.
- Failing to reject H0 does not show that the proportions are equal.
- With random assignment, a significant difference can be attributed to the treatment for the participants studied. With observational samples, it shows an association, and confounding remains possible.
In a two-proportion z test of H0: p1 = p2, the standard error is computed from the pooled proportion p̂ = (x1 + x2)/(n1 + n2). A confidence interval for p1 − p2 from the same data uses p̂1 and p̂2 separately. Why does the test pool?
A researcher plans a 95% confidence interval for p1 − p2 from two independent random samples:
- Sample 1: 56 successes out of 60
- Sample 2: 60 successes out of 80
Which statement about the conditions for the usual large-sample z interval is correct?