Pearson's correlation coefficient, r
Put a number on a pattern with Pearson’s correlation coefficient \(r\) in Year 12 VCE General Mathematics. A paddle-steamer operator on the Murray at Echuca might notice more passengers on hot days, but how close is that link? \(r\) answers with a single value between \(-1\) and \(1\), so different patterns can be compared fairly.
You will practise finding \(r\) with your calculator’s statistics mode, reading its sign as the direction and its size as the strength (strong, moderate, weak or none), and explaining what it means in context. You will also see how one outlier or a curved pattern can mislead, before asking whether an association like this means one variable causes the other.
Theory
Pearson’s correlation coefficient \(r\) puts a number on a linear association. This Year 12 General Mathematics guide for students in Victoria shows how to calculate \(r\) with technology, read its sign as direction and its size as strength, and recognise when outliers or curves make \(r\) misleading.
Pearson’s correlation coefficient, \(r\), is a single number that measures the strength and direction of a linear association when both variables are numerical. It is usually found with technology: enter the pairs into a calculator’s two-variable statistics mode and read off \(r\).
The value of \(r\) always lies between \(-1\) and \(1\). Its sign gives the direction: positive \(r\) for a positive association, negative \(r\) for a negative one. Its size, \(|r|\), gives the strength. \(r = 1\) or \(r = -1\) means every point lies exactly on a straight line; \(r\) close to \(0\) means no linear association.
\(r\) only makes sense for a linear pattern, so look at the scatterplot first. A curved pattern can still give a large \(r\), and a single outlier can change \(r\) a lot. Changing the units of either variable does not change \(r\).
Technology finds \(r\) from the sums of squared and multiplied deviations from the means:
where \(S_{xx} = \sum (x-\bar{x})^2\), \(S_{yy} = \sum (y-\bar{y})^2\) and \(S_{xy} = \sum (x-\bar{x})(y-\bar{y})\). The same value can be written with standardised values, using the means \(\bar{x}, \bar{y}\) and standard deviations \(s_x, s_y\) of \(n\) pairs:
The value always satisfies
| Size of \(r\) | Strength |
|---|---|
| \(|r| \ge 0.75\) | strong |
| \(0.5 \le |r| < 0.75\) | moderate |
| \(0.25 \le |r| < 0.5\) | weak |
| \(|r| < 0.25\) | no linear association |
How to calculate and interpret r
- Plot the data first and check that the form is linear, with no outliers that distort the pattern.
- Enter the pairs into the calculator’s two-variable statistics mode, explanatory variable as \(x\) and response as \(y\).
- Read \(r\) and round it to \(2\) decimal places. (By hand: find \(S_{xx}\), \(S_{yy}\) and \(S_{xy}\), then \(r = S_{xy} \div \sqrt{S_{xx} \times S_{yy}}\).)
- Classify: the sign gives the direction; \(|r|\) and the guide give the strength.
- Interpret in context: “a strong positive linear association: as [explanatory] increases, [response] tends to increase.”
| Study | Variables | Value |
|---|---|---|
| A | daily screen time and hours of sleep | \(r = -0.58\) |
| B | age of a used car and its price | \(r = -0.81\) |
| C | height and last digit of phone number | \(r = 0.07\) |
| D | hours of sunshine and solar power generated | \(r = 0.44\) |
Read the direction from the sign and the strength from the size \(|r|\).
| \(\text{A: } |-0.58| = 0.58\) | \(\Rightarrow\) | \(\text{moderate negative}\) |
| \(\text{B: } |-0.81| = 0.81\) | \(\Rightarrow\) | \(\text{strong negative}\) |
| \(\text{C: } |0.07| = 0.07\) | \(\Rightarrow\) | \(\text{no linear association}\) |
| \(\text{D: } |0.44| = 0.44\) | \(\Rightarrow\) | \(\text{weak positive}\) |
| \(0.81\) | \(>\) | \(0.58 > 0.44 > 0.07\) |
Study B is the strongest (older cars tend to be cheaper), even though its \(r\) is negative. Study C shows no linear association.
| Max temperature (Β°C) | 18 | 21 | 24 | 27 | 30 | 33 |
|---|---|---|---|---|---|---|
| Passengers | 52 | 61 | 58 | 74 | 79 | 84 |
Temperature is explanatory (\(x\)). Enter the six pairs in the two-variable statistics mode; the working below shows what the calculator does.
| \(S_{xx}\) | \(=\) | \(157.5\) |
| \(S_{yy}\) | \(=\) | \(818\) |
| \(S_{xy}\) | \(=\) | \(345\) |
| \(r\) | \(=\) | \(\dfrac{S_{xy}}{\sqrt{S_{xx} \times S_{yy}}}\) |
| \(\) | \(=\) | \(\dfrac{345}{\sqrt{157.5 \times 818}}\) |
| \(\) | \(\approx\) | \(0.96\) |
\(r \approx 0.96\): a strong positive linear association. Hotter days tend to bring more passengers.
Check the form first: compare the weekly increases.
| \(\text{week 1 to 2}\) | \(=\) | \(2 - 1\) |
| \(\) | \(=\) | \(1\) |
| \(\text{week 7 to 8}\) | \(=\) | \(36 - 25\) |
| \(\) | \(=\) | \(11\) |
| \(\text{increases keep growing}\) | \(\Rightarrow\) | \(\text{non-linear}\) |
No. The points curve upwards, so the association is non-linear. \(r\) measures the strength of a linear association only, so the large value \(0.95\) does not mean the association is strong and linear.
| Price per kg (AUD) | 2 | 3 | 4 | 5 | 6 | 7 | 3 |
|---|---|---|---|---|---|---|---|
| Boxes sold | 42 | 36 | 34 | 27 | 25 | 18 | 8 |
The storm day \((3,\ 8)\) is the point far below the rest; calculate \(r\) both ways.
| \(r_{\text{all 7 days}}\) | \(\approx\) | \(-0.41\) |
| \(r_{\text{without storm day}}\) | \(\approx\) | \(-0.99\) |
With the outlier, \(r \approx -0.41\) suggests only a weak association. Without it, \(r \approx -0.99\) shows a strong negative linear association: higher prices go with fewer boxes sold. One unusual point changed \(r\) a lot.
Common pitfalls
Frequently asked questions
What does Pearson's correlation coefficient tell you?
It tells you the direction and strength of a linear association when both variables are numerical. The sign gives the direction and the size gives the strength, on a scale from -1 to 1.
What is a strong value of r?
Using the usual guide, r of 0.75 or more in size is strong, 0.5 up to 0.75 is moderate, 0.25 up to 0.5 is weak, and below 0.25 there is no linear association. The same bands apply to negative values.
How do you find r on a calculator?
Put the calculator in two-variable statistics mode, enter the explanatory variable as x and the response as y, then read the value labelled r. Round it to two decimal places.
Is r = -0.9 weaker than r = 0.5?
No. Strength depends on the size of r, ignoring the sign. r = -0.9 is a strong negative association, which is stronger than the moderate positive association r = 0.5.
Can you use r for a curved scatterplot?
No. r only measures the strength of a linear association. A curved pattern can still give a value close to 1 or -1, so always check the scatterplot first.
Does changing the units change r?
No. Converting centimetres to metres, or dollars to cents, does not change r, because r has no units and depends only on how closely the points follow a line.