Using Linear Models to Make Predictions: Slope and Intercept

#8th Grade Math#Statistics and Probability#Using Linear Models to Make Predictions
TL;DR
Using linear models to make predictions means putting an x-value into the equation of a fitted line and calculating y. The slope and intercept explain it, and the data's range limits it.
Bhanzu TeamLast updated on December 3, 202615 min read

Key Points

  • Using linear models to make predictions starts with an equation y=mx+by = mx + b for a line drawn through a scatter plot, then substitutes an x-value into it.
  • The slope of a fitted line is the average change in y for each 1-unit increase in x, so it always needs both units, such as centimeters per hour.
  • A line fitted to 2015 to 2025 carbon dioxide readings predicts 255.4 parts per million for 1959, while the measured value was 315.98 ppm.
  • The y-intercept of a linear model only describes something real when an x-value of 0 makes sense in the situation being measured.
  • Common Core standard 8.SP.A.3 expects 8th graders to solve problems with the equation of a linear model and to interpret its slope and intercept.

A volcano, a notebook and a straight line

Since March 1958, scientists have measured carbon dioxide on a Hawaiian volcano. The record began with Scripps scientist Charles David Keeling, and NOAA's Global Monitoring Laboratory keeps it going at Mauna Loa Observatory today.

Plot the yearly averages from 2015 to 2025 and the dots climb like stairs, from 401.01 to 427.35 parts per million (molecules of carbon dioxide in every million molecules of dry air). One straight line runs within 0.81 parts per million of all eleven dots.

So the line can tell you a value nobody has measured yet. Climate scientists, sports analysts and engineers calibrating sensors all lean on fitted lines like this, and in 8th grade you start drawing them yourself.

Using linear models to make predictions from NOAA carbon dioxide readings with a fitted line.
Scatter plot of the yearly average carbon dioxide at Mauna Loa from 2015 to 2025, rising from 401.01 to 427.35 parts per million, with the fitted line y = 2.6x + 401 running through the dots.

What does using a linear model to make predictions mean?

Using linear models to make predictions means substituting an x-value into the equation of a line fitted to a scatter plot, then calculating the y-value the line gives. The data come in pairs (hours of sunlight and plant height, say), which statisticians call bivariate data. A linear model is the equation y=mx+by = mx + b of the line that follows the trend of those pairs.

A prediction describes the typical case. Real dots sit above and below the line, so the answer is what the trend expects, not a promise about one measurement.

Common Core standard 8.SP.A.3 asks 8th graders to use a linear model's equation to solve problems and to interpret its slope and intercept. Its own example is a plant experiment, where a slope of 1.5 cm per hour links each extra hour of daily sunlight to 1.5 cm more plant height. By the end of the year, your child should be able to write the equation from a graph and explain both numbers with units.

How do you write the equation of a fitted line?

Pick two points that sit on the fitted line, use them to find the slope, then solve for the intercept. Drawing the line itself is the job of a line of best fit, so this section starts once the line is on the graph.

Take ten bean plants grown with 2 to 12 hours of daily sunlight.

  1. Choose two points on the line, far apart, with easy coordinates: (4,16)(4, 16) and (10,25)(10, 25).
  2. Find the slope, rise over run.
m=25−1610−4=96=1.5m = \frac{25 - 16}{10 - 4} = \frac{9}{6} = 1.5
  1. Put one point into y=mx+by = mx + b, so 16=1.5×4+b16 = 1.5 \times 4 + b, which is 16=6+b16 = 6 + b. Subtracting 6 from both sides leaves b=10b = 10.
  2. Write the model, where x is hours of daily sunlight and y is height in centimeters.
y=1.5x+10y = 1.5x + 10
Writing the equation y = 1.5x + 10 from two points on a fitted line.
Scatter plot of ten bean plants with hours of daily sunlight from 2 to 12 on the x-axis and height in centimeters on the y-axis, with the fitted line through the points (4, 16) and (10, 25), a rise of 9 and a run of 6.

Now a prediction is one line of arithmetic. For 8 hours of sunlight:

y=1.5×8+10=12+10=22y = 1.5 \times 8 + 10 = 12 + 10 = 22

The model predicts 22 cm22\,\text{cm}. It's the same slope-intercept form you use for any line, now carrying measurements. Some classes fit the line with a graphing calculator, and some lay a stick of spaghetti across the dots first. The two-point method works with either, though it breaks down when the points you pick are hard to read off the grid.

