SSM Procedure

Trend Models for Regular Data

These models are applicable when the data type is either regular or regular with replication. A good reference for these models is Harvey (1989).

Random Walk Trend

This model provides a trend pattern in which the level of the curve changes with time. The rapidity of this change is inversely proportional to the disturbance variance sigma squared that governs the underlying state. It can be described as bold upper Z alpha Subscript t, where upper Z equals left-parenthesis 1 right-parenthesis and the (one-dimensional) state alpha Subscript t follows a random walk:

alpha Subscript t plus 1 Baseline equals alpha Subscript t Baseline plus eta Subscript t plus 1 Baseline comma eta Subscript t Baseline tilde upper N left-parenthesis 0 comma sigma squared right-parenthesis

Here bold upper T equals 1 and bold upper Q equals sigma squared. The initial condition is fully diffuse. Note that if sigma squared equals 0, the resulting trend is a fixed constant.

Local Linear Trend

This model provides a trend pattern in which both the level and the slope of the curve change with time. This variation in the level and the slope is controlled by two parameters: sigma 1 squared controls the level variation, and sigma 2 squared controls the slope variation. If sigma 1 squared equals 0, the resulting trend is called an integrated random walk. If both sigma 1 squared equals 0 and sigma 2 squared equals 0, then the resulting model is the deterministic linear time trend. Here bold upper Z equals left-parenthesis 1 0 right-parenthesis, bold upper T equals left-parenthesis 1 1 comma 0 1 right-parenthesis, and bold upper Q equals normal upper D normal i normal a normal g left-parenthesis sigma 1 squared comma sigma 2 squared right-parenthesis. The initial condition is fully diffuse.

Damped Local Linear Trend

This trend pattern is similar to the local linear trend pattern. However, in the DLL trend the slope follows a first-order autoregressive model, whereas in the LL trend the slope follows a random walk. The autoregressive parameter or the damping factor, phi, must lie between 0.0 and 1.0, which implies that the long-run forecast according to this pattern has a slope that tends to 0. Here bold upper Z equals left-parenthesis 1 0 right-parenthesis, bold upper T equals left-parenthesis 1 1 comma 0 phi right-parenthesis, and bold upper Q equals normal upper D normal i normal a normal g left-parenthesis sigma 1 squared comma sigma 2 squared right-parenthesis. The initial condition is partially diffuse with bold upper Q bold 1 equals normal upper D normal i normal a normal g left-parenthesis 0 comma sigma 2 squared slash left-parenthesis 1 minus phi asterisk phi right-parenthesis right-parenthesis.

ARIMA Trend

This section describes the state space form for a component that follows an ARIMA(p,d,q)times(P,D,Q)Subscript s model. The notation for ARIMA models is explained in the TREND statement.

First the state space form for the stationary case—that is, when d equals 0 and upper D equals 0, is explained. A number of alternate state space forms are possible in this case; the one described here is based on Jones (1980). With slight abuse of notation, let p equals p plus s asterisk upper P denote the effective autoregressive order, and let q equals q plus s upper Q denote the effective moving average order of the model. Similarly, let phi be the effective autoregressive polynomial, and let theta be the effective moving average polynomial in the backshift operator with coefficients phi 1 comma ellipsis comma phi Subscript p Baseline and theta 1 comma ellipsis comma theta Subscript q Baseline, obtained by multiplying the respective nonseasonal and seasonal factors. Then, a random sequence xi Subscript t that follows an ARMA(p,q)times(P,Q)Subscript s model with a white noise sequence a Subscript t has a state space form with state vector of size m equals max left-parenthesis p comma q plus 1 right-parenthesis. The system matrices are as follows: bold upper Z equals left-bracket 1 0 ellipsis 0 right-bracket, and the transition matrix bold upper T, in a blocked form, is given by

bold upper T equals Start 2 By 2 Matrix 1st Row 1st Column 0 2nd Column upper I Subscript m minus 1 Baseline 2nd Row 1st Column phi Subscript m Baseline ellipsis 2nd Column phi 1 EndMatrix

where phi Subscript i Baseline equals 0 if i greater-than p and upper I Subscript m minus 1 is an left-parenthesis m minus 1 right-parenthesis dimensional identity matrix. The covariance of the state disturbance matrix bold upper Q equals sigma squared psi psi Superscript prime, where sigma squared is the variance of the white noise sequence a Subscript t and the vector psi equals left-bracket psi 0 ellipsis psi Subscript m minus 1 Baseline right-bracket Superscript prime contains the first m values of the impulse response function—that is, the first m coefficients in the expansion of the ratio theta slash phi. The covariance matrix of the initial state, bold upper Q 1, is computed as

v e c left-parenthesis bold upper Q 1 right-parenthesis equals left-parenthesis bold upper I minus bold upper T circled-times bold upper T right-parenthesis Superscript negative 1 Baseline v e c left-parenthesis bold upper Q right-parenthesis

where circled-times denotes the Kronecker product and the v e c operation on a matrix creates a vector formed by vertically stacking the rows of that matrix.

A number of alternate state space forms are possible in the nonstationary case also. The form used by the SSM procedure utilizes the state space form for the stationary case as a building block. Suppose that a random sequence xi Subscript t follows an ARIMA(p,d,q)times(P,D,Q)Subscript s model with a white noise sequence a Subscript t. As in the notation for the stationary case, with slight abuse of notation, let d equals d plus s asterisk upper D denote the effective differencing order, and let normal upper Delta be the effective differencing polynomial in the backshift operator with coefficients normal upper Delta 1 comma ellipsis comma normal upper Delta Subscript d Baseline. It can be shown that xi Subscript t has a state space form with state vector size m Superscript dagger Baseline equals m plus d. In what follows, the system matrices and related quantities in the nonstationary case are described in terms of similar entities in the stationary case. A superscript dagger (dagger) has been added to distinguish the entities from the nonstationary case. bold upper Z Superscript dagger Baseline equals left-bracket 0 0 ellipsis 1 ellipsis 0 right-bracket where the only nonzero value, 1, is at the index m plus 1, and the transition matrix, bold upper T Superscript dagger, in a blocked form, is given by

bold upper T Superscript dagger Baseline equals Start 3 By 3 Matrix 1st Row 1st Column bold upper T 2nd Column 0 3rd Column 0 2nd Row 1st Column bold upper Z bold upper T 2nd Column normal upper Delta 1 ellipsis 3rd Column normal upper Delta Subscript d Baseline 3rd Row 1st Column 0 2nd Column upper I Subscript d minus 1 Baseline 3rd Column 0 EndMatrix

The state disturbance matrix bold upper Q Superscript dagger is given by

bold upper Q Superscript dagger Baseline equals Start 3 By 3 Matrix 1st Row 1st Column bold upper Q 2nd Column bold upper Q bold upper Z Superscript prime Baseline 3rd Column 0 2nd Row 1st Column bold upper Z bold upper Q 2nd Column bold upper Z bold upper Q bold upper Z Superscript prime Baseline 3rd Column 0 3rd Row 1st Column 0 2nd Column 0 3rd Column 0 EndMatrix

Finally, the initial state is partially diffuse: the first m elements are nondiffuse and the last d elements are diffuse. The covariance matrix of the first m elements is bold upper Q 1.

Last updated: June 19, 2025