3.7 Hypothesis Testing with the Normal Distribution
A-level Maths Statistics and Mechanics Year 2 · Edexcel 9MA0 · Chapter 3: The Normal Distribution
A free A-level Maths Stats and Mechanics Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: testing a claim about the mean of a Normal distribution with known variance. 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
- Know that the mean of a sample of size n from N(μ, σ²) has distribution X̅ ~ N(μ, σ² / n)
- Write hypotheses H₀ and H₁ about the population mean μ, one-tailed or two-tailed
- Carry out a test using either a probability (p-value) or a test statistic z
- Find critical values and critical regions for X̅
- Write a conclusion in context with non-assertive language
Key words
- Sample mean: X̅, the mean of a random sample. It varies from sample to sample, so it has its own distribution.
- Null hypothesis: H₀: the value of μ we assume is true, e.g. μ = 500.
- Alternative hypothesis: H₁: what we suspect, e.g. μ < 500 (one-tailed) or μ ≠ 500 (two-tailed).
- Test statistic: z = (x̅ − μ)/(σ / √n), the standardised sample mean.
- Critical region: The values of x̅ (or z) that lead us to reject H₀.
The distribution of the sample mean
Take a random sample of n values from X ~ N(μ, σ²) and work out the mean. Different samples give different means, but the sample means cluster more tightly around μ than single values do. The larger the sample, the tighter the cluster.
Key fact: If X ~ N(μ, σ²), then X̅ ~ N(μ, (σ²)/n). The standard deviation of X̅ is σ/√n.
Worked example: a sample mean
X ~ N(50, 8²). A random sample of 16 values is taken. Find P(X̅ > 53).
X̅ ~ N(50, 64/16) = N(50, 2²)
P(X̅ > 53) = 0.0668 (for a single value, P(X > 53) = 0.354)
Answer: 0.0668
Carrying out a one-tailed test
The method is the same as for a binomial test, but the test is about the mean μ and uses X̅. The variance σ² is known, given or assumed to be unchanged.
- Write H₀ and H₁ about μ, and state the significance level.
- Write the distribution of X̅ assuming H₀ is true.
- Either find the probability of a result at least as extreme as x̅ (the p-value), or find the test statistic z = (x̅ − μ) ÷ (σ / √n).
- Compare with the significance level (or the critical value of z), decide, and conclude in context.
Worked example: has the mean decreased?
A machine fills bags with masses N(500, 6²) grams. After a repair, a random sample of 20 bags has mean 497.4 g. Test, at the 5% level, whether the mean mass has decreased. Assume the standard deviation is unchanged.
H₀: μ = 500 H₁: μ < 500 (one-tailed, 5%)
Under H₀: X̅ ~ N(500, 6²/20) = N(500, 1.8)
P(X̅ ≤ 497.4) = 0.0263
0.0263 < 0.05, so the result is significant: reject H₀.
Or: z = (497.4 − 500)/(6 / √20) = −1.938, and −1.938 < −1.6449.
Answer: There is evidence, at the 5% level, that the mean mass of the bags has decreased.
Exam tip: Conclude with "there is evidence that…" or "there is insufficient evidence that…". A test never proves anything.
Critical regions
The critical value for X̅ is found with the inverse Normal function on the distribution of X̅ under H₀, or with x̅ = μ ± z(σ/√n) using a percentage point.
Worked example: an upper critical region
X ~ N(μ, 4²). A sample of 10 is used to test H₀: μ = 25 against H₁: μ > 25 at the 1% level. Find the critical region for X̅.
Under H₀, X̅ ~ N(25, 1.6), standard deviation 4/√10 = 1.2649
Upper 1%: c = 25 + 2.3263 × 1.2649 = 27.94
Answer: critical region X̅ ≥ 27.94 (to 2 d.p.)
Two-tailed tests
If H₁ is μ ≠ μ₀ (the mean has "changed"), the significance level is split between the two tails. At 5%, compare the one-tail probability with 0.025, or |z| with 1.96.
Worked example: weather data
At a UK weather station the daily maximum temperature in July has been N(21.0, 2.4²) °C. A random sample of 15 July days from a later year has mean 22.3 °C. Test, at the 5% level, whether the mean has changed. (Made-up data in the style of the large data set.)
H₀: μ = 21.0 H₁: μ ≠ 21.0 (two-tailed, 2.5% in each tail)
Under H₀: X̅ ~ N(21.0, 2.4²/15), standard deviation 0.6197
P(X̅ ≥ 22.3) = 0.0180 < 0.025: reject H₀
Or: z = (22.3 − 21.0)/0.6197 = 2.098 > 1.96
Answer: There is evidence at the 5% level that the mean July maximum temperature has changed.
Common mistakes
- Using σ instead of σ/√n for the standard deviation of X̅.
- Writing hypotheses about x̅ instead of the population mean μ.
- Forgetting to halve the significance level for a two-tailed test.
- Writing "this proves the mean has changed" or "H₀ is true". Use "evidence" and the context.
- Choosing a one-tailed or two-tailed test after looking at the data.
Revision questions
Try these, then check your answers below each one.
Question 1. X ~ N(30, 6²). A random sample of 9 is taken. What is the distribution of X̅? (Choose from: N(30, 4); N(30, 36); N(30, 2); N(10, 4).)
Answer: N(30, 4)
Working: 36/9 = 4, so X̅ ~ N(30, 4).
Question 2. X ~ N(30, 6²). For a random sample of 9, find P(X̅ > 32), to 4 decimal places.
Answer: 0.1587
Working: P(X̅ > 32) = 0.1587.
Question 3. A test of H₀: μ = 80 uses a sample of 25 from a Normal population with σ = 10. The sample mean is 83.5. Calculate the test statistic z.
Answer: 1.75
Working: z = (83.5 − 80)/(10 / 5) = 1.75.
Related lessons
- Previous lesson: 3.6 Approximating a Binomial Distribution
- Next lesson: 4.1 Moments
- In this chapter: 3.1 The Normal Distribution
- In this chapter: 3.2 Finding Probabilities for Normal Distributions
- In this chapter: 3.3 The Inverse Normal Distribution Function
Continue in the full course
This lesson is section 3.7 of our free 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. Go to the full A-level Maths Statistics and Mechanics Year 2 course.