What do the slope and intercept of a linear model mean?

The slope tells you how much the prediction changes for each 1-unit step in x, and the intercept is the prediction when x is 0. Both need units.

Part In y=1.5x+10y = 1.5x + 10 What it says about the plants
Slope 1.51.5 Each extra hour of sunlight goes with about 1.5 cm1.5\,\text{cm} more height, on average
Intercept 1010 With 0 hours of sunlight the model predicts 10 cm10\,\text{cm}
Prediction at x=8x = 8 2222 A plant with 8 hours is expected to reach about 22 cm22\,\text{cm}

Notice "on average" in the slope row. The plant that got 7 hours grew 19 cm, short of the line, and that's normal for real data. The standard's own phrase is "associated with", because a slope describes how two measurements move together.

The intercept needs a second look. No plant got fewer than 2 hours, so the model has no evidence about plants kept in the dark. Here the y-intercept is a number the line needs, not a real plant. Many kids write "1.5" and stop. The interpretation is the full sentence, "1.5 centimeters of height per hour of sunlight."

Try It Yourself

Drag the slope and intercept sliders until the line runs through the middle of the plant dots, then read the table of predictions below the graph. Watch how each 2-hour step in the table changes the prediction by exactly twice the slope.

How far can you trust a prediction from a linear model?

A prediction is most trustworthy when its x-value sits inside the range of the data, and it gets riskier the further outside you go. Predicting inside the data is interpolation, and predicting outside it is extrapolation. The gap between a real measurement and its prediction is the residual.

residual=actual−predicted\text{residual} = \text{actual} - \text{predicted}

The carbon dioxide line from the opening graph is y=2.6x+401y = 2.6x + 401, where x counts years since 2015. For 2025, x=10x = 10.

y=2.6×10+401=427y = 2.6 \times 10 + 401 = 427

NOAA measured 427.35, a residual of only 0.35. Now push the same line back to 1959, where x=−56x = -56.

y=2.6×(−56)+401=−145.6+401=255.4y = 2.6 \times (-56) + 401 = -145.6 + 401 = 255.4

The measured 1959 value was 315.98, a miss of 60.58. From 1959 to 1960 the average rose by only 0.93, far less than 2.6 a year, so the full record curves. The OpenStax algebra text calls the point where a model stops applying model breakdown. In high school you'll meet curved models built for patterns like this.

Interpolation stays close while extrapolation to 1959 misses by 60.58 ppm.
Graph of the line y = 2.6x + 401 with a shaded data range from 2015 to 2025, showing the 2025 prediction of 427 beside the measured 427.35, and the line stretched back to 1959 predicting 255.4 while the measured value was 315.98.

Examples of using linear models to make predictions

Example 1

The fitted line for weekly practice hours (x) and free throws made out of 50 (y) is y=4x+18y = 4x + 18. Predict the free throws for 5 hours.

y=4×5+18=20+18=38y = 4 \times 5 + 18 = 20 + 18 = 38

The model predicts 38 free throws.

Example 2

A graph of daily high temperature in degrees Fahrenheit (x) and pool visitors (y) has an x-axis starting at 70. The fitted line passes through (70,120)(70, 120) and (90,260)(90, 260). Predict the visitors on an 80-degree day.

m=260−12090−70=14020=7m = \frac{260 - 120}{90 - 70} = \frac{140}{20} = 7

The tempting move is reading the intercept where the line meets the left edge of the graph, b=120b = 120. Then y=7x+120y = 7x + 120 predicts 680 visitors, while the drawn line at 80 degrees sits near 190. That edge is x=70x = 70, not x=0x = 0.

Solve for b with a point instead. From 120=7×70+b120 = 7 \times 70 + b, subtract 490 from both sides to get b=−370b = -370.

y=7×80−370=560−370=190y = 7 \times 80 - 370 = 560 - 370 = 190

The model predicts 190 visitors, and 7×90−370=2607 \times 90 - 370 = 260 matches the second point.

Example 3

For used cars, age in years (x) and value in thousands of dollars (y) follow y=−2.5x+28y = -2.5x + 28. Interpret the slope and intercept, then predict the value at 6 years.

The slope means each extra year goes with about $2,500 less value, on average. The intercept means a new car, age 0, is predicted at $28,000, a real situation here.

