Cambridge International AS & A Level · Topic 4.2
A-Level Further Maths 9231 / Topic 4.2 / AS & A Level

When the variance is unknown, t takes over.

With a small sample from a normal population and no known variance, you have to estimate \(\sigma\) by \(s\), and the extra uncertainty widens the tails of the test statistic. The t-distribution with \(n - 1\) degrees of freedom handles that: test a claimed mean, build a confidence interval, and know when z is still the right tool.

The key idea

For a random sample of size \(n\) from a NORMAL population with unknown variance, estimate the variance by \(s^{2} = \dfrac{\sum x^{2} - n\bar{x}^{2}}{n - 1}\). Then \(T = \dfrac{\bar{X} - \mu}{s/\sqrt{n}}\) has a t-distribution with \(\nu = n - 1\) degrees of freedom. Use it for tests (compare \(t\) with the table value \(t_{n-1}\)) and for the interval \(\bar{x} \pm t_{n-1}\,\dfrac{s}{\sqrt{n}}\).

t −4 −3 −2 −1 0 1 2 3 4 2.571 −2.571 1.96 −1.96 t-distribution, 5 df N(0, 1) 2.5% in each tail Two-tailed 5% test: |t| > 2.571, not 1.96
Fig. 1: the t-distribution with 5 degrees of freedom (solid) against the standard normal (dashed). The t curve is lower in the middle and heavier in the tails, so its two-tailed 5% critical values are ±2.571 (shaded regions, 2.5% each) instead of ±1.96. As the degrees of freedom increase the t curve approaches N(0, 1)
Section 01

Why t, not z.

In 9709 you tested a mean with \(Z = \dfrac{\bar{X} - \mu}{\sigma/\sqrt{n}}\), which needs the population standard deviation \(\sigma\), or a sample large enough that \(s\) is a reliable stand-in. With a SMALL sample and unknown variance, \(s\) itself varies a lot from sample to sample, so \(\dfrac{\bar{X} - \mu}{s/\sqrt{n}}\) is more spread out than \(N(0, 1)\). If the population is normal, it follows a t-distribution with \(n - 1\) degrees of freedom (one degree of freedom is used up by estimating the mean with \(\bar{x}\)).

\(\nu\)one tail 5%one tail 2.5%one tail 1%one tail 0.5%
52.0152.5713.3654.032
71.8952.3652.9983.499
91.8332.2622.8213.250
\(\infty\)1.6451.9602.3262.576
Worked example Unbiased estimates from raw data
The masses, in grams, of six bags of flour taken at random are 502, 498, 505, 497, 503, 501. Find unbiased estimates of the population mean and variance.
  1. \(n = 6\), \(\sum x = 3006\), so \(\bar{x} = \dfrac{3006}{6} = 501\).
  2. \(\sum x^{2} = 1\,506\,052\).
  3. \[\begin{aligned} s^{2} &= \frac{\sum x^{2} - n\bar{x}^{2}}{n - 1} \\ &= \frac{1\,506\,052 - 6(501)^{2}}{5} \\ &= \frac{46}{5} = 9.2 \end{aligned}\]
  4. Check with deviations: \(1, -3, 4, -4, 2, 0\) square to \(1 + 9 + 16 + 16 + 4 + 0 = 46\), and \(\dfrac{46}{5} = 9.2\).
Answer: \(\bar{x} = 501\) g, \(s^{2} = 9.2\) g2 (so \(s = 3.03\) g)
Worked example Reading the t table
Find the critical value(s) for (a) a two-tailed test at the 5% level using a sample of 10, (b) a one-tailed test (upper tail) at the 1% level using a sample of 8.
  1. (a) \(\nu = 10 - 1 = 9\). Two-tailed 5% puts 2.5% in each tail, so read the 2.5% column: \(t_{9} = 2.262\).
  2. The critical values are \(\pm 2.262\) (compare \(\pm 1.96\) for z: t demands stronger evidence).
  3. (b) \(\nu = 8 - 1 = 7\). One tail at 1%: \(t_{7} = 2.998\).
