1.2 Measuring Correlation
A-level Maths Statistics and Mechanics Year 2 · Edexcel 9MA0 · Chapter 1: Regression, Correlation and Hypothesis Testing
A free A-level Maths Stats and Mechanics Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: the product moment correlation coefficient and what it does (and does not) tell you. 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
- Describe what the product moment correlation coefficient (PMCC) measures
- Use a calculator to find the PMCC, r, for a set of bivariate data
- Interpret a value of r in context, including for data coded by logarithms
- Explain why correlation does not imply causation
- Recognise when a scatter diagram contains distinct groups, outliers or a non-linear pattern
Key words
- Bivariate data: Pairs of values (x, y) for two variables measured on the same items.
- PMCC: The product moment correlation coefficient r. It measures how close the points lie to a straight line.
- Linear correlation: A tendency for the points to lie close to a straight line with positive or negative gradient.
- Causation: A change in one variable directly produces a change in the other.
- Outlier: A point that does not fit the pattern of the rest of the data.
What the PMCC measures
The PMCC, r, is a single number from −1 to 1. Its sign gives the direction of the correlation and its size tells you how close the points are to a straight line.
- r = 1; Meaning (a rough guide) perfect positive linear correlation: all points on a line with positive gradient
- r close to 1; Meaning (a rough guide) strong positive linear correlation
- r close to 0; Meaning (a rough guide) little or no linear correlation
- r close to −1; Meaning (a rough guide) strong negative linear correlation
- r = −1; Meaning (a rough guide) perfect negative linear correlation
Worked example: describing correlation
For a group of runners, r = −0.86 for weekly training distance and 5 km race time. Describe the correlation.
r is negative and close to −1.
Answer: strong negative linear correlation: runners who train further tend to have faster (lower) times
Finding r on a calculator
In the exam you find r with the statistics (two-variable or regression) mode of your calculator. Enter the x values and the y values as two lists, then read off r. Write the value you found, then interpret it in the context of the question.
Worked example: temperature and sunshine
A student uses weather data for 8 summer days at one UK station.
Daily mean temperature (°C), x: 14.2 15.8 17.1 13.5 18.9 16.4 12.8 19.6
Daily total sunshine (hours), y: 4.1 6.3 7.8 2.9 9.4 6.0 3.5 10.2
Calculator: r = 0.98399...
Answer: r = 0.984: strong positive linear correlation. On these days, warmer days tended to be sunnier.
Key fact: Changing the units with a rule like F = 1.8C + 32 (multiply by a positive number, then add) does not change r. The points keep exactly the same pattern, only the scales change.
So the temperatures above in degrees Fahrenheit would give the same value, r = 0.984.
Correlation for log-coded data
In section 1.1 you met exponential models y = abˣ. If log y against x gives a value of r closer to 1 (or −1) than y against x, the data are closer to an exponential model than to a straight line.
Worked example: bacteria growth
t (hours): 1 2 3 4 5 6
N (bacteria per ml): 120 190 280 460 680 1100
r for N against t: 0.951 r for log N against t: 0.9996
Both are strong, but log N against t is almost a perfect line.
Answer: An exponential model N = abᵗ fits better than a linear model.
Exam tip: A high value of r for y against x does not prove that a straight line is the best model. Always look at the scatter diagram too.
Interpreting correlation with care
Correlation does not imply causation. Two variables can be correlated because both depend on a third variable, or just by chance. To claim one causes the other you need a sensible reason, not just a high value of r.
Worked example: a third variable
Over one summer, the number of ice creams sold at a beach and the number of people treated for sunburn have r = 0.91. Does eating ice cream cause sunburn?
No. Both increase on hot, sunny days. Sunshine is a third variable that affects both.
Answer: strong positive correlation, but no causal link between the two variables
Distinct sections. A scatter diagram can contain two groups that come from different parts of the population, for example two seasons or two weather stations. A single value of r for all the data can then be misleading.
Worked example: two groups
For all 20 days, r = −0.797, which suggests that warmer days have less rain.
Within each month there is almost no correlation: r = 0.081 for January and r = −0.064 for July.
The overall negative value only comes from comparing two different seasons.
Answer: analyse the two months separately; within a month temperature and rainfall are not linearly correlated
Non-linear patterns and outliers. r only measures linear correlation. Points on a U-shaped curve can give r close to 0 even though x and y are clearly related. One outlier can also change r a lot, so check the data for recording errors.
Common mistakes
- Saying that a high value of r proves that one variable causes the other.
- Describing r = −0.9 as weak because it is negative. The sign gives the direction; the size gives the strength.
- Giving r without interpreting it in the context of the question.
- Saying "no relationship" when r is close to 0: there may be a non-linear relationship.
- Using one value of r for data that clearly fall into separate groups.
Revision questions
Try these, then check your answers below each one.
Question 1. A sample gives r = −0.93. Which description is correct? (Choose from: Strong negative linear correlation; Weak negative linear correlation; Strong positive linear correlation; No linear correlation.)
Answer: Strong negative linear correlation
Working: r is negative and close to −1: strong negative linear correlation.
Question 2. Use your calculator to find the PMCC for these data, to 3 decimal places.<br>x: 1, 3, 4, 6, 8, 9<br>y: 2.0, 3.9, 4.1, 6.2, 7.8, 9.5
Answer: 0.992
Working: Calculator: r = 0.992, a very strong positive linear correlation.
Question 3. Over one summer, the number of ice creams sold at a beach and the number of shark sightings have r = 0.97. Amira says this shows that eating ice cream attracts sharks. Is Amira correct?
Answer: No
Working: No. Correlation does not imply causation. Both are likely to rise in hot weather, when more people visit the beach and swim.
Related lessons
- Previous lesson: 1.1 Exponential Models
- Next lesson: 1.3 Hypothesis Testing for Zero Correlation
Continue in the full course
This lesson is section 1.2 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.