Weighted Moving Average
Weighted Moving Average Forecast
When you plan next week's stock or staffing, several recent demand observations may be useful, but they need not deserve equal influence. A weighted moving average forecast estimates demand for the next period by multiplying selected past actual demands by assigned weights and adding the contributions. You choose both the number of observations to include and how much influence each observation receives.
Match weights to the correct periods
A weight is the share of influence assigned to an observation. For the standard weighted moving average forecast, weights are nonnegative and sum to one. They have no units, so multiplying demand in cartons by a weight produces a contribution in cartons.
Here, use the convention that w1 belongs to the most recent actual demand, w2 to the next most recent, and so on. Some textbooks list weights from oldest to newest instead. Read the stated order before substituting values; the subscripts alone do not establish a universal convention.
Here, Ft+1 is the forecast for period t+1, At is actual demand in period t, and n is the number of actual observations included. All observations should represent comparable periods and use the same demand units.
For three observations, the formula becomes:
Calculate and update the forecast
Multiply each actual demand by its assigned weight, then add the products. If the weights already sum to one, the resulting sum is the forecast. Do not divide it again by the number of observations.
Sometimes a business gives relative scores rather than normalized weights. Convert each score into a weight by dividing by the total score:
For example, scores of 2, 3, and 5 become weights of 0.20, 0.30, and 0.50, respectively. An equivalent calculation divides the sum of score-times-demand products by the total score.
When a new period's actual demand becomes available, move the observation window forward by one period. Drop the oldest observation, include the new actual, and reassign the weights according to the observations' new ages. With a fixed weighting rule, the weight stays attached to an age within the window, rather than to a particular calendar period.
Interpret the effect of the weights
Larger weights give observations more influence. Recent observations often receive the largest weights, but this is a choice rather than part of the definition.
Weighting choice | Effect with the observations held fixed |
|---|---|
Increase the newest weight and reduce the oldest equally | Changes the forecast by δ(Anewest−Aoldest) for a weight transfer of δ; increases it when the newest exceeds the oldest, decreases it when smaller, and leaves it unchanged when equal |
Give an observation zero weight | Removes that observation's direct contribution |
Keep nonnegative weights summing to one | Keeps the forecast between the smallest and largest included actual demands |
If you transfer weight δ from the oldest observation to the newest, leaving all other weights unchanged, the forecast changes by:
This change is positive when the newest actual exceeds the oldest, and negative when it is smaller. More emphasis on recent demand increases sensitivity to recent observations, but does not by itself establish better accuracy. That requires comparing forecasts with subsequent actual demand.
What to remember
- Match each weight to the intended observation age.
- Use nonnegative weights that sum to one, normalizing scores when necessary.
- Roll the window forward using actual demand and reassign the age-based weights.
- Check the units and confirm that the forecast lies within the included actual-demand range.
Example: Planning a café depot's carton demand
A café supply depot forecasts weekly carton demand using the three most recent actual demands. Its weights are 0.20 for the oldest week, 0.30 for the middle week, and 0.50 for the newest week.
Week | Actual demand |
|---|---|
1 | 180 cartons |
2 | 220 cartons |
3 | 200 cartons |
Report final forecasts to the nearest whole carton.
a) Calculate the forecast for week 4.
For week 4, the available observations are weeks ________. Assign the weights from oldest to newest and check that they sum to one: 0.20+0.30+0.50=1.00.
The week 4 forecast is 202 cartons. It is between the smallest and largest included actual demands, 180 and 220 cartons. No further division is needed because the weights already sum to one.
b) Week 4's actual demand is 240 cartons. Calculate the forecast for week 5 using the original weighting rule.
Move the window forward to weeks ________. Week 1 drops out, week 2 becomes oldest, and the new actual demand for week 4 becomes newest. Use 240 cartons rather than the earlier forecast of 202 cartons.
The week 5 forecast is 224 cartons. The weights retain their roles by observation age, even though they now apply to different calendar weeks.
c) For the same week 5 forecast, the depot considers weights of 0.10, 0.20, and 0.70 from oldest to newest. Calculate the revised forecast and explain its difference from part b).
Keep the observation window fixed at weeks 2, 3, and 4. Only the weights change. The revised weights are nonnegative and sum to one: 0.10+0.20+0.70=1.00.
The revised forecast is 230 cartons, an increase of 6 cartons. The newest actual demand is the largest observation, so shifting influence toward it raises the forecast. This shows the effect of the weighting change; it does not establish which forecast will be more accurate because week 5's actual demand is not yet known.
A distributor forecasts next month's demand using its three most recent monthly actual demands. From oldest to newest, these are 140, 160, and 190 cases. The distributor assigns relative importance scores of 1, 2, and 5 to those observations, respectively.
What is the weighted moving average forecast, in cases, to two decimal places?
A retailer uses weights of 0.20, 0.30, and 0.50 from oldest to newest for a three-week weighted moving average forecast.
Week | Actual demand |
|---|---|
1 | 80 units |
2 | 100 units |
3 | 120 units |
4 | 90 units |
Before week 4 began, its forecast was 106 units. Now that week 4's actual demand is known, what is the forecast for week 5?