Holt-Winters Method (Additive Models) - Part 1

Chapter 3: Lesson 3

Learning Outcomes

Implement the Holt-Winter method to forecast time series
  • Justify the need for the Holt-Winters method
  • Describe how to obtain initial parameters for the Holt-Winters algorithm
  • Explain the Holt-Winters update equations for additive decomposition models
  • Explain the purpose of the parameters α, β, and γ
  • Interpret the coefficient estimates at, bt, and st of the Holt-Winters algorithm
  • Explain the Holt-Winters forecasting equation for additive decomposition models, Equation (3.22)

Preparation

  • Read Section 3.4.2 (Page 59 - top of page 60 only)

Learning Journal Exchange (10 min)

  • Review another student’s journal

  • What would you add to your learning journal after reading another student’s?

  • What would you recommend the other student add to their learning journal?

  • Sign the Learning Journal review sheet for your peer

Introduction to the Holt-Winters Method–Additive Model (35 min)

We will describe the historical progression that led to the Holt-Winters method.

Review: Exponentially Weighted Moving Average (EWMA) or Simple Exponential Smoothing

The exponential weighted moving average (EWMA) is a simple method for smoothing (or filtering) a time series. The update equation for the estimate of the level of the time series is

at=αxt+(1α)at1

where at is the estimate of the level of the time series at time t and 0α1 is the smoothing paramter.

This is known as the level update equation, because at each time step, we can update our estimate of the level (or the center) of the time series. It is called exponential smoothing, because at each preceding value has exponentially decreasing influence on the estimate.

Check Your Understanding
  • Explain the level update equation to your partner.

These computations are based on previous values and a1=x1. The number 0α1 is a smoothing parameter. This determines how much weight is given to previous values when creating the updated level estimate.

If you were to use this model for forecasting, you would not be able to consider any trend or seasonality in the forecast. Hence, the future values would all be forecasted as the last value of an:

x^n+k|n=an where x^n+kn is the estimate of the time series k time units in the future past time t=n. Frankly, this is not very useful, because many time series have trends or seasonality.

Holt’s Exponential Smoothing

In 1957, Charles Holt published a new procedure that introduced a trend into this model. The forecasted values were:

x^n+k|n=an+kbn

where bn is the slope indicating how much the time series changes on average from one time point to another and k is the number of time periods past t=n you are forecasting.

This method uses the same level update equation as EMWA. The slope update equation is:

bt=β(atat1)+(1β)bt1

where 0β1 is a smoothing parameter, bt is the slope estimate at time t, and at is the estimate of the level of the time series at time t.

Holt-Winters Filtering (Winters’ Exponential Smoothing)

Peter Winters, a colleague of Holt’s at the Carnagie Institute of Technology, published an enhancement of Winters’ technique in 1960 that allowed for seasonal variation. This is known as the Holt-Winters Method or Holt-Winters Filtering.

Forecast Equation

The forecast equation is:

x^n+k|n=an+kbn+sn+kp

where x^n+k|n is the forecasted value of the time series k units in the future after time t=n, and the time series is assumed to have seasonality with a period of p time units; an is the level of the time series at time t=n; bn is the slope of the time series at time t=n; and sn+kp is the estimated seasonal component at time t=n+kp. Note that we must look back one full period to get the estimated seasonal component.

Update Equations

There are three update equations, one each for at (level), bt (slope), and st (seasonal component).

at=α(xtstp)+(1α)(at1+bt1)Levelbt=β(atat1)+(1β)bt1Slopest=γ(xtat)+(1γ)stpSeasonal

where {xt} is a time series from t=1 to t=n that has seasonality with a period of p time units; at time t, at is the estimated level of the time series, bt is the estimated slope, and st is the estimated seasonal component; and α, β, and γ are parameters (all between 0 and 1).

Check Your Understanding

Work with your partner to answer the following questions about the update equations.

at=α(xtstp)A+(1α)(at1+bt1)B                    Level

  • Interpret the term A=xtstp.
  • Interpret the term B=at1+bt1.
  • Explain why this expression for at estimates the level of the time series at time t.

bt=β(atat1)C+(1β)bt1D                                  Slope

  • Interpret the term C=atat1.
  • Interpret the term D=bt1.
  • Explain why this expression for bt estimates the slope of the time series at time t.

