Study Blocks

World map › Bivariate data & probability › Lesson 5

Scatter plots and correlation: related, or just together?

⏱ about 50 min · MYP criteria A, B, C, D

By the end of this lesson you can…
🌍 The big question

A primary school tests the reading of its pupils, aged 6 to 11. Someone also writes down each child’s shoe size, and puts the two measurements on one graph. The result is striking (illustrative data, invented for this lesson): children with bigger feet have higher reading scores, and the pattern is clear.

A parent reads about it and says: “So big feet make better readers! Let’s buy the children bigger shoes.”

Everyone smiles, because it is obviously silly. But why is it silly, when the data really does show the pattern? And what about claims that are not so obviously silly, like a (made-up) headline “Teenagers who eat breakfast get better marks”? Today you will learn to read such graphs, describe what they show, and spot when they are being asked to prove too much.

In the linear-functions unit (Lesson 7) you drew a line of best fit through a scatter plot: points that followed a straight-line trend. Today we ask two new questions: how strongly do two measurements go together, and does one cause the other?

🧪 Explore — try it, no scoring

Try these first. Nothing is marked: just have a go.

no hints, nothing is marked

A website lists six used cars of the same model (illustrative data):

age (years)123456
price (thousand $)18161512119

Which sentence describes the data best?

no hints, nothing is marked

Ten students recorded the number of letters in their first name and their number of cousins (illustrative data). Each point is one student.

Which sentence describes the graph best?

→ letters in first name↑ number of cousins
no hints, nothing is marked

Suppose that in one country, towns with more cafés also have more traffic lights. A mayor says: "If we open more cafés, we will get more traffic lights."

Which response is best?

Now explore. Each data set below has two measurements for each person or thing.

  1. For each ready-made data set, decide first which description fits, then press it to check. Start with Shoe size and reading, then try every other button.
  2. On Shoe size and reading, tick show each child’s age. What do you notice about the children of the same age?
  3. Tick show the line of best fit and go through the data sets again. When does the line go up? When does it go down? When is it almost useless?
  4. Press Make your own (it starts empty). Make 6 points that go down from left to right. Then make them bend into a U shape. What does the description say?
  5. Make 6 points with no pattern. Then add one point far away in the top right corner. What happens to the description?
🎯 Predict first

Before you look: for a car driven at different speeds, the fuel it uses per 100 km first falls and then rises again. What would a straight line of best fit through those points look like?

Shoe size and reading: each point is one child. Illustrative data.

283032343638020406080100→ shoe size (EU)→ reading score

What kind of pattern is this? Decide first, then check.

🔎 What do you notice?
  • In some data sets the points go up from left to right, in some they go down, and in some there is no trend at all.
  • Some patterns are tight (the points hug a line) and some are loose (the points are spread widely around it), even when both go the same way.
  • When the line of best fit goes up, the points go up; when it goes down, the points go down. For the speed-and-fuel data the line is nearly flat, although the points follow a very clear curve.
  • Among children of the same age, bigger feet do not go with better reading: the pattern appears only because older children have both bigger feet and more years of reading practice.
  • One far-away point can make scattered points look as if they follow a trend.
  • Try-first 1 (the used cars). As the age goes up, the price goes down, step after step: older cars sell for less.
  • Try-first 2 (the plotted points). The points are spread all over the grid, with no trend up or down: knowing one measurement tells you nothing about the other.
  • Try-first 3 (the towns). Bigger towns have more cafés and more traffic lights. The size of the town drives both, so building cafés will not create traffic lights.
📐 Key idea

Scatter plots and correlation

Data that gives two measurements for each person or thing (height and arm span; temperature and gas used) is called bivariate data (bi = two, variate = varying quantity). We show it on a scatter plot (also: scatter graph, scatter diagram): one point for each pair.

Correlation describes how the two measurements move together in a straight-line way:

  • Positive correlation: as one increases, the other tends to increase (points rise from left to right).
  • Negative correlation: as one increases, the other tends to decrease (points fall from left to right).
  • No correlation: there is no straight-line trend.

The strength says how closely the points follow a straight line: strong (close to a line) or weak (loosely scattered around one).

An outlier on a scatter plot is a point that is far away from the pattern of the others, like the student who revised for 7 hours but scored 30.

Always describe a correlation in context: “strong negative correlation: on colder days the house uses more gas”.

🔍 Why it works

Why the direction matches the line of best fit

A line of best fit is the straight line that sits in the middle of the points. If the points rise from left to right, the line that follows them must rise too: its gradient is positive. If the points fall, its gradient is negative. If there is no trend, the best line is close to flat. So the sign of the correlation is the sign of the gradient of the line of best fit.

The strength is a different question: how close the points are to that line. Two data sets can have lines with the same gradient, one with points hugging the line (strong) and one with points scattered far from it (weak). And when the points follow a curve, the best straight line is a poor summary: that is why a strong curved relationship can look like “no correlation”.

📐 Key idea

Correlation is not causation

Causation means that one thing actually makes the other happen. A correlation alone never proves causation. There are three common other explanations:

  1. A hidden variable (also: third variable, confounding variable) affects both. Age makes children’s feet grow and gives them more reading practice. Time itself can act as a hidden variable: with data over many years, any two things that both grow (phones sold, average height over the 20th century) will tend to be correlated.
  2. The cause runs the other way (reverse causation). Areas where crime rose last year are sent more police officers this year, so “more police” and “more crime” go together, but not because police cause crime.
  3. Coincidence. With only a few points, a pattern can appear by pure chance.

