What does the line say a Civic with 400,000 miles costs?
Lesson 15.4 · Don’t Stretch the Line
Felix · Owen
Owen: “So they pay you? I’m in.”
Felix is feeling good about the line and tries it on a joke: a Civic with 400,000 miles.
The line says the seller should pay Felix about $20,000 to take it. Owen thinks that’s the best deal yet.
The short answer
Extrapolation: Using a pattern outside the range of data it learned from is extrapolation. The line doesn’t stop where the data stops. Your judgment has to.
Try it yourself
Drag past the last car and read the price the line predicts. Keep going.
Asking price ($): 11,384
What you just did has a name
Extrapolation
Using a pattern outside the range of data it learned from is extrapolation.
The line doesn’t stop where the data stops. Your judgment has to.
A few more things
The data has edges
The Civics on Felix’s lot run from 12,000 to 115,000 miles. Inside that range the line is a fair guess. Outside it, the line is a straight edge drawn across a place nobody measured.
Straight lines eventually lie
Real prices flatten out. A car with 300,000 miles is worth about the same as one with 250,000: not much, but not negative. The world bends. The line doesn’t.
This is how models embarrass people
A model trained on normal months predicting a strange one. A growth chart applied to a kid who is off the chart. Any time a number comes out of a model, ask whether the input was inside the data it learned from.
Go deeper
The longer version, if you want it.
Interpolation vs. extrapolation
Predicting inside the range of the training data is interpolation, and it’s where regression earns its keep. Predicting outside it is extrapolation, and every textbook warns against it in roughly the tone you’d use for “don’t touch the stove.”
It isn’t only straight lines. Any model, including the neural networks in Module 20, is most trustworthy near the data it saw and gets stranger the farther you go. The fancier the model, the more confidently it can be wrong out there.
Quick check
A plant-growth line was fit on seedlings measured for their first 14 days. Someone uses it to predict height on day 200 and gets 9 feet. Trust it?
Let’s take it slower
Here’s a quick test. Before you trust a prediction, find the smallest and largest values the model actually saw. Is your input between them? Then the model has neighbors to compare it with, and the guess is fair. Is it outside? Then the model is drawing a straight edge into fog. Nothing stops it from continuing, so it does, and it reports the result with the same confidence either way. The model can’t tell you it has left the map. You have to check the edges yourself.
More examples
The gaming and sleep headline
A study of teens who game up to 4 hours a day finds each extra hour goes with a little less sleep. A headline stretches the line to 12 hours and announces that heavy gamers sleep two hours a night. Nobody in the study played 12 hours. The line did.
The world record line
Fit a line to how the 100-meter world record has dropped over a century and it eventually predicts someone running it in zero seconds. The past data is real. The future it points at isn’t in it.
Back to the question
So, does the seller pay Felix $20,000?
Show the answer
No. The line has no idea what a 400,000-mile Civic costs, because it never saw one. Felix buys Car A, the one inside the data, and Owen stays disappointed.
One last question
Why did the line predict a negative price?
Talk Card
Talk Card · 15.4
A model is only a fair guess inside the range of data it learned from. Past the edge, it’s a straight line drawn across a place nobody measured.
Data to AI · pettigrewlab.com/learn

