A Confidence Interval for a Mean
How to estimate a population mean, or the mean difference in matched pairs, with a one-sample t-interval: t-distributions, the parameter, the three conditions, and the standard error, margin of error and interval.
The population standard deviation \(\sigma\) is almost never known, so the interval uses the sample’s \(s\) instead. That extra uncertainty is handled by using a critical value \(t^*\) from a t-distribution with \(n - 1\) degrees of freedom. The interval is \(\bar{x} \pm t^* \dfrac{s}{\sqrt{n}}\). For matched pairs, compute the difference within each pair and apply the same interval to the differences.
1Why t instead of z?
t-distributions (also called Student’s t-distributions) are a family of symmetric, bell-shaped, standardized distributions with wider tails than the standard normal. Each is identified by its degrees of freedom (df), which depend on the sample size: df = \(n - 1\) for one sample. With small df, a t-distribution has a lower, narrower peak and fatter tails than the normal; as df increases, it looks more and more like the standard normal.
t-distributions are used for critical values and test statistics about a population mean \(\mu\) when \(\sigma\) is unknown and the sample standard deviation \(s\) must be used instead.
With \(s\) in place of \(\sigma\), the right critical value is \(t^*\). For the screen time data, \(z^* = 1.96\) would give (3.61, 4.79), narrower than the correct (3.56, 4.84), so it would capture \(\mu\) less often than 95% of the time.
2The parameter and the conditions
The procedure is a one-sample t-interval for a population mean. Define the parameter in context: the population mean of the response variable, for the population sampled.
| Condition | Check |
|---|---|
| Randomization | A random sample or a randomized experiment |
| 10% condition | When sampling without replacement, \(n \le 10\%N\) |
| Sample data | The population is approximately normal, or \(n \ge 30\), or (if \(n \lt 30\)) the sample data show no strong skewness or outliers |
With fewer than 30 values, the sample data condition needs evidence: make a dotplot, boxplot or histogram and say what it shows. “The sample is large enough” is not true for \(n = 16\).
3The interval
The point estimate is \(\bar{x}\). \(t^*\) is the critical value for the central C% of the t-distribution with df = \(n - 1\).
Screen time
A random sample of 16 students at a high school of 2,000 students reported their daily phone screen time (hours): 2.1, 2.8, 3.0, 3.3, 3.5, 3.6, 3.9, 4.0, 4.2, 4.4, 4.5, 4.8, 5.1, 5.4, 5.9, 6.7. Construct a 95% confidence interval for the mean daily screen time of all students at the school.
- 1State. \(\mu\) = the true mean daily phone screen time (hours) of all students at the school. 95% confidence.
- 2Plan. One-sample t-interval for a population mean. Randomization: random sample. 10% condition: 16 ≤ 200. Sample data condition: \(n = 16 \lt 30\), but the dotplot (Figure 2) shows no strong skewness or outliers.
- 3Do. \(\bar{x} = 4.20\), \(s \approx 1.20\), df = 15, \(t^* = 2.131\). \(SE = 1.20/\sqrt{16} \approx 0.299\), \(ME = 2.131(0.299) \approx 0.638\). Interval: \(4.20 \pm 0.638 = (3.56,\ 4.84)\).
- 4Conclude. We are 95% confident that the interval from 3.56 to 4.84 hours captures the true mean daily phone screen time of all students at the school.
Data in L1: STAT, TESTS, TInterval, Inpt: Data, List: L1, C-Level: 0.95. Output (3.5624, 4.8376). With summary numbers, choose Inpt: Stats and enter \(\bar{x}\), \(s\) and \(n\). For a critical value alone, invT(0.975, 15) = 2.131.
Screen time
Find the 90% and 99% intervals for the screen time data.
- 1df = 15 for both. 90%: \(t^* = 1.753\); 99%: \(t^* = 2.947\).
- 290%: \(4.20 \pm 1.753(0.299) = (3.68,\ 4.72)\).
- 399%: \(4.20 \pm 2.947(0.299) = (3.32,\ 5.08)\).
(3.56, 4.84) is a range of plausible values for the mean. Most individual students in the sample are outside it (Figure 2). Never say “95% of students have screen times in this interval.”
4Matched pairs
In a matched pairs design the two sets of values are dependent: each pair shares a person (or a matched pair of similar people). Calculate the difference within each pair to produce one sample of differences, then use a one-sample t-interval for a population mean difference, \(\mu_d\). State the order of subtraction. The sample data condition applies to the differences: there should be at least 30 of them, or the differences should show no strong skewness or outliers.
Music while studying
Twelve students each studied a word list twice, once in silence and once with music, in a randomly assigned order, then recorded how many words they recalled. The differences (silence minus music) are 2, 1, −1, 3, 2, 0, 3, 1, 3, −1, 3, 1. Construct a 95% confidence interval for the mean difference.
- 1Parameter: \(\mu_d\) = the true mean difference in words recalled (silence minus music) for students like these.
- 2Procedure: one-sample t-interval for a population mean difference. Randomization: the order of the conditions was randomly assigned. Sample data condition: 12 differences, fewer than 30, with no strong skewness or outliers (Figure 3).
- 3\(\bar{x}_d \approx 1.42\), \(s_d \approx 1.51\), df = 11, \(t^* = 2.201\). \(SE = 1.51/\sqrt{12} \approx 0.434\), \(ME = 2.201(0.434) \approx 0.956\).
- 4Interval: \(1.42 \pm 0.956 = (0.46,\ 2.37)\).
The silence and music scores come from the same 12 students, so they are not independent. Building an interval from the two separate means ignores the pairing and usually gives a much wider interval. Use the 12 differences, df = 11.
“We are 95% confident that the interval from 0.46 to 2.37 words captures the true mean difference in words recalled (silence minus music) for students like these.”
Quick reference
| Piece | One sample | Matched pairs |
|---|---|---|
| Parameter | \(\mu\) | \(\mu_d\) (state the order) |
| Point estimate | \(\bar{x}\) | \(\bar{x}_d\) |
| Standard error | \(s/\sqrt{n}\) | \(s_d/\sqrt{n_d}\) |
| Degrees of freedom | \(n - 1\) | \(n_d - 1\) |
| Interval | \(\bar{x} \pm t^* s/\sqrt{n}\) | \(\bar{x}_d \pm t^* s_d/\sqrt{n_d}\) |
| Calculator | TInterval | TInterval on the list of differences |