Holt's & Winter's Method
Holt's & Winter's Method
Holt’s Method
By
S P Sarmah
1
Holt’s method: Double exponential smoothing method
f t ,k = at + kbt
2
• The term at denotes an estimate of the level of the series at time
t and bt denotes an estimate of the slope of the series at time ‘t’.
• Equation (1) adjusts at for the trend of the previous period bt-1
by adding it to the last smoothed value at-1.
3
• There are different methods of initialization.
• Another alternative is to
a1 = x1
b1 = x 2 − x1
x 4 − x1
b1 =
3
4
• The initialization process for Holt’s linear exponential
smoothing requires for estimates.
- One to get first smoothed value for a1 and the other to get
the trend b1.
xt = a + bt
a = base level at the beginning of period 1
b = per period trend for period t
5
Here period 1 is
Example the base period 0
a1 = x1 = 143 b1= x2 - x1 = 152 - 143 = 9
7
a 3 = x3 + (1 − )a 2 + b2
= .5 161 + .5(152 + 9 ) = 161
b3 = a 3 − a 2 + (1 − )b2
= .072161 − 152 + (1 − .072) 9 = 9
f 3,1 = a 3 + 1 b3 = 161 + 9 = 170
8
a4 = x4 + (1 − )a3 + b3
= .5 139 + .5(161+ 9 ) = 154.5
b4 = a4 − a3 + (1 − )b3
= .072154.5 − 161 + (1 − .072) 9
= 7.884
f 4 ,1 = a4 + 1 b4 = 154.5 + 7.884
= 162.38
9
a5 = x5 + (1 − )a4 + b4
= .5 137 + .5(154.5 + 7.884) = 149.69
b5 = .072149.69 − 154.5 + (1 − .072) 7.884 = 6.970
f 5,1 = 149.69 + 1 6.970 = 156.66
a 6 = x6 + (1 − )a5 + b5
= .5 174 + .5(149.69 + 6.970) = 165.33
b6 = .072165.33 − 149.69 + (1 − .072) 6.970 = 7.5942
f 6,1 = 165.33 + 7.5942 = 172.92
10
a 7 = .5(142) + .5(165.33 + 7.5942) = 157.46
b7 = .072157.46 − 165.33 + (1 − .072) 7.5942
= 6.481
f 7 ,1 = 157.46 + 6.481 = 163.94
12
WintersMethod: (Triple exponential smoothing )
Exponential smoothing with seasonality
• This method is used to forecast time series for which trend and
seasonality are present
e.g. sales of air conditioner exhibit an upward trend and
seasonality.
• To describe winters method, we require the following
definitions
N = The number of periods in the length of the seasonal pattern
N = 12 data points for monthly data
= 4 data points for quarterly data
with an annual seasonal pattern
13
St = An estimate of a seasonal multiplicative factor (for month t),
obtained after observing xt
Observed
sales
Random noise εt
Seasonal coefficient
Observation
Value of gradient
b t
= (at − at −1) + (1 − )bt −1 (2)
= x t
+ (1 − )S t−N (3)
S t
a t
f t ,k
= a t
+ k bt S t − N +k
16
• Equation (1) updates the estimates of the series base by taking
a weighted average of the following two quantities
17
• Equation (3) updates the estimates of month t’s seasonality by
taking a weighted average of the following two quantities
xt
➢ a t is an estimate of month t’s seasonality obtained from
the current month.
18
Initialization procedure
• Winters suggest a minimum of two seasons of data be
available for initialization.
• Let us assume that exactly two seasons of data are
available i.e. 2N data points
• Suppose the current period is t =0 so that past
observations are labelled as x-2N+1 , x-2N+2…..x0
The steps are as follows
19
Step1
• Calculate the sample means for two separate seasons
of data as follows
-N
1
v1 =
N
x
j = - 2N +1
j
0
1
v2 =
N
x
j = - N +1
j
Step 2
v 2 - v1
Define bo = as the initial slope estimate.
N
If more than two seasons data are available (i.e. m > 2)
for initialization, then compute v1, v2, ……vm and
define v m - v1
bo =
(m - 1)N 20
• If we locate v1 at the centre of the first season of the
data and v2 at the centre of the second seasons of the
data, then b0 is simply the slope of the line connecting
v1 and v2
Step 3
• Set a0 = v2 + b0 (N-1)/2
• This estimates the value of the base at time t = 0.
Note that a0 is the value assumed by the line
connecting v1 and v2 at t = 0
21
Step 4
• The initial seasonal factors are computed for each
period in which data are available and then averaged
to obtain one set of seasonal factor.
• The initial seasonal factors are obtained by dividing
each of the initial observations by the corresponding
point along the line connecting v1 and v2. This can be
done as follows
xt
St = for - 2N + 1 t 0
(N + 1)
vi - [ − j]b 0
2
22
• Where i = 1 for the first season and i = 2 for the
second season
• J is the period of the particular season, i.e. j= 1 for
t = -2N +1 and t = - N+1;
• j =2 for t = -2N +2 and t = -N+2 and so on
23
• Finally, normalized the seasonal factor
S
S j = - N +1 N for - N + 1 j 0
j
i =0 Si
24
Season 1 Season 2
Demand
Slope=b0
V2
V1
Time
N
Figure 2
Now average S-7 and S-3 ,S-6 and S-2 , to obtain four seasonal factors:
F0,3 = 35.44
F0,4 = 24.38
Now, suppose at t=1 x1 =16 than,
Now renorm S-2 , S-1 , S0 , and the new value of S1 to add to 4. Since
the sum is 4.0061, it is close enough.
And so on.
Now suppose we have one full year demand, given by x1=16, x2=33,
x3 = 34 and x4 =26. Updated intercept, slope, and current seasonal
factors are:
Which results in
F4, 6 = (a4 + 6 b4) S2 = [27.89+6(.9770)](1.124)=37.94
THANKS
30