StatLabStudent EditionUser guideGalleryFeaturesAbout

ARIMA models

Fits an ARIMA(p,d,q)(P,D,Q) model by exact maximum likelihood and forecasts the series with prediction intervals.

Menu: Analyze → Forecasting → ARIMA…

When should I use it?

What are the assumptions?

How do I run it in StatLab?

  1. Tick 'Identification' and look at the ACF/PACF of the (differenced) series: a PACF cut-off suggests AR order p, an ACF cut-off suggests MA order q.
  2. Enter p, d, q (and P, D, Q with the periodicity for seasonal data), choose the constant and the number of forecast periods.
  3. Check the residual ACF and the Ljung-Box Q(18): a non-significant result means no structure is left.
  4. Add independent variables (predictors) with optional delays; they need values in the forecast period (leave the series blank there).
  5. Tick 'Detect outliers' to find additive outliers and level shifts automatically.

How do I read the output?

OutputMeaning
ARIMA Model ParametersEstimates with SE, t and Sig.; MA terms use the Box-Jenkins sign (1 − θB).
Model FitStationary R², RMSE, MAPE, normalized BIC — compare candidate models with BIC (lower is better).
Ljung-Box Q(18)Test for remaining autocorrelation in the residuals.
Forecast / UCL / LCLPoint forecasts with prediction limits that widen with the horizon.
Numerator, Lag 0Effect of a predictor on the series (regression with ARIMA errors).
OutliersCase, type (additive = one-off spike, level shift = permanent step), estimate and t.

Worked example

On the practice survey dataset (File → Sample dataset), this command — which the dialog's Paste button also produces — runs the procedure:

PROC tsArima /v=score /p=1 /d=0 /q=0 /P=0 /D=0 /Q=0 /s=12 /constant=YES /forecast=12 /conf=95 /preds=(age pre) /outliers=NO /crit=3.5 /ident=NO /racf=NO /save=NO.

Output tables: Model Description · Model Fit statistics · Model Statistics · ARIMA Model Parameters.

How would I report it in APA style?

An ARIMA(1,0,0) model with constant was fitted by exact maximum likelihood (stationary R² = .26, RMSE = 6.92). AR Lag 1: 0.092, p = .263; Age (years) Numerator, Lag 0: 0.191, p < .001; Pre-test score Numerator, Lag 0: 0.257, p < .001. The Ljung-Box test on the residuals did not indicate remaining autocorrelation, Q(17) = 22.91, p = .152.

Computed by StatLab's validated procedure code when this page was built. The example only illustrates the steps; choose variables that fit your own research question.

What are common mistakes?

Open StatLab   All guide topics