5D Library › Books › 5DL-B-039
高杠杆衍生品清算瀑布、订单簿深度衰竭与协整统计套利
奥恩斯坦-乌伦贝克过程与卡尔曼滤波动态对冲
Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage: Ornstein-Uhlenbeck Processes and Kalman-Filter Dynamic Hedging
DOI10.5281/zenodo.23796776摘要
一笔强制平仓卖单打穿薄薄的买盘,价格下跌又触发下一批强平;另一类交易者则寻找本该一起走的两种价格,在价差偏离时买一卖一。本书用同一套数学考察这两件事。依次讨论:凯尔模型中价格冲击系数 λ = √Σ₀/(2σᵤ) 的推导与模拟核对,平方根冲击律的实证(元订单的指数约 0.4—0.7,东京证券交易所全账户数据的平均值 0.489)及其范围,以及深度随距离衰减的订单簿在可见深度被吃光时的跳空;永续合约资金费的一般机制、逐仓强平价 P₀(1−1/L)/(1−m) 的推导(20 倍杠杆只容许约 4.5% 的下跌),以及一个「杠杆分布 × 订单簿深度」的连环清算玩具模型(同一杠杆组合,深度从 400 降到 100,2% 的冲击从 2.5% 的跌幅变成 17.0%);霍克斯自激点过程、分支比与临界判据、奥加塔稀疏化模拟与极大似然估计,关于市场是否接近临界的争论(没有自激、只有基线切换的数据也能拟合出 0.92 的分支比),以及作者把清算瀑布写成「有效分支比 n = ρ/d」的推导;奥恩斯坦—乌伦贝克过程的精确离散化、半衰期 ln2/θ 与短样本偏差(真实半衰期 40 天时,一年数据的中位估计只有 22 天);恩格尔—格兰杰协整检验必须使用麦金农残差临界值(用迪基—富勒的 −2.86 会使 14.8% 的无关随机游走被判为协整),配对交易收益的衰减与关系断裂;卡尔曼滤波动态对冲比率与滚动最小二乘的比较(在合成配对上,追踪对冲比率最准的设定交易净收益反而更低)。
核对后修正的要点包括:交子「首届发行额 1,256,340 缗、本钱 36 万缗」按《宋史·食货志》原文是每界的限额与每界所备本钱(约 28.65%);「平准均输的套利性质」只是类比;「市场处于临界」是有争议的估计;平方根律适用于元订单而非静态订单簿。八章与《盐铁论·本议》的平准均输之辩、《宋史·食货志》所记交子本钱、大观年间钱引「一缗当钱十数」与盐钞「出多虚钞」并读,并与戴蒙德—迪布维格挤兑模型作结构对照;最后给出一份四步核查表,以及一项「卡尔曼滤波对冲与 60 天滚动最小二乘对冲」的预注册前瞻性样本外检验方案(唯一主要结局为逐个配对—窗口的年化净收益差,最小关注效应每年 1 个百分点,需 513 个可分析的配对—窗口、31 个月度形成日共 620 个,判定规则写成代码)。书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序,全部核对)、原典与作者的假说。本书是教学与研究用的数学模型,不是投资、交易、税务或法律建议;杠杆与衍生品可能造成全部本金甚至超出本金的损失,回测与模拟不代表未来收益。
关键词:限价订单簿;价格冲击;凯尔λ;平方根冲击律;市场深度;永续合约;资金费率;逐仓保证金;强制平仓;清算瀑布;霍克斯过程;分支比;临界性;奥加塔稀疏化;奥恩斯坦-乌伦贝克过程;半衰期偏差;协整;恩格尔-格兰杰检验;配对交易;卡尔曼滤波
Abstract
A forced-liquidation sell order punches through a thin bid side, and the fall triggers the next batch of liquidations; another kind of trader looks for two prices that should move together and buys one and sells the other when their spread strays. This book examines both with one body of mathematics. It covers the derivation and simulated check of the price-impact coefficient λ = √Σ₀/(2σᵤ) in Kyle's model, the evidence for the square-root impact law (exponents of about 0.4–0.7 for metaorders, an average of 0.489 in complete account-level data from the Tokyo Stock Exchange) and its scope, and the gaps in a book whose depth decays with distance once its visible depth is used up; the general mechanism of funding in perpetual contracts, the derivation of the isolated-margin liquidation price P₀(1−1/L)/(1−m) (20 times leverage tolerates a fall of only about 4.5 %), and a toy model of chained liquidations driven by "leverage distribution × order-book depth" (with the same leverage mix, cutting depth from 400 to 100 turns a 2 % shock from a 2.5 % fall into a 17.0 % fall); Hawkes self-exciting point processes, the branching ratio and the criticality criterion, Ogata thinning and maximum-likelihood estimation, the dispute over whether markets are near criticality (data with no self-excitation, only baseline switches, can be fitted with a branching ratio of 0.92), and the author's derivation of liquidation cascades as an "effective branching ratio n = ρ/d"; the exact discretisation of the Ornstein–Uhlenbeck process, the half-life ln2/θ and its small-sample bias (with a true half-life of 40 days, the median estimate from one year of data is only 22 days); why the Engle–Granger cointegration test needs MacKinnon's residual critical values (with the Dickey–Fuller −2.86, 14.8 % of unrelated random walks look cointegrated), the decay of pairs-trading returns and broken relationships; and a comparison of Kalman-filter dynamic hedge ratios with rolling least squares (on synthetic pairs, the setting that tracks the hedge ratio best earns less after costs).
Claims corrected after checking include: the jiaozi's "first issue of 1,256,340 strings against a reserve of 360,000" are, in the History of Song, the cap per issue period and the reserve per period (about 28.65 %); the "arbitrage character" of price stabilisation and equitable transport is only an analogy; "markets are at criticality" is a disputed estimate; the square-root law applies to metaorders, not to a static order book. The eight chapters are read beside the debate on price stabilisation and equitable transport in the Discourses on Salt and Iron and the record in the History of Song of the jiaozi reserve, of qianyin "worth a dozen-odd coins a string" in the Daguan era and of salt vouchers depreciating through "too many empty vouchers", compared structurally with the Diamond–Dybvig model of runs. They end with a four-step checklist and a pre-registered, prospective out-of-sample test of Kalman-filter hedging against 60-day rolling least squares (single primary outcome the pair-window difference in annualised net return, smallest effect of interest 1 percentage point a year, 513 analysable and 620 planned pair-windows from 31 monthly formation dates, decision rule written as code). Marked boxes separate published evidence, runnable Python calculations (16 programs, all checked), classical sources and the author's hypotheses. 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.
Keywords: limit order book; price impact; Kyle lambda; square-root impact law; market depth; perpetual futures; funding rate; isolated margin; forced liquidation; liquidation cascade; Hawkes process; branching ratio; criticality; Ogata thinning; Ornstein-Uhlenbeck process; half-life bias; cointegration; Engle-Granger test; pairs trading; Kalman filter
目录 · Contents
- 序:一张订单簿,一条清算链,一对价差English 中文Preface: An Order Book, a Chain of Liquidations, a Spread
- 第一章 订单簿深度与价格冲击English 中文Chapter 1 Order-Book Depth and Price Impact
- 第二章 永续合约、资金费率与强制平仓English 中文Chapter 2 Perpetual Contracts, Funding and Forced Liquidation
- 第三章 清算瀑布、分支过程与霍克斯自激点过程English 中文Chapter 3 Liquidation Cascades, Branching Processes and Hawkes Self-Exciting Point Processes
- 第四章 奥恩斯坦—乌伦贝克过程:均值回复与它的估计English 中文Chapter 4 The Ornstein–Uhlenbeck Process: Mean Reversion and Its Estimation
- 第五章 协整、配对交易与关系断裂English 中文Chapter 5 Cointegration, Pairs Trading and Broken Relationships
- 第六章 卡尔曼滤波与动态对冲比率English 中文Chapter 6 The Kalman Filter and Dynamic Hedge Ratios
- 第七章 原典并读:平准均输、交子本钱与盐钞虚估English 中文Chapter 7 Reading the Classics: Price Stabilisation, the Jiaozi Reserve and Inflated Salt Vouchers
- 第八章 实践与预注册检验English 中文Chapter 8 Practice and a Pre-Registered Test
How to cite · 引用
Fan, Y. (2026). Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage: Ornstein-Uhlenbeck Processes and Kalman-Filter Dynamic Hedging [高杠杆衍生品清算瀑布、订单簿深度衰竭与协整统计套利] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23796776
BibTeX
@book{fan2026liquidation,
title = {{Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage}: Ornstein-Uhlenbeck Processes and Kalman-Filter Dynamic Hedging},
author = {Fan, Yafu},
year = {2026},
publisher = {5D Library},
edition = {Version 1.0.0},
doi = {10.5281/zenodo.23796776},
url = {https://doi.org/10.5281/zenodo.23796776},
note = {Chinese title: 高杠杆衍生品清算瀑布、订单簿深度衰竭与协整统计套利}
}
| DOI | https://doi.org/10.5281/zenodo.23796776 |
|---|---|
| DOI(全部版本 all versions) | https://doi.org/10.5281/zenodo.23796775 |
| ORCID | https://orcid.org/0009-0004-3519-1203 |
| 5D Library ID | 5DL-B-039 |
| 版本 Version | 1.0.0 · 中英双语版 Bilingual edition |
| 出版日期 Date | 2026-10-30 |
| 网址 Online | https://5dlibrary.com/books/liquidation-cascades-cointegration-arbitrage/ |
| SHA-256 · liquidation-cascades-cointegration-arbitrage_bilingual_v1.0.0.pdf | 93618a7f44cebdd9efda26713f3529af936f4a2fe5c0ef50f349b14edfb5d407 |
| SHA-256 · liquidation-cascades-cointegration-arbitrage_en_v1.0.0.pdf | 6eaadf80eb7c6ba5b3a1888ccc31b4568efc839baabc852654844c1081bc9a26 |
| SHA-256 · liquidation-cascades-cointegration-arbitrage_zh_v1.0.0.pdf | 4f2dd0d4a94e4812ef8cbfb93bf1595fcd334aa1861bec76f254f4a325cf3fc4 |
| Licence · 许可 | Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0). https://creativecommons.org/licenses/by-nc-nd/4.0/ |
Disclosure. The author uses the works of 5D Library, including this book, as the methodological basis of his community courses, the 5D Ascension Cards (Dimensional Shift Card Decks) and the Yafu AI knowledge base, and therefore has a commercial interest in the subject of this book. The book promotes no course, card deck or service; the Chapter 8 trial is designed to be run and analysed by researchers independent of the author's business and does not recruit from the author's community, students or customers; all the code and the study protocol are published openly for anyone to check. The author develops and maintains software tools for a priori analysis and quantitative research scripts based on the symbolic system of the sexagenary (ganzhi) calendar, and provides related open-source research and independent consulting services; while writing this book he may have held routine observation positions in US equity index funds (such as SPY) or related derivatives. All models in this book are offered solely for mathematical and historical-statistical discussion; they constitute no investment advice, trading signal or promise of divinatory prediction, and the book recommends no specific trade or asset.