Skip to content

Write and Use the Equation of a Linear Model

Students write the equation of a line of best fit using two points on or near the trend line, then use the equation to make predictions (interpolation and extrapolation). They interpret the slope and y-intercept in the context of the data and discuss the limitations of extrapolation.

Try three of them

Real questions from this skill, graded here. No account, and nothing is saved.

Write and Use the Equation of a Linear Model

Grade 8 · Statistics and Probability: Bivariate Data · question 1 of 3

0 of 20

20 rungs. A star at the top.

yx−101234591215182124

Slope of the line = ___

Find the slope of the line.

How it is taught

0:00 of 4:14

A linear model is y equals slope times x plus a start.

Slope is how much y changes when x goes up 1.

Read it: A line as a model

A class fit the line y = 2x + 3 to plant heights, y in centimeters and x in weeks. 3 is the start: 3 centimeters at 0 weeks. 2 is the rate: 2 more centimeters each week. After 5 weeks the model gives 2 × 5 + 3 = 13 centimeters.

  1. Find the start: b, the value the model gives at 0.
  2. Find the rate: m, how much the model grows for each 1 across.
  3. Predict: multiply the rate by the x you are given, then add the start.

The line sums up the data, so it gives a value for any x, even one no dot shows.

b is where the line crosses the y axis, at x = 0: the start.

m is the line's slope: each step across, the model adds m.

A model y = mx + b starts at b and adds m for each 1 across: it predicts m × x + b.

Swapping the start and the rate: 3 × 5 + 2 = 17.

The rate multiplies the weeks, and the start is added once: 2 × 5 + 3 = 13.

Taxi rides fit the line y = 3x + 8, where y is the fare in dollars and x is miles. What fare does the model predict for a 4-mile ride, in dollars? — 20. The rate times the miles, plus the start: 3 × 4 + 8 = 20.

Plant height vs weeks: y = 2x + 2

A scientist measured a plant's height each week. Can we write an equation that predicts how tall it will be later?

Here are the measurements plotted as points — weeks across the bottom, height in centimeters going up.

The points climb in a steady pattern. We draw a line of best fit through the middle of them.

To write the equation, we pick two clear points that sit ON the line. Let's use (2, 6) and (6, 14).

Slope tells us how steep the line is. It's the rise — change in y — over the run — change in x.

Rise is fourteen minus six, which is eight. Run is six minus two, which is four. So the slope, m, is two.

Every line can be written as y equals m x plus b, where m is the slope and b is the y-intercept.

We know m is two. Plug in one of our points — let's use (2, 6) — to find b.

Six equals two times two plus b. Six equals four plus b, so b is two.

Our linear model is y equals two x plus two.

The slope of two means the plant grows two centimeters each week. The intercept of two means it started at two centimeters.

Let's predict week ten. y equals two times ten plus two — twenty-two centimeters.

Careful, though! Predicting far past our data — called extrapolation — may not stay accurate. Plants don't grow forever.

How tall will the plant be in week 10?weekscm02468051015line of best fit(2, 6)(6, 14)Find the equationm = (y₂ − y₁) / (x₂ − x₁)= (14 − 6) / (6 − 2)= 84 = 2y = m x + b6 = 2(2) + b6 = 4 + b → b = 2y = 2x + 2slope 2 → +2 cm per weekb = 2 → started at 2 cmx = 10: y = 2(10) + 2 = 22⚠ extrapolation — predict with carePREDICTION22 cmat week 10Linear model: y = 2x + 2
Grade 8 · Modeling plant growth with a line of best fit

We wrote y equals two x plus two and used it to make a prediction. That's how a linear model works!

What you see

While they climb, your page writes one true line to ask about tonight, and a short note each Sunday.

MayaGrade 3 · Mathematics
Did you know?

A chessboard has 64 squares — share them out between the 8 rows and each row holds exactly 8.

Today’s goal
1 star — one skill mastered, every rung of its ladder climbed
Climbing now
Divide within 100

An example student.

MayaGrade 3 · Mathematics

Maya earned 2 stars this week — Interpret multiplication as equal groups, which took 6 answers over 3 days before its star landed 3 days ago and Multiply by 6, 7, 8 and 9. Next up: Divide within 100.

An example week.

More of the library

Practise this skill free

14 days of every skill, practice packets, Fluency sheets and up to four students. No card.

Start free