pairs trading
3 posts
- Quant techniques · pairs trading
Correlated or cointegrated? Spurious regression and the Engle–Granger test
Regress one random walk on another, unrelated one, and you get a “significant” slope about 90% of the time. Prices that really belong together are cointegrated: some combination of them is stationary. The two-step Engle–Granger test tells the cases apart, if you use the right critical values.
- Quant techniques · state-space models
A hedge ratio that moves: the Kalman filter in five lines
Rolling regressions make you choose a window and still lag. A Kalman filter treats the hedge ratio as a hidden random walk, updates it one observation at a time, and picks its own memory from the noise levels. Here is the filter, why it works, and how to tune it.
- Quant techniques · mean reversion
Mean reversion in one regression: the Ornstein–Uhlenbeck half-life
A pairs-trading spread is usually modelled as an Ornstein–Uhlenbeck process. Regress daily changes on levels and you get its speed, its half-life and its trading bands. Then see why that regression makes the spread look more mean-reverting than it is.