What does Liquidation Cascades and Cointegration conclude, in numbers, about “Cointegration, Pairs Trading and Broken Relationships”?

Answer: Regressions between random walks produce spurious relationships; cointegration requires a stationary linear combination, and the Engle–Granger two-step test must use residual-based critical values (two variables with a constant, about −3.34 at 5 %, about −3.36 with 250 observations); using the ordinary Dickey–Fuller −2.86 pushes the error rate close to 15 %. Even with correct critical values, large-scale screening produces hundreds of false pairs, while one year of data has little power to detect genuine cointegration. Historical pairs-trading returns were real but have kept decaying and shrink sharply after costs. When a cointegrating relationship breaks, the rule's returns go to zero or below, and stops only trim the tail. The next chapter takes a different approach: instead of assuming a fixed hedge ratio, let it change over time.

Scope of the numbers: This book presents mathematical models for teaching and research and is not investment, trading, tax or legal advice; leverage and derivatives can lose all of the money put in and more, and backtests and simulations do not represent future returns. Marked boxes separate published evidence, runnable Python calculations (16 programs, all checked), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 250

two independent random walks, T250, 20,000 replications
reject 'no cointegration' at Dickey-Fuller -2.86 (wrong table)14.8%
reject 'no cointegration' at MacKinnon asymptotic -3.3365.0%
reject 'no cointegration' at MacKinnon T250 -3.361 : 4.7%
simulated 5 % critical value-3.339
screening 100 unrelated series (4,950 pairs), four universes:
[356, 224, 323, 351] pairs 'cointegrated' at 5 %
truly cointegrated, spread half-life 10 days: detected in 49.5%
truly cointegrated, spread half-life 40 days: detected in 8.7%
Show the full program
# Engle-Granger: OLS of y on x, then ADF (one lag) on the residuals. Residual critical
# values (MacKinnon 2010, N = 2, constant): 5 % -3.336; T = 250: -3.361.
import math, random
rng = random.Random(1987)
T = 250

def ols(ys, xs):                          # y = a + b x
    n = len(xs); mx, my = sum(xs) / n, sum(ys) / n
    sxy = sum((x - mx) * (y - my) for x, y in zip(xs, ys))
    b = sxy / sum((x - mx) ** 2 for x in xs)
    return my - b * mx, b

def adf_t(e):                             # regression without constant, one lag of de
    d = [e[i] - e[i - 1] for i in range(1, len(e))]
    Y, X1, X2 = d[1:], e[1:-1], d[:-1]
    s11 = sum(a * a for a in X1); s22 = sum(a * a for a in X2)
    s12 = sum(a * b for a, b in zip(X1, X2))
    s1y = sum(a * y for a, y in zip(X1, Y)); s2y = sum(a * y for a, y in zip(X2, Y))
    det = s11 * s22 - s12 * s12
    g = (s22 * s1y - s12 * s2y) / det; c = (s11 * s2y - s12 * s1y) / det
    rss = sum((y - g * a - c * b) ** 2 for y, a, b in zip(Y, X1, X2))
    return g / math.sqrt(rss / (len(Y) - 2) * s22 / det)

def eg(y, x):
    a, b = ols(y, x)
    return adf_t([v - a - b * u for v, u in zip(y, x)])

def walk(n):
    w = [0.0]
    for _ in range(n - 1): w.append(w[-1] + rng.gauss(0, 1))
    return w

R = 20000
null = sorted(eg(walk(T), walk(T)) for _ in range(R))
print(f"two independent random walks, T = {T}, {R:,} replications")
for name, cv in (("Dickey-Fuller -2.86 (wrong table)", -2.86),
                 ("MacKinnon asymptotic -3.336", -3.336),
                 ("MacKinnon T = 250 -3.361", -3.361)):
    rate = sum(t < cv for t in null) / R
    print(f"   reject 'no cointegration' at {name:34s}: {rate:5.1%}")
print(f"   simulated 5 % critical value: {null[R // 20]:.3f}")
counts = []
for _ in range(4):                        # four universes of 100 unrelated series
    w = [walk(T) for _ in range(100)]
    counts.append(sum(eg(w[i], w[j]) < -3.361
                      for i in range(100) for j in range(i + 1, 100)))
print(f"screening 100 unrelated series (4,950 pairs), four universes:")
print(f"   {counts} pairs 'cointegrated' at 5 %")
for hl in (10, 40):
    b = 0.5 ** (1 / hl); power = 0
    for _ in range(1000):
        x = walk(T); s = [rng.gauss(0, 1 / math.sqrt(1 - b * b))]
        for _ in range(T - 1): s.append(b * s[-1] + rng.gauss(0, 1))
        power += eg([u + v for u, v in zip(x, s)], x) < -3.361
    print(f"truly cointegrated, spread half-life {hl} days: detected in"
          f" {power / 1000:.1%}")

Single source and citation

Fan, Y. (2026). Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage (Version 1.0.0), Chapter 5: Cointegration, Pairs Trading and Broken Relationships. 5D Library. https://doi.org/10.5281/zenodo.23796776

DOI: 10.5281/zenodo.23796776 · Read the monograph · 5DL-B-039 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026039,
  author    = {Fan, Yafu},
  title     = {Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23796776},
  url       = {https://doi.org/10.5281/zenodo.23796776}
}

Other chapter answers in this book