Steply

Correlation coefficient of (1, 2) (2, 4) (3, 6) (4, 8) (5, 10)

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 (1, 2), (2, 4), (3, 6), (4, 8), (5, 10).

(1, 2) (2, 4) (3, 6) (4, 8) (5, 10)

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: 15 divided by 5 is 3.

mean x = 1 + 2 + 3 + 4 + 55 = 3

The mean of the y numbers: 30 divided by 5 is 6.

mean y = 2 + 4 + 6 + 8 + 105 = 6

2 Make the table

A table with the points.

How far each point is from the means.

1 minus 3 is −2, and 2 minus 6 is −4.

These distances always add up to 0.

A good check.

The product: the two distances multiplied.

−2 times −4 is 8.

And each distance squared.

−2 squared is 4.

−4 squared is 16.

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

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: 20 on top.

10 times 40 under the root.

r = 20√10 × 40

Careful!

Do not forget the square root.

Without it, r comes out far too small.

Careful: not 2010 × 40 ✗

4 Work it out

10 times 40 is 400.

r = 20√400

The square root of 400 is 20.

10 × 40 = 400
√400 = 20

So r is 20/20.

r = 2020

20 divided by 20 is 1.

r = 1

5 What r tells us

On a scale from negative 1 to 1.

r is here, at 1.

Positive: as x goes up, y goes up.

Exactly 1: all the points are on one straight line.

A perfect positive correlation.

= perfect positive correlation
near ±1: strong, near 0: none

6 Check

Let's check.

The products add up to 20, so r must be positive.

It is.

total of products 20 > 0 → r > 0

And r is between negative 1 and 1.

So it makes sense!

−1 ≤ 1 ≤ 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 = 1

Your turn

Try this one yourself, then check:

Find r for (1, 4) (2, 6) (3, 8) (4, 10) (5, 12)
Show the answer
r = 1

More from The correlation coefficient

The whole lesson: The correlation coefficient →