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, Decembrie.
    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.

    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. Victor Bystrov, 2018. "Measuring the Natural Rates of Interest in Germany and Italy," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 10(4), pages 333-353, December.
    2. Yukai Yang & Luc Bauwens, 2018. "State-Space Models on the Stiefel Manifold with a New Approach to Nonlinear Filtering," Econometrics, MDPI, vol. 6(4), pages 1-22, December.
    3. Fernández-Macho, Javier, 2008. "Spectral estimation of a structural thin-plate smoothing model," Computational Statistics & Data Analysis, Elsevier, vol. 53(1), pages 189-195, September.
    4. Drew Creal & Siem Jan Koopman & Eric Zivot, 2008. "The Effect of the Great Moderation on the U.S. Business Cycle in a Time-varying Multivariate Trend-cycle Model," Tinbergen Institute Discussion Papers 08-069/4, Tinbergen Institute.
    5. 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.
    6. 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.
    7. Chen, Peimin & Wu, Chunchi, 2014. "Default prediction with dynamic sectoral and macroeconomic frailties," Journal of Banking & Finance, Elsevier, vol. 40(C), pages 211-226.
    8. repec:zbw:bofitp:2019_008 is not listed on IDEAS
    9. Yue Zhao & Difang Wan, 2018. "Institutional high frequency trading and price discovery: Evidence from an emerging commodity futures market," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 38(2), pages 243-270, February.
    10. Wen Xu, 2016. "Estimation of Dynamic Panel Data Models with Stochastic Volatility Using Particle Filters," Econometrics, MDPI, vol. 4(4), pages 1-13, October.
    11. Scott Brave & R. Andrew Butters & Alejandro Justiniano, 2016. "Forecasting Economic Activity with Mixed Frequency Bayesian VARs," Working Paper Series WP-2016-5, Federal Reserve Bank of Chicago.
    12. Eric Heyer & Frédéric Reynès & Henri Sterdyniak, 2004. "Observable and unobservable variables in the theory of the equilibrium rate of unemployment, a comparison between France and the United States," Working Papers hal-01027420, HAL.
    13. Hári, Norbert & De Waegenaere, Anja & Melenberg, Bertrand & Nijman, Theo E., 2008. "Estimating the term structure of mortality," Insurance: Mathematics and Economics, Elsevier, vol. 42(2), pages 492-504, April.
    14. Brave, Scott A. & Gascon, Charles & Kluender, William & Walstrum, Thomas, 2021. "Predicting benchmarked US state employment data in real time," International Journal of Forecasting, Elsevier, vol. 37(3), pages 1261-1275.
    15. 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.
    16. Parrini, Alessandro, 2013. "Importance Sampling for Portfolio Credit Risk in Factor Copula Models," MPRA Paper 103745, University Library of Munich, Germany.
    17. 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.
    18. Bógalo, Juan & Poncela, Pilar & Senra, Eva, 2017. "Automatic Signal Extraction for Stationary and Non-Stationary Time Series by Circulant SSA," MPRA Paper 76023, University Library of Munich, Germany.
    19. Önundur Páll Ragnarsson & Jón Magnús Hannesson & Loftur Hreinsson, 2019. "Financial cycles as early warning indicators - Lessons from the Nordic region," Economics wp80, Department of Economics, Central bank of Iceland.
    20. Tsionas, Mike G., 2021. "Bayesian forecasting with the structural damped trend model," International Journal of Production Economics, Elsevier, vol. 234(C).
    21. Planas, Christophe & Roeger, Werner & Rossi, Alessandro, 2007. "How much has labour taxation contributed to European structural unemployment?," Journal of Economic Dynamics and Control, Elsevier, vol. 31(4), pages 1359-1375, April.

    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.