The request

From Jordan Reyes, Head of Marketing
Your goal
Choose the most accurate reply to Jordan.
Every month in the data spent between $23,861 and $70,675. Jordan's $110,000 would sit far off the right edge of this chart.
Show the numbers
| Marketing spend in the month | Revenue in the month |
|---|---|
| $27,045 | $85,437 |
| $23,861 | $66,625 |
| $28,064 | $87,788 |
| $28,975 | $106,298 |
| $29,574 | $146,984 |
| $27,652 | $102,555 |
| $30,030 | $145,155 |
| $29,177 | $140,662 |
| $30,443 | $118,229 |
| $31,944 | $128,086 |
| $53,609 | $231,165 |
| $41,817 | $241,527 |
| $31,341 | $109,306 |
| $28,007 | $77,547 |
| $31,957 | $161,478 |
| $31,847 | $142,766 |
| $34,146 | $151,773 |
| $30,973 | $146,719 |
| $33,858 | $136,668 |
| $33,903 | $156,410 |
| $34,403 | $151,881 |
| $36,786 | $149,408 |
| $62,236 | $319,217 |
| $52,436 | $290,432 |
| $35,944 | $150,571 |
| $31,328 | $99,903 |
| $36,419 | $166,787 |
| $36,895 | $189,735 |
| $40,022 | $206,469 |
| $38,016 | $213,062 |
| $39,652 | $191,967 |
| $40,143 | $182,987 |
| $39,381 | $143,379 |
| $42,808 | $174,599 |
| $70,675 | $292,364 |
| $59,359 | $288,347 |
What Jordan gets, and why
The lesson
Prediction inside and outside the data
A fitted line is a summary of the points it was fitted on. Inside the range of x those points cover, it is a reasonable description. Outside that range it is an assumption: that the relationship keeps going in a straight line where you have never looked. Using a model outside the range of its data is called extrapolation, and it is the most common way a good-looking regression produces a bad forecast.
Harbor & Pine’s monthly spend runs from $23,861 to $70,675. The line’s prediction at $110,000:
5.503 * 110_000 - 40_288 # ≈ 565,000
$565,000 is 77% more than the best month the store has ever had. Maybe. Or demand runs out: there are only so many households shopping for a sofa in a given month, and returns on ad spend almost always flatten as budgets grow. The data cannot say, because it has no months like that.
What R² does and does not measure
R² = 0.845 says the line follows the ups and downs of the 36 months it was fitted on closely. It is not:
- a forecast error. “R² 0.85, so within 15%” is a common and wrong reading;
- evidence of cause. The holiday season lifts both spend and revenue (level 2), and that shared driver is a big part of the 0.845;
- valid outside the range. It was computed on the fitted months only.
The intercept shows the same problem at the other end: at zero spend the line predicts -$40,288 of revenue, which is impossible. Zero is as far outside the data on the left as $110,000 is on the right.
What to tell Jordan
“In past months, higher spend went with higher revenue. The line is fitted on budgets up to about $71,000 and includes the holiday effect, so it can’t forecast $110,000. If we want to know, we should raise spend in some regions first and compare them with the rest.”
Common mistakes
- Forecasting beyond the data because the formula happily returns a number.
- Reading R² as accuracy or as a percentage of correct predictions.
- Fixing the model instead of the question. More rows, daily data or a fancier curve still have no observations at $110,000 a month.
Lantern lit!
Practised: extrapolationr squaredpredictionlinear regression
- Solved
- No hints
- First run
