From the free course AP Statistics on Lykke
4.2 Constructing a Confidence Interval for a Population Mean or Population Mean Difference
Key concepts: t-distribution — symmetric with wider tails than the standard normal · Degrees of freedom df = n − 1 sets the curve · Standard error of the mean = s/√n · Margin of error = t* × s/√n · Matched pairs — one t-interval for the mean difference μd · Conditions — random, 10%, and near-normal sample shape
Estimating a population mean $\mu$ requires a fundamental shift in how we handle uncertainty. In the real world, we almost never know the population standard deviation $\sigma$.
Estimating a population mean $\mu$ requires a fundamental shift in how we handle uncertainty. In the real world, we almost never know the population standard deviation $\sigma$. When we substitute the sample standard deviation $s$ for $\sigma$, we introduce a new source of variability. To account for this, we move away from the Normal distribution and toward the Student’s $t$-distribution, a family of curves defined by degrees of freedom ($df = n - 1$).
The Logic of the $t$-Interval
UNC-4.A.1: The $t$-distribution is symmetric and centered at zero, but it has "heavier tails" than the standard Normal distribution. This extra area in the tails provides a wider margin of error, compensating for the fact that $s$ is only an estimate of $\sigma$. As the sample size $n$ increases, the $t$-distribution approaches the standard Normal distribution.
Selecting the correct procedure (Skill 2.C) depends on the structure of the data. If we have a single quantitative variable from one population, we use a One-Sample $t$-Interval for $\mu$. If the data consists of "before and after" measurements or matched pairs, we calculate the difference for each pair and perform a One-Sample $t$-Interval for a Population Mean Difference $\mu_d$.
Conditions for Inference (Skill 4.C)
Before constructing an interval, we must verify three critical conditions to ensure our statistical model is valid. Failing these conditions makes the resulting confidence level unreliable.
| Condition | Requirement | Purpose |
|---|---|---|
| Randomness | Data must come from a random sample or a randomized experiment. | Allows us to generalize results to the population or make causal inferences. |
| Independence | If sampling without replacement, the sample size $n$ should be less than 10% of the population $N$. | Ensures the standard error formula remains accurate. |
| Normality | The population distribution is Normal, OR the sample size is large ($n \geq 30$), OR a graph of the sample data shows no strong skew or outliers. | Ensures the sampling distribution of $\bar{x}$ is approximately Normal (via CLT). |
UNC-4.B.1: When $n < 30$ and the population shape is unknown, we must examine the sample data. A dotplot or boxplot that is roughly symmetric with no extreme outliers justifies the use of $t$-procedures (Skill 4.E).
Construction Mechanics (Skill 3.E)
The confidence interval is built using the general formula: $\text{Point Estimate} \pm \text{Margin of Error}$. For a population mean, this is expressed as: $$\bar{x} \pm t^* \left( \frac{s}{\sqrt{n}} \right)$$
The value of $t^$ is the critical value for a given confidence level and $df = n - 1$. The value of $t^$ is always larger than the corresponding $z^*$ for the same confidence level because the $t$-distribution accounts for the additional uncertainty of estimating $\sigma$ with $s$.
Contextual Example: Battery Life
A tech reviewer wants to estimate the mean battery life of a new smartphone. They test a random sample of 15 phones and find a mean life of 12.4 hours with a standard deviation of 1.2 hours. A histogram of the 15 data points shows a slightly right-skewed distribution but no outliers.
- Identify: One-sample $t$-interval for $\mu$ (Skill 2.C).
- Verify: Random sample (given); $15 < 10%$ of all smartphones; $n=15$ is small, but no outliers are present in the sample, so the Normality condition is met (Skill 4.C).
- Calculate: With $df = 14$ and 95% confidence, $t^* \approx 2.145$.
$$ 12.4 \pm 2.145 \left( \frac{1.2}{\sqrt{15}} \right) \rightarrow 12.4 \pm 0.665 \rightarrow (11.735, 13.065) $$
- Justify: The $t$-interval is appropriate here because the population standard deviation is unknown and the sample size is small, necessitating the use of the $t$-distribution to maintain the captured confidence level (Skill 4.E).
Misconception Check: The "Probability" Trap
A common error is stating there is a "95% probability that the population mean is between 11.7 and 13.1 hours." This is incorrect. The population mean $\mu$ is a fixed (though unknown) constant. A specific interval either captures it or it doesn't.
- Correct Reasoning: "In 95% of all possible samples of size 15, the resulting confidence interval will capture the true population mean battery life."
Paired Data: Mean Difference ($\mu_d$)
When data are paired, we ignore the individual values and focus entirely on the differences ($x_d = x_1 - x_2$). We calculate the mean of these differences ($\bar{x}_d$) and the standard deviation of the differences ($s_d$). The interval is then: $$\bar{x}_d \pm t^* \left( \frac{s_d}{\sqrt{n_d}} \right)$$ where $n_d$ is the number of pairs. This is still a one-sample procedure, but it is applied to the single list of differences.
Interpretation Check A researcher calculates a 90% confidence interval for the mean weight of a species of bird as $(145g, 155g)$. If the researcher wanted to increase the confidence level to 99% using the same sample data, what would happen to the width of the interval? Justify your answer using the properties of the $t$-distribution.