st=γ(xtat)E+(1γ)stpF                                     Seasonal

  • Interpret the term E=xtat.
  • Interpret the term F=stp.
  • Explain why this expression for st estimates the seasonal component of the time series at time t.
  • When the seasonal component appears on the right-hand side of the update equations, it always given as stp. Why do we use the estimate of the seasonal effect p periods ago? Why not apply a more recent value?
  • What do the following sets of terms have in common?
    • {A,C,E}
    • {B,D,F}
  • Explain why the Holt-Winters method works.

Initial Estimates of at, bt, and st

We can use the update equations to compute the next value of at, bt, and st, once we get going. Yet, how do we get started? What are the initial values of these estimates?

Estimating a1:

It is reasonable to let a1=xt. We simply start our estimate of the level of the time series at the initial data value.

Check Your Understanding
  • Explain why it is reasonable to let a1=x1.
Estimating b1:

For the value of b1, the Cowpertwait textbook vaguely suggests estimating this from the data or setting it to zero. Setting b1 to zero is problematic, because it adversely affects the level and slope estimates at the beginning of the time series. We need a better way.

Check Your Understanding
  • Interpret the quantity xp+1x1p

We will approximate b1 by averaging the slope between pairs of points one period apart. Recall that p is the number of observations per period. (Monthly data which have an annual cycle would have p=12. Daily data with a weekly cycle have p=7.) Note that the fraction in the “Check Your Understanding” box above is an estimate of the slope of the time series as it moves from time 1 to time p+1. These are the first observations in the first two cycles. We compute these estimated slopes for all the paired observations in the first two cycles, then we compute the mean of these slopes. This is reflected in the expression for b1:

b1=(xp+1x1p+xp+2x2p+xp+3x3p++x2p1xp1p+x2pxpp)p

Estimating s1,s2,sp:

The initial p values of the seasonal effects, s1,s2,sp, can be determined either by estimating based on the data or your prior experience; alternatively, they could be set to 0. For t=1,2,3,,p iterations, use your estimate for st when the formulas call for stp.

Check Your Understanding
  • What does the term xp+1x1p estimate?
  • Why does the average of the values {xp+1x1p, xp+2x2p, xp+3x3p, , x2p1xp1p, x2pxpp} give a good estimate of the slope at the beginning of the time series?
  • Suppose you needed to estimate s1,s2,s3,,sp for monthly sales data, where sales are highest in the summer months and lowest in the winter months. If January corresponds to month 1, which values of st would you set to be positive? negative? near zero?
Note

To implement the initial seasonality estimates, we include them in the model as s1p, s2p, s3p, , spp This allows us to begin using the data to update the sp values in the first cycle of seasonality (t=1,2,3,,p).

Application of the Holt-Winters Method to a Sample Time Series (10 min)

The Holt-Winters method provides a way to model a time series in which we consider the time series in layers. first, there is the level (the smoothed xt values from the time series) at time t. We will denote the level by at. The level can change from time to time. We introduce a value bn, which we call the slope. This is the change in the level of the series from one time period to another. (As the book points out, R and many textbooks call the slope the trend.) Finally, we include a seasonal estimate, st, which indicates how much the time series rises or falls above the level and trend values at time t.

To visualize these terms, it can be helpful to consider the forecasting model. Suppose we have computed that Holt-Winters estimate of a time series with n observations. In other words, we have just fit a curve to the entire time series. We will use a very simple time series for this illustration.

First, consider a time series that has a seasonal pattern of (100, 104, 100, 100) with zero trend and random components. This is illustrated in Figure 1.

Figure 1: Sample time series with zero trend and random components

Now, we add a slope of 12 to this time series. In Figure 2, we observe the same sample time series, but with the added component of a slope.

Figure 2: Sample time series with a trend

Next, we apply the Holt-Winters method to these data. Figure 3 illustrates the Holt-Winters filter plotted against the data.

Figure 3: Sample time series illustrating the Holt-Winters filter
Check Your Understanding
  • What do you observe?

Simulation of Holt-Winters Filtering (10 min)

Homework Preview (5 min)

  • Review upcoming homework assignment
  • Clarify questions
Download Homework

References