IE323-Lecture 9
IE323-Lecture 9
Introduction
Forecasting methods
Time series methods
Stationary time series
Forecast errors
Time Series with a Trend
7.
Is accuracy of No 8b. Select a new
forecast forecast model or
acceptable? adjust parameters of
the existing model.
Yes
9. Adjust the forecast 10. Monitor results
8a. Forecast over based on additional and measure forecast
planning horizon. qualitative information and accuracy.
insight.
Forecasting methods:
• Moving average, MA(N)
• Exponential Smoothing, ES()
Ft α Dt 1 (1 α) Ft 1
where 0<a ≤ 1 is the smoothing constant.
19 IE 323 Lecture Notes - 9 13-15/11/2023
Stationary Time Series
Ft Ft 1 α (Ft 1 Dt 1 ) Ft 1 α et -1
correcting the latest forecast, Ft-1 by the realized error.
Note that:
Ft an Dt n Ft α (1 α) n 1
Dt n ,
n 1 n 1
α (1 α)
i 0
i
1
Period
t Dt 100
1 19
80
2 15
3 102 60
4 90 40
5 39 20
0
1 2 3 4 5
MA(5) ES(0.1)
t Dt Ft et Initialize F t et
1 19
2 15
3 102
4 90
5 39 53 14.0
6 53.0 51.6
MA(5) ES(0.1)
t Dt Ft et Initialize F t et
1 19
2 15
3 102
4 90
5 39 53 14.0
6 29 53.0 24.0 51.6 22.6
7 55.0 49.3
13-15/11/2023
13 82 62.2 -19.8 58.2 -23.8
14 17 69.4 52.4 60.6 43.6
15 26 66.8 40.8 56.2 30.2
25 16 29 58.8 29.8 53.2 24.2
Stationary Time Series
Example: One-step Ahead Forecasts
MA(5) ES(0.1)
t Dt Ft et Initialize F t et
1 19
2 15
3 102
4 90
5 39 53 14.0
6 29 53.0 51.6 22.6
7 90 55.0 -35.0 49.3 -40.7
8 46 70.0 24.0 53.4 7.4
9 30 58.8 28.8 52.7 22.7
IE 323 Lecture Notes - 9
1 n
Mean Absolute Deviation (MAD) ei
n i 1
1 n 2
Mean Square Error (MSE) ei
n i 1
1 n ei
Mean Absolute Percentage Error (MAPE) * 100 %
n i 1 Di
If forecast error distribution is N(0,e2) in truth, then
e 1.25 MAD.
It is also desired not to have error bias, i.e., E(ei) = 0
30 IE 323 Lecture Notes - 9 13-15/11/2023
Bias in Forecasts
St
Realizations
Dt-1
Forecast, St - St-1
(Ft) Gt-1
Base
Level
St-1
t-1 t t+1
Time periods
34 IE 323 Lecture Notes - 9
13-15/11/2023
Time Series with a Trend
Single and Double Exponential Smoothing are alike.
In ES() forecast for period t
Ft α Dt -1 (1 α)Ft 1
In DES(, ) forecast for period t+1
St α Dt (1 α)(St 1 Gt 1 )
Gt β(St St 1 ) (1 β)Gt 1
Ft 1 St Gt
Cov(Dt , t ) Cov(Dt , t )
b
Cov(t,t ) Var (t )
1 n 1 n n n
1 n n
n t 1
tDt 2 t Dt
n t 1 t 1
tDt t Dt
n t 1 t 1
n n
t 1
n n
1 1 1
n t 1
t 2
2
(
n t 1
t ) 2
t 1
t 2
(
n t 1
t ) 2
1 n n1
a Dt b
n t 1 2
38 IE 323 Lecture Notes - 9 13-15/11/2023
Time Series with a Trend: example
Year Period Index Sales Sales
1969 1 4675 10000
1970 2 5289 9000
1971 3 5811 8000
7000
1972 4 6294
6000 Sales
1973 5 7083 5000
1974 6 6552 4000
1975 7 6942 3000
2000
1976 8 7842
1000
1977 9 8514 0
1978 10 9269 1 2 3 4 5 6 7 8 9 10
a b
0.15 0.1
t Dt St-1+Gt-1 St Gt
9 8268 412
1978 10 9269 8680 8768 421
1979 11 9189