Stat Arb Cointegration

Screen, test and trade a cointegrated pair without counting the trials wrong, applying the single-series ADF table to a fitted residual, or estimating the hedge ratio on the window you score it in. TRIGGER - cointegration, Engle-Granger, statsmodels coint, coint_johansen, Johansen, trace statistic, max eigenvalue, VECM, cointegrating vector; pairs trading, statistical arbitrage, stat arb, spread, hedge ratio, spread z-score, entry and exit thresholds, half-life, Ornstein-Uhlenbeck, OU mean reversion; adfuller on the residual, CollinearityWarning, "my screen found 30 cointegrated pairs", "the spread stopped mean reverting", "in-sample Sharpe 2 and it lost money live". SKIP for a time-varying hedge ratio by Kalman filter (state-space-and-kalman), for the multiple-testing machinery itself and PSR/DSR (backtest-validation), for regime labels (regime-detection), and for the cost of trading two legs (execution-cost-analysis).

howard-lynn-ye Updated 1 repo stars

File contents

howard-lynn-ye/fin-skills commit 97f814753b

Frequently asked questions

npx get-skill add howard-lynn-ye/stat-arb-cointegration