Steply

Find the correlation r and describe the relationship

Step by step, with the reason for every step · AP Statistics Practice Exam 2 · AP Statistics

Step by step

The question

Question: find the correlation coefficient r for (20, 30), (22, 35), (24, 37), (26, 43), (28, 45).

(20, 30) (22, 35) (24, 37) (26, 43) (28, 45)

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: 120 divided by 5 is 24.

mean x = 20 + 22 + 24 + 26 + 285 = 24

The mean of the y numbers: 190 divided by 5 is 38.

mean y = 30 + 35 + 37 + 43 + 455 = 38

2 Make the table

A table with the points.

How far each point is from the means.

20 minus 24 is −4, and 30 minus 38 is −8.

These distances always add up to 0.

A good check.

The product: the two distances multiplied.

−4 times −8 is 32.

Why multiply?

Up and right of the means, both distances are positive: the product is positive.

Down and left, both are negative: positive again.

Those points make an uphill line.

The other points give negative products: downhill.

product +: an uphill point, −: a downhill point

And each distance squared.

−4 squared is 16.

−8 squared is 64.

The squares show how spread out x and y are.

We add the last three columns: 76, 40 and 148.

3 Put them in the rule

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

Dividing by the spread keeps r between negative 1 and 1, whatever the numbers.

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

We put the totals in: 76 on top.

40 times 148 under the root.

r = 76√40 × 148

Careful!

Do not forget the square root.

Without it, r comes out far too small.

Careful: not 7640 × 148 ✗

4 Work it out

40 times 148 is 5920.

r = 76√5920

With a calculator, the square root of 5920 is about 76.942.

40 × 148 = 5920
√5920 ≈ 76.942

So r is about 76/76.942.

r ≈ 7676.942

Divided: about 0.988, to 3 decimal places.

r ≈ 0.988

5 What r tells us

On a scale from negative 1 to 1.

r is here, at 0.988.

Positive: as x goes up, y goes up.

Close to 1: strong.

A strong positive correlation.

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

6 Check

Let's check.

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

It is.

total of products 76 > 0 → r > 0

And r is between negative 1 and 1.

So it makes sense!

−1 ≤ 0.988 ≤ 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.988

Your turn

Try this one yourself, then check your answer:

Find r for (20, 29) (22, 34) (24, 36) (26, 42) (28, 44)
Show the answer
r ≈ 0.988

More from AP Statistics Practice Exam 2

The whole lesson: AP Statistics Practice Exam 2 →