Confidence Interval for
Difference of Means
Learn how to construct and interpret confidence intervals that estimate how far apart two population means truly are: \( \mu_1 - \mu_2 \).
What Are We Estimating?
In many real-world studies we compare two independent groups: a treatment vs. a control, men vs. women, or two different brands. The quantity we care about is the true difference in population means:
Key Vocabulary
Visual Intuition
The Core Formula
Required Conditions
Degrees of Freedom
The \(t^*\) critical value depends on degrees of freedom. For two independent samples with unequal variances, the Welch approximation is used:
One-Sample vs. Two-Sample
| One-Sample CI | Two-Sample CI | |
|---|---|---|
| Parameter | \(\mu\) | \(\mu_1 - \mu_2\) |
| Point Estimate | \(\bar{x}\) | \(\bar{x}_1 - \bar{x}_2\) |
| Standard Error | \(\displaystyle\frac{s}{\sqrt{n}}\) | \(\displaystyle\sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}}\) |
| df (conservative) | \(n - 1\) | \(\min(n_1-1,\,n_2-1)\) |
| Interpretation | Range for single mean | Range for difference |
How to Apply It
Example 1: Study Hours
A researcher randomly samples 35 science majors (\(\bar{x}_1 = 18.2\) hrs/week, \(s_1 = 4.5\)) and 40 humanities majors (\(\bar{x}_2 = 14.6\) hrs/week, \(s_2 = 5.1\)). Construct a 95% CI for \(\mu_1 - \mu_2\).
Example 1: Finishing Up
Example 2: Battery Life
Brand A: \(n_1 = 25\), \(\bar{x}_1 = 310\) min, \(s_1 = 28\) min. Brand B: \(n_2 = 30\), \(\bar{x}_2 = 298\) min, \(s_2 = 32\) min. Build a 90% CI for \(\mu_A - \mu_B\).
Does the Interval Contain Zero?
Example 3: Small Samples
A pilot study compares reaction times. Group A: \(n_1 = 12\), \(\bar{x}_1 = 0.42\) s, \(s_1 = 0.08\). Group B: \(n_2 = 10\), \(\bar{x}_2 = 0.51\) s, \(s_2 = 0.10\). Build a 99% CI.
Common Mistakes
Quick Reference Summary
| Component | Formula / Value | Notes |
|---|---|---|
| Point Estimate | \(\bar{x}_1 - \bar{x}_2\) | Center of the interval |
| Standard Error | \(\sqrt{s_1^2/n_1 + s_2^2/n_2}\) | Variances add, not SE |
| Critical Value | \(t^*\) from \(t\)-table | Use Welch or conservative df |
| Interval | \((\bar{x}_1-\bar{x}_2)\pm t^*\cdot SE\) | Always interpret in context |
| Contains 0? | Check both endpoints | If yes: no evidence of difference |
Question 1 of 5
What is the point estimate in a confidence interval for the difference of two means?
Question 2 of 5
Given \(s_1 = 6\), \(n_1 = 36\), \(s_2 = 8\), \(n_2 = 64\). What is the standard error \(SE\)?
Question 3 of 5
A 95% CI for \(\mu_1 - \mu_2\) is (2.1, 8.7). Which interpretation is correct?
Question 4 of 5
If a 90% CI for \(\mu_1 - \mu_2\) is (-3.2, 1.8), what can we conclude?
Question 5 of 5
Using the conservative method, what are the degrees of freedom when \(n_1 = 20\) and \(n_2 = 15\)?