Steply

Correlation coefficient of (3, 7) (5, 4) (7, 6) (9, 3)

Step by step, with the reason for every step · The correlation coefficient · Statistics

Step by step

The question

Question: find the correlation coefficient r for (3, 7), (5, 4), (7, 6), (9, 3).

(3, 7) (5, 4) (7, 6) (9, 3)

r is a number from negative 1 to 1.

It tells how close the points are to a straight line, going up or down.

r: from −1 to 1, how close to a line

1 Find the means

The mean of the x numbers: 24 divided by 4 is 6.

mean x = 3 + 5 + 7 + 94 = 6

The mean of the y numbers: 20 divided by 4 is 5.

mean y = 7 + 4 + 6 + 34 = 5

2 Make the table

A table with the points.

How far each point is from the means.

3 minus 6 is −3, and 7 minus 5 is 2.

These distances always add up to 0.

A good check.

The product: the two distances multiplied.

−3 times 2 is −6.

And each distance squared.

−3 squared is 9.

2 squared is 4.

We add the last three columns: −10, 20 and 10.

3 Put them in the rule

The rule: the total of the products, over the square root of the two totals of squares multiplied.

r = products√x squares × y squares
each word = the total of its column

We put the totals in: −10 on top.

20 times 10 under the root.

r = −10√20 × 10

Careful!

Do not forget the square root.

Without it, r comes out far too small.

Careful: not −1020 × 10 ✗

4 Work it out

20 times 10 is 200.

r = −10√200

With a calculator, the square root of 200 is about 14.142.

20 × 10 = 200
√200 ≈ 14.142

So r is about −10/14.142.

r ≈ −1014.142

Divided: about −0.707, to 3 decimal places, like the books.

r ≈ −0.707

5 What r tells us

On a scale from negative 1 to 1.

r is here, at −0.707.

Negative: as x goes up, y goes down.

Not close to 1: weak.

A weak negative correlation.

= weak negative correlation
near ±1: strong, near 0: none

6 Check

Let's check.

The products add up to −10, so r must be negative.

It is.

total of products −10 < 0 → r < 0

And r is between negative 1 and 1.

So it makes sense!

−1 ≤ −0.707 ≤ 1

Let's look back.

First: find the means.

Then: make the table.

Then: put them in the rule.

Then: work it out.

Then: what r tells us.

Last: check.

Answer
r ≈ −0.707

Your turn

Try this one yourself, then check:

Find r for (3, 8) (5, 2) (7, 4) (9, 2)
Show the answer
r ≈ −0.73

More from The correlation coefficient

The whole lesson: The correlation coefficient →