Inference for Two Sample Proportions (CI and Test)
Two-sample z-interval and z-test for the difference in two population proportions p1 - p2, including conditions and pooled vs unpooled SE.
Try the Interactive Version!
Learn step-by-step with practice exercises built right in.
🔍 Inference for Two Sample Proportions (CI and Test)
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 .
Setting Up the Problem
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 .
Sampling Distribution of
When conditions are met, is approximately Normal with:
- Mean:
- Standard deviation: Depends on context (see below)
Two-Sample z-Interval for (Unpooled SE)
For a confidence interval, we use the unpooled standard error:
Confidence Interval:
Where is the critical value (e.g., for 95% confidence).
Two-Sample z-Test for (Pooled SE)
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.
Conditions for Two-Sample z-Procedures
Both methods require:
| Condition | Requirement |
|---|---|
| Random samples | Both samples randomly selected. |
| Independence | Samples independent; within samples, and . |
| Large Counts (CI) | , , , . |
| Large Counts (Test) | , , , . |
Worked Example 1: Two-Sample z-Interval
In a clinical trial:
- Treatment group: 35 successes out of 100 patients →
- Control group: 20 successes out of 100 patients →
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).
Worked Example 2: Two-Sample z-Test
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 .
Common Pitfalls
⚠️ 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 .
Calculator Tip
💡 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.
📚 Practice Problems
1Problem 1easy
❓ Question:
A survey shows 60% of 200 men and 55% of 250 women favor a ballot measure. Find a 90% confidence interval for the difference .
💡 Show Solution
Sample proportions:
- (men),
- (women),
Check Large Counts:
- ✓
- All four counts pass.
Unpooled SE:
90% CI (z = 1.645):*
We are 90% confident the true difference is between −3.3% and 13.3%.
2Problem 2medium
❓ Question:
A drug trial: 48 of 150 patients in the treatment group recovered, versus 35 of 150 in the control group. Test vs. at .
💡 Show Solution
Sample proportions:
- (treatment)
- (control)
Pooled proportion:
Check Large Counts (with pooled):
- ✓
- All four counts pass.
Pooled SE:
Test statistic:
p-value (one-tailed, ):
Since , we reject . Significant evidence that treatment is more effective.
3Problem 3hard
❓ Question:
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?
💡 Show Solution
This is a sample size calculation for a two-sample proportion test. Use the formula:
Values:
- (two-tailed, )
- (80% power)
- ,
Compute:
Answer: Approximately 384 participants per group (768 total) are needed.
⚠️ Common Mistakes: Inference for Two Sample Proportions (CI and Test)
Avoid these 3 frequent errors
Practice with Flashcards
Rate this topic's cards with spaced repetition. Cards join your deck when you finish a topic's lesson and take its exit quiz.
Browse All Topics
Explore more AP Statistics topics