James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
A level Maths › Statistics · Hypothesis testing › Normal & correlation hypothesis tests

Normal & correlation hypothesis tests

Testing a claim about the mean of a normal distribution using the sample mean, and testing for correlation using the product moment correlation coefficient.

Stats 5.1, 5.3Year 2≈ 60 min to work through
Before you start: binomial hypothesis tests, the normal distribution and correlation. See Binomial hypothesis tests, Normal distribution and Correlation & regression.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Use the distribution of the sample mean, X¯~N(μ,σ2n)Y2
  • Test a claim about the mean of a normal distribution with known variance, one- or two-tailedY2
  • Find a critical region for the sample meanY2
  • Write hypotheses for a correlation test using ρY2
  • Carry out a test for zero correlation using a table of critical valuesY2

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

The same logic as a binomial test, with a different distribution. If individual values are N(μ,σ2), the mean of a sample of n is much less spread out: X¯~N(μ,σ2n). So a sample mean a little away from the claimed μ can be strong evidence. For correlation, the question is whether a sample correlation r is far enough from zero to suggest a real relationship in the population.

2.1 The distribution of the sample mean

Sample mean

If X~N(μ,σ2) and X¯ is the mean of a random sample of size n, then X¯~N(μ, σ2n)soZ=X¯−μσ/n~N(0,1)

2.2 Testing a mean

Worked example 1Calculator
The time to charge a phone is normally distributed with mean 20 minutes and standard deviation 1.5 minutes. A new charger is tested on 16 phones, giving a mean of 19.3 minutes. Test at the 5% level whether the new charger reduces the mean time.
H0:μ=20,H1:μ<20
Under H0, X¯~N(20,1.5216)=N(20,0.3752)
Standard deviation of X¯: 1.516=0.375.
P(X¯≤19.3)=0.0310
Or z=19.3−200.375=−1.867<−1.6449.
0.0310<0.05, so reject H0.
There is evidence, at the 5% level, that the new charger reduces the mean charging time.
Worked example 2Calculator
For the test in WE1, find the critical region for X¯.
Reject when x¯−200.375<−1.6449
x¯<20−1.6449×0.375=19.38
Critical region: X¯<19.38 (2 d.p.)
Worked example 3Calculator
A machine fills bags with a mean of 500 g and standard deviation 4 g. A sample of 10 bags has mean 502.8 g. Test at the 5% level whether the mean has changed.
H0:μ=500,H1:μ≠500 (two-tailed: 2.5% in each tail)
X¯~N(500,1610)
P(X¯≥502.8)=0.0134<0.025
Reject H0: there is evidence that the mean weight has changed.

2.3 Testing for correlation

The product moment correlation coefficient of the sample is r; the population value is ρ (rho). To test whether there is correlation in the population:

Correlation test

H0:ρ=0 (no correlation)
H1:ρ>0 or ρ<0 (one-tailed), or ρ≠0 (two-tailed)
Compare r with the critical value for the sample size n and significance level. If |r| is greater than the critical value (with the right sign), reject H0.

Critical values of r (one tail). For a two-tailed test at 5%, use the 2.5% column.

n10%5%2.5%1%
80.50670.62150.70670.7887
100.44280.54940.63190.7155
120.39810.49730.57600.6581
150.35070.44090.51400.5923
200.29920.37830.44380.5155
The full table is in the formulae booklet.

Worked example 4Calculator
For a random sample of 10 days, the correlation between daily hours of sunshine and daily maximum temperature is r=0.62. Test at the 5% level whether there is positive correlation.
H0:ρ=0,H1:ρ>0
Critical value for n=10, 5% one-tailed: 0.5494
0.62>0.5494, so reject H0.
There is evidence of positive correlation between hours of sunshine and maximum temperature.
Worked example 5Calculator
For a sample of 15 students, r=−0.47 between hours of gaming and test score. Test at the 5% level whether there is any correlation.
H0:ρ=0,H1:ρ≠0
Two-tailed at 5%: use the 2.5% critical value, 0.5140
Each tail gets 2.5%.
|−0.47|=0.47<0.5140, so do not reject H0.
Insufficient evidence of correlation between gaming hours and test score.
What does a significant result tell you?

Correlation is not causation: even if the test shows correlation, it does not show that one variable causes the other. And correlation measures linear association, so a strong curved relationship can still give r close to 0.

On your Casio ClassWiz Calculator tricks →