Answer: (a) \(\pm 2.262\)   (b) \(2.998\)
Your turn
A sample of 12 values has \(\sum x = 78\) and \(\sum x^{2} = 531\). Find unbiased estimates of the population mean and variance.
Examiner trap

Two different \(n\)'s to watch. Divide by \(n - 1\), not \(n\), for the unbiased variance; and read the table at \(\nu = n - 1\), not \(n\). With a sample of 6, using \(\nu = 6\) gives 2.447 instead of 2.571.

Section 02

The one-sample t-test.

The test runs exactly like a z-test, with \(s\) in place of \(\sigma\) and the t table in place of the normal table. Define \(\mu\) in context, state the hypotheses, state the normality assumption, compute \(t = \dfrac{\bar{x} - \mu_{0}}{s/\sqrt{n}}\), compare with \(t_{n-1}\), and conclude in context without claiming certainty.

Worked example One-tailed test from summarised data
A manufacturer claims that its batteries last 20 hours on average. A consumer group suspects the mean is lower. A random sample of 10 batteries gives \(\sum x = 191.0\) and \(\sum x^{2} = 3661.06\), where \(x\) hours is the lifetime. Assuming lifetimes are normally distributed, test the claim at the 5% significance level.
  1. \(\mu\) = population mean lifetime (hours). \(H_{0}: \mu = 20\), \(H_{1}: \mu < 20\). Lifetimes are assumed normal; variance unknown and \(n\) small, so use t.
  2. \[\begin{aligned} \bar{x} &= 19.1 \\ s^{2} &= \frac{3661.06 - 10(19.1)^{2}}{9} = \frac{12.96}{9} = 1.44 \end{aligned}\]
  3. \[t = \frac{19.1 - 20}{1.2/\sqrt{10}} = -2.372\]
  4. \(\nu = 9\), one tail 5%: critical value \(-1.833\). Since \(-2.372 < -1.833\), reject \(H_{0}\).
Answer: There is sufficient evidence at the 5% level that the mean battery life is less than 20 hours
Worked example Two-tailed test from raw data
The flour bags above (\(\bar{x} = 501\), \(s^{2} = 9.2\), \(n = 6\)) are labelled 500 g. Test at the 5% level whether the mean mass differs from 500 g, assuming masses are normally distributed.
  1. \(\mu\) = population mean mass (g). \(H_{0}: \mu = 500\), \(H_{1}: \mu \ne 500\).
  2. \[t = \frac{501 - 500}{\sqrt{9.2}/\sqrt{6}} = \frac{1}{1.238} = 0.808\]
  3. \(\nu = 5\), two tails at 5% (2.5% each): critical values \(\pm 2.571\).
  4. \(|0.808| < 2.571\), so do not reject \(H_{0}\).
Answer: There is insufficient evidence at the 5% level that the mean mass differs from 500 g
Your turn
Nine readings from a normal population have \(\bar{x} = 49\) and \(s^{2} = 7.5\). Test at the 5% level whether the population mean is less than 51.
Examiner trap

Do not write 'the mean IS less than 20' or 'H0 is true'. A test only gives evidence: say 'there is (in)sufficient evidence at the 5% level that ...'. And state the assumption that the population is normal, or the t-test is not justified.

Stage 1 · Learn

Check your understanding

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

A t-test uses a random sample of 12 observations. How many degrees of freedom does the t-distribution have?

Quick check+10 XP

A sample of 5 values has \(\sum x = 20\) and \(\sum x^{2} = 90\). The unbiased estimate of the population variance is

Quick check+10 XP

Find the critical values for a two-tailed t-test at the 5% level using a sample of 6.

Quick check+10 XP

Compared with \(N(0, 1)\), the t-distribution with 5 degrees of freedom

