8th Grade Math (Common Core) • Statistics and Probability

Linear Models: Interpreting Slope & Intercept

Learn how a simple equation can predict real-world data — and what its numbers actually mean.

Middle School Math emblem with sigma notation, geometric shapes, and a ruler.
Inside this lesson 10 sections 5 questions 8 figures

Section 1

Where Did Linear Models Come From?

People have always looked at numbers and tried to spot patterns. Centuries before smartphones or computers, scientists were collecting measurements and asking: "Is there a rule connecting these two things?" Linear models — equations that draw straight lines through data — grew out of that curiosity.

Early 1800s

French mathematicians Carl Friedrich Gauss and Adrien-Marie Legendre developed the "method of least squares." This is the math behind fitting a straight line to messy, real-world data. It helped astronomers predict planet positions.

1880s

Sir Francis Galton studied how parents' heights related to their children's heights. He coined the term "regression" — a word we still use today for fitting lines to data.

Early 1900s

Karl Pearson turned Galton's ideas into formal statistics. He created tools — like the correlation coefficient — that let anyone measure how closely data follows a straight line.

Today

Linear models are everywhere: sports analytics, weather prediction, medical research, and even your phone's screen-time tracker. They are the simplest — and often the most useful — way to understand how two measurements relate.

The big question these mathematicians were chasing is the same one you'll answer in this lesson: When two quantities seem connected, how can we write an equation that describes the connection — and then use that equation to make predictions?

Section 2

Core Principles & Definitions

Before we start solving problems, let's nail down the key vocabulary. Each idea below is a building block you'll need for the rest of the lesson.

1

Bivariate Data

Bivariate means "two variables." It's data that pairs two measurements for every item. For example, each student could have a study time and a test score.
2

Scatter Plot

A graph where each data pair becomes a dot. The x-axis shows one variable and the y-axis shows the other. The overall shape of the dots tells you whether a line fits.
3

Line of Best Fit

A straight line drawn through the scatter plot that comes as close as possible to all the dots. It may not hit every dot, but it captures the trend.
4

Linear Equation: y = mx + b

The equation of any straight line. m is the slope (how steep the line is) and b is the y-intercept (where the line crosses the y-axis).
✦

Key Takeaway

Think of a linear model like a recipe. The slope tells you "for every extra cup of flour, you get 12 more cookies" — it's the rate of change. The y-intercept tells you what you start with before adding any flour — the starting value. Together, they let you predict how many cookies you'll bake for any amount of flour.

Section 3

Seeing It: A Scatter Plot with a Line of Best Fit

Imagine a class of students. We recorded how many hours each student studied and the score they earned on a test. The scatter plot below shows those data points along with the line of best fit: y = 8x + 45.

4050607080900123456Study Hours (x)Test Score (y)b = 45+1 hr+8 ptsy = 8x + 45

Look at the purple dots. They don't all land on the line — real data is always a little messy. But the line captures the overall trend: as study hours go up, test scores go up too. The slope triangle on the graph shows that for every 1 extra hour of studying, the score rises by about 8 points. The y-intercept (45) is where the line crosses the y-axis. It tells us the predicted score for a student who studies 0 hours.

Section 4

The Math: Slope, Intercept & Prediction

Let's break the equation into pieces so you know exactly what each part does.

The Linear Model

y=mx+by = mx + b

y = predicted output | m = slope | x = input | b = y-intercept

What Is the Slope (m)?

The slope is the rate of change. It answers: "How much does y change every time x goes up by 1?" A positive slope means the line goes uphill (both variables increase together). A negative slope means the line goes downhill (as one variable increases, the other decreases).

Slope Formula

m=(y2−y1)/(x2−x1)m = (y₂ − y₁) / (x₂ − x₁)

"Rise over run" — how much y changes divided by how much x changes.

In the study-hours example, m = 8. That means: for every additional hour of studying, the model predicts a student's score increases by 8 points. Always include the units when you interpret slope in context!

What Is the Y-Intercept (b)?

The y-intercept is the value of y when x equals 0. It's where the line meets the y-axis. In context, it often represents a starting value before the other variable kicks in.

In our example, b = 45. That means: if a student studies 0 hours, the model predicts a score of 45 points. Sometimes the y-intercept makes perfect sense in real life, and sometimes it's just a mathematical starting point. Always ask yourself: "Does x = 0 make sense in this situation?"

Making a Prediction

Once you have the equation, plug in any x-value to predict y.

Example Prediction

y=8(3.5)+45=28+45=73y = 8(3.5) + 45 = 28 + 45 = 73

A student who studies 3.5 hours is predicted to score about 73 points.

✦

Key Takeaway

Imagine you're climbing a staircase. The slope is how tall each step is — the steeper the steps, the faster you gain height. The y-intercept is the floor you start on. If you start on the 3rd floor and climb steps that are each 2 floors tall, your height after x steps is y = 2x + 3.

Section 5

Deeper Look: Positive, Negative & Zero Slopes

Not every linear model goes uphill. The slope tells a story about the direction of the relationship. Let's look at three possibilities side by side.

Positive Slopem > 0 · Goes up ↗Negative Slopem < 0 · Goes down ↘Zero Slopem = 0 · Flat →
Slope SignDirectionReal-World ExampleInterpretation
Positive (m > 0)Line goes upMore practice → higher free-throw %As x increases, y increases
Negative (m < 0)Line goes downMore screen time → lower sleep hoursAs x increases, y decreases
Zero (m = 0)Line is flatShoe size vs. test score (no connection)Changes in x don't affect y

When you interpret slope in a word problem, always connect it to the units of x and y. Don't just say "the slope is 8." Say "the slope is 8 points per hour." That phrase — "y-units per x-unit" — is the secret to a great interpretation.

Likewise, for the y-intercept, state what it means when x is 0 in the context of the problem. If x is "weeks of training" and b = 20, you might say: "Before any training (week 0), the model predicts a starting value of 20."

Section 6

Worked Example

Let's walk through a complete problem from start to finish.

Hot Chocolate Sales vs. Temperature

  1. 1

    Problem

    A science class measured the temperature outside (in °F) and the number of cups of hot chocolate sold at a school stand. They found the line of best fit: y = −0.6x + 60, where x is the temperature and y is the number of cups sold. (a) What does the slope mean in this context? (b) What does the y-intercept mean? (c) Predict how many cups will be sold when it's 35 °F outside.
  2. 2

    Step 1 — Interpret the Slope

    The slope is −0.6. It's negative, which makes sense: when the temperature goes up, people buy fewer cups of hot chocolate.
    Interpretation: For every 1 °F increase in temperature, the model predicts that about 0.6 fewer cups of hot chocolate are sold.
  3. 3

    Step 2 — Interpret the Y-Intercept

    The y-intercept is 60. This is the value of y when x = 0 — when the temperature is 0 °F.
    Interpretation: The model predicts 60 cups would be sold if the temperature were 0 °F. (That's very cold, so lots of hot chocolate!)
  4. 4

    Step 3 — Make a Prediction

    Plug x = 35 into the equation: y = −0.6(35) + 60 = −21 + 60 = 39
    Answer: When the temperature is 35 °F, the model predicts about 39 cups of hot chocolate will be sold.

Section 7

Strengths & Limitations of Linear Models

Linear models are incredibly useful, but they're not perfect. Here's an honest look at when they shine and when they struggle.

Strengths ✓Limitations ✗
Simple to create and understandOnly works well when the data's trend is roughly straight
Quick predictions — just plug in a numberPredictions far outside the data range can be unreliable (called extrapolation)
Slope and intercept have clear real-world meaningsThe y-intercept might not make sense in context (e.g., 0 hours of sleep → impossible score)
Works across many subjects: science, sports, economicsIgnores curved patterns — some data bends, and a line will miss that curve

Interpolation vs. Extrapolation: When you predict a y-value for an x within the range of your data, that's called interpolation — and it's usually pretty reliable. When you predict outside the data range, that's extrapolation. Extrapolation is riskier because you're assuming the trend continues, and it might not.

✦

Key Takeaway

A linear model is like a weather app: it gives you a great estimate most of the time, but it can't predict a freak storm. Use it confidently within the range of your data, and treat predictions far outside that range as rough guesses, not guarantees.

Section 8

Looking Ahead: Where Does This Lead?

The linear model you're learning now is the starting point for some incredibly powerful ideas you'll see in high school and beyond. Here's a quick preview.

What You're Learning NowWhat Comes Next
Line of best fit drawn by eye or given to youLeast-squares regression — a formula that finds the exact best line automatically
y = mx + b (one straight line)Multiple regression — equations with two or more input variables (like hours studied and sleep)
Interpreting slope as a rate of changeCalculus — slope of a curve at a single point (called a derivative)
Scatter plots with dotsCorrelation coefficient (r) — a number from −1 to +1 that tells you how tightly the dots follow the line

You don't need to worry about any of that right now. The big idea is that mastering y = mx + b gives you a foundation that connects to almost every math and science class you'll ever take.

Section 9

Practice Problems

Try these on your own, then click "Show Answer" to check your work. The problems get harder as you go — that's on purpose!

Question 1: Problem 1 — Conceptual

In the equation y = 5x + 20, which number is the slope and which is the y-intercept? What does each one tell you about the data?
Show answer
The slope is 5. It tells you that every time x increases by 1, y increases by 5. The y-intercept is 20. It tells you that when x is 0, y equals 20. In other words, the starting value of y is 20 before x has any effect. Nice work if you identified both!

Question 2: Problem 2 — Basic Calculation

A linear model for a plant's height is y = 2.5x + 3, where x is the number of weeks and y is the height in centimeters. How tall does the model predict the plant will be after 6 weeks?
Show answer
Plug in x = 6: y = 2.5(6) + 3 = 15 + 3 = 18 cm. The model predicts the plant will be 18 centimeters tall after 6 weeks. You just substituted the x-value and simplified — that's the core skill of using a linear model!

Question 3: Problem 3 — Intermediate

A fitness tracker collected data on the number of minutes a person walks (x) and the calories burned (y). The line of best fit is y = 4.2x + 50. Interpret the slope and the y-intercept in the context of this situation.
Show answer
Slope (4.2): For every additional minute of walking, the model predicts a person burns about 4.2 more calories. This is the rate at which calories are burned per minute of walking. Y-intercept (50): When the walking time is 0 minutes, the model predicts 50 calories burned. This likely represents the baseline calories a person burns just from being alive (resting metabolism) during the time frame being measured. Great job if you connected each number to the real-world context!

Question 4: Problem 4 — Applied / Multi-Step

A phone's battery life is modeled by y = −8x + 100, where x is the number of hours since a full charge and y is the battery percentage remaining. (a) What does the slope tell you? (b) After how many hours will the battery reach 20%? (c) Does the y-intercept make sense here? Why?
Show answer
(a) The slope is −8. This means the battery drops by 8 percentage points every hour. The negative sign makes sense — batteries drain over time. (b) Set y = 20 and solve: 20 = −8x + 100 → −80 = −8x → x = 10 hours. The battery reaches 20% after 10 hours. (c) Yes! The y-intercept is 100, which means the battery starts at 100% when it's fully charged (x = 0 hours). That matches real life perfectly.

Question 5: Problem 5 — Critical Thinking

Two students each collect data on the number of books read (x) and vocabulary quiz scores (y). Student A's model is y = 3x + 65. Student B's model is y = 5x + 55. (a) Which student's data shows a stronger connection between reading and quiz scores? Explain. (b) For how many books read will both models give the same predicted score? What is that score?
Show answer
(a) Student B's model has a steeper slope (5 vs. 3). This means that in Student B's data, each extra book read is associated with a 5-point increase in quiz scores, compared to only 3 points for Student A. So Student B's data shows a stronger per-book effect on scores. (b) Set the two equations equal: 3x + 65 = 5x + 55 → 10 = 2x → x = 5 books. Plug x = 5 into either equation: y = 3(5) + 65 = 80. Both models predict a score of 80 when a student has read 5 books. This is a stretch problem — awesome work if you figured out to set the equations equal!

Summary

Lesson Summary

Summary

A linear model is an equation of the form y = mx + b that describes the trend in bivariate data — data where two measurements are paired together. The slope (m) tells you the rate of change: how much y changes for every 1-unit increase in x, always stated with units in context. The y-intercept (b) tells you the starting value — what y equals when x is 0. To make a prediction, substitute your x-value into the equation and simplify. A positive slope means the variables increase together; a negative slope means one goes up while the other goes down. Always interpret these numbers in context using the units from the problem.

Remember that predictions within the data range (interpolation) are more trustworthy than predictions outside it (extrapolation). Linear models are powerful, simple, and the foundation for much of the statistics and data science you'll encounter in the future.

Varsity Tutors • 8th Grade Mathematics (Common Core) • Linear Models: Slope & Intercept