top of page

22.2 Hypothesis Tests for a Mean

AQA A-level Maths Statistics and Mechanics Year 2 · 7357 · Chapter 22: Further Hypothesis Testing

What is in the full lesson (13 activities)

Every item below opens free in the course.

A free AQA A-level Maths SM Year 2 lesson for AQA A-level Mathematics (7357) from OBA School: testing a claim about the mean of a normal distribution with known variance, using p-values, test statistics or critical regions (AQA 7357: O3). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Write null and alternative hypotheses about a population mean μ
  • Use X̅ ~ N(μ₀, (σ²)/n) under H₀ to find a p-value
  • Use the test statistic z = (x̅ − μ₀)/(σ / √n) and find critical values and critical regions
  • Carry out one-tailed and two-tailed tests and write conclusions in context
  • State and comment on the assumptions of the test

Key words

  • Null hypothesis: H₀: μ = μ₀, the value assumed to be true unless the data give evidence against it.
  • Alternative hypothesis: H₁: μ < μ₀, μ > μ₀ (one-tailed) or μ ≠ μ₀ (two-tailed).
  • p-value: The probability, assuming H₀, of a sample mean at least as extreme as the one observed.
  • Test statistic: z = (x̅ − μ₀)/(σ / √n), compared with a critical value of Z.
  • Critical region: The values of x̅ (or z) for which H₀ is rejected.
  • Significance level: The probability of rejecting H₀ when it is true, for example 5%.

Setting up the test

A test of a mean asks whether a sample mean x̅ is far enough from a claimed value μ₀ to be evidence that the population mean has changed. The population standard deviation σ is known (or assumed unchanged). Under H₀ the sample mean has a known distribution.

Key fact: Under H₀: μ = μ₀, X̅ ~ N(μ₀, (σ²)/n). Assumptions: the population is normal, σ is known, and the sample is random.

  • The mean mass has decreased from 500 g; H₀ μ = 500; H₁ μ < 500
  • The mean battery life is more than 20 hours; H₀ μ = 20; H₁ μ > 20
  • The mean journey time has changed from 27 minutes; H₀ μ = 27; H₁ μ ≠ 27

Worked example: hypotheses and the distribution under H0

Children brushed their teeth for a mean of 2.0 minutes, with standard deviation 0.5 minutes. A campaign hopes to increase the mean. A random sample of 40 children will be timed. Write down suitable hypotheses and the distribution of X̅ under H₀.
H₀: μ = 2.0, H₁: μ > 2.0 (one-tailed: the campaign aims to increase the mean)
(σ²)/n = 0.25/40 = 0.00625

Answer: Under H₀, X̅ ~ N(2.0, 0.00625), standard error 0.0791

Exam tip: Hypotheses are always about the population mean μ, never about x̅. Decide on one or two tails from the wording of the claim before looking at the data.

Method 1: the p-value

Find the probability of a sample mean at least as extreme as x̅, assuming H₀ is true. If it is less than the significance level, the result is significant and you reject H₀.

Worked example: are the bolts too short?

Bolt lengths are N(μ, 0.6²) mm and should have mean 40 mm. A random sample of 15 bolts has mean 39.68 mm. Test, at the 5% level, whether the mean length is less than 40 mm.
H₀: μ = 40, H₁: μ < 40, one-tailed test at 5%
Under H₀: X̅ ~ N(40, 0.6²/15), standard error 0.1549
p-value: P(X̅ ≤ 39.68) = 0.0194
0.0194 < 0.05, so the result is significant: reject H₀.

Answer: There is evidence at the 5% level that the mean length of the bolts is less than 40 mm.

Method 2: test statistic and critical region

Standardise the sample mean and compare z with the critical value, or find the critical value of x̅ with x̅ = μ₀ ± z(σ/√n).

Worked example: a longer battery life?

Battery lives are N(μ, 2.5²) hours with μ = 20. A new design is tested: a random sample of 30 has mean 21.1 hours. Test, at the 1% level, whether the new design lasts longer on average.
H₀: μ = 20, H₁: μ > 20, one-tailed test at 1%
z = (21.1 − 20)/(2.5 / √30) = 1.1/0.4564 = 2.410; critical value of z: 2.3263
2.410 > 2.3263, so reject H₀. (Critical region: x̅ ≥ 20 + 2.3263 × 0.4564 = 21.06)

Answer: There is evidence at the 1% level that the mean battery life of the new design is more than 20 hours.

Two-tailed tests

If H₁ is μ ≠ μ₀, split the significance level equally between the two tails. At 5%, compare a one-tail p-value with 0.025, or |z| with 1.96.

Worked example: have the emissions changed?

The nitrogen oxide emissions of one model of diesel car had mean 27.0 mg/km with standard deviation 9 mg/km. After a software update, a random sample of 40 cars of this model has mean 24.6 mg/km. Test, at the 5% level, whether the mean has changed. Assume the standard deviation is unchanged.
H₀: μ = 27, H₁: μ ≠ 27, two-tailed, 2.5% in each tail
Standard error 9/√40 = 1.423; z = (24.6 − 27)/1.423 = −1.687
|z| = 1.687 < 1.96 (or P(X̅ ≤ 24.6) = 0.0458 > 0.025): do not reject H₀

Answer: There is insufficient evidence at the 5% level that the mean nitrogen oxide emissions have changed.

Exam tip: A one-tailed test of μ < 27 would have rejected H₀ (0.0458 < 0.05). That is why the choice of test must be made before the data are seen.

Common mistakes

  • Using σ instead of σ/√n as the standard deviation of X̅.
  • Writing hypotheses in terms of x̅, or putting the claimed change in H₀.
  • Forgetting to halve the significance level in a two-tailed test.
  • Writing "accept H₀" or "this proves the mean has changed". Use non-assertive language: "there is (insufficient) evidence that ...".
  • Leaving the conclusion out of context: say what the mean is the mean of.

Revision questions

Try these, then check your answers below each one.

Question 1. A manufacturer states that the mean nitrogen oxide emissions of one car model are 12.5 mg/km. A researcher believes the true mean is higher. Which hypotheses should she use? (Choose from: H₀: μ = 12.5, H₁: μ > 12.5; H₀: μ = 12.5, H₁: μ ≠ 12.5; H₀: x̅ = 12.5, H₁: x̅ > 12.5; H₀: μ > 12.5, H₁: μ = 12.5.)

Answer: H₀: μ = 12.5, H₁: μ > 12.5

Working: H₀ gives the stated value of μ, H₁ the suspected increase.

Question 2. A test of H₀: μ = 250 uses a random sample of 16 from a normal population with σ = 8. The sample mean is 253.5. Calculate the test statistic z.

Answer: 1.75

Working: z = (253.5 − 250)/(8 / 4) = 1.75.

Question 3. For the test above, H₁: μ > 250 at the 5% level, where the critical value of z is 1.6449. Should H₀ be rejected?

Answer: Yes

Working: Yes. 1.75 > 1.6449, so the result is significant.

Related lessons

Continue in the full course

This lesson is section 22.2 of our free AQA A-level Maths Statistics and Mechanics Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.

Continue lesson 22.2 in the free course →

 

 

 

 

 

 

 

bottom of page