Loading…
Two-sample z-interval and z-test for the difference in two population proportions p1 - p2, including conditions and pooled vs unpooled SE.
Learn step-by-step with practice exercises built right in.
Comparing proportions between two populations—such as treatment vs. control groups, or two demographic groups—is a common inferential task. We use two-sample z-procedures to estimate and test the difference .
Let and be the true proportions in two independent populations. We draw independent samples of sizes and , obtaining sample proportions and .
We focus on the difference .
When conditions are met, is approximately Normal with:
For a confidence interval, we use the unpooled standard error:
Confidence Interval:
Where is the critical value (e.g., for 95% confidence).
For a hypothesis test (usually testing ), we use a pooled standard error that assumes the null hypothesis:
Test Statistic:
Compare to the standard Normal distribution to find the p-value.
Both methods require:
| Condition | Requirement |
|---|---|
| Random samples | Both samples randomly selected. |
| Independence | Samples independent; within samples, and . |
| Large Counts (CI) | , , , . |
| Large Counts (Test) | , , , . |
In a clinical trial:
Construct a 95% confidence interval for .
Check conditions:
Calculate unpooled SE:
95% CI (z = 1.96):*
We are 95% confident that is between 0.028 and 0.272 (2.8% to 27.2% difference).
Test vs. at using the data above.
Calculate pooled proportion:
Calculate pooled SE:
Test statistic:
p-value (two-tailed):
Since , we reject . Significant evidence that .
⚠️ Pooled vs. Unpooled: Use unpooled SE for confidence intervals (we estimate both and separately). Use pooled SE for hypothesis tests under (assumes they are equal).
⚠️ Forgetting the 10% Condition: Always check within each population to ensure independence of observations.
⚠️ Large Counts with Pooled Proportion: For tests, check counts using , not individual .
💡 TI-84 / TI-Nspire: Use 2-PropZInt for confidence intervals and 2-PropZTest for hypothesis tests. Input , , , and the alternative hypothesis. The calculator will compute the interval or test statistic automatically.
A survey shows 60% of 200 men and 55% of 250 women favor a ballot measure. Find a 90% confidence interval for the difference .
Sample proportions:
Check Large Counts:
Unpooled SE:
90% CI (z = 1.645):*
We are 90% confident the true difference is between −3.3% and 13.3%.
A drug trial: 48 of 150 patients in the treatment group recovered, versus 35 of 150 in the control group. Test vs. at .
Sample proportions:
Pooled proportion:
Check Large Counts (with pooled):
Pooled SE:
Test statistic:
p-value (one-tailed, ):
Since , we reject . Significant evidence that treatment is more effective.
To detect a difference of at least 10 percentage points between two proportions (, ) with 80% power at (two-tailed), approximately how many participants are needed in each group?
This is a sample size calculation for a two-sample proportion test. Use the formula:
Values:
Compute:
Answer: Approximately 384 participants per group (768 total) are needed.
Avoid these 3 frequent errors
Review key concepts with our flashcard system
Explore more AP Statistics topics