ARIMA Procedure

Example 7.5 Using Diagnostics to Identify ARIMA Models

(View the complete code for this example.)

Fitting ARIMA models is as much an art as it is a science. The ARIMA procedure has diagnostic options to help tentatively identify the orders of both stationary and nonstationary ARIMA processes.

Consider the Series A in Box, Jenkins, and Reinsel (1994), which consists of 197 concentration readings taken every two hours from a chemical process. Let Series A be a data set that contains these readings in a variable named X. The following SAS statements use the SCAN option of the IDENTIFY statement to generate Output 7.5.1 and Output 7.5.2. For more information about the SCAN method, see the section The SCAN Method.

/*-- Order Identification Diagnostic with SCAN Method --*/
proc arima data=SeriesA;
   identify var=x scan;
run;

Output 7.5.1: Example of SCAN Tables

SERIES A: Chemical Process Concentration Readings

The ARIMA Procedure

Squared Canonical Correlation Estimates
LagsMA 0MA 1MA 2MA 3MA 4MA 5
AR 00.32630.24790.16540.13870.11830.1417
AR 10.06430.00120.0028<.00010.00510.0002
AR 20.00610.00270.00210.00110.00170.0079
AR 30.0072<.00010.00070.00050.00190.0021
AR 40.00490.00100.00140.00140.00390.0145
AR 50.02020.00090.0016<.00010.01260.0001

SCAN Chi-Square[1] Probability Values
LagsMA 0MA 1MA 2MA 3MA 4MA 5
AR 0<.0001<.0001<.00010.00070.00370.0024
AR 10.00030.66490.51940.92350.39930.8528
AR 20.27540.51060.58600.73460.67820.2766
AR 30.23490.98120.76670.78610.68100.6546
AR 40.32970.71540.71130.69950.58070.2205
AR 50.04770.72540.66520.95760.26600.9168


In Output 7.5.1, there is one (maximal) rectangular region in which all the elements are insignificant with 95% confidence. This region has a vertex at (1,1). Output 7.5.2 gives recommendations based on the significance level specified by the ALPHA=siglevel option.

Output 7.5.2: Example of SCAN Option Tentative Order Selection

ARMA(p+d,q)
Tentative
Order Selection
Tests
SCAN
p+dq
11

(5% Significance Level)



Another order identification diagnostic is the extended sample autocorrelation function or ESACF method. For more information about the ESACF method, see the section The ESACF Method.

The following statements generate Output 7.5.3 and Output 7.5.4:

/*-- Order Identification Diagnostic with ESACF Method --*/
proc arima data=SeriesA;
   identify var=x esacf;
run;

Output 7.5.3: Example of ESACF Tables

SERIES A: Chemical Process Concentration Readings

The ARIMA Procedure

Extended Sample Autocorrelation Function
LagsMA 0MA 1MA 2MA 3MA 4MA 5
AR 00.57020.49510.39800.35570.32690.3498
AR 1-0.39070.0425-0.0605-0.0083-0.0651-0.0127
AR 2-0.2859-0.2699-0.04490.0089-0.0509-0.0140
AR 3-0.5030-0.01060.0946-0.0137-0.0148-0.0302
AR 4-0.4785-0.01760.0827-0.0244-0.0149-0.0421
AR 5-0.3878-0.4101-0.16510.0103-0.1741-0.0231

ESACF Probability Values
LagsMA 0MA 1MA 2MA 3MA 4MA 5
AR 0<.0001<.00010.00010.00140.00530.0041
AR 1<.00010.59740.46220.91980.42920.8768
AR 2<.00010.00020.61060.91820.56830.8592
AR 3<.00010.90220.24000.87130.89300.7372
AR 4<.00010.83800.31800.77370.89130.6213
AR 5<.0001<.00010.07650.91420.10380.8103


In Output 7.5.3, there are three right-triangular regions in which all elements are insignificant at the 5% level. The triangles have vertices (1,1), (3,1), and (4,1). Since the triangle at (1,1) covers more insignificant terms, it is recommended first. Similarly, the remaining recommendations are ordered by the number of insignificant terms contained in the triangle. Output 7.5.4 gives recommendations based on the significance level specified by the ALPHA=siglevel option.

Output 7.5.4: Example of ESACF Option Tentative Order Selection

ARMA(p+d,q)
Tentative
Order Selection
Tests
ESACF
p+dq
11
31
41

