(Partial) Autocorrelation Functions and Plots

ACF (Autocorrelation Function) measures correlation between the series and its lagged values. PACF (Partial Autocorrelation Function) measures correlation at a lag after removing the effect of intermediate lags. These plots are commonly used for identifying AR/MA structure and for general time-series diagnostics.

Inputs

  • Input Data: A table containing at least one numeric column.

Key constraints

  • The selected Target Column must contain no missing values.
  • The Number of Lags must be less than the number of observations (nlags <= n-1).

Parameters

  • Target Column: Numeric column used to compute ACF/PACF.
  • Number of Lags: Maximum lag to compute. For seasonal data, lags that are multiples of the seasonal period are often informative.
  • Which Plot to Generate: ACF only, PACF only, or both.
  • Confidence Level: Confidence level for the correlation bounds (e.g., 0.95 → 95% intervals).
  • Adjusted Autocovariance: If enabled, uses n - lag in the autocovariance denominator; otherwise uses n.
  • PACF Calculation Method: Estimators include varions of Yule-Walker, OLS and Levinson-Durbin).

Outputs

  1. (P)ACF Values + Confidence Bounds: Table containing ACF and PACF values and their lower/upper confidence bounds for lags 0..nlags.
  2. Ljung-Box Q-statistic: Table containing Ljung-Box Q-statistics and p-values (computed from ACF), useful for testing residual autocorrelation.
  3. PACF/ACF Plot: SVG plot of ACF, PACF, or both.

Notes

  • Interpretation is context dependent: significant spikes may indicate lag structure, but non-stationarity and seasonality can also drive large correlations.

Options

Target Column

Numeric time series column used to compute ACF and/or PACF. Must contain no missing values.

Number of Lags

Number of lags to include in the ACF and PACF plots. For non-seasonal data, 20 to 45 lags are typically sufficient, provided the number of observations is large enough. For seasonal data, consider using a number of lags that is a multiple of the seasonal period (2 or 3 times the seasonal period is usually enough).

Which Plot to Generate

Select which plot(s) to generate: ACF, PACF, or both (default).

Available options:

  • Both: Generate both ACF and PACF plots.
  • ACF: Autocorrelation Function plot only.
  • PACF: Partial Autocorrelation Function plot only.
Plot Title

Title prefix for the plot(s). The node appends 'ACF - x lags' and/or 'PACF - x lags' depending on the plot selection.

Confidence Level

Confidence level for the ACF/PACF confidence bounds (e.g., 0.95 produces 95% bounds). Higher values produce wider bounds.

Adjusted Autocovariance

If True, then denominators for autocovariance are number of observations - lags, otherwise number of observations. Default is False.

PACF Calculation Method

Method to use for PACF calculation. Options include Yule-Walker, OLS, and Levinson-Durbin variants. Default is Yule-Walker with sample-size adjustment.

Available options:

  • Yule-Walker Adj: Yule-Walker with sample-size adjustment in denominator for autocovariances. Default method.
  • Yule-Walker No Adj: Yule-Walker without sample-size adjustment in denominator for autocovariances
  • OLS: Regression of time series on lags of it and on constant.
  • OLS Inefficient: Regression of time series on lags using a single common sample to estimate all pacf coefficients.
  • OLS Adjusted: Regression of time series on lags with a bias adjustment.
  • LD: Levinson-Durbin recursion with bias correction.
  • LDB: Levinson-Durbin recursion without bias correction.

Input Ports

Icon

Time series data table. The selected target column must be numeric and contain no missing values.

Output Ports

Icon

Table containing the PACF and ACF function values with upper and lower confidence bounds based on the specified confidence level. Length of the table corresponds to the number of lags specified + 1.

Icon

Table containing the Ljung-Box Q-statistic for autocorrelation parameters and p-values. Length of the table corresponds to the number of lags specified.

Icon

Partial Autocorrelation Function (PACF) and/or Autocorrelation Function (ACF) plot(s) showing the correlation structure of the selected time series data.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.