

 The statistical models that govern the predefined trend components available in the SSM procedure are divided into two groups:
            models that are applicable to equally spaced data (possibly with replication), and models that are applicable more generally
            (the irregular data type). Each trend component can be described as a dot product 
 for some (time-invariant) vector 
 and a state vector 
. The component specification is complete after the vector 
 is specified and the system matrices that govern the equations of 
 are specified. For trend models for regular data, all the system matrices are time-invariant. For irregular data, 
 and 
 depend on the spacing between the distinct time points: 
. 
         
These models are applicable when the data type is either regular or regular-with-replication. A good reference for these models is Harvey (1989).
 This model provides a trend pattern in which the level of the curve changes slowly. The rapidity of this change is inversely
                  proportional to the disturbance variance 
 that governs the underlying state. It can be described as 
, where 
 and the (one-dimensional) state 
 follows a random walk: 
               
| 
                        
                         | 
                     
                     
                  
 Here 
 and 
. The initial condition is fully diffuse. Note that if 
, the resulting trend is a fixed constant. 
               
 This model provides a trend pattern in which both the level and the slope of the curve vary slowly. This variation in the
                  level and the slope is controlled by two parameters: 
 controls the level variation, and 
 controls the slope variation. If 
, the resulting trend is called an integrated random walk. If both 
 and 
, then the resulting model is the deterministic linear time trend. Here 
, 
, and 
. The initial condition is fully diffuse. 
               
 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, 
, 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 
, 
, and 
. The initial condition is partially diffuse with 
. 
               
 This section describes the state space form for a trend that follows an ARIMA(p,d,q)
(P,D,Q)
 model. The notation for ARIMA models is explained in the TREND statement. A number of alternate state space forms are possible in this case; the one given here is based on Jones (1980).
                  With slight abuse of notation, let 
 denote the effective autoregressive order, and let 
 denote the effective moving average order of the model. Similarly, let 
 be the effective autoregressive polynomial, and let 
 be the effective moving average polynomial in the backshift operator with coefficients 
 and 
, obtained by multiplying the respective nonseasonal and seasonal factors. Then, a random sequence 
 that follows an ARIMA(p,d,q)
(P,D,Q)
 model with a white noise sequence 
 has a state space form with state vector of size 
. The system matrices are as follows: 
, and the transition matrix 
, in a blocked form, is given by 
               
| 
                        
                         | 
                     
                     
                  
 where 
 if 
 and 
 is an 
 dimensional identity matrix. The covariance of the state disturbance matrix 
, where 
 is the variance of the white noise sequence 
 and the vector 
 contains the first 
 values of the impulse response function—that is, the first 
 coefficients in the expansion of the ratio 
. The sequnce 
 is stationary if and only if 
 and 
; in this case the initial state is nondiffuse. The covariance matrix of the initial state, 
, in the stationary case is computed by 
               
| 
                        
                         | 
                     
                     
                  
 where 
 denotes the Kronecker product and the 
 operation on a matrix creates a vector formed by vertically stacking the rows of that matrix. If either 
 or 
 is nonzero, the initial state is treated as fully diffuse. 
               
 A good reference for these models is de Jong and Mazzi (2001). Throughout this section 
 denotes the difference between the successive time points. The system matrices 
 and 
 that govern these models depend on 
. However, whenever the notation is unambiguous, the subscript 
 is omitted. 
            
This model is a general-purpose tool for extracting a smooth trend from the noisy data. The order of the spline governs the order of the local polynomial that defines the spline. In the SSM procedure, the order is restricted to be an integer 1, 2, or 3; the default order is 1. The order-1 spline corresponds to a random walk, the order-2 spline corresponds to an integrated random walk, and the order-3 spline provides a locally quadratic trend. The dimension of the state underlying this component is the same as the order of the spline. The system matrices for the different orders are described below (in all the cases the initial condition is fully diffuse):
order-1 spline: 
, 
, and 
 
                        
order-2 spline: 
, 
, and 
 
                        
order-3 spline: 
, 
, and 
                        
| 
                                 
                                  | 
                              
                              
                           
There are two choices for the decay trend: DECAY and DECAY(OU). Similarly, there are two choices for the growth trend: GROWTH and GROWTH(OU). The “OU” stands for the Ornstein-Uhlenbeck form of these models. The decay trend is a sum of two correlated components: one component is a random walk, and the other component is a stationary autoregression. In its Ornstein-Uhlenbeck form, the random walk component is replaced by a constant. The growth trend (and its Ornstein-Uhlenbeck variant) has the same form as the decay trend except that the autorgression is nonstationary (in fact, it is explosive). For growth trend models, floating-point errors can result for even moderately long forecast horizons because of the explosive growth in the trend values.
The system matrices for the decay and the growth types in their respective cases are identical, except for the sign of the
                  rate parameter 
: 
 for the decay type, and 
 for the growth type. In addition, the initial conditions for the growth models are fully diffuse; they are only partially
                  diffuse for the decay models. The underlying state vector for all these models is two-dimensional. 
               
The system matrices for the DECAY type are:
| 
                            
                         | 
                         
                         
                     
                            
                         | 
                         
                         
                     
                            
                         | 
                         
                         
                     
                  
| 
                            
                         | 
                         
                         
                     
                            
                         | 
                         
                         
                     
                            
                         | 
                         
                         
                     
                  
| 
                            
                         | 
                         
                         
                     
                            
                         | 
                         
                         
                     
                            
                         | 
                         
                         
                     
                  
 The initial condition is partially diffuse with 
. The system matrices for the GROWTH type are the same (with 
), except that the initial condition is fully diffuse; so 
. 
               
For the DECAY(OU) type, 
 and 
 are the same as DECAY, whereas 
               
| 
                        
                         | 
                     
                     
                  
 The system matrices for the GROWTH(OU) type are the same (with 
), except that the initial condition is fully diffuse; so 
.