Scatter Graphs and Correlation

A scatter graph plots pairs of data as points, one variable across and one up, to show whether they are related. Each point is one person, day or object, for example one student’s hours of revision and their test score.

246810405060708090
Hours of revision (across) and test score (up) for ten students. The points rise from left to right: positive correlation. Example data.

Types of correlation

  • Positive correlation: as one variable increases, the other tends to increase. The points slope upwards, like revision time and test scores.
  • Negative correlation: as one variable increases, the other tends to decrease. The points slope downwards, like a car’s age and its value.
  • No correlation: there is no clear pattern. Knowing one variable tells you nothing about the other, like shoe size and test score.
246810481216
A car’s age in years (across) and its value in £1000s (up). The points fall from left to right: negative correlation. Example data.
46810506070
Shoe size (across) and test score (up). The points are scattered with no pattern: no correlation. Example data.

Strong or weak?

The closer the points are to a straight line, the stronger the correlation. When the points form a wide, loose band, the correlation is weak.

The correlation coefficient, written r, puts a number on this. It always lies between −1 and 1:

rDescription
0.9 to 1very strong positive
0.7 to 0.9strong positive
0.4 to 0.7moderate positive
0.2 to 0.4weak positive
−0.2 to 0.2little or no correlation
−0.4 to −0.2weak negative
−0.7 to −0.4moderate negative
−0.9 to −0.7strong negative
−1 to −0.9very strong negative

These bands are a common guide; textbooks draw the lines in slightly different places. The revision data above has r = 0.991, the car data r = −0.996, and the shoe size data r = −0.035.

See r for the revision data in the Line of Best Fit calculator →

Outliers

An outlier is a point that doesn’t fit the pattern of the others, such as a student who revised for 9 hours but scored only 20. Outliers can be mistakes in the data, or genuinely unusual cases. One outlier can change r a lot, so look at the graph as well as the number.

Correlation is not causation

Two things can rise and fall together without one causing the other. Ice cream sales and sunburn cases are positively correlated, but ice cream doesn’t cause sunburn: both increase in hot, sunny weather. The weather is a hidden variable behind both.

So a scatter graph can show that two things are linked, but not why. Deciding whether one causes the other needs more evidence, such as an experiment.

When the correlation is strong, a line of best fit can summarise the pattern and make predictions.