Knaph

Statistics of Two Variables87 of 1002 min read

The Correlation Coefficient

Ivy has four scatter plots and four numbers: r=0.95r = 0.95, r=−0.8r = -0.8, r=0.1r = 0.1 and r=−0.3r = -0.3. Which number goes with which plot, and what exactly does it measure?

Sign and size

The correlation coefficient rr is a number from −1-1 to 11 that says how close the dots lie to a straight line. The sign is the direction: positive when the dots rise, negative when they fall. The size is how tight: near 1 or −1-1 means close to a line, near 0 means no linear (straight line) pattern. At r=1r = 1 or r=−1r = -1 all dots lie on one line.

A calculator gives rr. You read it, you do not compute it.

Four scatter plots: rising and tight with r = 0.95, falling and fairly tight with r = −0.8, a shapeless cloud with r = 0.1, and falling but loose with r = −0.3.

What the number ignores

Change the units, from cm to inches, and rr stays the same. Swap xx and yy and it stays the same too. Only the closeness to a line matters.

What the number cannot see

A perfect U shape can have r=0r = 0, even though the dots follow a rule. A value near 0 means no straight-line pattern, not no pattern. Also, one outlier can move rr a lot: 8 dots on a line have r=0.99r = 0.99, and one stray dot drops it to about 0.5.

Two scatter plots. Left: dots in a U shape with r = 0. Right: 8 dots on a rising line plus one dot far below, with r about 0.5.

Careful

A value near 0 does not mean the two variables are unrelated. A curve can hide behind it.

Try it at home

  1. Look at three scatter plots in a book or online.
  2. Guess whether each correlation is near 1, near −1 or near 0.
  3. Check the sign by asking whether the dots rise or fall.

Words in this lesson

  • correlation coefficient - the number rr from −1 to 1 that tells how close dots lie to a straight line.
  • linear - following a straight line.

Big idea

The sign of rr gives the direction and its size gives how close the dots lie to a line. It sees only straight-line patterns, and an outlier can change it.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.