Simple projections and their limits
Last updated
The owners need a number for next year: how much to order, whether a fifth store can pay. In this lesson you'll compare three simple ways to project, use last year's errors to put a range around the projection, and see how a straight line drawn through a rising price can run far past what really happens.
By the end of this lesson you can
- Make simple projections: an average, a straight-line trend and the same month last year
- Give a projection as a range, using how wrong past projections were
- Explain why extending a trend far ahead is risky
Three simple projections
A projection says what will happen if things carry on as they have. Three simple ways to project January 2025's takings, all stores together:
- The recent average: the mean of the last few months.
- A straight-line trend: fit a line through all 36 months (8.9) and extend it.
- The same month last year (called seasonal naive): January 2025 will be like January 2024.
Run the cell.
| method | January 2025 |
|---|---|
| last 3 months' average | ₱306,298 |
| straight-line trend | ₱303,344 |
| same month last year | ₱271,043 |
The first two say January will be like October to December, and the line adds ₱2,040 a month for growth. Both miss the season (9.6): January always falls after December. The plain "same as last January" is the most sensible of the three, and it's what shopkeepers already do in their heads.
Simple methods are worth trying first. Forecasters use them as benchmarks: a clever model that can't beat "same month last year" isn't worth its complexity.
A range, not a number
"Same month last year" ignores growth. How much did each month grow from 2023 to 2024? The second cell works it out month by month, then uses the spread as a range for 2025. Run all: the first cell is step 1's again.
In 2024, months grew between 3.1% and 10.1% on the year before (from the 10th to the 90th percentile), with a median of 6.1%. Applying those to each month of 2024 gives a low, middle and high projection for 2025. For the year: ₱3,508,000 to ₱3,749,000.
A projection drawn with its range is a fan chart. Widen and narrow the range, and switch on the straight line to compare:
Each month of 2025 is projected as the same month of 2024 times the growth seen from 2023 to 2024: 6.1% in the middle, from 3.1% to 10.1% for the 80% range. For the year: ₱3,508,000 to ₱3,748,000.
- A wider range is more likely to hold but less useful: the 95% range says little. Pick the range for the decision. For stock, the middle matters; for "can we pay a new store's rent?", plan for the low end.
- The range is honest only if the past is a guide. It comes from one year of growth. A typhoon, a new competitor or a price shock can push the year outside it.
- The straight line misses every December and February: it knows the trend, not the season.
Real forecasters widen the range further ahead, because errors build up. A projection for next month is safer than one for 2027.
Wrong way: the line that kept going
In mid-2024 the owners worried about rice: "It's gone up every few months since March 2023. At this rate, where will it be by the end of 2025?" They fitted a straight line through March 2023 to July 2024 and extended it. Run the cell.
The line rises ₱0.65 a kilo each month and says ₱62.2 by December 2025. But rice prices don't follow a line. They rise and fall with harvests, imports, the world price and government policy. In the course's data, rice dropped from ₱50 to ₱48 in August 2024 and stayed there.
The fitted line was a fair description of the past 17 months. It was never a reason to think the next 17 would be the same. 8.10 called this extrapolation: using a model outside the range it was fitted on.
The check: before extending a trend, ask what's driving it and whether that will continue. Say how far ahead you're projecting, and give a range. A projection more than a season or two ahead is a scenario ("if this carries on"), not a forecast.
Check what you learned
Sources
Every example on this page was run with Python 3.14, and its output and error messages are copied from it. These pages cover the same ground in more depth.
- Hyndman and Athanasopoulos, Forecasting: Principles and Practice, 3rd ed., section 5.2: the mean, naive, seasonal naive and drift methods
- Hyndman and Athanasopoulos, Forecasting: Principles and Practice, 3rd ed., section 5.5: prediction intervals, and why they widen further ahead
- NumPy: numpy.percentile: the 10th, 50th and 90th percentiles
- NumPy: numpy.polyfit: fitting a straight line by least squares