LightMySky

Lines of Best Fit: Prediction and Its Limits

Use a line of best fit to predict inside the range of the data, say why predicting far outside it is unsafe, and separate correlation from cause.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Predict a value from the line and state the range the prediction is valid over
  • Explain what can go wrong when the line is extended past the data
  • Give an example of two correlated quantities with no causal link

1 · Read

Last stop you cut a slice out of a histogram and called it an estimate, because the chart only knew what it had been told. A line of best fit has the same manners. Ten Wren Lane runners logged their training runs for the month before the race and their finishing time. The fewest was 2 runs, the most was 14, and the cloud leans down: more training, faster time. The line through the middle is time = 76 - 2 × runs. Those two end values matter as much as the line, because they mark where it has evidence.

(2, 74)(6, 63)(10, 55)(14, 47)
Four of the ten pairs, training runs first and minutes second. Every runner in the log did between 2 and 14 training runs.

Inside that stretch the line does an honest job. A runner who did 7 training runs is not in the log, but 7 sits between 2 and 14, surrounded by runners on both sides. Put 7 into the line: 76 - 2 × 7 = 62 minutes. That is a reading, not a guess, because the line was drawn through people who trained a little more and a little less than that. Predicting inside the range of the data is called interpolation, and it is the safe half of the job. How tightly the points sit around the line is a separate question: wide scatter makes the reading rough.

0510152025303540where the runners are
Between the two marks the line is a reading. Everywhere else along this axis, it is the line talking about people nobody measured.

Now push it. A runner asks what 40 training runs would give: 76 - 2 × 40 = -4 minutes, a race finished before it started. Ask for 25 and it offers 26 minutes, faster than anyone has run this course. The arithmetic is faultless. The line has no idea that legs tire, that a 10k has a floor, or that nobody in the log trained more than 14 times. Predicting outside the range is called extrapolation, and the further out you go the less the data has to say.

Try it together

The reason is that a straight line is a local description. Real relationships usually bend. The first few training runs change a great deal, the tenth changes less, and the fortieth might cause injury. Between 2 and 14 runs that bend is too gentle to see, so a straight line fits well. Out at 40 the bend is the whole story, and the line keeps going straight past it.

One more limit, and it bites inside the range too. The kiosk log shows ice creams sold and wasp stings reported rising together all summer. Neither causes the other; hot days drive both. The running log has its own version: runners who bought new shoes finished faster, but buying shoes is what someone deep in training does anyway. Before saying one thing causes another, ask what else moves with both.

A line of best fit predicts safely between the smallest and largest values the data actually covers, which is called interpolation. Push it beyond that range and you are extrapolating: the arithmetic still works, but the line is describing people nobody measured, and real relationships bend where a straight line cannot. Always state the range a prediction is good for. And two quantities moving together is not the same as one causing the other, so ask what else might be moving both.

2 · Watch

3 · Play

step 1 of 6

Last week you sliced a histogram and wrote estimate beside the answer. Today the chart is a scatter graph. Ten Wren Lane runners logged their training runs for the month before the race against their finishing time, the fewest 2 runs and the most 14, and the line through the cloud comes out at time = 76 - 2 × runs.

A club member did 7 training runs and wants to know what to expect. What does the line say, and can you trust it?

0510152025303540where the runners are

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Where this leads

Jobs that lean on this skill. Follow one to see everything it is built on.

Then practise

24 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Lines of Best Fit: Prediction and Its Limits · Mathematics, ages 15 to 16 · LightMySky