IDEAS home Printed from https://ideas.repec.org/a/taf/quantf/v16y2016i10p1559-1573.html
   My bibliography  Save this article

A pairs trading strategy based on linear state space models and the Kalman filter

Author

Listed:
  • Carlos Eduardo de Moura
  • Adrian Pizzinga
  • Jorge Zubelli

Abstract

Among many strategies for financial trading, pairs trading has played an important role in practical and academic frameworks. Loosely speaking, it involves a statistical arbitrage tool for identifying and exploiting the inefficiencies of two long-term, related financial assets. When a significant deviation from this equilibrium is observed, a profit might result. In this paper, we propose a pairs trading strategy entirely based on linear state space models designed for modelling the spread formed with a pair of assets. Once an adequate state space model for the spread is estimated, we use the Kalman filter to calculate conditional probabilities that the spread will return to its long-term mean. The strategy is activated upon large values of these conditional probabilities: the spread is bought or sold accordingly. Two applications with real data from the US and Brazilian markets are offered, and even though they probably rely on limited evidence, they already indicate that a very basic portfolio consisting of a sole spread outperforms some of the main market benchmarks.

Suggested Citation

  • Carlos Eduardo de Moura & Adrian Pizzinga & Jorge Zubelli, 2016. "A pairs trading strategy based on linear state space models and the Kalman filter," Quantitative Finance, Taylor & Francis Journals, vol. 16(10), pages 1559-1573, October.
  • Handle: RePEc:taf:quantf:v:16:y:2016:i:10:p:1559-1573
    DOI: 10.1080/14697688.2016.1164886
    as

    Download full text from publisher

    File URL: http://hdl.handle.net/10.1080/14697688.2016.1164886
    Download Restriction: Access to full text is restricted to subscribers.

    File URL: https://libkey.io/10.1080/14697688.2016.1164886?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Durbin, James & Koopman, Siem Jan, 2012. "Time Series Analysis by State Space Methods," OUP Catalogue, Oxford University Press, edition 2, number 9780199641178.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Baoqiang Zhan & Shu Zhang & Helen S. Du & Xiaoguang Yang, 2022. "Exploring Statistical Arbitrage Opportunities Using Machine Learning Strategy," Computational Economics, Springer;Society for Computational Economics, vol. 60(3), pages 861-882, October.
    2. Choi, Gahyun & Park, Kwangyeol & Yi, Eojin & Ahn, Kwangwon, 2023. "Price fairness: Clean energy stocks and the overall market," Chaos, Solitons & Fractals, Elsevier, vol. 168(C).
    3. Matthew Clegg & Christopher Krauss, 2018. "Pairs trading with partial cointegration," Quantitative Finance, Taylor & Francis Journals, vol. 18(1), pages 121-138, January.
    4. Adrian Pizzinga & Marcelo Fernandes, 2021. "Extensions to the invariance property of maximum likelihood estimation for affine‐transformed state‐space models," Journal of Time Series Analysis, Wiley Blackwell, vol. 42(3), pages 355-371, May.
    5. Trent Spears & Stefan Zohren & Stephen Roberts, 2023. "On statistical arbitrage under a conditional factor model of equity returns," Papers 2309.02205, arXiv.org.
    6. Clegg, Matthew & Krauss, Christopher, 2016. "Pairs trading with partial cointegration," FAU Discussion Papers in Economics 05/2016, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    7. Chu, Gang & Zhang, Wei & Sun, Guofeng & Zhang, Xiaotao, 2019. "A new online portfolio selection algorithm based on Kalman Filter and anti-correlation," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 536(C).
    8. Guang Zhang, 2020. "Pairs Trading with Nonlinear and Non-Gaussian State Space Models," Papers 2005.09794, arXiv.org.
    9. Kasper Johansson & Thomas Schmelzer & Stephen Boyd, 2024. "Finding Moving-Band Statistical Arbitrages via Convex-Concave Optimization," Papers 2402.08108, arXiv.org.
    10. Sana Ben Abdallah & Dhafer Saidane & Mihaly Petreczky, 2023. "Application of Robust Control for CSR Formalization and Stakeholders Interest," Computational Economics, Springer;Society for Computational Economics, vol. 62(3), pages 891-934, October.
    11. Michael Sekatchev & Zhengxiang Zhou, 2024. "Stochastic Approaches to Asset Price Analysis," Papers 2407.06745, arXiv.org.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Avanzi, Benjamin & Taylor, Greg & Vu, Phuong Anh & Wong, Bernard, 2020. "A multivariate evolutionary generalised linear model framework with adaptive estimation for claims reserving," Insurance: Mathematics and Economics, Elsevier, vol. 93(C), pages 50-71.
    2. François R. Velde, 2009. "Chronicle of a Deflation Unforetold," Journal of Political Economy, University of Chicago Press, vol. 117(4), pages 591-634, August.
    3. Wen Xu, 2016. "Estimation of Dynamic Panel Data Models with Stochastic Volatility Using Particle Filters," Econometrics, MDPI, vol. 4(4), pages 1-13, October.
    4. Alejandro Rodriguez & Esther Ruiz, 2009. "Bootstrap prediction intervals in state–space models," Journal of Time Series Analysis, Wiley Blackwell, vol. 30(2), pages 167-178, March.
    5. Parrini, Alessandro, 2013. "Importance Sampling for Portfolio Credit Risk in Factor Copula Models," MPRA Paper 103745, University Library of Munich, Germany.
    6. Jean-Luc Gaffard, 2014. "Crise de la théorie et crise de la politique économique. Des modèles d'équilibre général stochastique aux modèles de dynamique hors de l'équilibre," Revue économique, Presses de Sciences-Po, vol. 65(1), pages 71-96.
    7. Salman Huseynov, 2021. "Long and short memory in dynamic term structure models," CREATES Research Papers 2021-15, Department of Economics and Business Economics, Aarhus University.
    8. Tsionas, Mike G., 2021. "Bayesian forecasting with the structural damped trend model," International Journal of Production Economics, Elsevier, vol. 234(C).
    9. Tommaso Proietti, 2002. "Some Reflections on Trend-Cycle Decompositions with Correlated Components," Econometrics 0209002, University Library of Munich, Germany.
    10. Tobias Hartl & Roland Jucknewitz, 2022. "Approximate state space modelling of unobserved fractional components," Econometric Reviews, Taylor & Francis Journals, vol. 41(1), pages 75-98, January.
    11. Broto Carmen & Ruiz Esther, 2009. "Testing for Conditional Heteroscedasticity in the Components of Inflation," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 13(2), pages 1-30, May.
    12. Marczak, Martyna & Proietti, Tommaso, 2016. "Outlier detection in structural time series models: The indicator saturation approach," International Journal of Forecasting, Elsevier, vol. 32(1), pages 180-202.
    13. Oreste Napolitano & Alberto Montagnoli, 2010. "The European Unemployment Gap and the Role of Monetary Policy," Economics Bulletin, AccessEcon, vol. 30(2), pages 1346-1358.
    14. Joshua Chan & Arnaud Doucet & Roberto León-González & Rodney W. Strachan, 2018. "Multivariate Stochastic Volatility with Co-Heteroscedasticity," Working Paper series 18-38, Rimini Centre for Economic Analysis.
    15. Siem Jan Koopman & Joao Valle e Azevedo, 2003. "Measuring Synchronisation and Convergence of Business Cycles," Tinbergen Institute Discussion Papers 03-052/4, Tinbergen Institute.
    16. Aruoba, S. BoraÄŸan & Diebold, Francis X. & Scotti, Chiara, 2009. "Real-Time Measurement of Business Conditions," Journal of Business & Economic Statistics, American Statistical Association, vol. 27(4), pages 417-427.
    17. Omar H. M. N. Bashar, 2015. "The Trickle‐down Effect of the Mining Boom in Australia: Fact or Myth?," The Economic Record, The Economic Society of Australia, vol. 91(S1), pages 94-108, June.
    18. Funke, Michael & Tsang, Andrew, 2019. "The direction and intensity of China's monetary policy conduct: A dynamic factor modelling approach," BOFIT Discussion Papers 8/2019, Bank of Finland Institute for Emerging Economies (BOFIT).
    19. Blasques, Francisco & van Brummelen, Janneke & Gorgi, Paolo & Koopman, Siem Jan, 2024. "Maximum Likelihood Estimation for Non-Stationary Location Models with Mixture of Normal Distributions," Journal of Econometrics, Elsevier, vol. 238(1).
    20. Pelagatti, Matteo & Maranzano, Paolo, 2021. "Assessing the effectiveness of the Italian risk-zones policy during the second wave of COVID-19," Health Policy, Elsevier, vol. 125(9), pages 1188-1199.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:taf:quantf:v:16:y:2016:i:10:p:1559-1573. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Chris Longhurst (email available below). General contact details of provider: http://www.tandfonline.com/RQUF20 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.