StatLabStudent EditionUser guideGalleryFeaturesAbout

Autocorrelations

Shows how strongly a series is correlated with its own past values (ACF) and after removing shorter lags (PACF), with the Ljung-Box test of white noise.

Menu: Analyze → Forecasting → Autocorrelations…

When should I use it?

What are the assumptions?

How do I run it in StatLab?

  1. Choose the series, the number of lags and the standard-error method.
  2. Use Difference / Seasonally difference to look at the ACF of a differenced series when identifying an ARIMA model.

How do I read the output?

OutputMeaning
AutocorrelationCorrelation with the series k steps earlier.
Box-Ljung StatisticJoint test that all autocorrelations up to lag k are zero.

Worked example

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

PROC tsAcf /vars=(score age) /lags=16 /se=independence /pacf=YES /d=0 /D=0 /period=12.

Output tables: Autocorrelations · Partial Autocorrelations · Autocorrelations · Partial Autocorrelations.

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