2024 - Chapter 2
2024 - Chapter 2
43
Q 適合無趨勢的時間序列,即數據沒有明顯的上升或下降趨勢,呈現⽔平波動。
Units
400
300
200
Quarter
Year 1 2 3 4
1 500 350 250 400
2 450 350 200 300
3 350 200 150 400
4 550 350 250 550 Forecast
5 550 400 350 600
6 750 500 400 650 # Actual value
F 25 Y 24 650
7 ?
45
Simple Naive Model
The forecast for the time period t+2 at time period t is equal to
Ft 2 Yt 1 (unknown) Ft 1 Yt
The forecast for the time period t+3 at time period t is equal to
Ft 3 Yt 2 (unknown) Ft 2 Yt
In general, the forecast for the time period t+m at time period t
is equal to the actual value in the current period t .
46
Quarterly Sales
Units
400
300
200
Quarter
Year 1 2 3 4 F2 5 Y 2 4 6 5 0
1 500 350 250 400 F2 6 Y 2 4 6 5 0
2 450 350 200 300 F2 7 Y 2 4 6 5 0
3 350 200 150 400 F2 8 Y 2 4 6 5 0
4 550 350 250 550
5 550 400 350 600
6 750 500 400 650
7 ?
47
②
Naïve Forecasting Methods
Simple Naïve Model
Naive Trend Model
Naive Seasonal Model
Naive Trend and Seasonal Model
Naive Rate of Change Model
48
Naïve Trend Model
適合具有線性趨勢的時間序列數據。這意味著數據隨著時間有增長或下降的趨勢。
49
Naïve Trend Model Example
Example: What is the forecast demand for period 25 if
the trend effect is considered?
Quarter
Year 1 2 3 4
1 500 350 250 400
2 450 350 200 300
3 350 200 150 400
4 550 350 250 550
5 550 400 350 600
6 750 500 -
400 650
7 ?
F25 Y24 (Y24 Y23 )
650 (650 400 )
900
50
Naive Trend Model
The forecast for the time period t+2 at time period t is equal to
Ft 2 Yt 1 Yt 1 Yt Ft 1 Ft 1 Yt
Yt Yt Yt 1 [Yt Yt Yt 1 Yt ] Yt 2Yt Yt 1
The forecast for the time period t+3 at time period t is equal to
Ft 3 Yt 2 Yt 2 Yt 1 Ft 2 Ft 2 Ft 1
Yt 2Yt Yt 1 [Yt 2Yt Yt 1 Yt Yt Yt 1 ] Yt 3Yt Yt 1
In general, the forecast for the time period t+m at time period t is
↑
Ft m Yt Yt Yt 1 * m
51
Naïve Trend Model Example
Quarter
Year 1 2 3 4
1 500 350 250 400
2 450 350 200 300
3 350 200 150 400
4 550 350 250 550
5 550 400 350 600
6 750 500 #is
400 11
650 Ye4
7
AFES
?
EEO LFIF AFzS
F2 6 F2 4 2 Y 2 4 ( Y 2 4 Y 2 3 ) * 2
650 (650 400 ) * 2 1150
F2 7 F2 4 3 Y 2 4 ( Y 2 4 Y 2 3 ) * 3
650 (650 400 ) * 3 1400
F2 8 F2 4 4 Y 2 4 ( Y 2 4 Y 2 3 ) * 4
650 (650 400 ) * 4 1650
52
Naïve Forecasting Methods
Simple Naïve Model
Naive Trend Model
Naive Seasonal Model
Naive Trend and Seasonal Model
Naive Rate of Change Model
53
適合於具有固定季節性週期的時間序列數據,例如季度、⽉度或年度的數據。
假設未來的數值等於⼀年前(或⼀個完整季節長度前)同⼀時期的實際觀測值。
Ft m Yˆt m L
Use actual values for Yˆt m L when possible;otherwise use forecasts
56
Naïve Seasonal Model Example
Quarter
Year 1 2 3 4 TIME =
57
Naive Seasonal Model
For monthly data, the forecast for the time period t+2 , t+3, t+4, … ,
t+13, t+14 at time period t is equal to
Ft 2 Yt 212 Yt 10
Ft 3 Yt 312 Yt 9
Ft 4 Yt 412 Yt 8
Ft 13 Yt 1312 Yt 1 (unknown ) Ft 1
Ft 14 Yt 1412 Yt 2 (unknown ) Ft 2
In general, the forecast for the time period t+m at time period t is
Ft m Yˆt m L
Use actual values for Yˆt m L when possible;otherwise use forecasts
58
Naïve Forecasting Methods
Simple Naïve Model
Naive Trend Model
Naive Seasonal Model
Naive Trend and Seasonal Model
Naive Rate of Change Model
59
適合⽤於同時具有線性趨勢和加法性季節性的時間序列數據
60
Naïve Trend and Seasonal Model
For quarterly data, the Yt-3 term estimates the seasonal
patterns and the remaining term which averages the
amount of change for the past 4 quarters estimates the
TAGE trend
HERE)
-EGM (Yt Yt 1 ) (Yt 1 Yt 2 ) (Yt 2 Yt 3 ) (Yt 3 Yt 4 ) Yt Yt 4
data.Ft 1 It
Yt 3 Yt 3
4 4
Yˆ Yˆ
Ft m Yˆt m L t m 1 t m 1 L
L
Use actual values for Yˆt m L , Yˆt m 1 , Yˆt m 1 L
when possible; otherwise use forecasts.
65
Naïve Trend and Seasonal Model Example
Quarter
Year 1 2 3 4 &
7 ?
67
這是⼀種基於變動率的簡單預測模型,適合⽤於數據隨著時間變動率相對穩定的情況。
Introduction to Forecasting
Time Series Components
Naive Forecasting Methods
Measuring Forecast accuracy
71
Measuring Forecast Accuracy
Forecast error is the difference between the actual value
and the predicted value =actual -predicted
e e
0 0
T T
Random errors Cyclical effects not accounted for
e e
0 0
T T
Trend not accounted for Seasonal effects not accounted for
Measuring Forecast Accuracy
Forecast error or residual e t Y t Ft
n
Mean error ME et n
t 1
n
Mean absolute error MAE et n
t 1
n
Mean squared error MSE et2 n
t 1
73
Example
ME
e 15 15.5 23 27
i
1
n 4
MAE
ei 15 15.5 23 27
1.25
n 4
MSE
i
e 2
15 15.5 2
23 27 2
4.125
n 4 74
Measuring Forecast Accuracy
Percentage error PE t e t Y t 100
n
Mean percentage error MPE PEt n
t 1
75
Example
ei 15 15.5 23 27
Y * 100 15
23
MPE i
* 100 4.523%
n 4
ei 15 15.5 23 27
Y * 100
15
23
<10% highly accurate
10-20% good
MAPE i
* 100 5.839% 20-50% reasonable
n 4 >50% inaccurate
76
Measuring Forecast Accuracy
Theil’s U-statistic
This statistic allows a relative
comparison of formal forecasting
methods with naïve approaches and
also squares the errors involved so that
large errors are given much more
weight than small errors.
77
Definition of Theil’s U-statistic
n 1 n
{( Ft 1 Yt 1 ) / Yt } 2
t t t 1
{( F Y ) / Y }2
U t 1
n 1
t 2
n
t 1 t t
{(Y
t 1
Y ) / Y }2
t t 1 t 1
{(Y
t 2
Y ) / Y }2
2 2
F2 Y2 F3 Y3
Y1 Y2
2 2 U 1 if Ft 1 Yt
Y2 Y1 Y3 Y2
Y1 Y2
78
Interpreting Theil’s U-statistic
U = 1: The naïve method is as good as the forecasting
technique being evaluated.
79
n 1 n
{( F t 1 Yt 1 ) / Yt } 2
{( F Y ) / Y
t t t 1 }2
U t 1
t 2
Example
n 1 n
{(Y
t 1
t 1 Yt ) / Yt }2 {(Y Y
t 2
t t 1 ) / Yt 1}2
[(Predictedt+1 - [(Actualt+1 -
Year Actual Sales Forecast Actualt+1)/Actualt]2 Actualt)/Actualt]2
1 15 15.5 0.0000 0.1111
2 20 20 0.0006 0.0025
3 19 18.5 0.0443 0.0443
4 23 27
sum= 0.0449 0.1579
sqrt= 0.2120 0.3974
Theil's U 0.5335
[(Predictedt - [(Actualt -
Year Actual Sales Forecast Actualt)/Actualt-1]2 Actualt-1)/Actualt-1]2
1 15 15.5
2 20 20 0.0000 0.1111
3 19 18.5 0.0006 0.0025
4 23 27 0.0443 0.0443
sum= 0.0449 0.1579
sqrt= 0.2120 0.3974
Theil's U 0.5335
80
Example
t 1
2 2 2
( Ft 1 Yt 1 ) ( F2 Y2 ) 20 20
0
Yt Y1 15
2 2 2
(Yt 1 Yt ) (Y2 Y1 ) 20 15
( 0.333) 2
0.111
Yt Y1 15
t2
2 2 2
( Ft 1 Yt 1 ) ( F3 Y3 ) 19 18.5
Y 20 0.000625
Y t 2
2 2 2
(Yt 1 Yt ) (Y3 Y2 ) 19 20
Y 20 0.0025
Y t 2
81
Example
t3
2 2 2
( Ft 1 Yt 1 ) ( F4 Y4 ) 27 23
Y 19 0.04432
Y t 3
2 2 2
(Yt 1 Yt ) (Y4 Y3 ) 23 19
Y 19 0.04432
Y t 3
n 1
{( F t 1 Yt 1 ) / Yt }2
0.04494633
U t 1
n 1
0.5335
0.157932441
{(Y
t 1
t 1 Yt ) / Yt }2
82
MS4212 Predictive Analytics and
Forecasting
1
Part One
Simple moving average
Double moving average
Application of moving average to stock price
3
Simple Moving Average
Suitable for no trend/ horizontal series
yt = 0 + t, t ~ N(0, 2)
where 0 may change slowly with time
The forecast for time period t+1 at time period t is equal to
n observations
4
Simple Moving Average
As each new observation (eg yt+1 ) becomes available, a new
moving average (eg Mt+1 ) and hence a new forecast (eg Ft+2 ) can
be computed by dropping the oldest observation and adding the
newest observation. The forecast for time period t+2 calculated at
time period t+1 is equal to
yt 1 yt yt ( n2)
F(t 1)1 Ft 2 M t 1
n
In general, the forecast for time period t+m calculated at time
period t+m-1 is equal to
yt m 1 yt m 2 yt m n
F(t m 1) 1 Ft m M t m 1
n
where m = 1, 2, 3, … is the forecast horizon.
Note: if actual Y values are unavailable, use forecast F values
5
Example 1 (Level Data): Simple Moving Average
7
Choice of n for Simple Moving Average
If n = 1, the simple moving average is simply
the naïve model.
If n is small, the forecast is more responsive to
fluctuations in data. So use small n if data show
pattern.
If n is large, the forecast is less responsive to
fluctuations in data. So use large n if data show
large randomness.
In general, we choose n such that MSE,
MAPE, … is minimum
8
Time Observed 4-Month 4-Month MA
Period Values MA Forecast
Example 2 (Trend Data): 1 140.00
Simple Moving Average 2 159.00
3 136.00
4 157.00 148.00
5 173.00 156.25 148.00
6 131.00 149.25 156.25
7 177.00 159.50 149.25
8 188.00 167.25 159.50
Simple Moving Average Forecast on 9 154.00 162.50 167.25
Inventory Data 10 179.00 174.50 162.50
300.00 11 180.00 175.25 174.50
250.00 12 160.00 168.25 175.25
13 182.00 175.25 168.25
200.00
14 192.00 178.50 175.25
Inventory
150.00
Observed Values 15 224.00 189.50 178.50
100.00 4‐Month MA Forecast 16 188.00 196.50 189.50
50.00 17 198.00 200.50 196.50
18 206.00 204.00 200.50
0.00
1 3 5 7 9 11 13 15 17 19 21 23 25 19 203.00 198.75 204.00
Time Period 20 238.00 211.25 198.75
21 228.00 218.75 211.25
22 231.00 225.00 218.75
23 221.00 229.50 225.00
24 259.00 234.75 229.50
25 273.00 246.00 234.75
9
26 246.00
Part Two
Simple moving average
Double moving average
Application of moving average to stock price
10
②
Double Moving Average
Suitable for linear trend series
yt 0 1t t , t ~ N 0, 2
Calculation procedures:
n 1
E ( yt ) E ( M t ) E M t E M t 1
2
2
1 E M t E M t
n 1
2
E yt E M t
n 1
12
Tay
Double Moving Average
CIMAL
SIMMACK
Time Actual SMA(3) Act-SMA DMA(3) SMA-DMA A B Forecast eForecast
1 2
2 4
3 6 4 2
4 8 6 2
5 10 8 2 6 2 10 2
6 12 10 2 8 2 12 2 12 0
7 14 12 2 10 2 14 2 14 0
8 16 14 2 12 2 16 2 16 0
9 18 16 2 14 2 18 2 18 0
10· 20 18 2 16 2 20 2 20 0
11 N 22
13
Double Moving Average
25
20
15 Actual
SMA(3)
10 DMA(3)
0
0 5 10 15
Time
Double Moving Average
Step 3 : The current level of the data at time t is estimated by
a t M t M t M t 2 M t M t
Step 4 : The slope 1 of the series at time t is estimated by
2
bt M t M t
n 1
Ft m a t bt m
15
𝑌
𝑀
𝑦 ?
𝑀"
𝑦 ?
2
at M t M t M t 2 M t M t 𝑦 bt M t M t
n 1
𝑡 t+1 t+2
Example 3 (Trend Data) : Double Moving Average
Period Step 1 Step 2 Step 5
Inventory Four-Month Four-Month One-Month
Balance of Moving Moving Ahead
Product Average Average Forecast
E12 of (1) of (2)
1 140.00 -- --- ---
2 159.00 -- --- ---
3 136.00 --- --- ---
4 157.00 148.00 --- ---
5 173.00 156.25 --- ---
6 131.00 149.25 --- ---
7 177.00 159.50 153.25 ---
8 188.00
/ 167.25 158.06 169.92
250
200
Inventory
150
100
50
0
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
Time Period
19
Double Moving Average
y1 y2 y3
M3
3
t yt Weight
y 2 y3 y 4
M4 1 y1 1/9
3 2 y2 2/9
y3 y 4 y5 3 y3 3/9
M5
3 4 y4 2/9
5 y5 1/9
M3 M4 M5
M
"
5
3
y1 2 y2 3 y3 2 y4 y5 1 2 3 2 1
y1 y2 y3 y4 y5
9 9 9 9 9 9
20
Summary
Simple moving average
Equal weight to the past n observations only
observations
21
Part Three
Simple moving average
Double moving average
Application of moving average to stock price
22
Determination of buy/sell
signals
Use a moving average
Buy if P > MA
Sell if P < MA
Use two moving averages
Buy if MA(short) > MA (long)
Sell if MA(short) < MA (long)
24
25
MS4212 PREDICTIVE ANALYTICS AND
FORECASTING
Chapter 3
EXPONENTIAL SMOOTHING METHODS
1
PART ONE
Simple Exponential Smoothing
Double Exponential Smoothing
Brown’s One-parameter Linear Method
Holt’s Two-parameter Linear Method
Winters’ Three Parameter Linear and Seasonal
Exponential Smoothing
Multiplicative Method
Additive Method
2
SIMPLE EXPONENTIAL SMOOTHING (SES)
Suitable for no trend series
yt = 0 + t , t ~ N(0, 2)
where 0 may change slowly with time
4
SES WEIGHTS
• Suppose = 0.2, 0.4, 0.6 or 0.8. Then the weights assigned to past
observations would be as follows:
time y Weight
value assigned = 0.2 = 0.4 = 0.6 = 0.8
t yt 0.2 0.4 0.6 0.8
• In each case,
{ (1 ) (1 )2 (1 )t1} (1 )t
The weights for all past data sum
approximately to one. [1 (1 )t ]
(1 )t
The weights decrease exponentially with 1 (1 )
heavier weights given to recent observations [1 (1 )t ] (1 )t 1
and smaller weights given to old 5
observations, hence the name exponential
smoothing.
SES Weights
0.9
0.8
0.7
0.6
0.5
Weights
0.4
0.3
0.2
0.1
0
t t-1 t-2 t-3 t-4 t-5
Time
8
SIMPLE EXPONENTIAL SMOOTHING
EXAMPLE 1 Ft+1 =At = yt + (1 ) At-1
Forecast
Time Actual At t=1
(α=0.1)
1 200.00 200.00 Step 1: A1 = y1 =200
2 135.00 193.50 200.00 Step 2: F2 = A1 = 200
3 195.00 193.65 193.50 t=2
4 197.50 194.04 193.65 Step 1:
5 310.00 205.63 194.04 A2 =0.1y2 + (1- 0.1) A1
6 175.00 202.57 205.63 = 0.1*135 +0.9*200 = 193.5
7 155.00 197.81 202.57 Step 2: F3 =A2 = 193.5
8 130.00 191.03 197.81
9 220.00 193.93 191.03
10 277.00 202.23 193.93
11 235.00 205.51 202.23 9
12 ? 205.51
SIMPLE EXPONENTIAL SMOOTHING
EXAMPLE 1
10
SIMPLE EXPONENTIAL SMOOTHING
EXAMPLE 2
Forecast t=1
Time Actual At Step 1: A1 = y1 =79
(α=0.1)
1 79.00 79.00 Step 2: F2 = A1 = 79
2 84.00 79.50 79.00
3 83.00 79.85 79.50 t=2
4 81.00 79.97 79.85 Step 1: A2 =0.1y2 + (1- 0.1) A1 = 0.1*84
5 98.00 81.77 79.97 +0.9*79 = 79.5
6 100.00 83.59 81.77 Step 2: F3 =A2 = 79.5
7 83.59
11
SIMPLE
EXPONENTIAL
SMOOTHING
EXAMPLE 2
12
PART TWO
Simple Exponential Smoothing
Double Exponential Smoothing
Brown’s One-parameter Linear Method
Holt’s Two-parameter Linear Method
Winters’ Three Parameter Linear and Seasonal
Exponential Smoothing
Multiplicative Method
Additive Method
13
BROWN’S METHOD
Suitable for linear trend series
Yt = 0 + 1t + t
1
Hence
E yt E A t E At E At
"
1
1
1
E At E At "
1
E yt E At
15
Time yt(=2t) At yt-At A''t At-A''t at bt Forecast Error BROWN’S
1 2 2.00 0.00 2.00 0.00 2.00 2.00
2
3
4
6
2.80
4.08
1.20
1.92
2.32
3.02
0.48
1.06
3.28
5.14
0.32
0.70
4.00
3.60
0.00
2.40
METHOD
At yt (1 ) At 1
4 8 5.65 2.35 4.07 1.57 7.22 1.05 5.84 2.16
5 10 7.39 2.61 5.40 1.99 9.38 1.33 8.27 1.73 At" At (1 ) At"1
6 12 9.23 2.77 6.93 2.30 11.53 1.53 10.70 1.30
7 14 11.14 2.86 8.62 2.52 13.66 1.68 13.07 0.93
0.4
8 16 13.08 2.92 10.40 2.68 15.76 1.79 15.35 0.65
9 18 15.05 2.95 12.26 2.79 17.84 1.86 17.55 0.45 A1 y1 2
10 20 17.03 2.97 14.17 2.86 19.89 1.91 19.70 0.30 A2 0.4* y2 0.6* A1
11 22 19.02 2.98 16.11 2.91 21.93 1.94 21.80 0.20 0.4* 4 0.6* 2
12 24 21.01 2.99 18.07 2.94 23.95 1.96 23.87 0.13
13 26 23.01 2.99 20.04 2.96 25.97 1.97 25.91 0.09
2.8
14 28 25.00 3.00 22.03 2.98 27.98 1.98 27.94 0.06
15 30 27.00 3.00 24.02 2.98 29.99 1.99 29.96 0.04 A1" y1 2
16 32 29.00 3.00 26.01 2.99 31.99 1.99 31.98 0.02
17 34 31.00 3.00 28.01 2.99 33.99 2.00 33.98 0.02 A2" 0.4* A2 0.6* A1"
18 36 33.00 3.00 30.00 3.00 36.00 2.00 35.99 0.01 0.4* 2.8 0.6* 2
19 38 35.00 3.00 32.00 3.00 38.00 2.00 37.99 0.01 2.32
20 40 37.00 3.00 34.00 3.00 40.00 2.00 40.00 0.00
21 42 39.00 3.00 36.00 3.00 42.00 2.00 42.00 0.00
22 44 41.00 3.00 38.00 3.00 44.00 2.00 44.00 0.00 1 0.6
1 *2 3
23 46 43.00 3.00 40.00 3.00 46.00 2.00 46.00 0.00 0.4
24 48 45.00 3.00 42.00 3.00 48.00 2.00 48.00 0.00 yt At At A
16
"
t
25 50 47.00 3.00 44.00 3.00 50.00 2.00 50.00 0.00
26 52 49.00 3.00 46.00 3.00 52.00 2.00 52.00 0.00 1
1
27 54.00
17
BROWN’S METHOD
Calculation procedures for Brown’s method:
Step 3: The current level of the data at time t, 0 , is estimated by
at At At At 2 At At
Step 4: The slope of the series at time t, 1 , is estimated by
bt At At
1
Step 5: The forecast value for time period t+m made at time t is
Ft+m = at + bt m, m = 1, 2, 3,
where m is the forecast horizon. 18
𝑌
𝐴
𝑦 ?
𝐴"
𝑦 ?
bt
1
At At"
at At At At" 2At At" 𝑦
𝑡 t+1 t+2
CHOICE OF AND INITIALIZATION IN
BROWN’S METHOD A y (1 ) A t t t 1
A1 y1 (1 ) A0
Choice of y1 (1 ) y1 y1
Choose one that minimize MSE or MAPE.
At" At (1 ) At"1
Initialization
A1" A1 (1 ) A0"
Delurgio A0 = A0 = y1 => A1 = A1 = y1, a1 = y1 y1 (1 ) y1 y1
b1 = [ (y2 - y1) + (y4 - y3) ] / 2
at 2 At At
Or Bowerman (P392)
a1 2 A1 A1
1
A0 a 0 b0 2 y1 y1 y1
1
A0 a0 2 b0
where a0 and b0 are least squares estimates of 0 and 1 by 20
fitting a straight line to, for example, one half of the data.
BROWN’S METHOD EXAMPLE
Forecast the demand for period 9 using Brown’s method (=0.4)
Period 2 – 8
24
SES: MAD = 10.43; MSE = 129.16
Brown: MAD = 5.47; MSE = 40.76
HOLT’S METHOD
Step 3: The forecast value for time period t+m made at time t is
Ft+m = At+ Tt m, m = 1, 2, 3, 25
where m is the forecast horizon.
Choice of , and Initialization in Holt's Method
Choice of and
Choose one that minimize MSE or MAPE.
Initialization
Delurgio
Level : A1 = y1
Trend :
y2 y1 y4 y3
T1 =
2
Bowerman (P.403)
Fit a trend line to first few or one half of the historical data to find A0 and
T0.
26
Holt's Method
Advantage
• is the smoothing constant for the level of the
series
• is the smoothing constant for the trend
• apply different weights to actual data () and
trend ()
Disadvantage
specify 2 parameters, not simple 27
HOLT’S METHOD EXAMPLE
Forecast the demand for period 9 using Holt’s method (=0.5, =0.3)
Forecast the demand for period 9 using Holt’s method (=0.5, =0.3)
30
Holt’s Method
Period 2 – 8
SES: MAD = 10.43; MSE = 129.16 31
Brown: MAD = 5.47; MSE = 40.76
Holt : MAD = 4.89; MSE = 44.22
PART THREE
Simple Exponential Smoothing
Double Exponential Smoothing
Brown’s One-parameter Linear Method
Holt’s Two-parameter Linear Method
Winters’ Three Parameter Linear and Seasonal
Exponential Smoothing
Multiplicative Method
Additive Method
32
Winters' Multiplicative Method
• Suitable for linear trend and multiplicative seasonality
series 900
Winters' Multiplicative Method
800
700
500
Actual
400
300
200
where 100
0
0 5 10 15 20 25 30
Period
Note: L is the length of seasonality (eg: L=4 for quarterly, L=12 for 34
monthly)
Winters' Multiplicative Method
37
Initialization in Winters' Multiplicative Method
Makridakis (P.168)
1
AL y1 y2 ... y L
Level : L
Trend : 1 y L1 y1 y L 2 y2 y L L y L
TL ...
L L L L
Seasonal :
y1 y2 yL
S1 , S2 , ... , S L
AL AL AL
Bowerman (P.403-7)
Yr/Season 1 2 … L
1 y1 y2 … yL
38
2 yL+1 yL+2 … y2L
Winters’ Multiplicative Example : Quarterly Exports of a French Company( = 0.822, = 0.055 and = 0.05)
700
3 432 – – 1.137 – 600
Actual
5 382 371.29 400
6 409 300
7 498
t= 4 200
100
10 513
11 582 Step 2: T4 =[(y5 - y1)/4 + (y6 – y2)/4+(y7 - y3)/4 + (y8 – y4)/4]/4
12 474 = [(382-362) + (409-385)+ (498-432)+ (387-341)]/16
13 544
14 582 = 9.75 Yr/ 1 2 3 4
15 681 Qtr
16 557 1 362 385 432 341
17 628 Step 3: S1 = y1 /A4 = 362/380 = 0.953
2 382 409 498 387
18 707 S2 = y2 /A4 = 385/380 = 1.013
19 773
20 592
S3 = y3 /A4 = 432/380 = 1.137
21 627 S4 = y4 /A4 = 341/380 = 0.897
22 725
23 854
24 661 Step 4: F5 =(A4 + T4)* S1 = (380 + 9.75)*0.953=371.29
25
Winters’ Multiplicative Example : Quarterly Exports of a French Company( = 0.822, = 0.055 and = 0.05)
Perio Actua Level Trend Seasonal Forecast Winters' Multiplicative Method
d l 900
700
2 385 – – 1.013 – 600
Actual
4 341 380.00 9.75 0.897 – 400
300
5 382 398.99 10.26 0.953 371.29 200
7 498 t=5 0
0 5 10 15 20 25 30
8 387 Period
yt = (0 + 1t) + St + t
Winters' Additive Method
60
50
40
Actual
30
20
10
where
0
0 5 10 15 20 25
Period
At yt St L 1 At 1 Tt 1
Step 2: The slope of the series at time t, 1 , is estimated by
Tt At At 1 1 Tt 1
Step 3: The seasonality of the data at time t, St , is estimated by
St yt At 1 St L
Step 4: The forecast value for time period t+m made at time t is
Ft m ( At mTt ) St L m 43
Makridakis (P.169)
Same as those for multiplicative method except for seasonal
indices, we use
S1 = y1 – AL , S2 = y2 – AL , … , SL = yL – AL
Bowerman (P.417)
Compute the least squares estimates of the parameters in the
dummy variable regression model
y t 0 1t S 1 x S 1,t S 2 x S 2 ,t S ( L 1) x S ( L 1),t t
where independent error terms are assumed.
44
Winters’ Additive Example : Product Demand ( = 0.2, = 0.1 and = 0.1)
Winters' Additive Method
t yt At Tt St(t) Forecast 60
1 10 -- -- -15 -- 50
2 31 -- -- 6 -- 40
3 43 -- -- 18 --
Actual
30
4 16 25.00 0.375 -9 -- 20
10
5 11 10.375 0
6 33 t=4
0 5 10
Period
15 20 25
16 21 S3 = y3 - A4 = 43 – 25 = 18 1 10 31 43 16
2 11 33 45 17
17 16 S4 = y4 - A4 = 16 – 25 = -9
18 39
19 53 Step 4: F5 =(A4 + T4) +S1 = (25 + 0.375) - 15=10.375
20 22
Winters’ Additive Example : Product Demand ( = 0.2, = 0.1 and = 0.1)
t yt At Tt St(t) Forecast Winters' Additive Method
1 10 -- -- -15 -- 60
50
2 31 -- -- 6 -- 40
3 43 -- -- 18 --
Actual
30
4 16 25.00 0.375 -9 -- 20
6 33 31.888 0 5 10
Period
15 20 25
7 45 t=5
8 17
Step 1: A5=0.2(y5 - S1)+ 0.8 (A4 + T4 )
9 13
10 34 = 0.2*[11-(-15)] + 0.8 * (25+0.375) = 25.5
11 48
12 19 Step 2: T5 =0.1(A5 - A4 ) + 0.9*T4
13 15 = 0.1*(25.5-25) +0.9*0.375 = 0.388
14 37
15 51
16 21 Step 3: S5 =0.1(y5 - A5 )+ 0.9*S1
17 16 = 0.1*(11-25.5) + 0.9*(-15) = -14.95
18 39
19 53 Step 4: F6 = (A5 + T5 )+ S2 = (25.5+0.388)+ 6 = 31.888
20 22
Winters’ Additive Example : Product Demand ( = 0.2, = 0.1 and = 0.1)
t yt At Tt St(t) Forecast
1 10 -- -- -15 --
2 31 -- -- 6 --
3 43 -- -- 18 --
4 16 25.00 0.375 -9 --
5 11 25.50 0.388 -14.950 10.375
6 33 26.11 0.410 6.089 31.888
7 45 26.62 0.419 18.038 44.520
8 17 26.83 0.399 -9.083 18.035
9 13 27.37 0.413 -14.892 12.277
10 34 27.81 0.416 6.099 33.874
11 48 28.57 0.450 18.177 46.264
12 19 28.84 0.432 -9.158 19.940
13 15 29.39 0.444 -14.842 14.374
14 37 30.05 0.465 6.184 35.935
15 51 30.98 0.512 18.362 48.692
16 21 31.22 0.485 -9.264 22.329
17 16 31.53 0.468 -14.911 16.864
18 39 32.16 0.484 6.249 38.186
19 53 33.05 0.524 18.521 51.010
20 22 33.11 0.478 -9.449 24.305
21 18.675
Period 5 – 20
Additive : MAD = 1.13; MSE = 1.67
Multiplicative : MAD = 1.86; MSE = 5.81 48