ACTFIT

Options     Example     References

ACTFIT computes and prints a variety of goodness-of-fit statistics for the actual and predicted values of a series. Theil (references below) suggests using these statistics for evaluating an estimated time series equation or forecast.

ACTFIT (SILENT,TERSE) <actual series name> <predicted series name>  ;

After ACTFIT, give the name of the actual data series followed by the name of the fitted or predicted series.

Output

ACTFIT prints a title, the names of the series being compared, the time period (sample) over which they are compared, and then a variety of computed statistics on the comparison. These include the correlation of the two series, the mean square error, the mean absolute error, Theil's inequality coefficient (U), changes and percent changes in U, and a decomposition of the source of the discrepancies between the two series: differences in the mean, or differences in the variance.

The following scalar results are stored by ACTFIT:

variable

length

description

@R     

1

Correlation coefficient

@R2    

1

Correlation coefficient squared

@RMSE  

1

Root mean square error

@MSE   

1

Mean squared error

@MAE   

1

Mean absolute error

@ME    

1

Mean error

@RMSPE 

1

Root-Mean-Squared Percent Error

@MSPE  

1

Mean-Squared Percent Error  

@MAPE  

1

Mean Absolute Percent Error     

@MPE   

1

Mean Percent Error          

@BETA  

1

Regression coef. of Actual on Predicted

@U66   

1

Theil's U Inequality coef. (Changes)      U66

@U66P  

1

Theil's U Ineq. coef. (Percent changes)  U66P

@FBIAS 

1

Fraction of MSE due to Bias                  

@FDVAR 

1

Fraction of MSE due to different Variation   

@FDCOV 

1

Fraction of MSE due to difference Covariation

@FDB1  

1

(Alt.Decomp.) Frac. due to Diff. of BETA from 1

@FRES  

1

(Alt.Decomp.) Frac. due to Residual variance  

Note

U is defined differently in the 1961 and 1966 references. The 1966 definition is used in TSP Versions 4.0 and 4.1; under this definition U can be greater than one. In TSP Version 4.2 and above, both versions of U are printed. This output is followed by a time series residual plot of the two series if the PLOTS option is on (see the OPTIONS command). If the RESID option is on, the residual series will be stored under the name @RES, whether or not the PLOTS option is on.

Options

SILENT/NOSILENT suppresses all printed output.

TERSE/NOTERSE prints a reduced output.

Example

ACTFIT R RS ;

References

Theil, Henri, Economic Forecasts and Policy, North Holland Publishing Company, 1961.

Theil, Henri, Applied Economic Forecasting, North Holland Publishing Company, 1966.