y=−2.5×6+28=−15+28=13y = -2.5 \times 6 + 28 = -15 + 28 = 13

The model predicts $13,000.

Example 4

A plant with 7 hours of sunlight grew to 19 cm. Find its predicted height from y=1.5x+10y = 1.5x + 10 and its residual.

y=1.5×7+10=20.5y = 1.5 \times 7 + 10 = 20.5
residual=19−20.5=−1.5\text{residual} = 19 - 20.5 = -1.5

The plant sits 1.5 cm1.5\,\text{cm} below the line.

Example 5

A carbon dioxide line passes through (0,401)(0, 401) and (10,427)(10, 427), with x as years since 2015 and y in parts per million. Write the model and predict 2026.

m=427−40110−0=2610=2.6m = \frac{427 - 401}{10 - 0} = \frac{26}{10} = 2.6

The point (0,401)(0, 401) is on the y-axis, so b=401b = 401. The year 2026 is x=11x = 11.

y=2.6×11+401=28.6+401=429.6y = 2.6 \times 11 + 401 = 28.6 + 401 = 429.6

The model predicts about 429.6 parts per million, a short extrapolation you can check once NOAA posts its 2026 average.

Example 6

Using y=1.5x+10y = 1.5x + 10, how many hours of sunlight go with a predicted height of 28 cm?

Here y is known, so put 28 in for y.

28=1.5x+1028 = 1.5x + 10

Subtract 10 from both sides to get 18=1.5x18 = 1.5x, then divide both sides by 1.5.

x=181.5=12x = \frac{18}{1.5} = 12

The answer is 12 hours, and 1.5×12+10=281.5 \times 12 + 10 = 28 confirms it.

A rule for values nobody measured

A scatter plot on its own only shows what happened. A fitted line turns those dots into a rule you can use anywhere inside the data.

  • One rule for many dots. The Common Core progressions describe a first fit as informal as "laying a stick of spaghetti on the plot."
  • A rate you can say aloud. Both 1.5 cm per hour and 2.6 parts per million per year are slopes, the same rate of change you build in linear models.
  • Answers between the dots. No plant got exactly 10 hours, yet the line predicts 25 cm for one that does.
  • Misses with meaning. A residual of −1.5 cm-1.5\,\text{cm} flags a plant that did worse than its sunlight suggests.
  • A clear boundary. A model fitted to one group or one stretch of years only speaks for that group or those years.

NIST's statistics handbook calls linear least squares regression "by far the most widely used modeling method", and your hand-drawn line (the spaghetti version) is where it starts. High school adds the formula for least squares.

What most guides miss about linear model predictions

The two points you use for the equation must sit on the line, not be two of the data dots. Kids used to neat textbook points often grab two data dots that are easy to read, and those dots usually sit off the line.

With the plants, the dots (7,19)(7, 19) and (12,28.5)(12, 28.5) give a slope of 9.55=1.9\frac{9.5}{5} = 1.9 and an intercept of 5.7. That equation predicts 20.9 cm at 8 hours instead of 22 cm.

An impossible prediction is the model showing where it stops working. The pool model gives −370-370 visitors at 0 degrees, and neither that nor a 10 cm prediction for a plant with no light at all is an arithmetic slip. Older students meet the full version of this idea in correlation and regression.

Where do kids trip up on linear model predictions?

Mistake 1: Swapping the slope and the starting value

Where it slips in: Writing the equation from words, such as "starts at 10 cm and rises 1.5 cm per hour."

Don't do this: Writing y=10x+1.5y = 10x + 1.5 because 10 was said first, which predicts 81.5 cm for 8 hours.

The correct way: The rate multiplies x, so y=1.5x+10y = 1.5x + 10 predicts 22 cm for 8 hours.

The first number spoken tends to land first in the equation. Asking "which number goes with each extra hour?" puts the slope back in front of x.

Wrong versus right linear model with the slope and intercept swapped, compared at 8 hours.
Side-by-side comparison where the wrong model y = 10x + 1.5 predicts 81.5 cm at 8 hours and the correct model y = 1.5x + 10 predicts 22 cm at 8 hours.

Mistake 2: Putting the y-value in for x

Where it slips in: Reverse questions like Example 6, which give a height and ask for hours.