(5% Significance Level)



If you also specify the SCAN option in the same IDENTIFY statement, the two recommendations are printed side by side:

/*-- Combination of SCAN and ESACF Methods --*/
proc arima data=SeriesA;
   identify var=x scan esacf;
run;

Output 7.5.5 shows the results.

Output 7.5.5: Example of SCAN and ESACF Option Combined

SERIES A: Chemical Process Concentration Readings

The ARIMA Procedure

ARMA(p+d,q) Tentative
Order Selection
Tests
SCANESACF
p+dqp+dq
1111
  31
  41

(5% Significance Level)



From Output 7.5.5, the autoregressive and moving-average orders are tentatively identified by both SCAN and ESACF tables to be left-parenthesis p plus d comma q right-parenthesis equals (1,1). Because both the SCAN and ESACF indicate a p plus d term of 1, a unit root test should be used to determine whether this autoregressive term is a unit root. Since a moving-average term appears to be present, a large autoregressive term is appropriate for the augmented Dickey-Fuller test for a unit root.

Submitting the following statements generates Output 7.5.6:

/*-- Augmented Dickey-Fuller Unit Root Tests --*/
proc arima data=SeriesA;
   identify var=x stationarity=(adf=(5,6,7,8));
run;

Output 7.5.6: Example of STATIONARITY Option Output

SERIES A: Chemical Process Concentration Readings

The ARIMA Procedure

Augmented Dickey-Fuller Unit Root Tests
TypeLagsRhoPr < RhoTauPr < TauFPr > F
Zero Mean50.04030.69130.420.8024  
 60.04790.69310.630.8508  
 70.03760.69070.490.8200  
 80.03540.69010.480.8175  
Single Mean5-18.45500.0150-2.670.08213.670.1367
 6-10.89390.1043-2.020.27672.270.4931
 7-10.92240.1035-1.930.31722.000.5605
 8-10.29920.1208-1.830.36501.810.6108
Trend5-18.43600.0871-2.660.25613.540.4703
 6-10.84360.3710-2.010.59392.040.7694
 7-10.74270.3773-1.900.65191.910.7956
 8-10.03700.4236-1.790.70811.740.8293


The preceding test results show that a unit root is very likely given that none of the p-values are small enough to cause you to reject the null hypothesis that the series has a unit root. Based on this test and the previous results, the series should be differenced, and an ARIMA(0,1,1) would be a good choice for a tentative model for Series A.

Using the recommendation that the series be differenced, the following statements generate Output 7.5.7:

/*-- Minimum Information Criterion --*/
proc arima data=SeriesA;
   identify var=x(1) minic;
run;

Output 7.5.7: Example of MINIC Table

SERIES A: Chemical Process Concentration Readings

The ARIMA Procedure

Minimum Information Criterion
LagsMA 0MA 1MA 2MA 3MA 4MA 5
AR 0-2.05761-2.3497-2.32358-2.31298-2.30967-2.28528
AR 1-2.23291-2.32345-2.29665-2.28644-2.28356-2.26011
AR 2-2.23947-2.30313-2.28084-2.26065-2.25685-2.23458
AR 3-2.25092-2.28088-2.25567-2.23455-2.22997-2.20769
AR 4-2.25934-2.2778-2.25363-2.22983-2.20312-2.19531
AR 5-2.2751-2.26805-2.24249-2.21789-2.19667-2.17426


The error series is estimated by using an AR(7) model, and the minimum of this MINIC table is upper B upper I upper C left-parenthesis 0 comma 1 right-parenthesis. This diagnostic confirms the previous result which indicates that an ARIMA(0,1,1) is a tentative model for Series A.

If you also specify the SCAN or MINIC option in the same IDENTIFY statement as follows, the BIC associated with the SCAN table and ESACF table recommendations is listed. Output 7.5.8 shows the results.

/*-- Combination of MINIC, SCAN and ESACF Options --*/
proc arima data=SeriesA;
   identify var=x(1) minic scan esacf;
run;

Output 7.5.8: Example of SCAN, ESACF, MINIC Options Combined

SERIES A: Chemical Process Concentration Readings

The ARIMA Procedure

ARMA(p+d,q) Tentative Order Selection
Tests
SCANESACF
p+dqBICp+dqBIC
01-2.349701-2.3497
   11-2.32345

(5% Significance Level)



Last updated: June 19, 2025