Student Data Chapter A11 Short and Medium Term Forecasts r3
Student Data Chapter A11 Short and Medium Term Forecasts r3
X11.2 Moving average as a general "smoothing" time series technique eliminates extreme values for the length of the int
that it has been calculated for. In this case, it is used to eliminate random oscilations. If this value is placed just one
the interval for which it has been calculated, then the moving average becomes a forecast for that time period.
X11.3 If you increase the number of elements in the interval for moving averages, the calculated value eliminates
more extremes. The more elements in the interval, the smotther the overall time series of moving averages will be.
X11.4 Double moving average method is a linear method. It does not, therefore, follow a curve but a straight line.
X11.5 Yes, double moving averages can be used for long-term forecasts, but only providing that the original time
series is linear. Double moving average forecasts will be linear, so the original time series needs to be of the
same type. As the future forecasts will be determined by the length of the interval used for moving averages,
this means that the recent observations will have more impact on future forecasts. Because of that, although DMA
can be in principle used for long-term forecasts, it is recommended to be used only for medium-term forecasts.
nt mean. This means that altghough the time series might vary around the mean,
tically the best predictor of the stationary time series.
ed value eliminates
of moving averages will be.
X11.7 Alpha varies between 0 and 1. The closer to zero, the smoother the newly created time series of exponential values
The closer to one, the more dynamic the time series will be and more closely will it resemble the original time serie
X11.9 Smoothing constant and moving averages can be claculated from one another. A general rule is that the smaller
smoothing constant (closer to zero) correspond to larger number of observations in the moving average interval.
X11.12 SEE for exponential smoothing is not calculated over the whole range of the time series, but for smaller
intervals that correspond to either a number of moving averages or just 3 running values.
X11.13 Confidence interval for both double moving averages and double exponential smooting is constructed in the same
1. We start with the dynamic value of the standard error of estimate (SEE) for three period interval:
4. The future forecasts are calculated as: ŷ ± tvalue ´ h ´ SEyŷ , where h=1,2,3,…
X11.14 There is no difference between these two formulae for calculating SEE.
Decom
302.0
252.0
202.0
Value
152.0
102.0
52.0
2.0
1 2 3 4 5 6 7
4.8422 =slope
Y=TCSI TC as MA (uncentred) TC as MA (centred) SI=TCSI/TC Typical S Deseasonalised Y
100.0 0.813832 122.88
160.0 137.50 1.135954 140.85
150.0 143.00 140.25 1.070 1.085629 138.17
140.0 150.00 146.50 0.956 0.964585 145.14
122.0 152.50 151.25 0.807 0.813832 149.91
188.0 157.25 154.88 1.214 1.135954 165.50
160.0 162.00 159.63 1.002 1.085629 147.38
159.0 166.00 164.00 0.970 0.964585 164.84
141.0 176.25 171.13 0.824 0.813832 173.25
204.0 181.25 178.75 1.141 1.135954 179.58
201.0 183.50 182.38 1.102 1.085629 185.15
179.0 182.50 183.00 0.978 0.964585 185.57
150.0 187.25 184.88 0.811 0.813832 184.31
200.0 192.50 189.88 1.053 1.135954 176.06
220.0 206.67 199.58 1.102 1.085629 202.65
200.0 210.00 208.33 0.960 0.964585 207.34
Decomposition Forecast
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Time point
Y=TCSI Ŷ
125.6281 =intercept
TC for deseasonalized Ŷ Summary SI component table for every year per quarter
130.47 106.18 Year
135.31 153.71 Quarter 2017 2018 2019
140.15 152.16 1 0.807 0.824
145.00 139.86 2 1.214 1.141
149.84 121.94 3 1.070 1.002 1.102
154.68 175.71 4 0.956 0.970 0.978
159.52 173.18
164.37 158.54
169.21 137.71 Remove I component table for every year per quarter
174.05 197.71 Year
178.89 194.21 Quarter 2017 2018 2019
183.73 177.23 1 0.807 0.824
188.58 153.47 2 1.214 1.141
193.42 219.71 3 1.070 1.002 1.102
198.26 215.24 4 0.956 0.970 0.978
203.10 195.91
207.95 169.23
212.79 241.72
217.63 236.26 Typical quarterly index
222.47 214.59 Quarter
1 0.813832201
2 1.135953651
3 1.085629154
4 0.964584994
ery year per quarter
2020
0.811
1.053
1.102
0.960
Decompo
302.0
252.0
202.0
Value
152.0
102.0
52.0
2.0
1 2 3 4 5 6 7 8
Y
4.8422 =slope
Y=TCSI TC as MA (uncentred) TC as MA (centred) SI=TCSI/TC Typical S Deseasonalised Y
100.0 0.813832 122.88
160.0 137.50 1.135954 140.85
150.0 143.00 140.25 1.070 1.085629 138.17
140.0 150.00 146.50 0.956 0.964585 145.14
122.0 152.50 151.25 0.807 0.813832 149.91
188.0 157.25 154.88 1.214 1.135954 165.50
160.0 162.00 159.63 1.002 1.085629 147.38
159.0 166.00 164.00 0.970 0.964585 164.84
141.0 176.25 171.13 0.824 0.813832 173.25
204.0 181.25 178.75 1.141 1.135954 179.58
201.0 183.50 182.38 1.102 1.085629 185.15
179.0 182.50 183.00 0.978 0.964585 185.57
150.0 187.25 184.88 0.811 0.813832 184.31
200.0 192.50 189.88 1.053 1.135954 176.06
220.0 206.67 199.58 1.102 1.085629 202.65
200.0 210.00 208.33 0.960 0.964585 207.34
Decomposition Forecast
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Time point
Y=TCSI Ŷ
125.6281 =intercept
TC for deseasonalized Ŷ PI-
130.47 106.18 7.69 RMSE 89.87
135.31 153.71 2.12 t-value 137.40
140.15 152.16 135.84
145.00 139.86 123.55
149.84 121.94 105.63
154.68 175.71 159.40
159.52 173.18 156.87
164.37 158.54 142.23
169.21 137.71 121.40
174.05 197.71 181.40
178.89 194.21 177.90
183.73 177.23 160.92
188.58 153.47 137.16
193.42 219.71 203.40
198.26 215.24 198.93
203.10 195.91 h RMSEh kh 179.60
207.95 169.23 1 7.69 16.31 152.92
212.79 241.72 2 10.88 23.07 218.65
217.63 236.26 3 13.33 28.25 208.01
222.47 214.59 4 15.39 32.62 181.97
252.0
202.0
Value
152.0
102.0
52.0
2.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Time point
16 17 18 19 20
I+
X11.18
Year Quarter t Y ℓt bt Ss Ft et
2017 1 1 100.0 0.727273
2 2 160.0 1.163636
3 3 150.0 1.090909
4 4 140.0 137.50 0.00 1.018182
2018 1 5 122.0 152.63 7.56 0.763309 100.0 22.00
2 6 188.0 160.88 7.91 1.166123 186.4 1.60
3 7 160.0 157.72 2.38 1.052670 184.1 -24.13
4 8 159.0 158.13 1.39 1.011838 163.0 -4.01
2019 1 9 141.0 172.12 7.69 0.791246 121.8 19.23
2 10 204.0 177.38 6.47 1.158108 209.7 -5.69
3 11 201.0 187.40 8.25 1.062631 193.5 7.47
4 12 179.0 186.27 3.56 0.986393 198.0 -18.96
2020 1 13 150.0 189.71 3.50 0.790973 150.2 -0.21
2 14 200.0 182.95 -1.63 1.125656 223.7 -23.75
3 15 220.0 194.18 4.80 1.097812 192.7 27.33
4 16 200.0 200.87 5.74 0.991039 196.3 3.73
2021 1 17 0.893329 163.4
2 18 1.060670 232.6
3 19 1.046749 226.8
4 20 0.993362 204.8
0.5 =alpha
0.5 =beta Holt-Winters Seasonal expone
0.5 =gamma 250.0
201.675 =MSE
14.20 =RMSE
200.0
150.0
Value
100.0
50.0
0.0
1 2 3 4 5 6 7 8 9 10 11
Time point
rs Seasonal exponential model
7 8 9 10 11 12 13 14 15 16
Time point
X11.19
Year Quarter t Y ℓt bt Ss Ft et
2017 1 1 100.0 0.727273
2 2 160.0 1.163636
3 3 150.0 1.090909
4 4 140.0 137.50 0.00 1.018182
2018 1 5 122.0 147.15 1.97 0.771486 100.0 22.00
2 6 188.0 153.09 2.78 1.191605 173.5 14.48
3 7 160.0 152.93 2.18 1.071502 170.0 -10.04
4 8 159.0 155.44 2.25 1.020222 157.9 1.07
2019 1 9 141.0 165.69 3.88 0.806014 121.7 19.34
2 10 204.0 170.09 3.98 1.194983 202.1 1.94
3 11 201.0 178.38 4.86 1.095515 186.5 14.48
4 12 179.0 180.76 4.35 1.007217 186.9 -7.95
2020 1 13 150.0 185.43 4.42 0.807287 149.2 0.80
2 14 200.0 182.67 2.96 1.151496 226.9 -26.86
3 15 220.0 190.48 3.94 1.121353 203.4 16.64
4 16 200.0 195.74 4.21 1.013526 195.8 4.18
2021 1 17 0.900436 161.4
2 18 1.095138 230.3
3 19 1.078087 224.2
4 20 1.017095 202.7
0.319133 =alpha
0.203691 =beta
Optimised Holt-Winters exponential solution
0.434348 =gamma 250.0
153.940 =MSE
12.41 =RMSE
200.0
150.0
Value
100.0
50.0
0.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Time point
ential solution
12 13 14 15 16
X11.20
Forecasts from X10.19
Year Quarter t Y Ft et 0.3191 =alpha
2017 1 1 100.0 0.2037 =beta
2 2 160.0 0.4343 =gamma
3 3 150.0 205.254 =MSE
4 4 140.0 14.33 =RMSE
2018 1 5 122.0 100.0 22.00 2.12 =t value
2 6 188.0 173.5 14.48
3 7 160.0 170.0 -10.04
4 8 159.0 157.9 1.07
2019 1 9 141.0 121.7 19.34
2 10 204.0 202.1 1.94
3 11 201.0 186.5 14.48
4 12 179.0 186.9 -7.95
2020 1 13 150.0 149.2 0.80
2 14 200.0 226.9 -26.86
3 15 220.0 203.4 16.64
4 16 200.0 195.8 4.18 h RMSEh kh
2021 1 21 161.4 1 14.33 30.371
2 22 230.3 2 20.26 42.951
3 23 224.2 3 24.81 52.604
4 24 202.7 4 28.65 60.742
PI- PI+
Forecast and predicti
300.0
69.63 130.37
143.15 203.89 250.0
139.66 200.41
127.56 188.30
91.28 152.03 200.0
171.69 232.43
156.14 216.89
156.58 217.32
118.83 179.57 Value 150.0
196.49 257.23
172.99 233.73
165.45 226.19 100.0
131.05 191.79
187.30 273.20
171.62 276.83
50.0
141.92 263.40
0.0
1 2 3 4 5 6 7 8 9 10 11 1
Time point
Forecast and prediction intervals
Ft
PI-
PI+
Y
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Time point
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z AA AB
1 TU11.1 a) b)
2 1 26.21 11 36.41 21 29.24 Period Series 3SMA 5SMA 7SMA 9SMA 3DMA 5DMA 7DMA 9DMA
3 2 25.72 12 29.14 22 28.75 1 26.21
4 3 27.51 13 28.42 23 28.02 2 25.72
5 4 28.32 14 28.58 24 26.69 3 27.51
6 5 28.42 15 29.05 25 25.08 4 28.32 26.48
7 6 28.28 16 30.25 26 23.39 5 28.42 27.18
8 7 27.1 17 29.42 27 22.65 6 28.28 28.08 27.24
9 8 32.35 18 27.38 28 22.02 7 27.1 28.34 27.65 27.25
Chart Title
10 9 35.33 19 27.68 29 23.39 8 32.35 27.93 27.93 27.37 27.87
11 10 33.35 20 30.22 30 26.35 9 35.33 29.24 28.89 28.24 28.12 40
12 10 33.35 31.59 30.30 29.62 28.80 28.51 35
13 11 36.41 33.68 31.28 30.45 29.60 29.59 28.40 30
14 12 29.14 35.03 32.91 31.61 30.79 31.50 29.21
25
15 13 28.42 32.97 33.32 31.71 30.97 33.43 30.26
16 14 28.58 31.32 32.53 31.73 30.98 33.89 31.34 20
35 5
36 0
37 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
38 Series 3DMA 5DMA 7DMA 9DMA
39
A B C D E F G H I J K L M N O P Q R S T U
1 TU11.2 a) b)
2 0.1 0.3 0.5 0.9 Alpha 0.1 0.3 0.5 0.9
3 Period Series SES 0.1 SES 0.3 SES 0.5 SES 0.9 DES 0.1 DES 0.3 DES 0.5 DES 0.9
Chart Title
4 1 26.21 26.21 26.21 26.21 26.21 26.21 26.21 26.21 26.21
5 2 25.72 26.21 26.21 26.21 26.21 26.21 26.21 26.21 26.21 40
19.2 12
19.7 10
19.5 8
19.2 6 Birth Rate - Parabola Trend
18.8 4 20
19.0
2 18
19.1 f(x) = 0.0033352932781792 x² − 0.299609122114481 x + 18.6633424590113
0 16 R² = 0.783354498897435
19.1 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58
14
18.9
19.0 12
19.1 10
19.2 8 Birth Rate - Power Trend
18.8 20 6
f(x) = 21.0483007616682 x^-0.142207891890232
18.0 18 4
R² = 0.748800717843742
17.1 16 2
16.0
14 0
15.1 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58
12
14.2
10
13.8
8
13.6
13.2 6
Birth Rate - Polynomial 3rd Degree
13.2 4
20
13.5 2
18 f(x) = − 0.000120945503724 x³ + 0.01422038861337 x² − 0.563052618326843 x
13.7 0 + 20.0355901442677
1 4 7 10 13 16 19 1622 R²
25 = 0.830869425546304
28 31 34 37 40 43 46 49 52 55 58
14.2
14.4 14
14.4 12
14.4 10
14.2 8
14.2 6
14.1 Birth Rate - Moving Averages
4
14.1
20 2
14.3
18 0
14.2 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58
16
14.0
13.7 14
13.7 12
13.7 10
8
6
4
2
16
14
12
10
13.6 8
13.3 6
12.9 4
12.5 2
12.2
0
12.6 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58
13.1
13.6
13.7
13.7
13.3
13.3
13.3
13.3
13.3
13.0
13.0
13.0
4590113
46 49 52 55 58
Degree
563052618326843 x
0 43 46 49 52 55 58