Don't do this: Computing 1.5×28+10=521.5 \times 28 + 10 = 52 and answering 52 hours, more than a day has.

The correct way: Put 28 in for y, so 28=1.5x+1028 = 1.5x + 10, then subtract 10 and divide by 1.5 to get 12 hours.

Mistake 3: Trusting a prediction far outside the data

Where it slips in: Any x-value beyond the smallest or largest x in the scatter plot.

Don't do this: Reporting that 20 hours of sunlight gives 1.5×20+10=401.5 \times 20 + 10 = 40 cm, as if it were as solid as the 8-hour answer.

The correct way: The data covers 2 to 12 hours, so predict inside that range, like 22 cm at 8 hours, and label a 20-hour answer as an extrapolation.

Key Takeaways

  • Using linear models to make predictions turns two readable points on a fitted line into an equation for x-values nobody measured.
  • A slope is only interpreted once it is said with both units, such as centimeters of height per hour of sunlight.
  • A negative count, or a prediction for a case the data never covered, signals an x-value outside what the model can speak for.
  • Solving the same equation for x answers "how much x goes with this y" without a new model.
  • For more practice turning a fitted line into honest predictions, with a teacher who checks whether each x sits inside the data, explore Bhanzu's 8th grade math curriculum or Common Core math curriculum.

A Practical Next Step

Grab graph paper and work these three problems.

  1. The fitted line for weekly reading hours (x) and pages read (y) is y=30x+20y = 30x + 20. Predict the pages for 6 hours.
  2. A line for outdoor temperature in degrees Fahrenheit (x) and cups of hot cocoa sold (y) passes through (30,50)(30, 50) and (50,30)(50, 30). Write its equation.
  3. Using your equation from problem 2, what temperature goes with 45 cups?

Answers: 1) 200 pages, 2) y=−x+80y = -x + 80, 3) 35 degrees.

Practice these to solidify your understanding. If solving for x in problem 3 catches you, return to Mistake 2. Want a live Bhanzu trainer to walk through more using linear models to make predictions problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. NOAA Global Monitoring Laboratory, Trends in Atmospheric Carbon Dioxide (2026). gml.noaa.gov
  2. NOAA Global Monitoring Laboratory, Mauna Loa CO2 annual mean data (2026). gml.noaa.gov data file
  3. National Governors Association Center and CCSSO, Common Core State Standards for Mathematics, Grade 8 Statistics and Probability (2010). thecorestandards.org
  4. OpenStax, Algebra and Trigonometry 2e, 4.3 Fitting Linear Models to Data (2021). openstax.org
  5. Common Core Standards Writing Team, Progressions for the Common Core State Standards in Mathematics, 6 to 8 Statistics and Probability (2011). math.arizona.edu
  6. NIST/SEMATECH, e-Handbook of Statistical Methods, 4.1.4.1 Linear Least Squares Regression (2012). itl.nist.gov

Quick Quiz: Check Yourself

Three levels with new numbers each time: predict y from an equation, write the equation from two points on a line, then work backward from y to find x.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Is a linear model the same as a line of best fit?
Nearly, since the line of best fit is the drawn line and the linear model is its equation, so line of best fit predictions and linear model predictions are the same calculation.
What is a linear regression model?
A linear model whose line is chosen by a formula, usually least squares, instead of by eye. A linear regression prediction example works like Example 1, the same steps as using linear models to make predictions by hand, with the formula itself usually waiting for high school.
Can a linear model predict the future?
Yes, for a short stretch past the data. Example 5 predicts 429.6 parts per million for 2026, while the same line misses 1959 by 60.58, and the section "How far can you trust a prediction from a linear model?" shows why.
Does my child need a graphing calculator for linear models in 8th grade?
No. Graph paper and the two-point method cover everything standard 8.SP.A.3 asks for.
How can I help my child with using linear models to make predictions at home?
Ask your child to interpret the slope of the model in one sentence with both units, because that sentence shows understanding better than the arithmetic does. If the trouble is decoding long word problems or freezing at graphs, that's reading or confidence rather than a math gap, and the teacher is the best first call. A tutor helps most when the gap is the algebra underneath, such as solving 28=1.5x+1028 = 1.5x + 10 or how to make a linear model from two points. Either way, a prediction from line of best fit work at home can be as simple as hand span and height for four family members.
✍️ Written By
Bhanzu Team
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →