Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 Maths - General (Unit 3 & Unit 4) Investigating associations between two variables

Pearson's correlation coefficient, r

20 practice questions 0 video lessons Theory + worked examples

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.

Create a free accountTrack your progress and save your work as you go.
Create free account

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\).

Key idea. Sign tells direction, size tells strength: \(|r| \ge 0.75\) strong, \(0.5 \le |r| < 0.75\) moderate, \(0.25 \le |r| < 0.5\) weak, and \(|r| < 0.25\) no linear association.
Strength guide for Pearson's rA scale from -1 to 1. |r| of 0.75 or more is strong, 0.5 to 0.75 moderate, 0.25 to 0.5 weak and below 0.25 no linear association. Negative values are negative associations, positive values positive associations.strongmoderateweaknoneweakmoderatestrongβˆ’1βˆ’0.75βˆ’0.5βˆ’0.2500.250.50.751← negative associationpositive association β†’perfect negative: r = βˆ’1perfect positive: r = 1
The strength guide: read the band from the size of \(r\) and the direction from its sign.
x y 2 4 6 8 2 4 6 8 10
The points rise fairly close to a line, and technology gives \(r \approx 0.91\): a strong positive linear association.

Technology finds \(r\) from the sums of squared and multiplied deviations from the means:

\[r = \dfrac{S_{xy}}{\sqrt{S_{xx} \times S_{yy}}}\]
r=SxySxx×Syy

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:

\[r = \dfrac{1}{n-1}\sum \left(\dfrac{x-\bar{x}}{s_x}\right)\left(\dfrac{y-\bar{y}}{s_y}\right)\]
r=1n−1∑(x−x¯sx)(y−y¯sy)

The value always satisfies

\[-1 \le r \le 1\]
−1≤r≤1
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
Only for straight lines. Use \(r\) only when the scatterplot shows a linear form with no outliers distorting it.

How to calculate and interpret r

  1. Plot the data first and check that the form is linear, with no outliers that distort the pattern.
  2. Enter the pairs into the calculator’s two-variable statistics mode, explanatory variable as \(x\) and response as \(y\).
  3. 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}}\).)
  4. Classify: the sign gives the direction; \(|r|\) and the guide give the strength.
  5. Interpret in context: “a strong positive linear association: as [explanatory] increases, [response] tends to increase.”
Example 1 — Describe values of r
Four Victorian studies found these values of \(r\).
StudyVariablesValue
Adaily screen time and hours of sleep\(r = -0.58\)
Bage of a used car and its price\(r = -0.81\)
Cheight and last digit of phone number\(r = 0.07\)
Dhours of sunshine and solar power generated\(r = 0.44\)
Describe each association and state which is strongest.
Solution

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.

Example 2 — Calculate r
An Echuca paddle-steamer operator recorded the maximum temperature and the number of passengers on six days.
Max temperature (Β°C)182124273033
Passengers526158747984
Find \(r\) correct to \(2\) decimal places and describe the association.
Solution

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.

Example 3 — A large r on a curve
A Melbourne start-up recorded the downloads of its new app (thousands) in each of its first eight weeks. Technology gives \(r \approx 0.95\). Is \(r\) a suitable measure of strength here?
week downloads (1000s) 1 2 3 4 5 6 7 8 10 20 30 40
Solution

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.

Example 4 — The effect of an outlier
A Shepparton orchard stall recorded the price of apricots and the boxes sold on seven days. On one day a storm closed the stall early.
Price per kg (AUD)2345673
Boxes sold4236342725188
Find \(r\) with and without the storm day, and comment.
Solution

The storm day \((3,\ 8)\) is the point far below the rest; calculate \(r\) both ways.

price per kg (AUD) boxes sold 1 2 3 4 5 6 7 10 20 30 40
\(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

Size, not sign, gives strength. \(r = -0.8\) is a stronger association than \(r = 0.6\). The minus sign only tells you the direction.
Check the scatterplot first. A curved pattern or an outlier can give a value of \(r\) that misrepresents the data. \(r\) describes linear associations only.
\(r\) is not the slope. A steep trend does not mean a large \(r\). The two share a sign, but \(r\) measures how closely the points follow a line, not how steep it is.

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.