Distribution → Normal CD with σ replaced by σn gives the probability for X¯. Inverse Normal (left tail) gives the critical value. For correlation, Statistics → 2-Variable → Reg Results gives r; compare it with the critical value from the table.

3Explore it

Under H0:μ=20 with σ=1.5, the sample mean has the distribution shown. Change the sample size and the observed mean: the shaded area is the critical region.

4Common mistakes & exam tips

Common mistakes

  • Using σ instead of σn for the standard deviation of X¯.
  • Writing hypotheses with x¯ or r: use μ and ρ, the population parameters.
  • Using the 5% critical value for a two-tailed 5% test: use 2.5% in each tail.
  • Concluding that one variable causes the other from a correlation test.
  • Comparing r with the critical value without considering the sign in a one-tailed test.

Exam tips

  • State the distribution of X¯ under H₀ in full, e.g. X¯~N(20,0.3752).
  • Either compare a probability with the significance level, or compare a z-value or x¯ with a critical value: both are accepted.
  • Use Normal CD on your calculator with σ/√n as the standard deviation.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
X~N(50,82). State the distribution of the mean of a sample of 25.
X¯~N(50,1.62)
FluencyP2
Write hypotheses to test whether a mean of 12 has increased.
H0:μ=12, H1:μ>12
FluencyP3
n=12, r=0.53. Test for positive correlation at 5%.
Critical value 0.4973; 0.53>0.4973: reject H0, evidence of positive correlation
FluencyP4
n=20, r=−0.41. Test for any correlation at 5%.
Two-tailed, critical value 0.4438; 0.41<0.4438: do not reject H0
Problem solvingP5
X~N(μ,32). A sample of 9 has mean 31.9. Test H0:μ=30 against H1:μ>30 at 1%.
X¯~N(30,1); P(X¯≥31.9)=0.0287>0.01: do not reject
Problem solvingP6
For the test in WE1, what is the largest sample mean that would lead to rejecting H0 if n=36?
20−1.6449×0.25=19.59 minutes

6Exam-style questions

Original exam-style questions with full markschemes. Edexcel papers allow a calculator throughout, but questions labelled “No calculator” practise exact working. Allow about 1.2 minutes per mark.

Question 1Calculator[6 marks]

The lengths of rods made by a machine are normally distributed with mean 80.0 mm and standard deviation 0.6 mm. After a service, a random sample of 20 rods has mean length 80.3 mm. Test, at the 5% level, whether the mean length has changed.

H0:μ=80, H1:μ≠80B1
X¯~N(80,0.6220)M1
P(X¯≥80.3)=0.0127 or z=2.236A1
compare with 0.025 (or 1.96)M1
reject H0A1
evidence that the mean length has changedA1
Question 2Calculator[5 marks]

A teacher records, for a random sample of 8 students, the time spent revising and the test score. The product moment correlation coefficient is r=0.71.

  • (a)Test, at the 5% level, whether there is positive correlation between revision time and test score. State your hypotheses clearly.[4]
  • (b)Explain why this does not show that revising more causes higher scores.[1]
(a)
H0:ρ=0, H1:ρ>0B1
critical value 0.6215B1
0.71>0.6215, reject H0M1
evidence of positive correlation between revision time and test scoreA1
(b)
correlation does not imply causation (another factor may affect both)B1
Question 3Calculator[6 marks]

The mass of eggs from a farm is normally distributed with standard deviation 4.2 g. The farmer claims the mean mass is 62 g. A buyer suspects the mean is lower.

  • (a)Find the critical region for a test of the farmer\'s claim at the 1% level, using a sample of 30 eggs.[4]
  • (b)The sample mean is 60.4 g. State the conclusion of the test.[2]
(a)
H0:μ=62, H1:μ<62B1
X¯~N(62,4.2230)M1
62−2.3263×4.230M1
X¯<60.22A1
(b)
60.4 is not in the critical regionM1
insufficient evidence that the mean mass is less than 62 gA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real Edexcel A level questions. Past papers and markschemes are on the Pearson website.

PaperQuestionFocusDifficulty
June 2018 · Paper 3Q2Correlation between sales and temperature: test using the PMCC★☆☆
Nov 2020 · Paper 31Q2Scatter diagram and correlation test from the large data set★☆☆
June 2023 · Paper 31Q4Test for the mean height of men in a region★★☆
Nov 2020 · Paper 31Q5Normal model for appointment times, then a test of the mean★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake