Pre-Algebra • Functions

Interpreting Linear Models — I can interpret y=mx+b as a model and identify when extrapolation may be unreasonable.

Learn how straight-line equations describe real data and when stretching them too far leads to silly predictions.

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

SECTION 1

Historical Context & Motivation

People have been looking for patterns in numbers for thousands of years. Farmers tracked how much grain they grew each season. Merchants recorded how prices changed over time. The idea of drawing a straight line through data to predict what might happen next is actually ancient.

Over the centuries, mathematicians developed better tools for finding and using these patterns. The equation y = mx + b became the go-to formula for describing straight-line relationships. But scientists also learned an important lesson: a pattern that works for some values can give ridiculous answers if you push it too far.

~300 BC • Euclid and Geometry

The ancient Greek mathematician Euclid wrote about lines and their properties. His work laid the foundation for graphing and coordinate systems.

1637 • Descartes Creates the Coordinate Plane

René Descartes invented the x-y coordinate plane. This let people turn equations like y = mx + b into pictures (graphs) for the first time.

1805 • Legendre & Best-Fit Lines

Adrien-Marie Legendre published a method called "least squares" to find the best straight line through messy data points. Scientists still use it today.

Today • Linear Models Everywhere

From weather forecasts to sports stats, linear models help us spot trends and make predictions — but only within a reasonable range of data.

So here's the big question this lesson answers: How do we use y = mx + b to describe real-world data, and how do we know when our predictions stop making sense?

SECTION 2

Core Principles & Definitions

Before we dive in, let's get clear on the key vocabulary. A linear model is a straight-line equation that represents real-world data. Think of it as a simplified version of reality — not perfect, but useful.

1

Slope (m)

The slope tells you how much y changes every time x goes up by 1. It's the rate of change — like earning $8 per hour.
2

Y-Intercept (b)

The y-intercept is the value of y when x equals 0. It's your starting point — like a $5 signup fee before you start earning.
3

Interpolation

Interpolation means predicting a value that falls inside the range of your data. This is usually safe and reasonable.
4

Extrapolation

Extrapolation means predicting a value that falls outside the range of your data. This can lead to unreasonable or silly answers.
✦

KEY TAKEAWAY

Think of a linear model like a recipe you tested between 1 and 4 cups of flour. You can probably trust it at 3 cups (interpolation). But if someone says "use 100 cups," the recipe would break — the cake would be a disaster! That's extrapolation going wrong.

SECTION 3

Visual Explanation

Let's look at a picture of what interpolation and extrapolation really mean. Imagine you collected data on how tall a plant grows over several weeks. The diagram below shows the data points, the best-fit line, and the danger zone where extrapolation gets unreasonable.

Plant Height Over Time: Interpolation vs. ExtrapolationWeeksHeight (cm)0246810120510152025✓ SAFE ZONE (Interpolation)⚠ DANGER ZONE (Extrapolation)predicted but unreliableactual data
The cyan dots are real data points collected over weeks 1 through 8. The violet line is the linear model. The green zone shows where interpolation is trustworthy. The red zone shows where extrapolation stretches the model beyond the data — and predictions become unreliable.

Notice how the real data points cluster near the line inside the green zone. That means our model fits the data well there. But look at the red zone on the right. The line keeps going up, but do plants really grow forever at the same rate? Of course not! At some point, growth slows down or stops. That's why extrapolation can be unreasonable.

SECTION 4

The Math Behind the Model

The equation of a linear model is written in slope-intercept form. Let's break it down piece by piece.

SLOPE-INTERCEPT FORM

y=mx+by = mx + b

y = the output (what you're predicting), m = the slope (rate of change), x = the input (the value you plug in), b = the y-intercept (the starting value when x = 0).

Here's a real example. Suppose a streaming service charges a $3 base fee plus $2 for every movie you rent. We can model the total cost like this:

STREAMING COST MODEL

y=2x+3y = 2x + 3

m = 2 means each movie adds $2. b = 3 means you pay $3 just for having the account, even if you rent 0 movies.

Now think about the slope's meaning in context. The slope m = 2 tells a story: "For every 1 additional movie you rent, your total cost goes up by $2." The y-intercept b = 3 also tells a story: "Even before renting any movies, you already owe $3."

INTERPRETING SLOPE IN CONTEXT

m=(changeiny)÷(changeinx)m = (change in y) ÷ (change in x)

Always ask: "What does y measure? What does x measure?" Then fill in the sentence: "For every 1 unit increase in x, y changes by m units."

⚠

When Does Extrapolation Become Unreasonable?

Ask yourself: does the real-world situation keep following this pattern forever? If a plant grows 2 cm per week for 8 weeks, can it really keep that pace for 200 weeks? That would be 400 cm — over 13 feet! A model that works for small x-values can give ridiculous answers for very large (or very negative) x-values.

SECTION 5

Interpolation vs. Extrapolation — A Closer Look

Let's compare interpolation and extrapolation side by side. Imagine you tracked daily high temperatures for the first 10 days of June and found the model y = 1.5x + 72, where x is the day number and y is the temperature in °F.

Interpolation vs. Extrapolation: Temperature ModelINTERPOLATIONPredicting Day 5 temperaturey = 1.5(5) + 72y = 7.5 + 72y = 79.5°F✓ Day 5 is within days 1–10✓ Prediction is reasonable✓ We have data nearbyTRUSTWORTHYEXTRAPOLATIONPredicting Day 200 temperaturey = 1.5(200) + 72y = 300 + 72y = 372°F ?!✗ Day 200 is way beyond days 1–10✗ 372°F is hotter than an oven!✗ No data supports thisUNREASONABLEThe same equation gives a sensible answer on the left and a silly answer on the right.
Both predictions use the same equation, y = 1.5x + 72. The interpolation (day 5) gives a reasonable 79.5°F. The extrapolation (day 200) gives 372°F — hotter than a pizza oven! Same equation, very different trustworthiness.
FeatureInterpolationExtrapolation
Where is the x-value?Inside the data rangeOutside the data range
How reliable is it?Usually reliableOften unreliable
Risk of silly answers?LowHigh — especially far from data
ExamplePredicting day 5 from days 1–10Predicting day 200 from days 1–10

Comparing interpolation and extrapolation

SECTION 6

Worked Example

A lemonade stand tracks sales over 6 Saturdays. They find that the linear model y = 12x + 10 describes their data, where x is the number of Saturdays since opening and y is the total number of cups sold that day. The data was collected for weeks 1 through 6.

Interpreting the Model & Testing Extrapolation

  1. 1

    Step 1 — Identify Slope and Y-Intercept

    The equation is y = 12x + 10. The slope is m = 12 and the y-intercept is b = 10.
    m = 12, b = 10
  2. 2

    Step 2 — Interpret the Slope in Context

    The slope m = 12 means that for every additional Saturday, the stand sells about 12 more cups than the previous Saturday. Business is growing!
    Each Saturday, sales increase by about 12 cups.
  3. 3

    Step 3 — Interpret the Y-Intercept in Context

    The y-intercept b = 10 means that when x = 0 (before the first Saturday), the model predicts 10 cups. This might represent a pre-opening event or just the model's starting estimate.
    The baseline starting value is about 10 cups.
  4. 4

    Step 4 — Use the Model to Interpolate (x = 4)

    Week 4 is inside our data range (weeks 1–6). Substitute x = 4: y = 12(4) + 10 = 48 + 10 = 58. Predicting 58 cups on the 4th Saturday is reasonable.
    y = 58 cups (reasonable — this is interpolation)
  5. 5

    Step 5 — Test Extrapolation (x = 50)

    Week 50 is far outside our data. Substitute x = 50: y = 12(50) + 10 = 600 + 10 = 610. That's 610 cups in one day! A small lemonade stand probably can't make that many. The real-world pattern would level off long before then.
    y = 610 cups — unreasonable extrapolation!

SECTION 7

Strengths & Limitations of Linear Models

Linear models are incredibly useful, but they aren't perfect. Here's an honest look at what they do well and where they fall short.

StrengthsLimitations
Easy to write, graph, and understandOnly works well when data follows a straight-line pattern
Great for short-term predictions within the data rangeExtrapolation can produce impossible or silly answers
Slope and intercept have clear real-world meaningsMany real situations curve — populations, epidemics, savings with interest
Quick to calculate — just plug in and solveDoes not capture changes in rate (speeding up or slowing down)

Strengths and limitations of linear models

✦

KEY TAKEAWAY

A linear model is like a weather forecast. It's pretty good for the next few days, but if someone tells you they know the exact temperature 6 months from now based on today's trend, you probably shouldn't believe them. Always check whether your prediction falls inside or outside your original data range.

SECTION 8

Connection to Advanced Topics

You've learned that linear models have limits. In future math classes, you'll meet other types of models that handle curves, not just straight lines. Here's a quick preview.

FeatureLinear Model (y = mx + b)Nonlinear Models (future topics)
Shape of graphStraight lineCurves (parabolas, exponentials, etc.)
Rate of changeConstant (always the same)Changes — speeds up or slows down
Good forSimple, steady trendsPopulation growth, compound interest, gravity
When you learn itPre-Algebra & Algebra 1Algebra 2, Statistics, Calculus

Linear vs. nonlinear models

For now, the most important skill is knowing when a linear model fits your situation and when it doesn't. If data curves or levels off, a straight line won't tell the full story. You'll learn those tools in later courses — but the critical-thinking skill of checking whether your model makes sense? That starts right here.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

In the equation y = 5x + 20, what does the number 5 represent in context if x is the number of hours worked and y is the total pay in dollars?
Show answer
The number 5 is the slope (m). It means that for every additional hour worked, the total pay increases by $5. In other words, the hourly wage is $5. The slope always describes the rate of change — how much y changes for each 1-unit increase in x.

Question 2: BASIC CALCULATION

A model for the number of books a student has read is y = 3x + 2, where x is the number of months. Data was collected from months 1 through 8. How many books does the model predict at month 6?
Show answer
Substitute x = 6 into the equation: y = 3(6) + 2 = 18 + 2 = 20. The model predicts 20 books at month 6. Since month 6 is within the data range of months 1 to 8, this is interpolation and the prediction is reasonable.

Question 3: INTERMEDIATE

Using the same model y = 3x + 2 (data collected months 1–8), a student predicts y when x = 100. Calculate the prediction and explain whether it is reasonable.
Show answer
Substituting x = 100: y = 3(100) + 2 = 302. The model predicts the student will have read 302 books by month 100. This is extrapolation because month 100 is far outside the data range of months 1–8. Reading 302 books (about 3 per month for over 8 years) might be physically possible, but the model assumes a perfectly constant reading rate. In reality, the student's pace could change due to school, interests, or life events. The prediction is unreliable.

Question 4: APPLIED

A dog walker tracked their earnings for weeks 1 through 5 and found the model y = 40x + 15, where x is the week number and y is total earnings in dollars. (a) Interpret the slope and y-intercept. (b) Predict earnings at week 3. (c) Predict earnings at week 52 and explain whether it's reasonable.
Show answer
(a) The slope m = 40 means earnings increase by $40 each week — the dog walker gains more clients or walks. The y-intercept b = 15 means the model estimates $15 at week 0, perhaps a small initial tip or first-day payment. (b) At week 3: y = 40(3) + 15 = 120 + 15 = 135. The model predicts $135. This is interpolation (within weeks 1–5) and is likely reasonable. (c) At week 52: y = 40(52) + 15 = 2,080 + 15 = $2,095 in a single week. This is extrapolation far beyond the data. A dog walker earning over $2,000 per week just by following the same trend seems unrealistic — there are only so many hours in a day to walk dogs.

Question 5: CRITICAL THINKING

Two students each have a linear model for the height of a sunflower (in cm): Student A uses y = 4x + 5 (data from weeks 1–6) and Student B uses y = 4x + 5 (data from weeks 1–20). Both predict height at week 15. Which student's prediction is more trustworthy, and why?
Show answer
Both equations are identical, so both give the same numerical answer: y = 4(15) + 5 = 65 cm. However, Student B's prediction is more trustworthy because week 15 falls within their data range of weeks 1–20 (interpolation). Student A is extrapolating because their data only goes up to week 6 — week 15 is far outside that range. This shows that the reliability of a prediction depends not just on the equation, but on the range of data behind it. Same equation, different levels of trust!

SUMMARY

Lesson Summary

Summary

A linear model uses the equation y = mx + b to describe a straight-line pattern in real data. The slope (m) tells you the rate of change — how much y increases or decreases for each 1-unit increase in x. The y-intercept (b) is the starting value of y when x equals zero. Always interpret both values in the context of the real-world situation.

Predictions made within the data range are called interpolation and are usually trustworthy. Predictions made outside the data range are called extrapolation and can produce unreasonable or impossible answers. Before trusting any prediction, ask yourself: "Is this x-value inside my data? Does the answer make sense in the real world?"

Varsity Tutors • Pre-Algebra • Interpreting Linear Models