Skip to main content
Examonaut

Topic 5 · Lesson 2 of 3

Correlation and Normal mean tests

Testing for correlationA level only

In the data topic you met the product moment correlation coefficient rr, which measures linear correlation in a sample. A test asks whether the population correlation, ρ\rho (the Greek letter rho), is really non-zero, or whether the sample's rr could have arisen by chance from uncorrelated data.

How to test for correlation

  1. Step 1: Hypotheses: H0:ρ=0H_0: \rho = 0; H1:ρ>0H_1: \rho > 0 or ρ<0\rho < 0 (one-tailed) or ρ≠0\rho \ne 0 (two-tailed).
  2. Step 2: Find the critical value from the table for the sample size nn and significance level (given in the formula booklet's statistical tables).
  3. Step 3: If rr is beyond the critical value (in the direction of H1H_1), reject H0H_0.
  4. Step 4: Conclude in context.

Worked example

Correlation testA level

For 12 days from the large data set, the PMCC between daily mean temperature and daily sunshine is r=0.62r = 0.62. Test, at the 5% level, whether there is positive correlation between the two in the population.

Show solution
  1. H0:ρ=0H_0: \rho = 0, H1:ρ>0H_1: \rho > 0.
  2. For n=12n = 12, one-tailed, 5%: critical value 0.4973.
  3. 0.62>0.49730.62 > 0.4973, so rr is in the critical region, shown below: reject H0H_0.
  4. There is sufficient evidence at the 5% level of positive correlation between daily mean temperature and sunshine.
−1−0.500.51r = 0.62critical value 0.4973reject H₀

Testing a Normal meanA level only

If individual values follow X∼N(μ,σ2)X \sim N(\mu, \sigma^2), the mean of a random sample of size nn has its own distribution:

Xˉ∼N(μ,σ2n)\bar{X} \sim N\left(\mu, \frac{\sigma^2}{n}\right)

The mean of the sample means is still μ\mu, but their spread is smaller, with standard deviation σn\frac{\sigma}{\sqrt{n}}, because averaging several values cancels out some of the variation. (Try it: averages of 25 people's heights vary much less than individual heights.) This is why a larger sample makes a test more sensitive.

How to test a Normal mean

  1. Step 1: H0:μ=μ0H_0: \mu = \mu_0 and H1H_1 (one- or two-tailed).
  2. Step 2: Under H0H_0, Xˉ∼N(μ0,σ2n)\bar{X} \sim N\left(\mu_0, \frac{\sigma^2}{n}\right), using the known or assumed σ\sigma.
  3. Step 3: Find P(Xˉ≥xˉ)P(\bar{X} \ge \bar{x}) (or ≤\le, in the direction of H1H_1), or standardise: z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}, and compare with the critical zz-value.
  4. Step 4: Compare with the significance level (half of it in each tail for a two-tailed test) and conclude in context.

Worked example

A Normal mean testtop gradeA level

The masses of bags of flour are Normal with standard deviation 6 g. The mean has been 50 g. After a machine is serviced, a sample of 25 bags has mean 52.1 g. a) Test, at the 5% level, whether the mean has increased. b) Find the critical region for Xˉ\bar{X}. c) State the probability that the test wrongly concludes the mean has increased.

Show solution
  1. a) H0:μ=50H_0: \mu = 50, H1:μ>50H_1: \mu > 50, where μ\mu is the population mean mass after the service.
  2. Under H0H_0, Xˉ∼N(50,6225)=N(50,1.22)\bar{X} \sim N\left(50, \frac{6^2}{25}\right) = N(50, 1.2^2).
  3. P(Xˉ≥52.1)=P(Z≥52.1−501.2)=P(Z≥1.75)=0.0401P(\bar{X} \ge 52.1) = P\left(Z \ge \frac{52.1 - 50}{1.2}\right) = P(Z \ge 1.75) = 0.0401.
  4. 0.0401<0.050.0401 < 0.05: reject H0H_0. There is sufficient evidence at the 5% level that the mean mass has increased.
  5. b) Reject when xˉ−501.2≥1.6449\frac{\bar{x} - 50}{1.2} \ge 1.6449, so the critical region is Xˉ≥51.97\bar{X} \ge 51.97 (to 2 d.p.), as the diagram shows.
  6. c) Wrongly concluding an increase means rejecting H0H_0 when it is true. For a continuous distribution this probability is exactly the significance level, 0.05.
4648505254x̄ = 52.1critical region (5%): x̄ ≥ 51.97if H₀ is true:X̄ ~ N(50, 1.2²)

Practise this topic

Both are part of Premium.