Forecasting: Weighted Moving Averages, MAD - YouTube

Channel: Joshua Emmanuel

[0]
Welcome to this Forecasting tutorial on Weighted Moving Averages.
[4]
We will be calculating Weighted Moving Averages. We will also be comparing error measures using
[11]
the Mean Absolute Deviation, MAD.
[14]
We will be using these times series data from 7 weeks of sales.
[19]
And we want to forecast sales using 4-week weighted moving averages with weights 0.4,
[25]
0.3, 0.2, and 0.1. In practice, the weighted moving average is
[31]
usually employed when there is a need to place more importance on some periods over others.
[38]
In most cases, we place more importance on more recent data.
[42]
Therefore in this exercise, the 0.4 weight will be placed on the most recent value, the
[49]
0.3 on the next most recent, and so on. Let鈥檚 now calculate 4-week weighted moving
[55]
averages using the given weights .4, .3, .2, and .1.
[60]
Since we鈥檙e computing 4-week averages, we start by using data from the first 4 weeks
[65]
to compute the moving average forecast for week 5.
[69]
So F5 (that is, forecast for week 5) equals 0.4 times 45 (notice that 45 is the most recent
[78]
value) + .3 times 40 (the next most recent value)
[84]
+ .2 times 44 + .1 times 39 which gives 42.7. For week 6, the weighted moving average is
[94]
F6 which equals 0.4(38) + 0.3(45) + 0.2(40) + 0.1(44) which gives 41.1.
[106]
For week 7, the weighted moving average is 0.4(43) + 0.3(38) + 0.2(45) + 0.1(40) which
[116]
gives 41.6. And the forecast for week 8 is
[121]
0.4(39) + 0.3(43) + 0.2(38) + 0.1(45) which gives 40.6.
[132]
Next we calculate the Mean Absolute Deviation for this model.
[136]
First we calculate the absolute errors. That is, the positive difference between the actual
[142]
and forecast values and then average them. There are no errors for weeks 1 to 4 because
[147]
there are no forecasts. For week 5, the absolute error is 4.7.
[153]
For week 6, it is is 1.9. For week 7, it is 2.6.
[159]
The mean absolute deviation MAD is the average of these errors which gives 3.07.
[165]
Now, note that in this first example, the weights .4, .3, .2, and .1 added up to 1.
[171]
Let鈥檚 look at the next example where the weights do not add up to 1.
[177]
Forecast sales using 2-week weighted moving averages with weights 3 and 2.
[183]
In this example we are calculating 2-week moving averages where the weights 3 and 2
[188]
add up to 5, and not to 1. So in calculating the weighted moving averages,
[193]
we multiply the sales values by the weights as we did before, but in this case, we also
[200]
divide by the total weight which is 5. And so the forecast for week 3, F3 is
[206]
3(44) + 2(39) divided by 5 which gives 42. For week 4, it is 3(40) + 2(44) divided by
[218]
5 and that gives 41.6. For week 5, it is 43,
[224]
It is 40.8 for week 6, And for week 7 it is 41
[231]
And finally for week 8, it is 40.6 Next we calculate the mean absolute deviation.
[240]
The absolute forecast error for week 3 is the absolute value of 40 - 42 which is 2.
[247]
For week 4 it is 3.4 For week 5 it is 5
[252]
For week 6 it is 2.2 And for week 7 it is 2.
[257]
On averaging these 5 values, we obtain a mean absolute deviation value of 2.92.
[265]
Now let鈥檚 compare the error measures.
[268]
The MAD was 3.07 using the 4-week moving average method with weights .4, .3, .2, and .1.
[276]
And the MAD was 2.92 using the 2-week weighted moving average with weights 3 and 2.
[282]
Since the MAD is an error measure, smaller MADs produce better smoothing of the data.
[289]
Therefore, using MAD, the 2-week weighted average method produced a better forecast.
[296]
Please leave your question or comment below. Thanks for watching.