关于「奥恩斯坦—乌伦贝克过程:均值回复与它的估计」,《清算瀑布与协整套利》给出的定量结论是什么?
结论:OU 过程 \(\mathrm{d}X = \theta(\mu - X)\mathrm{d}t + \sigma\mathrm{d}W\) 可以精确离散化为 AR(1),半衰期为 \(\ln 2/\theta\),极大似然估计就是 AR(1) 回归。欧拉捷径在 \(\theta h\) 不小时会低估回复速率。短样本中,AR(1) 系数被低估约 \((1+3b)/n\),半衰期被系统地低估;真实半衰期 40 天时,一年数据的中位估计只有 22 天,而纯随机游走也有近四成的机会显示出不到 30 天的半衰期。下一章讨论如何检验「两个价格之间存在一个均值回复的组合」:协整。
数据口径:本书是教学与研究用的数学模型,不是投资、交易、税务或法律建议;杠杆与衍生品可能造成全部本金甚至超出本金的损失,回测与模拟不代表未来收益。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序,全部核对)、原典与作者的假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 30, 40
| HL | days | b | mean b_hat (theory) | median HL | HL < 0.7 x true | middle 95 % | |
| 10 | | 120 | 0.933 | 0.8997 (0.9014) | 7.1 | 48.6% | 3.0- 18.4 |
| 10 | | 250 | 0.933 | 0.9181 (0.9178) | 8.4 | 28.6% | 4.6- 16.8 |
| 10 | 1000 | 0.933 | | 0.9291 (0.9292) | 9.5 | 3.9% | 6.8- 13.2 |
| 40 | | 120 | 0.983 | 0.9429 (0.9499) | 14.0 | 81.1% | 4.0-120.1 |
| 40 | | 250 | 0.983 | 0.9650 (0.9670) | 22.0 | 65.5% | 7.7- 89.0 |
| 40 | 1000 | 0.983 | | 0.9787 (0.9789) | 34.0 | 28.7% | 18.5- 65.4 |
| random walk, 250 days | 37.9% of samples show a half-life under 30 days |
核心公式
\[\mathrm{d}X_t = \theta(\mu - X_t)\,\mathrm{d}t + \sigma\,\mathrm{d}W_t.\]
查看完整验算程序
# Small-sample bias of the AR(1)/OU estimate, mean estimated:
# E[b_hat] - b ~ -(1 + 3 b) / n (Marriott & Pope 1954; Kendall 1954).
import math, random
rng = random.Random(1954)
def ar1_hat(xs):
x, y = xs[:-1], xs[1:]; n = len(x)
mx, my = sum(x) / n, sum(y) / n
sxy = sum((p - mx) * (q - my) for p, q in zip(x, y))
return sxy / sum((p - mx) ** 2 for p in x)
def path(b, n):
xs = [rng.gauss(0, 1 / math.sqrt(1 - b * b)) if b < 1 else 0.0]
for _ in range(n): xs.append(b * xs[-1] + rng.gauss(0, 1))
return xs
print("HL | days | b | mean b_hat (theory) | median HL | HL < 0.7 x true"
" | middle 95 %")
for hl in (10, 40):
b = 0.5 ** (1 / hl)
for n in (120, 250, 1000):
bs = sorted(ar1_hat(path(b, n)) for _ in range(2000))
hls = sorted(math.log(2) / -math.log(x) if 0 < x < 1 else 1e9 for x in bs)
short = sum(h < 0.7 * hl for h in hls) / len(hls)
mb, th = sum(bs) / len(bs), b - (1 + 3 * b) / n
print(f"{hl:2d} | {n:4d} | {b:.3f} | {mb:.4f} ({th:.4f}) |"
f" {hls[1000]:6.1f} | {short:5.1%} |"
f" {hls[50]:5.1f}-{min(hls[1949], 999):5.1f}")
# A random walk (b = 1): how often does one year show a "half-life" under 30 days?
fake = [ar1_hat(path(1.0, 250)) for _ in range(2000)]
hl_fake = [math.log(2) / -math.log(x) for x in fake if 0 < x < 1]
print(f"random walk, 250 days: {sum(h < 30 for h in hl_fake) / len(fake):.1%} of samples"
f" show a half-life under 30 days")唯一数据源与引用
范雅福(Fan, Y.). (2026). 《高杠杆衍生品清算瀑布、订单簿深度衰竭与协整统计套利》第 4 章「奥恩斯坦—乌伦贝克过程:均值回复与它的估计」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23796776
DOI: 10.5281/zenodo.23796776 · 阅读本章所在专著 · 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}
}