Detecting Mean-Reverted Patterns in Algorithmic Pairs Trading
- 2.6k Downloads
This paper proposes a methodology for detecting mean-reverted segments of data streams in algorithmic pairs trading. Considering a state-space model that describes the spread (data stream) as the difference of the prices of two assets, we propose two new recursive least squares (RLS) algorithms for predicting mean-reversion of the spread in real time. The first is a combination of steepest descent RLS and Gauss–Newton RLS, for which we extend previous work by providing exact recursive equations to update the variable forgetting factor (VFF). We propose a new RLS algorithm for variable forgetting, by transforming the prediction errors into a binary process and adopting Bayesian methods for inference. The new approach is versatile as compared to more traditional RLS schemes, having the advantage of uncertainty analysis around the VFF. The methods are illustrated with real data, consisting of daily prices of Target Corporation and Walmart Stores Inc shares, over a period of 6 years. Alongside the detection of mean-reversion of the spread, we implement a simple trading strategy. The empirical results suggest that the new Bayesian approach returns are in excess of 130% cumulative profit over a period of 2 years.
KeywordsPairs trading Statistical arbitrage Mean-reversion Market-neutral trading Recursive least squares Variable forgetting factor Adaptive filtering
The paper has benefitted from discussions with Jeremy Oakley.
- 4.Haykin, S.: Adaptive Filter Theory, 4th edn. Prentice Hall, Englewood Cliffs (2001)Google Scholar
- 5.Lowenstein, R.: When Genius Failed: The Rise and Fall of Long-Term Capital Management. Random House, New York (2000)Google Scholar
- 7.Montana, G., Parrella, F.: In: Learning to Trade with Incremental Support Vector Regression Experts. Lecture Notes in Artificial Intelligence, vol. 5721, pp. 591–598. Springer, Berlin (2008)Google Scholar
- 9.Pole, A.: Statistical Arbitrage. Algorithmic Trading Insights and Techniques. Wiley, New Jersey (2007)Google Scholar
- 10.Pryor, M.: The Financial Spread Betting Handbook. Harriman, Petersfield, Great Britain (2007)Google Scholar
- 13.Vidyamurthy, G.: Pairs Trading. Wiley, New Jersey (2004)Google Scholar