Professional Documents
Culture Documents
For data with seasonality (Holt winter forecasting) where the periodicity is c, the
formula for MASE becomes
If U < 1, the forecasting technique is better than guessing, if U = 1 then the forecasting
technique is as good as guessing and if U > 1 then the forecasting technique is worse
than guessing.
Actually, U is also called Theil’s U2 statistic. There is also a, less-often used, U1 statistic
1|Page
Prepared by Dr Shubhendra Singh Parihar for class room teaching
Example
The given table is the sales of product “X” in a year. The sales figures are in number of units/
month is given. Predict the month wise sales in next year. Plot a graph
2|Page
Prepared by Dr Shubhendra Singh Parihar for class room teaching
Moving Average
80
70
60
50 Actual
40
Value
Forecast
30 Linear (Forecast)
20
10
0
1 2 3 4 5 6 7 8 9 10 11 12
Data Point
Exponential smoothing
In Weighted Moving Average, you can give more weight to recent events, but you are
limited to the last m observations. Exponential Smoothing improves on Weighted
Moving Average by taking all previous observations into account, while still favoring the
most recent observations.
In Simple (aka Single) Exponential Smoothing, the forecasted value at time i+1 is
based on the value at time i, and the forecasted value at time i (and so indirectly on all
the previous time values). In particular, for some α where 0 ≤ α ≤ 1, for all i > 1, we
define
Note that we don’t include time i = 1 in the calculations of MAE and MSE.
By simple algebra, this iteration can also be expressed as
Now using exponential smoothing function from excel and get the following results.
The value of alfa is taken by the system is 0.7 by default if not mentioned by you.
This method gives weightage to recent data as compared to previous one.
#N/A #N/A
34 #N/A
49.4 #N/A
37.22 #N/A
16.8056
42.666 4
12.9019
34.4998 9
15.3066
50.24994 8
3|Page
Prepared by Dr Shubhendra Singh Parihar for class room teaching
62.67498 17.8644
2 8
65.70249 16.7334
5 9
42.81074 21.6273
8 3
28.94322
5 22.2158
Exponential Smoothing
80
60 Actual
40
Value
Forecast
20 Linear (Forecast)
0
1 2 3 4 5 6 7 8 9 10 11
Data Point
Note that if β = 0, then the Holt model is equivalent to the Single Exponential Smoothing model.
4|Page
Prepared by Dr Shubhendra Singh Parihar for class room teaching
36.5867 37.4355
32 5 0 8
37.9005 36.5867
45 8 0 5
36.8229 37.9005
31 7 0 8
39.9738 36.8229
57 7 0 7
44.3505 39.9738
68 1 0 7
47.8875 44.3505
67 2 0 1
45.5626 47.8875
33 4 0 2
45.5626
23 42.0392 0 4
40.7837
34 7 0
42.0392
40.7837
> 7
alpha beta MAE MSE
0.156162 15.9091 313.286
8 0 4 2
5|Page
Prepared by Dr Shubhendra Singh Parihar for class room teaching
When the data set is showing a linear upward or down ward trend then this method
predicts better.
Holt’s winter Method
Holt-
Winter
Method
24 u v forecast
0.81437
34 1
1.34131
56 7
0.76646
32 7
1.07784
45 41.75 0 4
31 41.75 0 0.81206 34
1.34208
57 41.75 0 8 56
0.79419
68 41.75 0 7 32
1.09479
67 41.75 0 1 45
0.81136 33.9035
33 41.75 0 4 2
1.31664 56.0321
23 41.75 0 4 6
0.79484 33.1577
34 41.75 0 6 3
1.09479
> 1 45.7075
alpha beta gamma MAE MSE
0.03215 13.8254
0 0 9 2 411.807
0.03215
α+γ 9
6|Page
Prepared by Dr Shubhendra Singh Parihar for class room teaching
Forecast
80
70
60
50 v
40 forecast
value
actual
30
forecast
20
10
0
34 56 32 45 31 57 68 67 33 23 34 >
time
7|Page