Confidence Intervals and Tests using the t-Distribution
Revise Confidence Intervals and Tests using the t-Distribution for Further Mathematics — revision notes and instant AI marking. Free to start.
Confidence Intervals & Tests using the t-Distribution
Big idea: when you don't actually know how spread out a population is (its true variance), and you've only got a small sample to go on, you can't trust the normal distribution anymore — you need the t-distribution instead, because it's built to be a bit more "forgiving" about that uncertainty.
Summary
The whole chapter in seven bite-sized ideas
x̄ ± t(n-1)(α/2) × s/√n gives a range of plausible values for the true population mean.
1. Why do we need the t-distribution?
The problem it solves
Start with something you already know: if X is normally distributed with mean μ and
(crucially) a known variance σ², then the sample mean X̄ is also normal:
X̄ ~ N(μ, σ²/n). That lets you standardise using
(X̄ − μ)/(σ/√n), which follows the standard normal N(0,1) — the familiar z-score.
But here's the catch: in real life, you almost never actually know σ². You only have your sample, from which you can calculate the sample variance, s². Two situations then arise:
- Large n: s² is a good enough approximation for σ², so you can basically carry on as before and treat it like a z-problem.
- Small n: s² is not reliably close to σ² — a small sample can easily give you a wonky estimate of spread just by bad luck. This extra uncertainty means
(X̄ − μ)/(S/√n)is more spread out and has fatter tails than N(0,1). We give it a new name, t, and a new distribution to match: the t-distribution.
t = (X̄ − μ) / (S/√n) follows a t-distribution with v = n − 1 degrees of freedom,
where S² = (1/n)(Σx² − nx̄²) is an unbiased estimator of σ².
What happens as n gets bigger?
As the degrees of freedom v = n − 1 → ∞, the t-distribution's shape converges to N(0,1). This makes sense: with a huge sample, your estimate s² becomes an excellent approximation of σ², so the "extra caution" the t-distribution builds in becomes unnecessary. This is exactly why the t-distribution is only used for small samples — for large samples the two distributions are practically identical.
Q: Why can't we just always use the sample variance s² and treat the test statistic as N(0,1), regardless of sample size?
2. Reading t-distribution tables
The single most important practical skill in this chapter
t-tables give you the value t such that P(T > t) = p, for a given
number of degrees of freedom v (the row) and tail probability p (the column). Every single question
in this chapter — confidence intervals, hypothesis tests, paired tests — boils down to correctly
reading one of these values. Always sketch the bell curve and shade the region you want
before touching the table. It takes 10 seconds and prevents almost every silly mistake.
X has a t-distribution with 12 degrees of freedom. Find t such that:
| (i) P(X > t) = 0.01 | Read straight off the table: row v = 12, column 0.01 →
t₁₂(0.01) = 2.681 |
| (ii) P(X < t) = 0.9 | The table only gives "greater than" probabilities, so convert first:
if P(X < t) = 0.9, then P(X > t) = 1 − 0.9 = 0.1. Now read row v = 12, column 0.1 →
t₁₂(0.1) = 1.356 |
| (iii) P(|X| > t) = 0.1 | This is a two-tailed statement:
P(X < −t) + P(X > t) = 0.1. By symmetry each tail has area 0.05, so look up row v=12, column 0.05
→ t₁₂(0.05) = 1.782. The two boundary values are +1.782 and −1.782. |
Y has a t₆-distribution. Find P(Y < 1.440).
Looking along the v = 6 row, you'll spot 1.440 sitting in the 0.10 column. That tells you P(Y > 1.440) = 0.1. But we were asked for P(Y < 1.440), so use "total area under the curve = 1":
Q: The random variable T has a t₉-distribution. Find the value of t such that P(T < −t) = 0.025.
3. Confidence interval for the mean (unknown variance)
Small sample, normal population, σ² unknown
When your sample size n is small and you don't know σ², you replace σ with your sample standard deviation s, and — critically — you must also replace the z critical value with a t critical value (using n − 1 degrees of freedom), because the extra uncertainty from estimating σ needs to be accounted for.
100(1 − α)% confidence interval: ( x̄ − tn−1(α/2)×s/√n , x̄ + tn−1(α/2)×s/√n )
8 biscuits are weighed (grams): 15, 14.5, 16.5, 14.7, 13.9, 15.4, 13.6, 16.7. Find a 95% CI for the true mean weight.
| Find x̄ and s | Calculator gives x̄ = 15.0375, s = 1.1211 |
| Identify n, α, degrees of freedom | n = 8, α = 0.05, so we need t₇(0.025) = 2.365 (half of α because a CI is two-tailed) |
| Substitute into the formula | 15.0375 ± 2.365 × (1.211/√8) |
| Result | (14.025, 16.050) |
Q: A random sample of 10 items from a normal population gives x̄ = 24.6 and s = 3.2. Find a 90% confidence interval for the population mean.
4. Hypothesis test for the mean (unknown variance)
Same logic as a z-test, new distribution
This follows the exact same 5-step process you've used for every hypothesis test so far — the only thing that changes is which distribution (and therefore which table) you use for the critical value.
2. State the significance level α and degrees of freedom v = n − 1
3. Find the critical region (using the t-table)
4. Calculate x̄, s² and the test statistic t = (x̄ − μ)/(s/√n)
5. Compare t to the critical region and write a conclusion in context
A census once found the mean height of adult women was 164cm. A new sample of 6 women gives mean 167.5cm, with s = 3cm. Test at the 5% level whether women have gotten taller.
| Hypotheses | H₀: μ = 164, H₁: μ > 164 (one-tailed, since we're testing for an increase) |
| Significance & df | α = 0.05, v = 6 − 1 = 5 |
| Critical value | t₅(0.05) = 2.015, so critical region is t ≥ 2.015 |
| Test statistic | t = (167.5 − 164)/(3/√6) = 2.858 |
| Decision | 2.858 > 2.015, so t is in the critical region → reject H₀ |
| Conclusion | There is sufficient evidence to suggest that the mean height of women has increased. |
Q: A machine is supposed to fill bottles with 500ml of liquid. A sample of 10 bottles has mean 496ml and s = 5ml. Test at the 5% significance level whether the machine is filling bottles with the wrong amount (a two-tailed test).
5. The paired t-test
For "before and after" data
Sometimes two sets of results aren't independent — they come in natural pairs, like the same person's score before and after a treatment. In this case, don't try to compare the two samples directly. Instead, work with the differences, D, between each pair, and test whether the mean difference is zero.
11 students take a maths test, attend a seminar on problem solving, then take a second test of equal difficulty. Test at the 5% level whether the seminar improved scores.
| Hypotheses | H₀: μd = 0, H₁: μd > 0 (one-tailed — testing for improvement) |
| Significance & df | α = 0.05, v = 11 − 1 = 10 |
| Critical value | t₁₀(0.05) = 1.812, so critical region is t ≥ 1.812 |
| Find d̄ and s² | d̄ = Σd/n = 16/11 = 1.4545 s² = (Σd² − nd̄²)/(n−1) = (146 − 11×1.4545²)/10 = 14.4545 |
| Test statistic | t = (1.4545 − 0)/(√14.4545/√11) = 1.2688 |
| Decision & conclusion | 1.2688 < 1.812, so t is not in the critical region → do not reject H₀. There is insufficient evidence that the seminar improved test performance. |
Q: Why must we assume the differences D are normally distributed for the paired t-test to be valid, rather than assuming the two original samples are normal?
6. Confidence interval for the difference between two means
Independent samples, unknown but equal variances
Now imagine two completely separate (independent) samples, from two normal populations, and you want to estimate the difference between their true means, μx − μy. If we're willing to assume both populations share the same unknown variance σ², we combine ("pool") the two sample variances into one better, shared estimate — using more data always gives a more reliable estimate.
Seedlings grown in two composts. Brand A: n=10, x̄=10.32, s²=0.484. Brand B: n=15, ȳ=12.473, s²=0.4735. Find a 90% CI for the difference in mean height (assume equal, unknown variances).
| Pooled variance | sp² = (9×0.484 + 14×0.4735)/(10+15−2) = 0.4776 → sp = 0.6911 |
| Degrees of freedom & t-value | v = 23, halve α: t₂₃(0.05) = 1.714 |
| Substitute | (12.473 − 10.32) ± 1.714 × 0.6911 × √(1/15 + 1/10) = 2.153 ± 0.4836 |
| Result | (1.6694, 2.6366) |
Q: Two independent samples give: n₁ = 12, x̄₁ = 45.2, s₁² = 6.1 and n₂ = 14, x̄₂ = 41.8, s₂² = 7.3. Find the pooled variance and the degrees of freedom you would use to find a confidence interval for the difference in means.
7. Hypothesis test for the difference between two means
Putting it all together
This combines everything above: build the test statistic using the pooled variance, then compare it to a t-critical-value with nx + ny − 2 degrees of freedom, following the usual 5-step hypothesis testing structure. Watch closely for questions that test a specific difference (e.g. "boys are more than 5cm taller than girls") rather than simply "is there a difference" — the hypothesised difference then appears directly inside the test statistic.
8 boys: x̄=152, s²=43. 8 girls: ȳ=134, s²=51. Test at 10% whether boys are, on average, more than 5cm taller than girls.
| Hypotheses | H₀: μx = μy + 5, H₁: μx > μy + 5 |
| Significance & df | α = 0.1 (one-tailed), v = 8+8−2 = 14 |
| Critical value | t₁₄(0.1) = 1.345, critical region t ≥ 1.345 |
| Pooled variance | sp² = (7×43 + 7×51)/14 = 47 → sp = 6.8556 |
| Test statistic | t = [(152 − 134) − 5] / [√47 × √(1/8 + 1/8)] = 3.792 |
| Decision & conclusion | 3.792 > 1.345 → reject H₀. Sufficient evidence that boys' mean height exceeds girls' mean height by more than 5cm. |
Q: State, in your own words, the two key assumptions needed before you can use a pooled-variance t-test to compare two independent means.
What to Memorise
Your one-stop formula reference
| Situation | Formula |
|---|---|
| Test statistic (one mean) | t = (x̄ − μ)/(s/√n), v = n − 1 |
| Unbiased variance estimator | S² = (1/n)(Σx² − nx̄²) |
| CI for one mean | x̄ ± tn−1(α/2) × s/√n |
| Paired t-test statistic | t = (d̄ − μD)/(s/√n), v = n − 1 (n = number of pairs) |
| Pooled variance (two samples) | sp² = [(nx−1)sx² + (ny−1)sy²]/(nx+ny−2) |
| CI for difference of two means | (x̄−ȳ) ± tc·sp√(1/nx+1/ny), v = nx+ny−2 |
| Test statistic (difference of two means) | t = [(x̄−ȳ) − (μx−μy)] / [sp√(1/nx+1/ny)] |
| As v → ∞ | t-distribution → N(0,1) |
Concepts Checklist
Tick each one off only once you could explain it out loud, no notes
Exam Tips
What examiners are actually looking for — and where marks get lost
Read the full Confidence Intervals and Tests using the t-Distribution notes free
That's the preview — create a free account to read the rest, plus flashcards and practice questions with instant AI marking. No credit card.
Unlock the full notes free →