KS Maths
Year 11 Standard · Unit 4 Sampling and relationships in data · Lesson 5 of 6

Interpolation and extrapolation

When is a prediction from a line of best fit worth trusting?

A line of best fit will give a number for any x you give it. This lesson asks when that number deserves belief, and what you would need to know before you trust it.

Statistics and ProbabilityGDC optional

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

interpolate
Estimate a value inside the range of the data.Estimate a value between known points.
extrapolate
Estimate a value outside the range of the data.Extending the line past the data is less reliable.
predict
Say what you think will happen using the data.Predict the score for 5 hours of study.
range
The difference between the biggest and smallest value. Also, all the output values of a function.Data from 2 to 9 has range 7.
mean
The total of all values divided by how many values there are.The mean of 2, 4, 6 is 4.
line of best fit
A straight line drawn through the middle of scattered points.The line of best fit shows the trend.
reasonable
Sensible and likely to be right.Is 200 metres a reasonable height for a door? No.
straight line
A line that does not bend.A ruler draws a straight line.
height
How tall something is, measured straight up.The height of the box is 5 cm.
sample
A small group chosen from a bigger group.We asked a sample of 50 students.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Three quick ones from earlier work. Try each in your head or on paper before you open the answer.

  1. From Year 9: a line is y = 4x + 7. What is y when x = 5?
    Answer27, because 4 × 5 + 7 = 27.
  2. From Year 9: the mean point of a data set is (3, 18). What is the mean of the y values?
    Answer18.
  3. From Lesson 4: a survey has a bias. Does a bigger sample reduce it?
    AnswerNo. A bigger sample shrinks the random wobble, but a lean stays.
Words used in this lesson
interpolation
predicting a value from x inside the range of the data. For example: reading a value between two measured days.
extrapolation
predicting a value from x outside the range of the data. For example: extending a line past the last measured day.
line of best fit
a line that follows the trend of a scatter graph and passes through the mean point. For example: the line drawn through the dots.
prediction
a value worked out from the line for a chosen x. For example: the height the line gives for a certain week.
margin
the room for error either side of a prediction. For example: the largest gap from the line in the data.

How tall in week 20?

A garden club measures a bean seedling every week for 8 weeks. The dots rise in a fairly straight band and the club draws a line of best fit, y = 4x + 3, where x is the week and y is the height in centimetres. The line passes through the mean point (4.5, 21). A member wants to use it to say how tall the plant will be in week 20.

Predict first: at which week does the line stop being a sensible guide? What would you need to know about the plant to decide? Test it with the first figure, then use the second to see what the scatter of the dots adds.

051015200306090weeksheight in cm
23height the line gives, in cm
inside the datainside or outside the measured weeks

Week 5: the line gives 23 cm. This is inside the data, so it is interpolation and a reasonable prediction.

Show me the steps
  1. Week 5 is inside the measured weeks, 1 to 8: the line gives 4 × 5 + 3 = 23 cm. This is interpolation, a reasonable prediction.
  2. Week 10 is outside the data: the line gives 43 cm. This is extrapolation. The later measurement is 40 cm, 3 cm below the line, so the line is still fairly close.
  3. Week 16 is well outside the data: the line gives 67 cm, but the later measurement is 47 cm. The plant is levelling off and the line does not know it.
  4. Week 20: the line gives 83 cm and the plant is 48 cm. The further outside the data, the less the line can be trusted.

A line is only as good as the data it came from.

  • Interpolation is predicting for an x inside the range of the data. It is usually reasonable.
  • Extrapolation is predicting for an x outside that range. It assumes the pattern continues, so the further out, the less it can be trusted.
  • Closer dots give a more reliable prediction: the gaps from the line show how far a real value can stray.
  • Ask whether the real situation can continue: a quantity that has a limit cannot keep following the line.
  • Use the line to predict y from x.
0246810120204060
23value the line gives
22 to 24range the scatter allows

Tight dots, x = 5: the line gives 23. The largest gap in the data is 1: the dots themselves stray this far, so expect about 22 to 24.

Show me the steps
  1. Tight dots, x = 5: the line gives 23 and the largest gap in the data is 1, so the range is 22 to 24.
  2. Loose dots, x = 5: the line still gives 23, but the largest gap is 6, so the range is 17 to 29.
  3. Loose dots, x = 10: the line gives 43 and the range is 37 to 49. This is outside the data (x from 1 to 8), so the band is optimistic and the prediction should be treated with care.
  4. A line through tight dots is more informative than the same line through loose dots, and neither is safe far outside the data.

“Reasonable” does not mean “certain”. Even inside the data a prediction has a margin, and it is wider when the dots are loose. And the line has no memory of what it came from: it will give a number for x = 1000 without any complaint. The judgment about whether to believe the number is yours.

The rest of this lesson is in the full course

Still to come in this lesson:

  • Worked examples
  • Check before you go on
  • Your turn

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

Years 7 to 11 plan$59Every lesson from Year 7 to Year 11, so the refresher links always open, and every Year 7 to 11 revision pack, for the whole family. $59 for 12 months or $99 for 2 years.
IB Diploma plan$99Every lesson from Year 7 to the IB Diploma, AA and AI, SL and HL, for the whole family. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

Year 11 revision pack, $19BuyPlan $59