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 tt, the forecast for period t+1t+1 is


Ft+1=At+At−1+⋯+At−n+1n.F_{t+1}=\frac{A_t+A_{t-1}+\cdots+A_{t-n+1}}{n}.


Here, AtA_t is actual demand in period tt, Ft+1F_{t+1} is forecast demand for the next period, and nn is the number of periods averaged. The window length is this chosen number nn.


For example, suppose weekly demand was 70, 76, and 79 units. With a three-week window, the forecast for the following week is


F4=70+76+793=75 units.F_4=\frac{70+76+79}{3}=75\ \text{units}.


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 nn.


Two overlapping windows select consecutive groups of three observed demand periods.


If actual demand in week 4 is 82 units, the next three-week forecast uses weeks 2, 3, and 4:


F5=76+79+823=79 units.F_5=\frac{76+79+82}{3}=79\ \text{units}.


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


Ft+2=Ft+1+At+1−At−n+1n.F_{t+2}=F_{t+1}+\frac{A_{t+1}-A_{t-n+1}}{n}.


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 nn 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.


F4=A1+A2+A33=180+210+1953=5853=195 cartons.\begin{aligned} F_4&=\frac{A_1+A_2+A_3}{3}\\ &=\frac{180+210+195}{3}\\ &=\frac{585}{3}\\ &=195\ \text{cartons}. \end{aligned}


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.


F5=A2+A3+A43=210+195+2253=6303=210 cartons.\begin{aligned} F_5&=\frac{A_2+A_3+A_4}{3}\\ &=\frac{210+195+225}{3}\\ &=\frac{630}{3}\\ &=210\ \text{cartons}. \end{aligned}


The change in the forecast is


F5−F4=210−195=15 cartons.F_5-F_4=210-195=15\ \text{cartons}.


You can check this change by comparing the entering and departing actuals:


225−1803=15 cartons.\frac{225-180}{3}=15\ \text{cartons}.


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.


F5,incorrect=210+195+1953=6003=200 cartons.\begin{aligned} F_{5,\text{incorrect}}&=\frac{210+195+195}{3}\\ &=\frac{600}{3}\\ &=200\ \text{cartons}. \end{aligned}


Compare this result with the correct forecast from part b:


210−200=10 cartons.210-200=10\ \text{cartons}.


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/31/3, the resulting forecast is too low by 30/3=1030/3=10 cartons. Replace the prediction with the observed actual demand.

A campus café uses a three-week simple moving average forecast for milk demand. It prepares its forecast for week 8 immediately after actual demand for week 7 becomes available. Which observations should it average?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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 .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice