All revision notes topics

Hypothesis tests for correlationAQA A-Level Maths: Revision notes

Section 1

Correlation coefficients

The product moment correlation coefficient rr measures how close the points on a scatter diagram lie to a straight line. It always satisfies −1≤r≤1-1\le r\le1:

  • rr close to 11: strong positive linear correlation;
  • rr close to −1-1: strong negative linear correlation;
  • rr close to 00: little or no linear correlation. You do not calculate rr in this topic: it is given in the question. Remember that rr measures linear association only, so r≈0r\approx0 does not rule out a non-linear relationship.
Key termsproduct moment correlation coefficientlinear correlation
Common mistake

Saying r=0r=0 means there is no relationship. It means there is no linear relationship.

Section 2

Hypotheses about the population

A sample rr varies from sample to sample, so we test a claim about the population correlation coefficient ρ\rho (rho). The null hypothesis is that there is no correlation: H0:ρ=0.H_0:\rho=0. The alternative hypothesis is one-tailed if the direction is known in advance, H1:ρ>0H_1:\rho>0 or H1:ρ<0H_1:\rho<0, and two-tailed if any correlation is of interest, H1:ρ≠0H_1:\rho\ne0. Choose the direction from the question wording, before looking at rr. The test assumes a random sample, and that the two variables are suitable for this test (the pairs are drawn from a population in which both variables vary).

Key termspopulation correlation coefficientone-tailedtwo-tailed
Common mistake

Writing hypotheses in terms of rr. Use ρ\rho for the population.

Section 3

The critical value method

A table gives the critical value of rr for each sample size nn, significance level and type of test. Compare the sample rr with it:

  • one-tailed upper test: reject H0H_0 if r≥r\ge critical value;
  • one-tailed lower test: reject H0H_0 if r≤−r\le- critical value;
  • two-tailed test: reject H0H_0 if ∣r∣≥\lvert r\rvert\ge critical value (use the two-tailed table, or half the significance level in each tail). Example: n=12n=12, r=0.62r=0.62, H1:ρ>0H_1:\rho>0 at 5%5\%. The critical value is 0.49730.4973. 0.62>0.49730.62>0.4973, so reject H0H_0: there is sufficient evidence of positive correlation.
Key termscritical value
Exam tip

Use the sample size of the pairs, not the number of values, and check you are using the right table: one-tailed or two-tailed.

Common mistake

Comparing a negative rr with a positive critical value without changing the sign, or using the one-tailed critical value for a two-tailed test.

Section 4

The p-value method

If a pp-value is given, it is the probability of a sample correlation at least this extreme if ρ=0\rho=0. Compare it with the significance level (halving the level for a two-tailed test if the pp-value is for one tail):

  • p<p< significance level: reject H0H_0;
  • p≥p\ge significance level: do not reject H0H_0. Example: for r=−0.47r=-0.47 with n=10n=10 and H1:ρ<0H_1:\rho<0, the pp-value is 0.0850.085. This is greater than 0.050.05, so H0H_0 is not rejected at 5%5\%, but it is less than 0.100.10, so H0H_0 is rejected at 10%10\%.
Key termsp-value
Exam tip

The smaller the pp-value, the stronger the evidence against H0H_0.

Section 5

Conclusions and cautions

State the decision and the meaning in context: 'there is sufficient evidence, at the 5%5\% level, of positive correlation between hours revising and test score'. If H0H_0 is not rejected, say there is insufficient evidence of correlation. Do not say H0H_0 is proved. Cautions that earn marks in evaluation questions:

  • correlation does not imply causation: another variable may explain both;
  • rr measures only a linear relationship;
  • predictions outside the range of the data (extrapolation) are unreliable;
  • the same rr can be significant at 5%5\% but not at 1%1\%, so say how strong the evidence is;
  • a one-tailed test is only valid if the direction was decided before seeing the data.
Key termscausationextrapolation
Common mistake

Writing 'revising causes higher scores'. A correlation test only shows association.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Hypothesis tests for correlation

  1. A teacher records the number of hours hh that each of 1212 students spent revising and the student's test score ss. The product moment correlation coefficient for the sample is r=0.62r=0.62. The teacher tests, at the 5%5\% significance level, whether there is positive correlation between hours revising and test score in the population. For a sample of size 1212, the one-tailed 5%5\% critical value of the product moment correlation coefficient is 0.49730.4973.
    A student says, 'The test shows that revising for more hours causes higher scores.' Explain why this conclusion is not justified.2 marks
  2. A researcher takes a random sample of 1010 adults and finds that the product moment correlation coefficient between hours of screen time per day and hours of sleep is r=−0.47r=-0.47. She tests, at the 5%5\% significance level, whether there is negative correlation in the population. For a sample of size 1010, the one-tailed 5%5\% critical value is 0.54940.5494.
    Software gives a pp-value of 0.0850.085 for this test. Use the pp-value to state the conclusion of the test at the 10%10\% significance level.2 marks
  3. A random sample of 2020 students has product moment correlation coefficient r=0.41r=0.41 between hours of sleep and score in a memory test. For a sample of size 2020, the critical values are: one-tailed 5%5\%, 0.37830.3783; two-tailed 5%5\%, 0.44380.4438.
    Test, at the 5%5\% significance level, whether there is correlation (positive or negative) between hours of sleep and memory test score.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).