Testing for a Difference Between Two Population Means | Cambridge A Level Maths notes
Free preview: Testing for a Difference Between Two Population Means
Comparing Two Means
9231 Paper 4: Further Probability & Statistics
Let's start with a typical question: do two machines, two schools or two diets give the same average? We take a sample from each and compare the sample means. But two sample means will always differ a bit, even if the populations are identical. So the real question is: is the gap bigger than chance alone would produce?
- Population X has mean , variance ; population Y has mean , variance .
- The samples must be independent: different, unrelated individuals in each.
- We look at the difference .
The distribution of the difference
We build it from what we know about one sample mean, one step at a time.
- Each mean on its own: has mean and variance ; has mean and variance .
- Mean of the difference: . Expectations subtract.
- Variance of the difference: for independent variables, variances add, even for a difference: .
- Shape: exactly Normal if both populations are Normal; approximately Normal by the CLT if both samples are large.
- Under the part is 0.
- For large samples with unknown variances, use and in place of and .
💡 In plain words
- Same idea as a one-sample test: how many standard errors is the observed difference from the difference claimed in ?
- The standard error combines the uncertainty from both samples.
✏️ YOUR TURN 1
Try this first:
X is Normal with standard deviation 3 and Y is Normal with standard deviation 4. Samples of 10 from X and 8 from Y are taken independently. State the distribution of if , and find its standard error.
Answer:
- Variance .
- exactly (both populations Normal).
- Standard error .
A Two-Sample Test, Step by Step
Method: two-sample z-test
- Hypotheses about the two population means, e.g. , . Define both in context.
- Justify the Normal model: both populations Normal, or both samples large (CLT).
- Standard error: work out and separately, add, square root.
- z: observed difference minus the difference in , divided by the standard error.
- Compare with the critical value from the tables.
- Conclude in context.
👀 Watch me do it: two machines make rods. Machine A: 50 rods, mm, . Machine B: 60 rods, mm, . Test at 5% whether the machines have different mean lengths
| What I write | Why I do it |
|---|---|
| , | Step 1: "different" means two-tailed. are the mean lengths of all rods from each machine. |
| Both samples are large, so by the CLT is approximately Normal, and we use | Step 2. |
| Step 3. | |
| Step 4: difference is 0. | |
| Critical values ±1.96. , so reject (only just) | Step 5: two-tailed 5%. |
| There is sufficient evidence at the 5% level to suggest the two machines have different mean lengths | Step 6. |
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Inference using normal and t-distributions (4.2)
- Large-Sample Confidence Intervals, Sample Size and Differences of Means
- Testing for a Difference Between Two Population Means
- Student's t-Distribution and t-Intervals for a Mean
- The One-Sample t-Test for a Mean
- Paired and Two-Sample t-Tests with a Pooled Variance
What's inside for this topic
5 teacher notes, 110 practice questions, 38 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: Large-Sample Confidence Intervals, Sample Size and Differences of Means Next note: Student's t-Distribution and t-Intervals for a Mean