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.
Eight students recorded the hours they spent revising, $x$, and their test score, $y$.
| Hours $x$ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Score $y$ | 48 | 55 | 53 | 62 | 64 | 70 | 69 | 78 |
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.
The eight dots are Example 1. P is a ninth student you can move.
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.
Across Australian towns, the number of libraries and the number of crimes reported each year have a strong positive correlation. Do libraries cause crime?
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.
A study looks at daily maximum temperature and the number of cold drinks sold at a shop. Which variable goes on the horizontal axis?
Temperature is the explanatory variable: hot weather may lead to more sales. It goes on the horizontal axis.
$r = -0.85$ describes a relationship that is:
$|r| = 0.85 \ge 0.75$ is strong, and the negative sign means $y$ tends to fall as $x$ rises.
Which value of $r$ shows the strongest linear relationship?
Strength depends on $|r|$, not the sign. $|-0.92| = 0.92$ is the largest.
Which could not be a correlation coefficient?
$r$ always lies between $-1$ and $1$.
Find $r$ for the points $(1, 2)$, $(2, 4)$ and $(3, 6)$.
All three lie exactly on $y = 2x$, a line with positive gradient, so $r = 1$.
Use your calculator to find $r$ for the points $(1, 3)$, $(2, 5)$, $(3, 4)$, $(4, 8)$, correct to two decimal places.
Entering the four pairs in statistics mode gives $r \approx 0.8367$, so $0.84$: a strong positive linear relationship.
Countries with more mobile phones per person have higher life expectancy. The most likely explanation is:
National wealth is a lurking variable that increases both. The correlation is real, but it is not cause and effect.
A scatterplot shows points on a clear U-shaped curve, and $r = 0.05$. The best description is:
$r$ near $0$ only rules out a linear pattern. The U shape is a strong curved relationship.
Exam style: find $r$ for $x$: $2, 4, 6, 8, 10$ and $y$: $15, 12, 10, 6, 3$, correct to three decimal places.
A calculator gives $r \approx -0.9956$, so $-0.996$. The points fall steadily: a very strong negative linear relationship.
Exam style: in Example 1, one more student revised for $8$ hours but scored only $40$. Adding this point would:
The point is far below the trend. With it included, $r$ drops from about $0.97$ to about $0.39$: a single outlier can badly weaken the correlation.
Coaching Centre