Skip to content

Reading ACF and PACF

Recognize AR, MA, seasonal and non-stationary signatures in autocorrelation plots, and understand what the significance band can and can't tell you.

Applied ~11 min10 steps

What runs in CodeSplash

You will be able to

  • Distinguish the ACF from the PACF
  • Match AR, MA and mixed processes to their signatures
  • Read seasonal spikes and slow decay as signs to act on

Read first

01

Two views of memory

Read

The ACF shows the correlation between yty_t and yt−ky_{t-k}, including everything that passes through the lags in between.

The PACF shows the correlation between yty_t and yt−ky_{t-k} after removing what the shorter lags already explain.

If today depends only on yesterday, then today and two days ago still correlate through yesterday. The ACF shows this. The PACF doesn't.

02

Predict a signature

Predict

Predict first

A series follows an AR(1): yt=ϕ yt−1+ety_t = \phi\, y_{t-1} + e_t.

What do you expect its two plots to look like?

ACF drops to zero after lag 1; PACF decaysACF decays; PACF drops to zero after lag 1Both drop to zero after lag 1
Reveal

The ACF decays steadily, as ϕk\phi^k, since memory passes through each step. The PACF has one spike at lag 1 and then little, because once you've used yesterday, older days add nothing.

03

Make the signatures

Explore

DExplorable · ACF and PACF signatures

Can you tell what kind of process made a series from its autocorrelations?

These settings define the process. Which signature will its ACF and PACF show?

How sure?
0.70
0.00
0.00
300

ACF

PACF

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

Try each setting, and describe what you see before moving on:

  1. ϕ1\phi_1 high, the others zero.
  2. Only θ\theta non-zero.
  3. A negative ϕ1\phi_1. What pattern do the bars make?
  4. All zero. How many bars cross the band by chance?
04

The signature table

Read
ProcessACFPACF
White noiseNo spikesNo spikes
AR(pp)DecaysCuts off after lag pp
MA(qq)Cuts off after lag qqDecays
ARMADecaysDecays
Seasonal, period mmSpikes at m,2m,…m, 2m, \dotsSpikes near mm
Non-stationaryDecays very slowlyLarge spike at lag 1

Real data are rarely this tidy, so use these as hints for a shortlist. Then compare the candidates with a backtest.

05

Read a real plot

In the app
Randomness and serial-dependence testsRecorded · Python and R agreeRecorded 2026-11-17 · 22 values compared
R

Runs test z = -6.47, p < .001; Bartels rank z = -9.35, p < .001; Turning points z = -3.64, p < .001; von Neumann ratio z = -9.65, p < .001; Ljung–Box Q = 161.99, p < .001; McLeod–Li Q = 48.95, p < .001; ARCH LM = 44.11, p < .001

Runs test z
−6.469
p
9.897e-11

Plots

Autocorrelation of ar1Is the series autocorrelated, and at which lags (seasonality, AR order)?
View data
ar1
−0.4250
1.219
0.2020
1.143
1.697
1.334
1.462
1.251
0.2316
0.5952
−1.872
−0.5941
0.3111
−0.1341
0.4192
−1.666
0.4987
−0.1621
0.7605
2.646
1.156
−0.1409
1.716
−0.0456
−0.7597
−0.5606
−1.727
−2.224
−2.179
0.3599
−0.2623
−0.4415
−1.350
−2.075
−1.176
−0.7529
−1.467
−3.162
−3.024
−2.120
−1.922
−1.820
−1.500
−0.5368
−0.6994
−0.5904
2.038
−0.2871
−0.0107
1.875
0.7885
0.1344
0.0554
−0.7248
1.049
1.447
1.034
0.3486
1.127
0.9216

First 60 of 240 rows.

