Skip to content

DTime series · ts.randomness

Randomness and serial-dependence tests

Is the series (or a model's residuals) just random noise, or does it carry runs, trends, autocorrelation, volatility clustering or nonlinear structure?

Runs above and below the median, Bartels rank, Wallis–Moore phases, turning points, von Neumann ratio, Box–Pierce and Ljung–Box portmanteau, McLeod–Li, ARCH LM and the BDS test of i.i.d. — one at a time or as a battery that reads each kind of departure from randomness.

Verified in Python and R Python and R agree to 10 decimals Also called runs test, Wald-Wolfowitz runs, Bartels test…

A real result

Example “Battery white noise”, recorded in both engines. In the app, “Try this example” loads it into Analyze.

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

Runs test z = 0.91, p = .365; Bartels rank z = 0.38, p = .707; Turning points z = 0.97, p = .330; von Neumann ratio z = 0.77, p = .440; Ljung–Box Q = 8.74, p = .557; McLeod–Li Q = 19.25, p = .037; ARCH LM = 12.51, p = .014

Runs test z
0.9056
p
0.3652

Plots

Autocorrelation of white_noiseIs the series autocorrelated, and at which lags (seasonality, AR order)?
View data
white_noise
0.2740
−0.1581
0.2012
1.002
−0.3188
−0.0540
1.259
−0.8742
0.4343
−1.159
−0.6030
0.6557
−0.0975
−1.159
0.1470
−0.0478
−1.064
−0.2931
−0.4380
−0.4016
1.522
−0.1217
−1.526
0.7239
−0.9991
2.088
1.123
0.9391
0.8723
0.7839
−0.4039
0.2029
−0.7618
1.176
−0.2773
0.3084
1.066
−0.4970
0.0464
−0.5603
0.4396
−1.042
0.0725
−0.2518
−0.0689
−2.454
−0.2056
0.0711
0.1655
−0.2585
0.3485
1.420
0.9025
0.8410
−0.7922
−1.178
0.0866
1.892
0.5380
−0.3651

First 60 of 240 rows.

Ljung–Box p by lag: white_noiseUp to which lag is the series (or a model's residuals) indistinguishable from white noise?
View data
white_noise
0.2740
−0.1581
0.2012
1.002
−0.3188
−0.0540
1.259
−0.8742
0.4343
−1.159
−0.6030
0.6557
−0.0975
−1.159
0.1470
−0.0478
−1.064
−0.2931
−0.4380
−0.4016
1.522
−0.1217
−1.526
0.7239
−0.9991
2.088
1.123
0.9391
0.8723
0.7839
−0.4039
0.2029
−0.7618
1.176
−0.2773
0.3084
1.066
−0.4970
0.0464
−0.5603
0.4396
−1.042
0.0725
−0.2518
−0.0689
−2.454
−0.2056
0.0711
0.1655
−0.2585
0.3485
1.420
0.9025
0.8410
−0.7922
−1.178
0.0866
1.892
0.5380
−0.3651

First 60 of 240 rows.

Randomness tests

TestSensitive toStatisticdfpAt α = .05
Runs test zclustering or alternation0.9056—.365no evidence
Bartels rank ztrend or serial dependence0.3758—.707no evidence
Turning points ztoo few or many peaks and troughs0.9733—.330no evidence
von Neumann ratio zsuccessive values too alike or too different0.7729—.440no evidence
Ljung–Box Qautocorrelation8.74110.557no evidence
McLeod–Li Qautocorrelation of squares (volatility)19.24610.037not random
ARCH LMvolatility clustering12.5074.014not random
  • Portmanteau tests use 10 lags.
  • Several tests on one series inflate false alarms: a single rejection at p near .05 is weak evidence.
Python

Runs test z = 0.91, p = .365; Bartels rank z = 0.38, p = .707; Turning points z = 0.97, p = .330; von Neumann ratio z = 0.77, p = .440; Ljung–Box Q = 8.74, p = .557; McLeod–Li Q = 19.25, p = .037; ARCH LM = 12.51, p = .014

Runs test z
0.9056
p
0.3652

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

Randomness tests

TestSensitive toStatisticdfpAt α = .05
Runs test zclustering or alternation0.9056—.365no evidence
Bartels rank ztrend or serial dependence0.3758—.707no evidence
Turning points ztoo few or many peaks and troughs0.9733—.330no evidence
von Neumann ratio zsuccessive values too alike or too different0.7729—.440no evidence
Ljung–Box Qautocorrelation8.74110.557no evidence
McLeod–Li Qautocorrelation of squares (volatility)19.24610.037not random
ARCH LMvolatility clustering12.5074.014not random
  • Portmanteau tests use 10 lags.
  • Several tests on one series inflate false alarms: a single rejection at p near .05 is weak evidence.

Do it in CodeSplash Run it on your own data, in Python or R, with the code to prove it.

Worked examples in the app

  • Battery white noisets_truth · time: month · value: white_noise
  • Battery ar1ts_truth · time: month · value: ar1
  • Runs trendts_truth · value: trend_stationary
  • Bartels nileml_nile · time: year · value: flow
  • Wallis moore noisets_truth · time: month · value: white_noise
  • Wallis moore trendts_truth · time: month · value: white_noise
  • Wallis moore trend smallc3_dixon · value: series
  • Box pierce lakehuronts_lakehuron · time: year · value: level

In the guides

Tests from the statistics guide this method runs

Where it sits in the decision guides

  • Time series (ARIMA, ETS) · DS & ML Decision Guide · Predict — forecast or classify outcomes

What you need

Seriesnumeric · 1 column
The values over time, or residuals from a model.
Timetemporal / numeric · 0–1 column
Orders the rows (omit to use the row order).

Choices you make

hypothesis

Testdefault battery

H₀: the values are independent and identically distributed (in time order).

  • Battery (runs, Bartels, turning points, von Neumann, Ljung–Box, McLeod–Li, ARCH)(default) — Each test looks for a different kind of departure; read them together.
  • Runs above / below the median — Too few runs = clustering or trend; too many = alternation.
  • Bartels rank (von Neumann on ranks) — Uses successive differences of ranks; a strong general test against trends and autocorrelation.
  • Wallis–Moore phase frequency — Counts rising and falling phases (excluding the first and last).
  • Turning points — Counts peaks and troughs; catches cycles, but has low power against trends.
  • von Neumann ratio — Mean squared successive difference over the variance; assumes normal values.
  • Ljung–Box Q — Tests several autocorrelations together; the standard check on a series or residuals.
  • Box–Pierce Q — The original portmanteau; Ljung–Box has better small-sample size.
  • McLeod–Li (Ljung–Box on squares) — Runs Ljung–Box on squared values; pick it to find volatility clustering.
  • ARCH LM — Engle's test for autoregressive conditional heteroscedasticity.
  • BDS (i.i.d. against any dependence) — Brock–Dechert–Scheinkman correlation-integral test; sensitive to nonlinear dependence and chaos.

options

Portmanteau lagsdefault —

Autocorrelations summed by Ljung–Box, Box–Pierce and McLeod–Li.

Degrees of freedom used by a fitted modeldefault 0

For residuals of an ARMA(p, q) model enter p + q; the χ² df become lags − fitdf.

Wallis–Moore conventiondefault always

How the Wallis–Moore normal approximation counts values and applies the 0.5 continuity correction.

  • Correct at every n, ties dropped(default) — n counts the values left after dropping ties; the correction is applied at every sample size (conservative).
  • As trend::wm.test — n is the number of values and the correction is applied only up to 30 values, as R's trend package does.
ARCH lagsdefault 4

Lags of squared residuals in the ARCH LM test for changing volatility.

BDS embedding dimensiondefault 2

Embedding dimension for the BDS test of hidden nonlinear structure.

BDS ε (× sd)default 1.5

Distance ε for the BDS test, as a multiple of the series' standard deviation.

What it reports

n_obs
How many independent units the analysis used; it sets precision and power.
stat
A single number that summarizes how far your data are from what H₀ predicts.
p
How surprising your data would be if the null hypothesis were true, as a probability.
reject
A p-value below the chosen α; it says the data are hard to explain by chance alone, not that the effect matters.

Per group, level or term: test, test_label, df, lag, n_reject, runs, <test>_stat, <test>_p

Python and R

Python and R agree to 10 decimals (relative tolerance 1e-10). Python uses pandas, numpy, scipy, codesplash; R uses stats, nanoparquet, codesplashr.

Default traps between the two languages

  • Same twin in both engines (normal and χ² reference distributions). Runs drop values equal to the median (as tseries / randtests); ARCH LM does not demean (Engle; FinTS::ArchTest default).
  • Wallis–Moore: the default counts n after dropping ties and applies the 0.5 continuity correction at every n; the `trend` convention reproduces trend::wm.test and the Academy bench (n = number of values, correction only for n ≤ 30).
Python

The exact script CodeSplash ran for example “Battery white noise” · 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 9fb366354bac4990
# 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=["white_noise", "month"])
n_input = len(df)
df = df.dropna(subset=["white_noise", "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, ["white_noise", "month"])  # infinite values stop the run (registry/errors.yaml)

# %% Series
VALUE = "white_noise"
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,
})
R

The exact script CodeSplash ran for example “Battery white noise” · 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 9fb366354bac4990
# 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("white_noise", "month")))
n_input <- nrow(df)
df <- df[stats::complete.cases(df[c("white_noise", "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("white_noise", "month"))  # infinite values stop the run (registry/errors.yaml)

# %% Series
VALUE <- "white_noise"
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
))

Sources

  • Wald, A., & Wolfowitz, J. (1940). On a test whether two samples are from the same population. Ann. Math. Statist., 11, 147–162.
  • Bartels, R. (1982). The rank version of von Neumann's ratio test for randomness. JASA, 77, 40–46.
  • Wallis, W. A., & Moore, G. H. (1941). A significance test for time series analysis. JASA, 36, 401–409.
  • Box, G. E. P., & Pierce, D. A. (1970). Distribution of residual autocorrelations in ARIMA time series models. JASA, 65, 1509–1526.
  • Ljung, G. M., & Box, G. E. P. (1978). On a measure of lack of fit in time series models. Biometrika, 65, 297–303.
  • Brock, W. A., Dechert, W. D., Scheinkman, J. A., & LeBaron, B. (1996). A test for independence based on the correlation dimension. Econometric Reviews, 15, 197–235.
  • McLeod, A. I., & Li, W. K. (1983). Diagnostic checking ARMA time series models using squared-residual autocorrelations. J. Time Series Analysis, 4, 269–273.
  • Engle, R. F. (1982). Autoregressive conditional heteroscedasticity with estimates of the variance of United Kingdom inflation. Econometrica, 50, 987–1007.

From the CodeSplash method registry · ts.randomness v1.1.1.