11A

Scatterplots and correlation

Bivariate data, explanatory and response variables, scatterplots, describing form, direction and strength, Pearson's correlation coefficient r, outliers, and why correlation does not imply causation.

Does more study time lead to better marks? Do taller people have bigger feet? Questions about how two quantities move together need bivariate data: two measurements for each individual. This chapter gives you a picture (the scatterplot), a number (the correlation coefficient) and an equation (the regression line, in 11B).

Scatterplots

The explanatory (independent) variable is the one we think might explain or predict the other. It goes on the horizontal axis. The response (dependent) variable goes on the vertical axis. Each individual becomes one point.

Example 1●

Eight students recorded the hours they spent revising, $x$, and their test score, $y$.

Hours $x$12345678
Score $y$4855536264706978
Hours is the explanatory variable, on the horizontal axis.
Revision time might explain the score, not the other way round.
The points rise from left to right, close to a straight line: a strong, positive, linear relationship with no obvious outliers.
Look at the overall shape, then the direction, then how tightly the points cluster.

Pearson's correlation coefficient

The correlation coefficient $r$ puts a number on the strength and direction of a linear relationship. You find it with a calculator in statistics mode (enter the pairs, choose linear regression). It always satisfies $-1 \le r \le 1$.

Value of $r$Description
$r = 1$ or $r = -1$perfect: every point is exactly on a line
$0.75 \le |r| \lt 1$strong
$0.5 \le |r| \lt 0.75$moderate
$0.25 \le |r| \lt 0.5$weak
$|r| \lt 0.25$little or no linear relationship

The sign of $r$ gives the direction. For Example 1 a calculator gives $r \approx 0.97$: a strong positive linear relationship, as the scatterplot suggested.

One extra student

The eight dots are Example 1. P is a ninth student you can move.

Try this

With P in the middle of the trend, note the value of r. Now drag P to $(8, 40)$: a student who revised a lot but scored badly. How much does one outlier change r? Where can you put P to make r even bigger than before?

Correlation is not causation

A strong correlation says two variables move together. It does not say that changing one will change the other. Often both are driven by a third, lurking variable, or the link is a coincidence.

Example 2●●

Across Australian towns, the number of libraries and the number of crimes reported each year have a strong positive correlation. Do libraries cause crime?

No. Bigger towns have more libraries and also more crime, simply because they have more people.
Look for something that would increase both at once.
Population is the lurking variable. Comparing crime rates per person would remove it.

Your turn

For the data $x$: $10, 20, 30, 40, 50$ and $y$: $8.2, 7.1, 6.5, 5.0, 4.4$, use your calculator to find $r$ and describe the relationship.

Show the working

$r \approx -0.99$. A strong, negative, linear relationship: as $x$ increases, $y$ decreases steadily.

Flashcards
Explanatory variable
The one that may explain the other; on the horizontal axis
Range of $r$
$-1 \le r \le 1$
Strong linear relationship
$|r| \ge 0.75$
Lurking variable
A third variable that drives both, creating a correlation without causation
Practice
  1. A study looks at daily maximum temperature and the number of cold drinks sold at a shop. Which variable goes on the horizontal axis?

  2. $r = -0.85$ describes a relationship that is:

  3. Which value of $r$ shows the strongest linear relationship?

  4. Which could not be a correlation coefficient?

  5. Find $r$ for the points $(1, 2)$, $(2, 4)$ and $(3, 6)$.

  6. Use your calculator to find $r$ for the points $(1, 3)$, $(2, 5)$, $(3, 4)$, $(4, 8)$, correct to two decimal places.

  7. Countries with more mobile phones per person have higher life expectancy. The most likely explanation is:

  8. A scatterplot shows points on a clear U-shaped curve, and $r = 0.05$. The best description is:

  9. Exam style: find $r$ for $x$: $2, 4, 6, 8, 10$ and $y$: $15, 12, 10, 6, 3$, correct to three decimal places.

  10. Exam style: in Example 1, one more student revised for $8$ hours but scored only $40$. Adding this point would:

Formula sheet