1. Comparing two groups: two proportions and paired data
Warm-up
Three quick questions from earlier lessons.
- Test H₀: p = 0.5 with a random sample of 100 in which p̂ = 52/100. Find the z statistic.
- Test H₀: p = 0.2 with n = 400 and p̂ = 28/100. Find the z statistic.
- A test gives a P-value of 0.05. What does it mean?
- If H₀ were true, a result at least as extreme as ours would happen with probability 0.05
- There is a 0.05 probability that H₀ is true
- The result is due to chance with probability 0.05
Discover
To test whether two groups have the same success rate, group A had 30 of 100 and group B 50 of 100. Under H₀ (same rate), what is the best estimate of that common rate?
- 0.4
- It cannot be estimated
Key idea
Two independent groups, or one group measured twice.
Worked example
, ; , .
Your turn, guided
Your turn: 20 of 50 and 30 of 50. The pooled proportion.
Practice ★
- To test H₀: p₁ = p₂, group 1 had 21 successes out of 82 and group 2 had 22 out of 102. Find the pooled proportion.
- To test H₀: p₁ = p₂, group 1 had 51 successes out of 85 and group 2 had 51 out of 105. Find the pooled proportion.
- 24 students take a test before and after a course. Which procedure compares the scores?
- A paired t test on the 24 differences (after − before)
- A two-sample t test treating the groups as independent
- A two-proportion z test
Watch out!
Practice ★★
- Testing H₀: p₁ = p₂ with n₁ = n₂ = 100, the pooled proportion is 3/10. Find the standard error of p̂₁ − p̂₂.
Exit ticket
Three questions to check you have got it.
- To test H₀: p₁ = p₂, group 1 had 21 successes out of 82 and group 2 had 22 out of 102. Find the pooled proportion.
- To test H₀: p₁ = p₂, group 1 had 51 successes out of 85 and group 2 had 51 out of 105. Find the pooled proportion.
- To test H₀: p₁ = p₂, group 1 had 32 successes out of 93 and group 2 had 53 out of 113. Find the pooled proportion.
Summary card
Comparing two groups
- Two proportions: pooled in the SE.
- Paired: test the differences.
Watch out: pool counts, not proportions.
One more step is optional: a challenge. Try it, or finish the lesson now.
Challenge ★★★
- Group 1 had 41 successes out of 100 and group 2 had 26 out of 100. Find .