Confidence Intervals
Difference of Two Proportions
Learn how to construct and interpret confidence intervals for \(\hat{p}_1 - \hat{p}_2\), comparing proportions from two independent groups.
What Are We Comparing?
In many real-world scenarios, we want to compare proportions from two different populations. For example: does a new drug have a higher success rate than a placebo? Do men and women differ in their support for a policy?
Why a Confidence Interval?
A single point estimate \(\hat{p}_1 - \hat{p}_2\) tells us our best guess, but it doesn't capture the uncertainty in our estimate. A confidence interval gives us a range of plausible values for \(p_1 - p_2\).
The Sampling Distribution
When both samples are large enough, the sampling distribution of \(\hat{p}_1 - \hat{p}_2\) is approximately normal by the Central Limit Theorem.
The Core Formula
Conditions to Check
One Proportion vs. Two Proportions
| One Proportion CI | Two Proportion CI | |
|---|---|---|
| Parameter | \(p\) | \(p_1 - p_2\) |
| Point Estimate | \(\hat{p}\) | \(\hat{p}_1 - \hat{p}_2\) |
| Standard Error | \(\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}\) | \(\sqrt{\frac{\hat{p}_1(1-\hat{p}_1)}{n_1}+\frac{\hat{p}_2(1-\hat{p}_2)}{n_2}}\) |
| Large Counts | 2 checks | 4 checks |
| Interpretation | Plausible values for \(p\) | Plausible values for \(p_1 - p_2\) |
Common Critical Values \(z^*\)
| Confidence Level | \(z^*\) | Tail Area \(\alpha/2\) |
|---|---|---|
| 90% | 1.645 | 0.05 |
| 95% | 1.960 | 0.025 |
| 99% | 2.576 | 0.005 |
How to Apply It
Example 1: Drug Trial
A clinical trial randomly assigns 200 patients to a new drug and 200 to a placebo. In the drug group, 120 out of 200 improved. In the placebo group, 90 out of 200 improved. Construct a 95% confidence interval for the difference in improvement rates.
\(\hat{p}_1 = 0.60\)
\(\hat{p}_2 = 0.45\)
Example 1: Conditions and Calculation
Example 1: Interpretation
The entire interval lies above 0, so we have convincing evidence that the drug group has a higher improvement rate.
Example 2: Voter Preferences
A pollster surveys 500 women and 400 men about support for a policy. 280 of 500 women support it, and 220 of 400 men support it. Build a 99% confidence interval for the difference in support rates.
What Affects the Width?
Common Mistakes
Question 1 of 5
In a two-proportion \(z\)-interval, the standard error formula uses:
Question 2 of 5
A 95% confidence interval for \(p_1 - p_2\) is \((-0.08, 0.12)\). What can we conclude?
Question 3 of 5
Which of the following is NOT a required condition for a two-proportion \(z\)-interval?
Question 4 of 5
If \(\hat{p}_1 = 0.72\), \(n_1 = 300\), \(\hat{p}_2 = 0.65\), and \(n_2 = 250\), what is the standard error (rounded to four decimal places)?
Question 5 of 5
Which action will make a confidence interval for \(p_1 - p_2\) narrower?