To show causation, scientists use experiments: they change one thing on purpose, for randomly chosen groups, and keep everything else the same.

🔍 Why it works

Look again at the shoe data with each child’s age shown. Inside each age group, the points have no upward trend: among 8-year-olds, bigger feet do not go with better reading. The overall pattern comes from the groups being placed one after another, younger children bottom left and older children top right. If feet really caused reading, the pattern would appear inside each age group too. The correlation is real; the causation is not.

⚠️ Watch out

Four traps

  • No correlation is not the same as no relationship. Points can follow a clear curve (speed and fuel) with almost no straight-line correlation. Always look at the plot, not only at a word or a number.
  • Small samples can fool you. Five points can line up by chance. A strong correlation in 5 points is much weaker evidence than in 500.
  • An outlier can create or hide a pattern. One far point can make scattered points look correlated, or hide a strong trend. Check it, and give a reason before you remove it (as in Lesson 4).
  • Don’t predict far outside the data (extrapolation, from Lesson 7 of the linear-functions unit): the trend may change or stop.
🧱 Worked example

Heating a house in winter

A family records the average outside temperature and the gas used for heating on 10 days (illustrative data):

temperature (°C)−4−1246810121518
gas used (kWh)7160.557494837363220.516
Step 1 — Direction

As the temperature goes up, the gas used goes down: negative correlation. A line of best fit would have a negative gradient.

Step 2 — Strength and outliers

On a scatter plot (try the Outside temperature and heating data in the widget) every point is close to one falling straight line: strong negative correlation. No point is far from the pattern, so there are no outliers.

Step 3 — In context

“There is a strong negative correlation between the outside temperature and the gas used: on colder days, the house uses more gas for heating.”

Step 4 — Is it sensible? Is it causation?

Here a causal link is very believable, because we know the mechanism: a heater must replace the heat a house loses, and a house loses heat faster when it is colder outside. But notice where that belief comes from: from physics, not from the correlation. The data alone would also fit other stories (for example, colder days fall in the holidays, when the family is at home more). The correlation agrees with the explanation; it does not prove it on its own.

Foundation

A candle is lit, and its length is measured every hour (illustrative data). Describe the correlation.

→ hours since it was lit↑ length of candle (cm)
IB StandardCriterion C

Suppose a city finds: in weeks when more umbrellas are sold, there are more traffic accidents. Which is the best explanation?

🤔 Pause and think

How would you prove it?

A company says its new revision app raises test scores, because students who used it more scored higher. How would you design a fair test? Who would use the app, who would not, how would you choose them, and what would you keep the same? Why does choosing the groups randomly (for example, by tossing a coin for each student) matter so much?

And the made-up headline from the start of the lesson, “Teenagers who eat breakfast get better marks”: which hidden variables could explain it (think about sleep, routines at home, getting to school on time)? What experiment would test it fairly?

⛏ Practice — choose your level

An outdoor swimming pool records the hours of sunshine and the number of visitors on eight days (illustrative data):

sunshine (hours)124568911
visitors406590110120160175210

What type of correlation is this?

🏗 Build project — real-life task

Drink more, improve faster?

A sports-drink company sends this headline to a running magazine: “Our drink makes you faster! Runners who drink more improve more.”

It is based on 11 runners in one running club (illustrative data). For each runner it records how many bottles of the drink they had per week, and how much their 5 km time improved over the season (in seconds):

bottles per week01123345661
improvement (s)10251535405560708575110

Answer the questions in order. You are the magazine’s maths checker: should the headline be printed?

IB StandardCriterion D

Plot the sports-drink data (bottles per week, improvement in seconds) as a scatter plot, or look at the plot below. Ignoring the one runner who is far from the others, describe the correlation.

→ bottles per week↑ improvement (s)
FoundationCriterion D

Which runner is the outlier? Give the point as (bottles per week, improvement).

IB StandardCriterion D

Which is the most likely hidden variable that could explain the correlation without the drink making anyone faster?

ExtensionCriterion D

You are the magazine's maths checker. Write a short reply (4–6 sentences) to the editor: should the headline "Our drink makes you faster!" be printed? Use the data and your answers. Mention at least three reasons, and describe what better evidence would look like.

📓 Work it out in your notebook first — sketch, calculate, then write your answer here in full sentences. A model answer appears after you submit, so you can compare.

🔗 Connections

This lesson closes the unit. Look at how its ideas fit together: in probability you counted every possible outcome (lists, grids and trees) to know what to expect; with data you summarise what actually happened (averages, outliers, scatter plots) and ask what it really shows. Both protect you from being fooled: by a game that looks fair but is not, by an “average” chosen to impress, or by a correlation dressed up as a cause.

Scientists use these ideas every day. Medical researchers look for correlations in large data sets and then run experiments with randomly chosen groups to test whether there is a real cause. Economists, ecologists and sports analysts all have to separate “goes together” from “makes happen”.

Ready for more? The Deep dig has optional puzzles, such as dice where every die is beaten by another one. Then the unit task brings everything together: you will design a fair game for a school fair, and judge it with probability and with data.

🪞 Reflect

Explain to someone who missed this lesson why 'bigger feet go with better reading' does not mean that bigger feet help you read. Use the words correlation, causation and hidden variable.

Think of a pair of things in your own life that tend to go together. Is one causing the other, or is there another explanation?