Confidence Intervals
Difference of Two Means
Learn how to construct and interpret confidence intervals for \(\mu_1 - \mu_2\), comparing two independent populations with statistical rigor.
Why Compare Two Means?
In statistics, we often want to know whether two groups differ on some quantitative measure. For example: does a new drug lower blood pressure more than a placebo? Do students in one school score higher than students in another?
A confidence interval for the difference of two means gives us a range of plausible values for \(\mu_1 - \mu_2\), the true difference between two population means.
Key Terminology
Visualizing Two Populations
Each population has its own mean and spread. Our goal: estimate the distance between the two means and quantify our uncertainty about that distance.
The Core Formula
Degrees of Freedom
To find \(t^*\), we need the degrees of freedom. For the AP exam, use the conservative method or Welch's approximation:
Checking the Conditions
Two-Sample vs. Matched Pairs
| Two-Sample (Independent) | Matched Pairs | |
|---|---|---|
| Design | Two separate, independent groups | One group measured twice, or natural pairs |
| Parameter | \(\mu_1 - \mu_2\) | \(\mu_d\) (mean of differences) |
| SE Formula | \(\sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}}\) | \(\dfrac{s_d}{\sqrt{n}}\) |
| \(df\) | \(\min(n_1-1, n_2-1)\) or Welch's | \(n - 1\) |
| Example | Drug A group vs. Drug B group | Before vs. after treatment on same patients |
How to Apply the Formula
Example 1: Sleep Study
A researcher randomly assigns 35 students to a meditation group and 40 students to a control group. After 4 weeks, average nightly sleep is recorded:
Example 1: Solution
Example 2: Test Scores
A school district wants to compare math scores between two schools. Random samples give:
Example 2: Solution
Interpreting the Interval
Common Mistakes
Summary Reference
| Component | Formula / Rule |
|---|---|
| Point Estimate | \(\bar{x}_1 - \bar{x}_2\) |
| Standard Error | \(\sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}}\) |
| Critical Value | \(t^*\) with df \(= \min(n_1 - 1, n_2 - 1)\) |
| Interval | \((\bar{x}_1 - \bar{x}_2) \pm t^* \cdot \text{SE}\) |
| Conditions | Random, Independent (10%), Normal/Large Sample |
| Interpretation | "We are C% confident that \(\mu_1 - \mu_2\) is between..." |
Question 1 of 5
What is the standard error for the difference of two means when \(s_1 = 6\), \(n_1 = 36\), \(s_2 = 8\), \(n_2 = 64\)?
Question 2 of 5
A 95% confidence interval for \(\mu_1 - \mu_2\) is (-2.5, 8.3). What can we conclude?
Question 3 of 5
Which condition is not required for a two-sample \(t\)-interval for \(\mu_1 - \mu_2\)?
Question 4 of 5
If \(\bar{x}_1 = 52\), \(\bar{x}_2 = 47\), \(\text{SE} = 2.0\), and \(t^* = 2.045\) (95% confidence, \(df = 29\)), what is the confidence interval?
Question 5 of 5
Researchers measure the effect of a new fertilizer by comparing the same 25 plants before and after treatment. Which procedure should they use?