Section 03

Confidence intervals, and choosing z or t.

A \(100(1 - \alpha)\%\) confidence interval for \(\mu\) from a small normal sample with unknown variance is \(\bar{x} \pm t\,\dfrac{s}{\sqrt{n}}\), where \(t\) is the value of \(t_{n-1}\) with \(\frac{\alpha}{2}\) in EACH tail (for 95%, the 2.5% column). A two-tailed test at level \(\alpha\) rejects \(H_{0}: \mu = \mu_{0}\) exactly when \(\mu_{0}\) lies outside the \(100(1 - \alpha)\%\) interval.

SituationUse
Population normal, variance KNOWN (any \(n\))z with \(\sigma\)
Population normal, variance unknown, SMALL samplet with \(s\), \(\nu = n - 1\)
Any population, LARGE sample, variance unknownz with \(s\) (central limit theorem)
Population not normal, small sampleneither: use a non-parametric test
Worked example A 95% interval and the claim
For the battery sample (\(n = 10\), \(\bar{x} = 19.1\), \(s = 1.2\)), find a 95% confidence interval for the mean lifetime and comment on the claim of 20 hours.
  1. \(\nu = 9\), 95% interval: 2.5% in each tail, so \(t = 2.262\).
  2. \[\begin{aligned} 19.1 &\pm 2.262 \times \frac{1.2}{\sqrt{10}} \\ = 19.1 &\pm 0.858 \end{aligned}\]
  3. Interval: \((18.24,\ 19.96)\).
  4. 20 lies outside the interval, so a two-tailed test at 5% would reject \(\mu = 20\), matching the one-tailed result.
Answer: \((18.24,\ 19.96)\) hours; 20 is just outside, so the interval does not support the claim
Worked example A 99% interval
Nine readings from a normal population give \(\bar{x} = 49\) and \(s^{2} = 7.5\). Find a 99% confidence interval for the population mean. Is a mean of 51 plausible at this level?
  1. \(\nu = 8\), 99% interval: 0.5% in each tail, so \(t = 3.355\).
  2. \(\dfrac{s}{\sqrt{n}} = \dfrac{\sqrt{7.5}}{3} = 0.9129\).
  3. \[49 \pm 3.355 \times 0.9129 = 49 \pm 3.063\]
  4. Interval \((45.94,\ 52.06)\), which contains 51.
Answer: \((45.9,\ 52.1)\); 51 lies inside, so a two-tailed test at 1% would not reject \(\mu = 51\)
Your turn
A sample of 80 values from a population of unknown distribution has \(\bar{x} = 12.4\) and \(s = 2.0\). Should a confidence interval for \(\mu\) use z or t?
Examiner trap

For a 95% interval use the 2.5% one-tail value (\(t_{9} = 2.262\)), not the 5% value (1.833). Using 1.833 gives only a 90% interval. And never use 1.96 with a small sample and unknown variance.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to AS & A Level Further Mathematics Paper 1 to 4 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

A random sample of 10 from a normal population gives \(\bar{x} = 52.3\) and \(s = 3.1\). For \(H_{0}: \mu = 50\) against \(H_{1}: \mu > 50\) at the 5% level, which is correct?

Exam style+20 XP

A random sample of 8 from a normal population has \(\bar{x} = 14.2\) and \(s^{2} = 2.25\). A 95% confidence interval for \(\mu\) is

Exam style+20 XP

In which case is a t-distribution the appropriate basis for a confidence interval for \(\mu\)?

Exam style+20 XP

A 95% t-interval for a population mean is \((4.1,\ 5.3)\). A two-tailed test of \(H_{0}: \mu = 5\) at the 5% level, using the same sample, would

Skill unlocked

Small sample, unknown variance: handled.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Unbiased estimates, a 90% t-interval, one- and two-tailed t-tests from summarised and raw data, recovering a sample from its interval, and choosing z or t.