Demand Forecasting Basics
Make moving-average and exponential smoothing forecasts, then measure accuracy and bias with MAD and MAPE so you know how far to trust them.
Welcome back!
Step 1 of 12Learn
The forecast is always wrong
Supply chain people have a saying: the forecast is always wrong. That isn't an excuse for bad forecasting. It's a reminder that the goal is a forecast that is useful: close enough, unbiased, and paired with a sense of how wrong it might be.
Why forecast at all? Because supply takes time. If a factory needs six weeks to make a product and the supplier needs four weeks to deliver parts, decisions about next quarter's sales have to be made today. Every purchase order, production plan and staffing schedule rests on some estimate of future demand.
Forecasts come in two broad families:
- Qualitative methods use judgment: sales team input, expert panels, customer surveys. They're essential for new products with no history and for one-off events.
- Quantitative methods use numbers: past sales (time-series methods) or drivers such as price, weather and promotions (causal methods).
Three rules of thumb hold almost everywhere. Forecasts are more accurate for groups than for single items (total T-shirt sales beat sales of medium blue V-necks). They're more accurate for the near term than for the far future. And they should always come with an error estimate, because a forecast of 1,000 units means something very different if the typical error is 50 or 500.
Step 2 of 12Learn
Moving averages and exponential smoothing
The simplest time-series method is the moving average: average the last n periods and use that as next period's forecast.
Suppose a bakery sold 120, 130, 110 and 140 cakes in the last four weeks. A 3-week moving average forecast for next week is (130 + 110 + 140) / 3 = 126.7. A longer window (say 6 weeks) is smoother and ignores random noise better, but reacts more slowly when demand really changes.
Exponential smoothing fixes a weakness of moving averages, which treat old and recent weeks as equally important. It updates the old forecast by a fraction of the latest error:
New forecast = Old forecast + α × (Actual − Old forecast)
The smoothing constant α (alpha) is between 0 and 1. If last week's forecast was 125 and actual sales were 140 with α = 0.2, the new forecast is 125 + 0.2 × 15 = 128. A high alpha (0.5 or more) reacts quickly but chases noise. A low alpha (0.1 to 0.3) is stable but slow to notice a real shift.
Neither method handles trend or seasonality on its own. If ice cream sales double every summer, a plain moving average will always be late. More advanced methods (Holt-Winters, regression, machine learning models) add those patterns, but they build on the same idea: learn from past errors.
Step 3 of 12Chart
The bakery's 3-week moving average
Step 4 of 12Try the calculator
Exponential smoothing calculator
Change alpha and watch how strongly the new forecast reacts to the latest week.
- Forecast error (actual − forecast)
- 15 units
- New forecast
- 128 units
Step 5 of 12Practice · Work it out
A store sold 200, 230, 210 and 260 units in the last four months. What is the 3-month moving average forecast for next month?
Step 6 of 12Practice · Work it out
Last month's forecast was 500 units and actual demand was 560. With exponential smoothing and α = 0.3, what is the forecast for this month?
Step 7 of 12Practice · Chart
How fast does the forecast catch up?
Demand jumps from 100 to 150 in week 4 and stays there. Compare two smoothing constants.
In which week does the α = 0.6 forecast first come within 5 units of the new demand?
Tap the point that answers the question, then press Check.
| Item | Actual demand | Forecast, α = 0.2 | Forecast, α = 0.6 |
|---|---|---|---|
| W1 | 100 | 100 | 100 |
| W2 | 100 | 100 | 100 |
| W3 | 100 | 100 | 100 |
| W4 | 150 | 100 | 100 |
| W5 | 150 | 110 | 130 |
| W6 | 150 | 118 | 142 |
| W7 | 150 | 124 | 147 |
| W8 | 150 | 130 | 149 |
Step 8 of 12Learn
Measuring forecast accuracy and bias
You can't improve a forecast you don't measure. Each period, compute the error = actual − forecast. Then summarize:
- MAD (mean absolute deviation): the average of the error sizes, ignoring sign. Errors of +10, −5, +15 and −10 give MAD = (10 + 5 + 15 + 10) / 4 = 10 units.
- MAPE (mean absolute percentage error): the average of each absolute error divided by actual demand, as a percentage. It lets you compare items with very different volumes. A MAPE of 15% means forecasts miss by about 15% on average.
- Bias: the sum (or average) of errors with their signs. In the example, +10 − 5 + 15 − 10 = +10, a slight tendency to under-forecast.
Bias is often more damaging than random error. A forecast that's consistently 10% too high fills warehouses month after month; one that's consistently low causes repeated stockouts. Bias usually has a human cause: sales teams sandbagging to beat targets, or managers inflating numbers to secure supply.
A common mistake is averaging the signed errors and calling it accuracy. Errors of +100 and −100 average to zero, which looks perfect, yet each forecast was 100 units off. Always look at an absolute measure (MAD or MAPE) and a signed one (bias) together.
Step 9 of 12Practice · Work it out
A planner's forecast errors (actual − forecast) for four weeks were +20, −30, +10 and −20 units. What is the MAD?
Step 10 of 12Note
Step 11 of 12Note
Step 12 of 12Practice · Select all that apply
Which statements about forecasting are generally true? Select all that apply.
Select all that apply.
Lesson complete!