Find a course

Module 4: Normal Distributions and RelationshipsLesson 9 of 914 min

Scatter Plots, Correlation and Causation

Read scatter plots, interpret the correlation coefficient r, predict with a line of best fit, and keep correlation and causation apart.

Step 1 of 12Learn

Two variables at once

Does studying more lead to higher test scores? To look at a relationship between two quantitative variables, plot each individual as a point on a scatter plot: hours studied on the x-axis, test score on the y-axis.

The variable you think might explain or predict the other (hours) is the explanatory variable, and it goes on the x-axis. The one being predicted (score) is the response variable, on the y-axis.

Describe a scatter plot by its:

  • Direction: positive if y tends to rise as x rises (study more, score higher), negative if y tends to fall (more hours of TV, lower grades), or none.
  • Form: linear if the points cluster around a straight line, or curved, or no clear pattern.
  • Strength: how tightly the points hug the pattern. Tight means strong; loose and scattered means weak.
  • Outliers: points that don't fit the overall pattern.

The plot below shows 12 students. The points rise from left to right and stay close to a line: a strong, positive, linear association.

Scatter plot of hours studied against test score showing a strong positive linear association with a line of best fitHours studied (0 to 6)Test score (50 to 95)

Step 2 of 12Practice · Sort into groups

Sort each pair of variables by the association you would expect.

Tap an item, then tap its group (or drag it there).

Step 3 of 12Practice · Chart

Hours studied vs test score

Eight students. The cloud rises from left to right: a positive association.

Tap the student who sits farthest below the overall trend.

Tap the point that answers the question, then press Check.

Hours studied vs test scoreScatter plot with 8 points: A: Hours studied 1, Test score 60; B: Hours studied 2, Test score 62; C: Hours studied 2, Test score 67; D: Hours studied 3, Test score 71; E: Hours studied 4, Test score 62; F: Hours studied 4, Test score 79; G: Hours studied 5, Test score 83; H: Hours studied 6, Test score 87.6070809001234567Test scoreHours studiedABCDEFGH
Illustrative data.
Hours studied vs test score
PointHours studiedScore
A160
B262
C267
D371
E462
F479
G583
H687

Step 4 of 12Learn

The correlation coefficient r

Describing strength as "strong" or "weak" is vague. The correlation coefficient, written r, puts a number on the strength and direction of a linear relationship.

  • r is always between −1 and 1.
  • r = 1: a perfect positive line. r = −1: a perfect negative line.
  • r near 0: no linear relationship.
  • The sign gives the direction; the size (ignoring the sign) gives the strength. r = −0.9 is just as strong as r = 0.9.

Rough guidelines: |r| above about 0.8 is strong, 0.5 to 0.8 moderate, below 0.5 weak. The study data above has r ≈ 0.95.

Three cautions:

  1. r measures only linear relationships. Points in a perfect U-shape can have r ≈ 0 even though x and y are clearly related.
  2. r is not resistant: one outlier can raise or lower it dramatically.
  3. r has no units, and swapping x and y doesn't change it.

Software computes r instantly, but always look at the scatter plot first. Numbers without pictures hide curves and outliers.

Step 5 of 12Practice · Match the pairs

Match each correlation coefficient to the best description.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. r = 0.95
  2. r = −0.88
  3. r = 0.02
  4. r = 0.55
  5. r = −0.30

Step 6 of 12Learn

Lines of best fit and prediction

When a scatter plot looks linear, you can summarize it with a line of best fit (the regression line, found by software using the least-squares method). It has the familiar form

predicted y = b + m·x

For the study data, the line is about predicted score = 52 + 6 × hours.

  • The slope (6) means each extra hour of study is associated with about 6 more points, on average.
  • The intercept (52) is the predicted score for 0 hours, though it only makes sense if 0 is close to the data.

To predict, plug in x: a student who studies 4.5 hours has a predicted score of 52 + 6 × 4.5 = 79.

The big danger is extrapolation: predicting far outside the range of the data. These students studied 1 to 6 hours. Plugging in 10 hours predicts 112 out of 100, which is impossible. The pattern may change, level off or stop making sense beyond the data you have. Predictions are most trustworthy within the range of the observed x-values (interpolation).

Step 7 of 12Try the calculator

Predict with a line of best fit

Use the study line (intercept 52, slope 6) or enter your own. Try 4.5 hours, then try 10 hours and notice the impossible result.

Predicted score
79 points

Step 8 of 12Practice · Work it out

A line of best fit for car age (years) and value (thousands of dollars) is: predicted value = 24 − 1.8 × age. What is the predicted value, in thousands of dollars, of a 5-year-old car?

Step 9 of 12Learn

Correlation is not causation

In many towns, ice cream sales and drownings rise and fall together. Does ice cream cause drowning? Of course not. Both increase in hot weather, when more people buy ice cream and more people swim. Hot weather is a confounding variable (also called a lurking variable): it influences both variables and creates a correlation between them.

There are several reasons two variables can be correlated without one causing the other:

  • A confounding variable drives both, as with heat.
  • Reverse causation: the arrow points the other way. Cities with more police officers may have more crime, but high crime is often why they hired more officers.
  • Coincidence: with enough data, some unrelated series will line up by chance. Plenty of silly examples exist, such as yearly cheese consumption tracking some unrelated statistic for a decade.

As you learned in the first module, the way to show causation is a randomized experiment, where random assignment balances out confounding variables. Strong correlation from observational data is a reason to investigate, not proof.

Step 10 of 12Practice · What would you do?

What would you do?

A news story reports: "Towns with more fire trucks have more fire damage each year (r = 0.82)." A reader concludes that fire trucks somehow cause damage and towns should buy fewer. What's the best response?

Step 11 of 12Practice · True or false

A correlation of r = −0.9 indicates a weaker relationship than r = 0.5.

Step 12 of 12Practice · Choose one

The study line, predicted score = 52 + 6 × hours, was built from students who studied 1 to 6 hours. It predicts a score of 172 for 20 hours of study. What is the main problem?