Demand Forecasting: © 2007 Pearson Education 7-1
Demand Forecasting: © 2007 Pearson Education 7-1
Simulation:
Imitate consumer choices that give rise to demand.
Can combine time series and causal methods.
What if we do not forecast?
Total
Cost Cost Cost of increased forecasting activity
No Expensive
method method
Components of time series: T+C+S+I
Demand
Demand
Random
movement
Time Time
(a) Trend (b) Cycle
Demand
Demand
Time Time
(c) Seasonal pattern (d) Trend with seasonal pattern
Variations in Time series.
Trend: long term direction of the series. It describes historical
pattern, helps in projecting past pattern into future, eliminate trend
from time series (other components can be studied separately).
-One way to describe the trend component is to fit a line visually to a set of points on a graph.
Estimated (or
predicted) Y Estimate of the Estimate of the
value for regression regression slope
observation i intercept
Value of X for
Ŷi a b X i observation i
Translating, or coding, Time
Ex. What was the sales in 1996?
X Y Coded small
1988 98 (IDV)
1989 105 (IDV ) X (Y) (x)
1990 116 1988 98 -7
1991 119 1989 105 -5
1992 135 1990 116 -3
1993 156 1991 119 -1
1994 177 1992 135 1
1995 208 1993 156 3
= - 29875.50 1994 177 5
1995 208 7
b= Sum (xY)/sum(x*x)=7.536
=15.071 a= Y =139.25
1 9.5 120
2 11 135
3 12 130
4 12.5 150
5 14 170
6 16 190
7 18 220
Ŷ = a+bx+c x 2
X Y x x2 x4 xY x2*Y
1991 13 -2 4 16 -26 52
1992 24 -1 1 1 -24 24
1993 39 0 0 0 0 0
1994 65 1 1 1 65 65
1995 106 2 4 16 212 424
9965 247 10 34 227 565
, 247 = 5a+10c
,565=10a+34c
= 227/10=22.7
a=39.3,b=22.7,c=5.07
Ŷ = a+bx+c x 2
2
= 39.3+22.7x+5.07 x
Y(1996,x=3) = 39.3+22.7*3+5.07*9 = 153.03
The number of faculty-owned personal computers at the University of
Ohio increased dramatically between 1990 and 1995:
(c) Estimate the number of PCs that will be in use at the university in
1999, using both equations.
Residual method: When we look at time series of annual data, only the secular trend,
cyclical and irregular components are considered. (This is true because seasonal variation
makes a complete, regular cycle within each year and thus does not effect one year any more
than another).
If we use a time series composed of annual data, we can find the fraction of the trend by
dividing the actual value (Y) by the corresponding trend value ( Ŷ) for each value in the
time series. We then multiply the result of this calculation by 100. This gives us the measure
of cyclical variation as a percent of trend.
1988 7.5
1989 7.8
1990 8.2
1991 8.2
1992 8.4
1993 8.5
1994 8.7
1995 9.1
X Y Ŷ
1988 7.5 7.6
1989 7.8 7.8
1990 8.2 8
1991 8.2 8.2
1992 8.4 8.4
1993 8.5 8.6
1994 8.7 8.8
1995 9.1 9
X Y Ŷ % of Trend = (Y/ Ŷ )100
1988 7.5 7.6 98.68
1989 7.8 7.8 100
1990 8.2 8 102.5
1991 8.2 8.2 100
1992 8.4 8.4 100
1993 8.5 8.6 98.84
1994 8.7 8.8 98.86
1995 9.1 9 101.1
1 2 3 4 5= col. (4)-100
% of
X Y Ŷ
Trend RCR
1988 7.5 7.6 98.68 -1.32
1989 7.8 7.8 100 0
1990 8.2 8 102.5 2.5
1991 8.2 8.2 100 0
1992 8.4 8.4 100 0
1993 8.5 8.6 98.84 -1.2
1994 8.7 8.8 98.86 -1.1
1995 9.1 9 101.1 1.1
Graph of relative cyclical residual
Graph of percent of trend
Graph of relative cyclical residual
Ex. Find seasonal Indices?
Year (1) Quarter (2) Occupancy (3)
2016 I 1861
II 2203
III 2415
IV 1908
2017 I 1921
II 2343
III 2514
IV 1986
2018 I 1834
II 2154
III 2098
IV 1799
2019 I 1837
II 2025
III 2304
IV 1965
2020 I 2073
II 2414
III 2339
IV 1967
Ex. Find seasonal Indices?
Year (1) Quarter (2) Occupancy (3) 4 quarter MA (4) 4-quarter centered MA (5) % of actual MA values (6)= (3)/(5)*100
2016 I 1861
II 2203
2096.75
III 2415 2104.25 114.767732
2111.75
IV 1908 2129.25 89.60901726
2146.75
2017 I 1921 2159.125 88.97122677
2171.5
II 2343 2181.25 107.4154728
2191
III 2514 2180.12 115.3147533
2169.25
IV 1986 2145.62 92.56065846
2122
2018 I 1834 2070 88.59903382
2018
II 2154 1994.62 107.9904944
1971.25
III 2098 1971.62 106.4099573
1972
IV 1799 1955.87 91.97952829
1939.75
2019 I 1837 1965.5 93.46222335
1991.25
II 2025 2012 100.6461233
2030.75
III 2304 2062.25 111.722633
2091.75
IV 1965 2140.37 91.80655681
2189
2020 I 2073 2193.37 94.51209782
2197.75
II 2414 2198 109.8271156
2198.25
III 2339
IV 1967
% of actual MA values
Modified Mean
QI 91.25
QII 107.7
QIII 113.25
QIV 91.9
Total
Quarter Unadjust X Adjusting Seasonal
indices=404.1 ed constant Index
Indices
QI 91.25 X 0.9899 90.3
Adjusting constant = 400/404.1 = .9899 QII 107.7 X 0.9899 106.6
QIII 113.25 X 0.9899 112.1
QIV 91.9 X 0.9899 91
400
Ex. Solve the following problem
Year (1) Quarter (2) Occupancy (3) 4 quarter 4-quarter centered % of actual MA values
MA (4) MA (5) (6)= (3)/(5)*100
2017 I 87
II 106
101
III 86 100.75 85.3598
100.5
IV 125 101 123.7624
101.5
2018 I 85 101.125 84.0544
100.75
II 110 101 108.9109
101.25
III 83 101.125 82.0766
101
IV 127 100.375 126.5255
99.75
2019 I 84 100.25 83.7905
100.75
II 105 100.875 104.0892
101
III 87 101.5 85.7143
102
IV 128 101.875 125.6442
101.75
2020 I 88 101.875 86.3804
102
II 104 101.5 102.4631
101
III 88
IV 124
I II III IV
2017 85.4 123.8
2018 84.1 108.9 82.1 126.5
2019 83.8 104.1 85.7 125.6
2020 86.4 102.5
Modified Median
2017 QI 84
2018 QII 104
2019 QIII 85
2020 QIV 125
398
Quarter Unadjusted X Adjusting Seasonal
Indices constant Index
QI 84 X 1.005 84.42
Adjusting constant = 400/398 = 1.01 QII 104 X 1.005 104.52
QIII 85 X 1.005 85.42
QIV 125 X 1.005 125.62
398 399.99
A problem involving all components of time series
Year (1) Quarter (2) Occupancy (3)
2016 I 16
II 21
III 9
IV 18
2017 I 15
II
20 1. Deseasonalise the time series
III
10 2. Develop the trend line
IV
18 3. Find cyclical variation around trend line
2018 I 17
II 24
III 13
IV 22
2019 I 17
II 25
III 11
IV 21
2020 I 18
II 26
III 14
IV 25
Year (1) Quarter (2) Sales (3) 4 quarter MA (4) 4-quarter centered MA (5) % of actual MA
values (6)=
(3)/(5)*100
2016 I 16
II 21
16
III 9 15.875 56.6929
15.75
IV 18 15.625 115.2000
15.5
2017 I 15 15.625 96.0000
15.75
II 20 15.75 126.9841
15.75
III 10 16 62.5000
16.25
IV 18 16.75 107.4627
17.25
2018 I 17 17.625 96.4539
18
II 24 18.5 129.7297
19
III 13 19 68.4211
19
IV 22 19.125 115.0327
19.25
2019 I 17 19 89.4737
18.75
II 25 18.625 134.2282
18.5
III 11 18.625 59.0604
18.75
IV 21 18.875 111.2583
19
2020 I 18 19.375 92.9032
19.75
II 26 20.25 128.3951
20.75
III 14
IV 25
I II III IV
2016 56.7 115.2
2017 96.0 127.0 62.5 107.5
2018 96.5 129.7 68.4 115.0
2019 89.5 134.2 59.0604 111.2583
2020 92.9032 128.4
Total of
Remaining 188.9 258.1 121.6 226.3
Modified Mean
QI 94.45
QII 129.05
QIII 60.80
QIV 113.15
397.45 Quarter Unadjusted X Adjusting Seasonal Index
Indices constant
QI 94.45 X 1.0064 95.05448
QII 129.05 X 1.0064 129.87592
QIII 60.8 X 1.0064 61.18912
400/397.45=1.0064 QIV
113.15
397.45
X
1.0064
113.87416
399.99368
Year (1) Quarter (2) Sales (3) Seasonal Index (4) Depersonalized Sales (5)
=(3)/(4) * 100
2016 I 16 95.05 16.83
II 21 129.87 16.3
III 9 61.18 14.8
IV 18 113.87 15.9
2017 I 15 95.05 15.9
II 20 129.87 15.5
III 10 61.18 16.4
IV 18 113.87 15.9
2018 I 17 95.05 18.0
II 24 129.87 18.6
III 13 61.18 21.4
IV 22 113.87 19.4
2019 I 17 95.05 18.0
II 25 129.87 19.4
III 11 61.18 18.1
IV 21 113.87 18.6
2020 I 18 95.05 19.1
II 26 129.87 20.1
III 14 61.18 23.0
Now calculate trend b/w deseasonlized demand (DD)and time
S Di / p for p odd
(sum is from i = t-(p/2) to t+(p/2)), p/2 truncated to lower integer
Quarter Demand Dt
For t = 3:
I, 2001 41000
Dt = L + tT = 18439+524t
Calculate deseasonalised demand from regression.
Dt = L + tT = 18439+524t,
50000
40000
Demand
30000 Dt
20000 Dt-bar
10000
0
1 2 3 4 5 6 7 8 9 10 11 12
Period
Estimating Seasonal Factors
S2 = 13000/19487 = 0.67
t Dt Dt Dt/Dt S
1 8000 18963 8000/18963 0.42
2 13000 19487 13000/19487 0.67
3 23000 20011 23000/20011 1.15
4 34000 20535 34000/20535 1.66
5 10000 21059 10000/21059 0.47
6 18000 21583 18000/21583 0.83
7 23000 22107 23000/22107 1.04
8 38000 22631 38000/22631 1.68
9 12000 23155 12000/23155 0.52
10 13000 23679 13000/23679 0.55
11 32000 24203 32000/24203 1.32
12 41000 24727 41000/24727 1.66
Estimating Seasonal Factors