The t-Distribution and One-Sample Inference
AP Statistics · Unit 4 — Inference for Quantitative Data: Means
Why t instead of z
When $\sigma$ is unknown we estimate it with $s$, and that extra estimation adds uncertainty. The $t$-distribution accounts for it by having heavier tails than the normal, so critical values are larger and intervals wider.
Degrees of freedom: $df=n-1$ for one sample. As $df$ grows, $t$ approaches $z$.
$$\bar x\pm t^*\frac{s}{\sqrt n},\qquad t=\frac{\bar x-\mu_0}{s/\sqrt n}$$Conditions
- Random sample; $n\le0{,}10N$.
- Normal/large sample: population normal, or $n\ge30$, or a graph of the sample data shows no strong skew and no outliers.
That last option matters: with small $n$ you must actually look at a plot of the data and say what you saw.
Worked example: confidence interval for a mean
A sample with $n=25$ has $\bar x=68.4$, $s=5.2$. Construct a $95\%$ confidence interval for $\mu$ ($t^*=2.064$ with $df=24$).
Solution
Standard error: $\dfrac{s}{\sqrt n}=\dfrac{5.2}{5}=1.04$.
Margin of error: $2.064\times1.04\approx2.147$.
Interval: $68.4\pm2.15$, that is, $(66.25;\ 70.55)$.
Note that if you wrongly use $z^*=1.96$ the margin of error shrinks to just $2.04$ — an interval narrower than reality, that is, overconfident. That is exactly what the $t$ distribution was created to prevent.