Hypothesis test for correlationEdexcel A-Level Maths: Revision notes
Section 1
The product moment correlation coefficient
The product moment correlation coefficient measures how close points lie to a straight line. It satisfies . If all points lie on a straight line with positive gradient; if they lie on a straight line with negative gradient; near means no linear relationship. You find with your calculator in statistics mode, so you do not need to use the formula. describes linear association only: a perfect curve can still give close to .
Quoting an outside to . This always means an error.
Section 2
Sample and population
is calculated from a sample. The population correlation coefficient is written (the Greek letter rho). A hypothesis test uses to decide whether there is evidence about , so hypotheses are always written in terms of , never .
Writing . The hypotheses must use .
Section 3
Stating the hypotheses
The null hypothesis is (no correlation). The alternative hypothesis depends on the question:
- two-tailed (there is correlation):
- one-tailed, positive:
- one-tailed, negative: Choose one-tailed only if the question says which direction is expected before looking at the data.
Section 4
Using a critical value
You are given a table of critical values for a sample size and significance level. Compare with the critical value. In a one-tailed test the critical region is critical value (for ) or critical value (for ). In a two-tailed test it is critical value, with the significance level split between the two tails. If is in the critical region, reject . Otherwise do not reject . Example: , two-tailed, 5%, critical value . If then , so reject .
Comparing a negative with a positive critical value without using or the negative boundary.
Check which table you have: one-tailed and two-tailed columns have different critical values.
Section 5
Using a p-value
A p-value is the probability of obtaining a result at least as extreme as the one observed, assuming is true. If the p-value is less than the significance level, reject ; if it is greater, do not reject. Example: a p-value of at the 5% level: , so reject .
Section 6
Writing the conclusion
State two things: whether is rejected and what that means in context, for example 'there is significant evidence of a positive correlation between fertiliser and yield'. Never say the test 'proves' anything. Correlation does not imply causation: another variable may affect both, or the cause may run the other way. A result that is significant at 5% may not be at 1%, so give the level used.
'Do not reject ' is not 'accept ': say there is insufficient evidence of correlation.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on Hypothesis test for correlation
- A student records, on 20 randomly chosen days, the daily maximum temperature and the number of ice creams sold at a kiosk. The product moment correlation coefficient is . The student tests for correlation at the 5% significance level. For a two-tailed test with sample size 20, the critical value at the 5% level is .Carry out the test and state your conclusion in context.2 marks
- A teacher records, for 12 students, the time spent on screens each night and the score in a memory test. The product moment correlation coefficient is . The teacher believes that more screen time is associated with lower scores, and tests this at the 5% significance level. For a one-tailed test with sample size 12, the critical value at the 5% level is .A student says: 'The result proves that spending more time on screens makes scores worse.' Comment on this statement.2 marks
- A farmer records the amount of fertiliser, kg per hectare, and the yield, tonnes per hectare, on 8 fields. The data are , , , , , , , . For a one-tailed test with sample size 8, the critical value is at the 5% level and at the 1% level.Use your calculator to find the product moment correlation coefficient , and state suitable hypotheses for a test of whether more fertiliser is associated with a greater yield.3 marks
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).