Ljung–Box p by lag: ar1Up to which lag is the series (or a model's residuals) indistinguishable from white noise?
View data
ar1
−0.4250
1.219
0.2020
1.143
1.697
1.334
1.462
1.251
0.2316
0.5952
−1.872
−0.5941
0.3111
−0.1341
0.4192
−1.666
0.4987
−0.1621
0.7605
2.646
1.156
−0.1409
1.716
−0.0456
−0.7597
−0.5606
−1.727
−2.224
−2.179
0.3599
−0.2623
−0.4415
−1.350
−2.075
−1.176
−0.7529
−1.467
−3.162
−3.024
−2.120
−1.922
−1.820
−1.500
−0.5368
−0.6994
−0.5904
2.038
−0.2871
−0.0107
1.875
0.7885
0.1344
0.0554
−0.7248
1.049
1.447
1.034
0.3486
1.127
0.9216

First 60 of 240 rows.

Randomness tests

TestSensitive toStatisticdfpAt α = .05
Runs test zclustering or alternation−6.469—< .001not random
Bartels rank ztrend or serial dependence−9.347—< .001not random
Turning points ztoo few or many peaks and troughs−3.637—< .001not random
von Neumann ratio zsuccessive values too alike or too different−9.646—< .001not random
Ljung–Box Qautocorrelation161.9910< .001not random
McLeod–Li Qautocorrelation of squares (volatility)48.95210< .001not random
ARCH LMvolatility clustering44.1064< .001not random
  • Portmanteau tests use 10 lags.
  • Several tests on one series inflate false alarms: a single rejection at p near .05 is weak evidence.
The exact R script · R R version 4.5.1 (2025-06-13)
# Randomness and serial-dependence tests
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method ts.randomness 1.1.1 · spec a875ea3a466b6526
# Dataset: ts_truth (version 1)
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.

# %% Setup
library(codesplashr)

# %% Data
df <- as.data.frame(nanoparquet::read_parquet("tests/parity/fixtures/ts_truth.parquet", col_select = c("ar1", "month")))
n_input <- nrow(df)
df <- df[stats::complete.cases(df[c("ar1", "month")]), , drop = FALSE]  # listwise deletion
df[] <- lapply(df, function(x) if (is.factor(x)) droplevels(x) else x)
n_dropped <- n_input - nrow(df)
warnings <- list()
if (n_dropped > 0) {
  warnings <- c(warnings, cs_warning("CS_W_ROWS_DROPPED", dropped = n_dropped, total = n_input))
}
if (n_input > 0 && nrow(df) == 0) cs_error("CS_E_NO_ROWS")
cs_check_finite_columns(df, c("ar1", "month"))  # infinite values stop the run (registry/errors.yaml)

# %% Series
VALUE <- "ar1"
TIME <- "month"
TEMPORAL <- TRUE
TEST <- "battery"
LAG <- NULL
FITDF <- 0
WM_CORRECTION <- "always"
ARCH_LAGS <- 4
BDS_DIM <- 2
BDS_DIST <- 1.5
s <- cs_ts_ordered(df, VALUE, TIME, TEMPORAL)
x <- s$x
n <- length(x)
if (s$dups > 0) warnings <- c(warnings, sprintf("%d repeated time values: the tests assume one observation per evenly spaced time.", s$dups))
lag <- if (!is.null(LAG)) as.integer(LAG) else max(1L, min(10L, n %/% 5L))
if (TEST %in% c("ljung_box", "box_pierce", "battery") && lag - FITDF < 1) {
  stop(sprintf("Portmanteau tests need more lags (%d) than the model's degrees of freedom (%d); use at least %d lags.", as.integer(lag), as.integer(FITDF), as.integer(FITDF + 1)))
}
LABELS <- list(runs = "Runs test z", bartels = "Bartels rank z", wallis_moore = "Wallis–Moore z", turning_points = "Turning points z",
               von_neumann = "von Neumann ratio z", ljung_box = "Ljung–Box Q", box_pierce = "Box–Pierce Q", mcleod_li = "McLeod–Li Q",
               arch = "ARCH LM", bds = "BDS z", battery = "Battery")
LOOKS <- list(runs = "clustering or alternation", bartels = "trend or serial dependence", wallis_moore = "too few or many rises and falls",
              turning_points = "too few or many peaks and troughs", von_neumann = "successive values too alike or too different",
              ljung_box = "autocorrelation", box_pierce = "autocorrelation", mcleod_li = "autocorrelation of squares (volatility)",
              arch = "volatility clustering", bds = "any dependence, including nonlinear")
run_test <- function(t) switch(t,
  runs = cs_ts_runs(x), bartels = cs_ts_bartels(x), wallis_moore = cs_ts_wallis_moore(x, WM_CORRECTION), turning_points = cs_ts_turning_points(x),
  von_neumann = cs_ts_von_neumann(x), ljung_box = cs_ts_portmanteau(x, lag, "ljung", FITDF), box_pierce = cs_ts_portmanteau(x, lag, "box", FITDF),
  mcleod_li = cs_ts_mcleod_li(x, lag), arch = cs_ts_arch_lm(x, ARCH_LAGS), cs_ts_bds(x, BDS_DIM, BDS_DIST))

# %% Tests
tests <- if (TEST == "battery") c("runs", "bartels", "turning_points", "von_neumann", "ljung_box", "mcleod_li", "arch") else TEST
# The shortest series each test can use (the portmanteau tests need more values than lags, the ARCH regression
# more rows than coefficients), and a series that varies (registry/errors.yaml; the same checks in Python).
MIN_N <- c(runs = 3, bartels = 3, wallis_moore = 3, turning_points = 3, von_neumann = 3, ljung_box = lag + 2,
           box_pierce = lag + 2, mcleod_li = lag + 2, arch = 2 * ARCH_LAGS + 2, bds = BDS_DIM + 2)
cs_check_rows(n, max(MIN_N[tests]), "The randomness tests")
cs_check_not_constant(x, VALUE)
res <- lapply(stats::setNames(tests, tests), run_test)
rows <- lapply(tests, function(t) list(test = LABELS[[t]], looks_for = LOOKS[[t]], statistic = res[[t]]$stat, df = res[[t]]$df, p = res[[t]]$p,
                                       verdict = if (res[[t]]$p < 0.05) "not random" else "no evidence"))
values <- list(n_obs = n, test = TEST, test_label = LABELS[[TEST]], lag = lag)
main <- res[[tests[1]]]
values$stat <- main$stat
values$p <- main$p
values$reject <- as.integer(main$p < 0.05)
if (!is.null(main$df)) values$df <- main$df
if (TEST == "runs") values$runs <- main$runs
if (TEST == "battery") {
  for (t in tests) {
    values[[paste0(t, "_stat")]] <- res[[t]]$stat
    values[[paste0(t, "_p")]] <- res[[t]]$p
  }
  values$n_reject <- sum(vapply(tests, function(t) res[[t]]$p < 0.05, logical(1)))
  flagged <- unlist(lapply(tests, function(t) if (res[[t]]$p < 0.05) LOOKS[[t]]))
  summary <- paste0(sprintf("%d of %d randomness tests reject at α = .05 for %s (%d observations)", values$n_reject, length(tests), VALUE, n),
                    if (length(flagged)) paste0(": ", paste(flagged, collapse = "; "), ".") else " — consistent with independent noise.")
} else {
  summary <- paste0(sprintf("%s for %s: %.3f, %s — ", LABELS[[TEST]], VALUE, main$stat, cs_fmt_p(main$p)),
                    if (main$p < 0.05) sprintf("evidence of %s.", LOOKS[[TEST]]) else "no evidence against randomness.")
}
charts <- list(cs_chart("acf", "acf", sprintf("Autocorrelation of %s", VALUE), list(y = cs_col(VALUE, x))),
               cs_chart("lb", "ljung-box-p", sprintf("Ljung–Box p by lag: %s", VALUE), list(y = cs_col(VALUE, x)), controls = list(fitdf = FITDF)))
cs_publish(list(
  method = "ts.randomness",
  methodVersion = "1.1.1",
  title = "Randomness and serial-dependence tests",
  engine = cs_engine_info("stats", "nanoparquet"),
  n = n,
  summary = summary,
  apa = paste(vapply(rows, function(r) sprintf("%s = %.2f, %s", r$test, r$statistic, cs_fmt_p(r$p)), ""), collapse = "; "),
  statistics = list(list(key = "stat", label = LABELS[[tests[1]]], value = main$stat), list(key = "p", label = "p", value = main$p)),
  tables = list(list(
    key = "tests", title = "Randomness tests",
    columns = list(list(key = "test", label = "Test", type = "string"), list(key = "looks_for", label = "Sensitive to", type = "string"),
                   list(key = "statistic", label = "Statistic", type = "number"), list(key = "df", label = "df", type = "integer"),
                   list(key = "p", label = "p", type = "pvalue"), list(key = "verdict", label = "At α = .05", type = "string")),
    rows = rows
  )),
  effectSizes = list(),
  assumptions = list(),
  warnings = warnings,
  notes = list(paste0(sprintf("Portmanteau tests use %d lags", lag), if (FITDF > 0) sprintf(" and %d model degrees of freedom", FITDF) else "", "."),
               "Several tests on one series inflate false alarms: a single rejection at p near .05 is weak evidence."),
  charts = charts,
  values = values
))
Python

Runs test z = -6.47, p < .001; Bartels rank z = -9.35, p < .001; Turning points z = -3.64, p < .001; von Neumann ratio z = -9.65, p < .001; Ljung–Box Q = 161.99, p < .001; McLeod–Li Q = 48.95, p < .001; ARCH LM = 44.11, p < .001

Runs test z
−6.469
p
9.897e-11

To keep this page light, the plots are shown once, under the R tab.

Randomness tests

TestSensitive toStatisticdfpAt α = .05
Runs test zclustering or alternation−6.469—< .001not random
Bartels rank ztrend or serial dependence−9.347—< .001not random
Turning points ztoo few or many peaks and troughs−3.637—< .001not random
von Neumann ratio zsuccessive values too alike or too different−9.646—< .001not random
Ljung–Box Qautocorrelation161.9910< .001not random
McLeod–Li Qautocorrelation of squares (volatility)48.95210< .001not random
ARCH LMvolatility clustering44.1064< .001not random
  • Portmanteau tests use 10 lags.
  • Several tests on one series inflate false alarms: a single rejection at p near .05 is weak evidence.
The exact Python script · Python Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0
# Randomness and serial-dependence tests
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method ts.randomness 1.1.1 · spec a875ea3a466b6526
# Dataset: ts_truth (version 1)
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.

# %% Setup
import numpy as np
import pandas as pd

import codesplash as cs
from codesplash.errors import check_not_constant
from codesplash.stats import ts

# %% Data
df = pd.read_parquet("tests/parity/fixtures/ts_truth.parquet", columns=["ar1", "month"])
n_input = len(df)
df = df.dropna(subset=["ar1", "month"])  # listwise deletion over the analysis columns
n_dropped = n_input - len(df)
warnings = []
if n_dropped:
    warnings.append(cs.cs_warning("CS_W_ROWS_DROPPED", dropped=n_dropped, total=n_input))
if n_input and not len(df):
    cs.cs_error("CS_E_NO_ROWS")
cs.check_finite_columns(df, ["ar1", "month"])  # infinite values stop the run (registry/errors.yaml)

# %% Series
VALUE = "ar1"
TIME = "month"
TEMPORAL = True
TEST = "battery"
LAG = None
FITDF = 0
WM_CORRECTION = "always"
ARCH_LAGS = 4
BDS_DIM = 2
BDS_DIST = 1.5
s = ts.ordered(df, VALUE, TIME, TEMPORAL)
x = s["x"]
n = len(x)
if s["dups"]:
    warnings.append(f"{s['dups']} repeated time values: the tests assume one observation per evenly spaced time.")
lag = int(LAG) if LAG is not None else max(1, min(10, n // 5))
if TEST in ("ljung_box", "box_pierce", "battery") and lag - FITDF < 1:
    raise ValueError(f"Portmanteau tests need more lags ({lag}) than the model's degrees of freedom ({FITDF}); use at least {FITDF + 1} lags.")
LABELS = {"runs": "Runs test z", "bartels": "Bartels rank z", "wallis_moore": "Wallis–Moore z", "turning_points": "Turning points z",
          "von_neumann": "von Neumann ratio z", "ljung_box": "Ljung–Box Q", "box_pierce": "Box–Pierce Q", "mcleod_li": "McLeod–Li Q",
          "arch": "ARCH LM", "bds": "BDS z", "battery": "Battery"}
LOOKS = {"runs": "clustering or alternation", "bartels": "trend or serial dependence", "wallis_moore": "too few or many rises and falls",
         "turning_points": "too few or many peaks and troughs", "von_neumann": "successive values too alike or too different",
         "ljung_box": "autocorrelation", "box_pierce": "autocorrelation", "mcleod_li": "autocorrelation of squares (volatility)",
         "arch": "volatility clustering", "bds": "any dependence, including nonlinear"}


def run(t):
    if t == "runs":
        return ts.runs_test(x)
    if t == "bartels":
        return ts.bartels(x)
    if t == "wallis_moore":
        return ts.wallis_moore(x, WM_CORRECTION)
    if t == "turning_points":
        return ts.turning_points(x)
    if t == "von_neumann":
        return ts.von_neumann(x)
    if t == "ljung_box":
        return ts.portmanteau(x, lag, "ljung", FITDF)
    if t == "box_pierce":
        return ts.portmanteau(x, lag, "box", FITDF)
    if t == "mcleod_li":
        return ts.mcleod_li(x, lag)
    if t == "arch":
        return ts.arch_lm(x, ARCH_LAGS)
    return ts.bds(x, BDS_DIM, BDS_DIST)


# %% Tests
tests = ["runs", "bartels", "turning_points", "von_neumann", "ljung_box", "mcleod_li", "arch"] if TEST == "battery" else [TEST]
# The shortest series each test can use (the portmanteau tests need more values than lags, the ARCH regression
# more rows than coefficients), and a series that varies (registry/errors.yaml; the same checks in R).
MIN_N = {"runs": 3, "bartels": 3, "wallis_moore": 3, "turning_points": 3, "von_neumann": 3, "ljung_box": lag + 2,
         "box_pierce": lag + 2, "mcleod_li": lag + 2, "arch": 2 * ARCH_LAGS + 2, "bds": BDS_DIM + 2}
cs.check_rows(n, max(MIN_N[t] for t in tests), "The randomness tests")
check_not_constant(x, VALUE)
res = {t: run(t) for t in tests}
rows = [{"test": LABELS[t], "looks_for": LOOKS[t], "statistic": res[t]["stat"], "df": res[t].get("df"), "p": res[t]["p"],
         "verdict": "not random" if res[t]["p"] < 0.05 else "no evidence"} for t in tests]
values = {"n_obs": n, "test": TEST, "test_label": LABELS[TEST], "lag": lag}
main = res[tests[0]]
values.update({"stat": main["stat"], "p": main["p"], "reject": int(main["p"] < 0.05)})
if main.get("df") is not None:
    values["df"] = main["df"]
if TEST == "runs":
    values["runs"] = main["runs"]
if TEST == "battery":
    for t in tests:
        values[f"{t}_stat"] = res[t]["stat"]
        values[f"{t}_p"] = res[t]["p"]
    values["n_reject"] = sum(1 for t in tests if res[t]["p"] < 0.05)
    flagged = [LOOKS[t] for t in tests if res[t]["p"] < 0.05]
    summary = (f"{values['n_reject']} of {len(tests)} randomness tests reject at α = .05 for {VALUE} ({n} observations)"
               + (": " + "; ".join(flagged) + "." if flagged else " — consistent with independent noise."))
else:
    summary = f"{LABELS[TEST]} for {VALUE}: {main['stat']:.3f}, {cs.fmt_p(main['p'])} — " + (f"evidence of {LOOKS[TEST]}." if main["p"] < 0.05 else "no evidence against randomness.")
kind = "temporal" if TEMPORAL else "numeric"
charts = [cs.chart("acf", "acf", f"Autocorrelation of {VALUE}", {"y": cs.col(VALUE, x)}),
          cs.chart("lb", "ljung-box-p", f"Ljung–Box p by lag: {VALUE}", {"y": cs.col(VALUE, x)}, controls={"fitdf": FITDF})]
cs.publish({
    "method": "ts.randomness",
    "methodVersion": "1.1.1",
    "title": "Randomness and serial-dependence tests",
    "engine": cs.engine_info("pandas", "numpy", "scipy"),
    "n": n,
    "summary": summary,
    "apa": "; ".join(f"{r['test']} = {r['statistic']:.2f}, {cs.fmt_p(r['p'])}" for r in rows),
    "statistics": [{"key": "stat", "label": LABELS[tests[0]], "value": main["stat"]}, {"key": "p", "label": "p", "value": main["p"]}],
    "tables": [{
        "key": "tests", "title": "Randomness tests",
        "columns": [{"key": "test", "label": "Test", "type": "string"}, {"key": "looks_for", "label": "Sensitive to", "type": "string"},
                    {"key": "statistic", "label": "Statistic", "type": "number"}, {"key": "df", "label": "df", "type": "integer"},
                    {"key": "p", "label": "p", "type": "pvalue"}, {"key": "verdict", "label": "At α = .05", "type": "string"}],
        "rows": rows,
    }],
    "effectSizes": [],
    "assumptions": [],
    "warnings": warnings,
    "notes": [f"Portmanteau tests use {lag} lags" + (f" and {FITDF} model degrees of freedom" if FITDF else "") + ".",
              "Several tests on one series inflate false alarms: a single rejection at p near .05 is weak evidence."],
    "charts": charts,
    "values": values,
})

Look at the Autocorrelation chart. Which lags stand out? Does this look more like a decay or a cut-off?

Now look at the Ljung–Box p by lag chart. At what lag does the evidence for dependence become strong?

06

The band isn't a verdict

Predict

Predict first

The dashed band is about ±1.96/T\pm 1.96/\sqrt{T}. If you plot 20 lags of pure white noise, how many bars do you expect outside it?

NoneAbout oneAbout five
Reveal

About one, since 5% of 20 is 1. A single bar outside the band at an odd lag, such as 7, deserves little weight. A bar at the seasonal lag deserves more, because you had a reason to look there.

07

What will you do with the plot?

Reflect

The band assumes white noise. Under an AR process, the bars at later lags have wider uncertainty, so it isn't exact.

When you see slow decay, what's your first step: try a model, or check stationarity? Why? Write down your answer, and compare it when you reach the next lesson.

08

Check your understanding

Checkpoint

Check yourself

With T=100T = 100 values, what is the half-width of the approximate 95% band, 1.96/T1.96 / \sqrt{T}?

Show the answer

Answer: 0.196

1.96/10=0.1961.96 / 10 = 0.196.

Check yourself

The ACF has one large spike at lag 1 and nothing else. The PACF decays. What should you try first?

Show the answer

Answer: b

A sharp cut-off in the ACF and a decay in the PACF is the MA(1) signature.

Check yourself

The ACF is 0.97, 0.95, 0.93 and falls very slowly over 20 lags. What does that suggest?

Show the answer

Answer: c

Slow decay is the classic sign of non-stationarity. Test it, and difference if needed, before you read the signatures.

09

Do it in CodeSplash

In the app

Autocorrelation charts appear with the randomness and unit-root tests. Forecast residuals use the same idea: a good model leaves no pattern.

Python
import pandas as pd
from statsmodels.graphics.tsaplots import plot_acf, plot_pacf

df = pd.read_csv("series.csv")
plot_acf(df["value"], lags=24)
plot_pacf(df["value"], lags=24)
R
df <- read.csv("series.csv")
acf(df$value, lag.max = 24)
pacf(df$value, lag.max = 24)

Notebook exercise · ~8 min

Autocorrelation in code

Compute the lag-1 autocorrelation of the Nile's flow and the band an ACF plot draws, the way both libraries define them.

  1. The lag-1 autocorrelation

    Store the sample autocorrelation of x at lag 1 in r1, as acf() defines it: deviations from the overall mean, and the lag-1 sum divided by the sum of squares of the whole series.

    Show a solution
    Python
    r1 = acf(x, nlags=1, fft=False)[1]
    R
    r1 <- acf(x, lag.max = 1, plot = FALSE)$acf[2]
  2. The white-noise band

    An ACF plot draws dashed lines at ±1.96 / √n: under white noise, about 95% of the sample autocorrelations fall inside them. Store the band's upper edge in band.

    Show a solution
    Python
    band = 1.96 / np.sqrt(n)
    R
    band <- 1.96 / sqrt(n)

In the app this opens as a Python or R notebook with the sample data, and its checks mark your progress.

10

Recap

Recap
  • The ACF includes indirect links. The PACF removes what shorter lags explain.
  • AR processes cut off in the PACF, and MA processes in the ACF.
  • Spikes at multiples of the period mean seasonality. Slow decay means check stationarity.
  • With many lags, some bars cross the band by chance.