Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 General (Unit 3 & 4) Bivariate data analysis 1

Pearson's correlation coefficient

20 practice questions 0 video lessons Theory + worked examples

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.

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

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
Points rise fairly close to a line, and a calculator gives \(r \approx 0.89\): a strong positive linear association.

The calculator works out \(r\) from three sums of squared and multiplied deviations:

\[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})\). You do not need to compute these by hand: technology gives \(r\) directly. 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. A curved pattern can give a misleading value.

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.
  4. Classify: the sign gives the direction; \(|r|\) and the guide give the strength.
  5. Interpret in context: “a strong negative linear association: as [explanatory] increases, [response] tends to decrease.”
Example 1 — Interpret a value of r
For a sample of Brisbane units, Pearson's correlation coefficient between floor area (m\(^2\)) and sale price is \(r = 0.83\). Describe the association.
Solution

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.

Example 2 — Calculate r with technology
A Toowoomba bakery recorded the maximum temperature and the number of pies sold on six days.
Max temp (Β°C)141619212426
Pies sold625558484940
Find \(r\) correct to \(2\) decimal places and describe the association.
Solution

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.

Example 3 — Which is strongest?
Three Queensland studies found these values of \(r\).
StudyVariablesValue
Aaltitude and air temperature\(r = -0.78\)
Bscreen time and sleep\(r = 0.64\)
Cshoe size and phone battery life\(r = 0.21\)
Describe each association and state which is strongest.
Solution

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.

Example 4 — The effect of an outlier
A Cairns market stall recorded the price of a mango and the number sold on six days. On one day a storm closed the market early.
Price (AUD)1.001.502.002.503.001.50
Number sold888063584112
Find \(r\) with and without the storm day, and comment.
Solution

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

price (AUD) number sold 0.5 1 1.5 2 2.5 3 20 40 60 80
\(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

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 patterns only.
\(r\) is not the slope. A steep line does not mean a large \(r\). The two share a sign, but \(r\) measures how closely points follow the 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 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.