The UCM Procedure 
Statistics of Fit 
This section explains the goodnessoffit statistics reported to measure how well the specified model fits the data.
First the various statistics of fit that are computed using the prediction errors, , are considered. In these formulas, n is the number of nonmissing prediction errors and k is the number of fitted parameters in the model. Moreover, the sum of squared errors, , and the total sum of squares for the series corrected for the mean, , where is the series mean, and the sums are over all the nonmissing prediction errors.
Mean Absolute Percent Error
The mean absolute percent prediction error, MAPE = .
The summation ignores observations where .
Rsquare
The Rsquare statistic, .
If the model fits the series badly, the model error sum of squares, SSE, might be larger than SST and the Rsquare statistic will be negative.
Random Walk Rsquare
The random walk Rsquare statistic (Harvey’s Rsquare statistic that uses the random walk model for comparison), , where , and
Maximum Percent Error
The largest percent prediction error, . In this computation the observations where are ignored.
The likelihoodbased fit statistics are reported separately (see the section The UCMs as State Space Models). They include the full log likelihood (), the diffuse part of the log likelihood, the normalized residual sum of squares, and several information criteria: AIC, AICC, HQIC, BIC, and CAIC. Let denote the number of estimated parameters, be the number of nonmissing measurements in the estimation span, and be the number of diffuse elements in the initial state vector that are successfully initialized during the Kalman filtering process. Moreover, let . The reported information criteria, all in smallerisbetter form, are described in Table 29.4:
Criterion 
Formula 
Reference 

AIC 

Akaike (1974) 
AICC 

Hurvich and Tsai (1989) 
Burnham and Anderson (1998) 

HQIC 

Hannan and Quinn (1979) 
BIC 

Schwarz (1978) 
CAIC 

Bozdogan (1987) 
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.