USA Banner

Official US Government Icon

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure Site Icon

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Site Notification

Site Notification

U.S. Department of Transportation U.S. Department of Transportation Icon United States Department of Transportation United States Department of Transportation

APPENDIX D The Structural Time Series Model

Thursday, December 29, 2011

APPENDIX D The Structural Time Series Model

Although terms such as “trend” and “seasonal” are intuitively appealing, they are mental constructs as we cannot observe them directly. Therefore, we use a structural modeling approach that treats them as unobserved components (Harvey, 1989; Harvey and Shephard, 1993). In the empirical work we used the STAMP (Structural Time Series Analyser, Modeller and Predictor) software in conjunction with GiveWin; for details, see Koopman et al. (2000).

We define the components at time t as follows: trend = µt; slope = β; seasonal component = γt; and irregular component = ε. We assume that the process is observed at unit time intervals (t, t+1,…) and that there are s such intervals in a year (e.g. s=12 for monthly data). We then allow each component to evolve over time according to the specifications:

µt t −1t −1 t                (1)

βt t −1t                           (2)


γt t −1 +....+γt +−1 t        (3)

The quantities ηt, ζ, and ωt represent zero mean, random shifts in the corresponding component. We assume such shifts to be independent of one another and uncorrelated over time; we also assume that they are independent of the “irregular” component, εt, seen in Equation (4) below. Equations (1)–(3) are known as the state or transition equations since they describe the underlying states of the process, or the transition of the components from one time period to the next.

Equations (1) and (2) provide a general framework for describing the evolution of the trend. If the process being modeled does not require all of these components, they can be dropped from the specification. The components are tested in sequential fashion as follows (Harvey, 1989, pp. 248-56):

  • Does the slope disturbance term have positive variance? [Zero variance corresponds to the slope being fixed over time]
  • Does the level disturbance have positive variance? [Zero variance corresponds to the mean level being fixed over time]
  • If the slope disturbance is dropped, does the slope differ from zero?

If all three statistical tests produced negative outcomes, the trend term would be reduced to a constant.

When the time series is seasonal, we check:

  • Does the seasonal disturbance term have positive variance? [Zero variance corresponds to a stable seasonal pattern]
  • If the seasonal disturbance is dropped, are the seasonal components significantly different from zero? [Is there any seasonal pattern?]

If we drop the seasonal disturbance term, we are left with a “classical” model with fixed seasonal components. If the seasonal pattern is rejected completely, we reduce the model purely to its trend components.

The observed series is related to the states of the system by the observation (or measurement) equation:

yt =µ+γt t        (4)

where εt denotes the ‘irregular’ component.

The irregular component has zero mean and is assumed to be serially uncorrelated (i.e., not predictable) and independent of the disturbances in the state equations.

Estimation proceeds by maximum likelihood (Harvey, 1989, pp. 125-128). Operational details are provided in Koopman et al. (2000, section 8.3). The key parameters are the four variances corresponding to the disturbance terms [σε, ση, σζ2and σω2]. Note that we assume these variances are constant over time; the time series may need to be transformed to justify this assumption, at least to a reasonable degree of approximation. The four variance terms control the form of the model, allowing each of level, slope and seasonal to be stochastic or fixed; slope and seasonal elements may be present or absent. Table D1 illustrates the principal variations. If fixed components are included in a model, the corresponding terms appear in the state equations (e.g. fixed seasonal coefficients) but the variance term is zero. If the components are stochastic, the same terms appear in the model, but the variance is strictly positive. The most general form is the Basic Structural Model (BSM), in which all components are stochastic. The BSM forms the starting point for the model development process, and is the standard form employed in STAMP. The program then “tests down” to eliminate any components that are not required.