Does knowing a used car’s age make its price guess better?
Lesson 15.3 · More Than One Clue
Felix · Rosa
Rosa: “Same miles, five years apart. That has to matter.”
Felix’s price line for used Civics only uses miles, and some cars sit far from it.
Rosa points out that two cars with the same miles can be five years apart. Felix adds a column for age.
Then one for whether it’s the sporty trim. One of those helps. One doesn’t.
The short answer
Yes, a little. Trim didn’t. And Car A stayed under its prediction the whole way. Felix texts the seller: “Anything wrong with it?” The answer is a new job in another state and a fast sale. Deal.
Try it yourself
Step through adding clues and watch how far each car sits from its prediction. The bars are real: the app fit each model to Felix’s fifteen cars.
Miles only. Each bar is how far a car’s real price sits from the line’s prediction, in dollars. Most miss by a few hundred. Car A and Car B stick out.
What you just did has a name
Multiple regression and residuals
A line that uses several clues at once is multiple regression.
The gap between a car’s real price and its prediction is called a residual.
A big residual means the car is priced differently from the pattern, and the pattern can’t say why.
A few more things
Clues are called features
Miles, age, trim. In machine learning every clue you feed a model is a feature. Picking good features is most of the job, and it takes knowing something about cars, not just math.
The residual is the story
Once the pattern explains most of the price, whatever is left over is the part worth asking about. Car A is about $1,660 under even after three clues. Either something is wrong with it, or the seller wants it gone. Felix should ask.
More clues isn’t always better
Add the color of the seats and the model will find a pattern in it, because it always finds a pattern. Module 18 is about what goes wrong when a model learns clues that don’t mean anything.
Go deeper
The longer version, if you want it.
The equation grows sideways
With three features the line becomes price = a + b₁ × miles + b₂ × age + b₃ × sporty, where sporty is 1 or 0. It’s still a line, just in more directions than you can draw.
Least squares works exactly the same way: pick every b to make the squared residuals as small as possible. Software solves it in one step with linear algebra. There’s no guessing and checking.
A common score for how well the features explain the price is R², the share of the price’s variation the model accounts for. On Felix’s lot, miles alone explains about 97 percent, and adding age nudges it to 98. That’s an unusually tidy lot. Real data is messier, and a model that hits 100 is usually cheating.
Quick check
A school predicts each student’s final exam score from homework average and attendance. Jordan’s predicted score is 78. Jordan got 91. What is the 13?
Let’s take it slower
Think of the prediction as what the pattern expects, given everything it was told. Tell it more useful things and it expects more accurately. That’s multiple regression: several clues feeding one guess. Then compare the guess to what actually happened. The difference is the residual, the part no clue accounted for. Small residuals mean the clues did their job. A big one means something is going on that isn’t in your columns, and the only way to find out what is to go ask.
More examples
The rent estimate
A rental site predicts rent from square feet, bedrooms and distance to the train. One apartment comes in $400 under its prediction. The listing photos are dark for a reason. The residual was the tell.
The race time predictor
A running app predicts your race time from weekly mileage, long-run pace and age. Add shoe brand and the misses don’t shrink at all. That’s the app telling you shoe brand isn’t a clue, which is worth knowing before you buy the expensive ones.
Back to the question
Did knowing the age help?
Show the answer
Yes, a little. Trim didn’t. And Car A stayed under its prediction the whole way. Felix texts the seller: “Anything wrong with it?” The answer is a new job in another state and a fast sale. Deal.
One last question
Felix’s cousin makes some claims about the model. Trust them?
“Adding the car’s age made the predictions closer to the real prices.”
“If we add enough clues, the model will predict every price perfectly.”
“A car far below its prediction is worth asking about.”
Talk Card
Talk Card · 15.3
A good clue shrinks a model’s misses and a useless one changes nothing. The miss that survives every clue is the part worth asking about.
Data to AI · pettigrewlab.com/learn

