Simple Moving Average Forecast: Choosing and Updating the Window
A simple moving average forecast estimates demand for the next period by averaging actual demand from a fixed number of recent periods. You might use it to estimate next week's packaging demand or tomorrow's deliveries. It is useful when demand fluctuates around a reasonably stable level and you want an estimate that is less sensitive to individual observations. The important decisions are which periods belong in the average and how many periods to include.
Build the forecast from recent actual demand
A simple moving average forecast is the arithmetic mean of actual demand over the most recent fixed number of periods. Every observation inside that group receives the same weight; observations outside it receive no weight.
At the end of period t, the forecast for period t+1 is
Here, At is actual demand in period t, Ft+1 is forecast demand for the next period, and n is the number of periods averaged. The window length is this chosen number n.
For example, suppose weekly demand was 70, 76, and 79 units. With a three-week window, the forecast for the following week is
This means an expected demand of 75 units during week 4. It does not mean that every day will have the same demand, or that exactly 75 units will be requested. A forecast is an estimate, so a fractional result can also be meaningful even when actual demand is counted in whole units.
Advance the window when actual demand arrives
After a period ends, remove the oldest observation and include the newly observed actual demand. Keep the number of included periods equal to n.
If actual demand in week 4 is 82 units, the next three-week forecast uses weeks 2, 3, and 4:
The 70-unit observation leaves the window. You do not average all four weeks, because that would change the specified window length. You also do not insert the earlier forecast of 75 units in place of the actual demand of 82 units.
For a fixed window, the update can also be written as
The forecast increases when the entering observation exceeds the departing observation. It decreases when the entering observation is smaller. If they are equal, the forecast stays unchanged.
Choose a window that fits the decision
Window length controls how strongly each included observation affects the forecast. The comparison below assumes the same demand series and forecasts made at the same time.
Feature | Shorter window | Longer window |
|---|---|---|
Weight on each included observation | Larger | Smaller |
Response to a new observation, with other included values held fixed | Larger change | Smaller change |
Smoothing of short-term fluctuations | Usually less | Usually more |
Response to a sustained change in demand level | Usually faster | Usually slower |
A longer window does not automatically produce a better forecast. It can reduce the influence of temporary fluctuations, but older demand remains influential for longer. Persistent upward or downward movement, or repeating seasonal patterns, can make a simple average a poor description of next-period demand. Window length alone does not resolve those patterns.
Use equal-duration periods and a consistent demand definition. For example, weekly customer demand and daily shipments should not be mixed in one average. Keep intermediate calculations unrounded, then round the final forecast to the precision needed for the decision.
What to remember
- Average the most recent n actual observations from the specified periods.
- Update by dropping the oldest actual and adding the newest actual.
- Shorter windows respond more strongly to individual observations.
- Missing demand, zero demand, and forecast demand are different inputs.
Example: Updating a Simple Moving Average Forecast for Cartons
A packing facility uses a three-week simple moving average forecast for carton demand. Each week has the same operating schedule, and demand is recorded as the total number of cartons required during that week.
Week | Actual demand, cartons |
|---|---|
1 | 180 |
2 | 210 |
3 | 195 |
a) At the end of week 3, calculate the forecast for week 4.
The three most recent completed weeks are weeks ________. Add their actual demands and divide by the three included observations.
The forecast is 195 cartons for week 4. It lies within the range of the three observations, which provides a useful check on the average.
b) Actual demand in week 4 is 225 cartons. Calculate the forecast for week 5 and the change from the previous forecast.
Advance the window by removing week ________ and adding actual demand from week 4. The new window contains weeks ________, while its length remains three weeks.
The change in the forecast is
You can check this change by comparing the entering and departing actuals:
The forecast for week 5 is 210 cartons, an increase of 15 cartons from the forecast for week 4.
c) A spreadsheet mistakenly inserts the week 4 forecast of 195 cartons instead of the actual demand of 225 cartons. Calculate its incorrect week 5 forecast and determine how far it falls below the correct forecast.
The mistaken spreadsheet retains actual demands from weeks ________ but uses a prediction for week 4. Calculate its output using those inputs.
Compare this result with the correct forecast from part b:
The spreadsheet produces 200 cartons, which is 10 cartons below the correct forecast. Its week 4 input is too low by ________ cartons; because that input has weight 1/3, the resulting forecast is too low by 30/3=10 cartons. Replace the prediction with the observed actual demand.
A repair shop records weekly demand for replacement filters as follows.
Week | Actual demand, filters |
|---|---|
1 | 84 |
2 | 96 |
3 | 92 |
4 | 108 |
At the end of week 4, what is its four-week simple moving average forecast for week 5? Express the forecast to one decimal place.
A shop forecasts next month's demand using a simple moving average of the four most recent monthly actual demands. Complete both statements. For the second blank, choose from the word bank: higher, lower, unchanged.
Each included month receives % of the total weight.
If two included months exchange their recorded demand values, without any value entering or leaving the four-month window, the forecast remains .