KS Maths
Year 9 ยท Unit 5 Scatter graphs and correlation ยท Lesson 4 of 6

The equation of the line, and predicting

Using a line of best fit to predict

Find the equation from two points on the line, use it to predict, and know when the prediction has gone past the data.

Statistics and ProbabilityNo calculator

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.

predict
Say what you think will happen using the data.Predict the score for 5 hours of study.
equation
A statement that two things are equal. It has an equals sign.x plus 2 = 5 is an equation.
line of best fit
A straight line drawn through the middle of scattered points.The line of best fit shows the trend.
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.
interpolate
Estimate a value inside the range of the data.Estimate a value between known points.
gradient
How steep a line is. Up divided by across.A line going up 2 for each 1 across has gradient 2.
mean
The total of all values divided by how many values there are.The mean of 2, 4, 6 is 4.
extrapolate
Estimate a value outside the range of the data.Extending the line past the data is less reliable.
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.

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. (Unit 3, lesson 2) Find the gradient of the line through (1, 3) and (5, 11).
    Answer(11 โˆ’ 3) รท (5 โˆ’ 1) = 2.
  2. A line is y = 3x + 4. What is y when x = 6?
    Answer22, because 3 ร— 6 + 4 = 22.
  3. The mean point of a data set is (6, 21). What do 6 and 21 stand for?
    Answer6 is the mean of the x values and 21 is the mean of the y values.
Words used in this lesson
gradient
how much y changes for one step in x. For example: 6 cm each year.
intercept
the value of y where the line meets x = 0. For example: 78.
interpolation
predicting inside the range of the data. For example: age 8.5.
extrapolation
predicting outside the range of the data. For example: age 40.
prediction
a value worked out from a line or model, not measured. For example: 120 cm at age 7.

What would the line say at 40?

A doctor measures eight children aged 3 to 10 and draws a line of best fit, y = 6x + 78, for height in centimetres against age in years. A reporter uses it to say how tall a 40-year-old would be. Before you read on: what does the line give, and would you trust it?

A line of best fit has an equation y = mx + c. The gradient m is the change in y for one step in x, found from two points on the line: m = (y2 โˆ’ y1) รท (x2 โˆ’ x1). Then c = y โˆ’ mx for either point.

Interpolation (predicting inside the range of the data) is usually reliable when the dots lie close to the line. Extrapolation (predicting outside it) is a guess, and the further out, the worse.

Read what Keith says

A line of best fit has an equation, and its gradient is the change up for one step across. Find it from two points on the line. Then work out the starting value from either point. Predicting inside the range of the data is interpolation, and it is usually reliable when the dots lie close to the line. Predicting outside the range is extrapolation. It is a guess, and the further out, the worse. Try asking how far outside the data your prediction sits.

Slide the age from 3 to 40. Say whether you would trust each prediction before you read the label.

0102030400100200300age 7: 120 cminside the dataage in years (x)height, cm (y)
120height the line gives, in cm
inside the datainside or outside the measured ages
reasonablehow far to trust it

Age 7: the line gives 6 ร— 7 + 78 = 120 cm. This is inside the data: interpolation, a reasonable prediction.

Show me the steps
  1. Age 7 is inside the data (3 to 10): the line gives 6 ร— 7 + 78 = 120 cm. A reasonable prediction, called interpolation.
  2. Age 12 is just outside the data: 6 ร— 12 + 78 = 150 cm. It may be close, but it is a guess beyond what was measured, called extrapolation.
  3. Age 25: 6 ร— 25 + 78 = 228 cm. Growth slows and stops in the late teens, so the line no longer applies.
  4. Age 40: 6 ร— 40 + 78 = 318 cm, taller than any person on record. The line has been pushed far past its data.

Two slips to watch for. Take the two points from the line, not from two data dots, which are scattered about it. And always ask whether the predicted value is possible: a line can give heights nobody has.

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 9 revision pack, $19BuyPlan $59