Professional Documents
Culture Documents
MN20023 Week - 3 - Forecasting Slides 2020-21
MN20023 Week - 3 - Forecasting Slides 2020-21
1200000
1000000
800000
600000
400000
200000
0
1 11 21 31 41 51 61 71 81 91 101 111 121 131 141 151 161 171 181 191 201 211
Months
1
Time series decomposition
2
Main purpose of decomposition
3
Components of time series
1200000
1000000
Trend
800000
Seasonal
Cyclical
600000
400000
0
1 11 21 31 41 51 61 71 81 91 101 111 121 131 141 151 161 171 181 191 201 211
Months
5
Sales (units)
20
0
20
40
60
80
100
120
140
160
17
Q
1
Q
2
Q
3
20 Q4
18
Q
1
Q
2
Q
3
Q
20 4
19
Q
1
Q
2
Q
3
Time series example
20 Q4
20
Q
1
Q
2
Q
3
Q
4
6
1. Identifying the trend
7
Moving averages
Centred
Year Qtr 4QMA Average
Sales
2017 1 56
2 88
66
3 100 67
68
4 20 70
72
2018 1 64 76
8
Sales and centred averages
160
140
120
Seles (units)
100
80
60
40
20
0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
quarters
9
A formula for the centred average
11
Two main types of seasonal pattern
600 800
700
500
600
Sales (units)
Sales (unit)
400 500
300 400
300
200
200
100 100
0 0
1 3 5 7 9 11 13 15 17 19 1 3 5 7 9 11 13 15 17 19
Quarters Quarters
12
Additive Model
Y=T+S+E
13
Individual Seasonal deviation = distance of sales from the
trend line
180
160
Trend
140
Sales
120
100
80
60
1 2 3 4
14
Calculating seasonal deviations
Centred Seasonal
Year Qtr 4QMA Average deviation
Sales
2017 1 56
2 88
66
3 100 67 +33
68
4 20
2018 1 64
15
Usually we are interested in the average seasonal
deviation for a given season over a no. of years
On average, sales in Q2
400
are 24 units above the
350 trend line
300
250
200
150
100
50
0
1 2 3 4 5 6 7 8 9 10 11 12
16
Adjusted seasonal
2017 2018 2019
Means deviations
Q2 22 21 --- 22.0
Q3 ---- 45 39.5
Q4 ---- -56 -52.5
Sum
17
Adjusted seasonal
2017 2018 2019
Means deviations
Q2 22 21 21.5 22.0
Q3 33 45 39 39.5
Q4 -50 -56 -53 -52.5
Sum = -2
18
Deseasonalising data using the additive
model
Deseasonalised observation
= original observation
– appropriate average seasonal deviation
19
Note that since Y = T + S + E
= T+E
20
Crude forecasting using the additive model
21
Sales and centred averages
160
140
100
80
= 114 units
60
40
20
0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
quarters
22
Measuring how well the additive model
fits the time series
Signal at a point in time
= centred average
+ average seasonal deviation
2017 1 56
2 88
2018 1 64 76 -9 67 9
24
Year Quarter Sales 4QMA Centred Individu Sq.
(units) average Seasonal Signal error
deviation
2017 1 56
2 88
66
3 100 67 33 106.5 42.25
68
4 20 70 -50 17.5 6.25
72
2018 1 64 76 -12 67 9
80
2 104 82 22 104 0
84
3 132 87 45 126.5 30.25
90
4 36 92 -56 39.5 12.25
94
2019 1 88 95 -7 86 4
96
2 120 99 21 121 1
102
3 140
4 60 MSE
Adjusted
seasonal
deviations
2017 2018 2019 Mean
Q1 -12 -7 -9.5 -9
Q2 22 21 21.5 22
Q3 33 45 39 39.5
Q4 -56 -53 -52.5
25
-50
Measuring the fit of the additive model
26
Check on your understanding so far
27
Multiplicative Model
Y=TxSxE
28
Individual Seasonal index = Actual sales
Trend
Sales in Q2 are 1.2 x
250
the underlying Level
200
150
Trend
Sales
100
Sales in Q1 are
50
only 0.5 x the
underlying Level
0
1 2 3 4
29
Calculating seasonal indices
Centred Seasonal
Year Qtr 4QMA Average index
Sales
2017 1 56
2 88
66
3 100 67 1.49
68
4 20 70 0.29
72
2018 1 64 76 0.84
30
We may often be interested in the average
seasonal index for a given season over a number
of years
31
Adjusted seasonal
2017 2018 2019
Means indices
Sum 3.97
Adjustment = 4 = 1.01
3.97
32
Deseasonalising data using the
multiplicative model
Deseasonalised observation
= original observation
appropriate average seasonal index
33
Crude forecasting using the
multiplicative model
1. Extrapolate the trend
-possibly using judgment
2. Multiply by the appropriate average
seasonal index
34
Trend F
= 114 u
35
Measuring how well the multiplicative
model fits the time series
Signal at a point in time
= centred average
x average seasonal index
2017 1 56
2 88
37
Year Quarter Sales 4QMA Centred Indiv. Estimated Squared
(units) average Seasonal Signal error
index
2017 1 56
2 88
66
3 100 67 1.49 101.84 3.39
68
4 20 70 0,29 23.8 14.44
72
2018 1 64 76 0.84 67.64 13.25
80
2 104 82 1.27 102.5 2.25
84
3 132 87 1.52 132.24 0.06
90
4 36 92 0.39 31.28 22.28
94
2019 1 88 95 0.93 84.55 11.90
96
2 120 99 1.21 123.75 14.06
102
3 140 38
3 100 67 1.49 101.84 3.39
68
4 20 70 0,29 23.8 14.44
72
2018 1 64 76 0.84 67.64 13.25
80
2 104 82 1.27 102. 2.25
84 5
3 132 87 1.52 132.24 0.06
90
4 36 92 0.39 31.28 22.28
94
2019 1 88 95 0.93 84.55 11.90
96
2 120 99 1.21 123.75 14.06
102
3 140
4 60 MSE
Adjusted
seasonal
2017 2018 2019 Mean index
Q1 0.84 0.93 0.89 0.89
Q2 1.27 1.21 1.24 1.25
Q3 1.49 1.52 1.57 1.52
Q4 0.29 0.39 0.34 0.34
Sum 3.97
39
Measuring the fit of the multiplicative model
40