Pearson's correlation coefficient
Put a number on a pattern with Pearson's correlation coefficient \(r\) in Year 12 General Mathematics for Queensland (QCAA). A Toowoomba bakery might notice it sells fewer pies on hot days, but how close is that link? \(r\) answers with a single value between \(-1\) and \(1\), so two 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. Next, squaring \(r\) gives the coefficient of determination.
Theory
Pearson's correlation coefficient \(r\) puts a number on a linear association. This Year 12 General Mathematics guide for Queensland students 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 between two numerical variables. It is found with technology: enter the pairs into a calculator's two-variable statistics mode and read off \(r\).
The value of \(r\) is always 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 single outlier can change \(r\) a lot. Changing the units of either variable does not change \(r\).
The calculator works out \(r\) from three sums of squared and multiplied deviations:
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})\). You do not need to compute these by hand: technology gives \(r\) directly. 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.
- Classify: the sign gives the direction; \(|r|\) and the guide give the strength.
- Interpret in context: “a strong negative linear association: as [explanatory] increases, [response] tends to decrease.”
Read the direction from the sign and the strength from the size.
| \(r = 0.83\) | \(>\) | \(0\) |
| \(\) | \(\Rightarrow\) | \(\text{positive}\) |
| \(|r| = 0.83\) | \(\ge\) | \(0.75\) |
| \(\) | \(\Rightarrow\) | \(\text{strong}\) |
A strong positive linear association: larger units tend to sell for more.
| Max temp (Β°C) | 14 | 16 | 19 | 21 | 24 | 26 |
|---|---|---|---|---|---|---|
| Pies sold | 62 | 55 | 58 | 48 | 49 | 40 |
Temperature is explanatory (\(x\)); enter the six pairs and read the statistics.
| \(S_{xx}\) | \(=\) | \(106\) |
| \(S_{yy}\) | \(=\) | \(314\) |
| \(S_{xy}\) | \(=\) | \(-166\) |
| \(r\) | \(=\) | \(\dfrac{S_{xy}}{\sqrt{S_{xx} \times S_{yy}}}\) |
| \(r\) | \(=\) | \(\dfrac{-166}{\sqrt{106 \times 314}}\) |
| \(r\) | \(\approx\) | \(-0.91\) |
\(r \approx -0.91\): a strong negative linear association. On hotter days the bakery tends to sell fewer pies.
| Study | Variables | Value |
|---|---|---|
| A | altitude and air temperature | \(r = -0.78\) |
| B | screen time and sleep | \(r = 0.64\) |
| C | shoe size and phone battery life | \(r = 0.21\) |
Compare sizes \(|r|\), ignoring the signs; then use the guide.
| \(\text{A: } |-0.78| = 0.78\) | \(\Rightarrow\) | \(\text{strong negative}\) |
| \(\text{B: } |0.64| = 0.64\) | \(\Rightarrow\) | \(\text{moderate positive}\) |
| \(\text{C: } |0.21| = 0.21\) | \(\Rightarrow\) | \(\text{no linear association}\) |
| \(0.78\) | \(>\) | \(0.64 > 0.21\) |
Study A is the strongest, even though its \(r\) is negative.
| Price (AUD) | 1.00 | 1.50 | 2.00 | 2.50 | 3.00 | 1.50 |
|---|---|---|---|---|---|---|
| Number sold | 88 | 80 | 63 | 58 | 41 | 12 |
The storm day is the point far below the rest; calculate \(r\) both ways.
| \(r_{\text{all 6 days}}\) | \(\approx\) | \(-0.35\) |
| \(r_{\text{without storm day}}\) | \(\approx\) | \(-0.99\) |
With the outlier, \(r \approx -0.35\) suggests only a weak association. Without it, \(r \approx -0.99\) shows a strong negative linear association: higher prices go with fewer sales. 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 between two numerical variables. 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.
Can r be greater than 1?
No. r is always between -1 and 1. A value outside that range means a calculation or data entry error.
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.
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.