IDEAS home Printed from https://ideas.repec.org/p/zbw/iwqwdp/072018.html
   My bibliography  Save this paper

A flexible regime switching model with pairs trading application to the S&P 500 high-frequency stock returns

Author

Listed:
  • Endres, Sylvia
  • Stübinger, Johannes

Abstract

This paper develops the regime classification algorithm and applies it within a fully-edged pairs trading framework on minute-by-minute data of the S&P 500 constituents from 1998 to 2015. Specifically, the highly flexible algorithm automatically determines the number of regimes for any stochastic process and provides a complete set of parameter estimations. We demonstrate its performance in a simulation study - the algorithm achieves promising results for the general class of Lévy-driven Ornstein-Uhlenbeck processes with regime switches. In our empirical back-testing study, we apply our regime classification algorithm to propose a high-frequency pair selection and trading strategy. The results show statistically and economically significant returns with an annualized Sharpe ratio of 3.92 after transaction costs - results remain stable even in recent years. We compare our strategy with existing quantitative trading frameworks and find its results to be superior in terms of risk and return characteristics. The algorithm takes full advantage of its flexibility and identifies various regime patterns over time that are well-documented in the literature.

Suggested Citation

  • Endres, Sylvia & Stübinger, Johannes, 2018. "A flexible regime switching model with pairs trading application to the S&P 500 high-frequency stock returns," FAU Discussion Papers in Economics 07/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
  • Handle: RePEc:zbw:iwqwdp:072018
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/178766/1/1022453769.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Jondeau, Eric & Lahaye, Jérôme & Rockinger, Michael, 2015. "Estimating the price impact of trades in a high-frequency microstructure model with jumps," Journal of Banking & Finance, Elsevier, vol. 61(S2), pages 205-224.
    2. Dahlquist, Magnus & Gray, Stephen F., 2000. "Regime-switching and interest rates in the European monetary system," Journal of International Economics, Elsevier, vol. 50(2), pages 399-419, April.
    3. Yang, Jen-Wei & Tsai, Shu-Yu & Shyu, So-De & Chang, Chia-Chien, 2016. "Pairs trading: The performance of a stochastic spread model with regime switching-evidence from the S&P 500," International Review of Economics & Finance, Elsevier, vol. 43(C), pages 139-150.
    4. Andrew Ang & Geert Bekaert, 2002. "International Asset Allocation With Regime Shifts," The Review of Financial Studies, Society for Financial Studies, vol. 15(4), pages 1137-1187.
    5. Mark Cummins & Andrea Bucca, 2012. "Quantitative spread trading on crude oil and refined products markets," Quantitative Finance, Taylor & Francis Journals, vol. 12(12), pages 1857-1875, December.
    6. Göncü, Ahmet & Karahan, Mehmet Oğuz & Kuzubaş, Tolga Umut, 2016. "A comparative goodness-of-fit analysis of distributions of some Lévy processes and Heston model to stock index returns," The North American Journal of Economics and Finance, Elsevier, vol. 36(C), pages 69-83.
    7. Torben G. Andersen & Tim Bollerslev & Ashish Das, 2001. "Variance‐ratio Statistics and High‐frequency Data: Testing for Changes in Intraday Volatility Patterns," Journal of Finance, American Finance Association, vol. 56(1), pages 305-327, February.
    8. Johannes Stübinger & Sylvia Endres, 2018. "Pairs trading with a mean-reverting jump–diffusion model on high-frequency data," Quantitative Finance, Taylor & Francis Journals, vol. 18(10), pages 1735-1751, October.
    9. Zhengqin Zeng & Chi-Guhn Lee, 2014. "Pairs trading: optimal thresholds and profitability," Quantitative Finance, Taylor & Francis Journals, vol. 14(11), pages 1881-1893, November.
    10. Tim Bollerslev & Julia Litvinova & George Tauchen, 2006. "Leverage and Volatility Feedback Effects in High-Frequency Data," Journal of Financial Econometrics, Oxford University Press, vol. 4(3), pages 353-384.
    11. Marco Bee & Giulio Gatti, 2015. "An improved pairs trading strategy based on switching regime volatility," DEM Discussion Papers 2015/13, Department of Economics and Management.
    12. Mary Hardy, 2001. "A Regime-Switching Model of Long-Term Stock Returns," North American Actuarial Journal, Taylor & Francis Journals, vol. 5(2), pages 41-53.
    13. Evan Gatev & William N. Goetzmann & K. Geert Rouwenhorst, 2006. "Pairs Trading: Performance of a Relative-Value Arbitrage Rule," The Review of Financial Studies, Society for Financial Studies, vol. 19(3), pages 797-827.
    14. Rama Cont, 2007. "Volatility Clustering in Financial Markets: Empirical Facts and Agent-Based Models," Springer Books, in: Gilles Teyssière & Alan P. Kirman (ed.), Long Memory in Economics, pages 289-309, Springer.
    15. Li, Yifan & Nolte, Ingmar & Nolte, Sandra, 2021. "High-frequency volatility modeling: A Markov-Switching Autoregressive Conditional Intensity model," Journal of Economic Dynamics and Control, Elsevier, vol. 124(C).
    16. Bo Liu & Lo-Bin Chang & Hélyette Geman, 2017. "Intraday pairs trading strategies on high frequency data: the case of oil companies," Quantitative Finance, Taylor & Francis Journals, vol. 17(1), pages 87-100, January.
    17. Alvaro Cartea & Marcelo Figueroa, 2005. "Pricing in Electricity Markets: A Mean Reverting Jump Diffusion Model with Seasonality," Applied Mathematical Finance, Taylor & Francis Journals, vol. 12(4), pages 313-335.
    18. Ahmet Göncü & Erdinç Akyıldırım, 2016. "Statistical Arbitrage with Pairs Trading," International Review of Finance, International Review of Finance Ltd., vol. 16(2), pages 307-319, June.
    19. Yacine Aït-Sahalia & Jean Jacod, 2014. "High-Frequency Financial Econometrics," Economics Books, Princeton University Press, edition 1, number 10261.
    20. Jean-Philippe Bouchaud & Andrew Matacz & Marc Potters, 2001. "The leverage effect in financial markets: retarded volatility and market panic," Science & Finance (CFM) working paper archive 0101120, Science & Finance, Capital Fund Management.
    21. Zheng Liu & Daniel F. Waggoner & Tao Zha, 2011. "Sources of macroeconomic fluctuations: A regime‐switching DSGE approach," Quantitative Economics, Econometric Society, vol. 2(2), pages 251-301, July.
    22. Christopher Krauss & Johannes Stübinger, 2017. "Non-linear dependence modelling with bivariate copulas: statistical arbitrage pairs trading on the S&P 100," Applied Economics, Taylor & Francis Journals, vol. 49(52), pages 5352-5369, November.
    23. Pedro P. Mota & Manuel L. Esquível, 2016. "Model selection for stock prices data," Journal of Applied Statistics, Taylor & Francis Journals, vol. 43(16), pages 2977-2987, December.
    24. Chang, Kuang-Liang, 2009. "Do macroeconomic variables have regime-dependent effects on stock return dynamics? Evidence from the Markov regime switching model," Economic Modelling, Elsevier, vol. 26(6), pages 1283-1299, November.
    25. Fischer, Thomas & Krauss, Christopher & Treichel, Alex, 2018. "Machine learning for time series forecasting - a simulation study," FAU Discussion Papers in Economics 02/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    26. Fei Liu & Athanasios A. Pantelous & Hans-Jörg von Mettenheim, 2018. "Forecasting and trading high frequency volatility on large indices," Quantitative Finance, Taylor & Francis Journals, vol. 18(5), pages 737-748, May.
    27. Yang Bai & Lan Wu, 2018. "Analytic value function for optimal regime-switching pairs trading rules," Quantitative Finance, Taylor & Francis Journals, vol. 18(4), pages 637-654, April.
    28. Johannes St binger & Jens Bredthauer, 2017. "Statistical Arbitrage Pairs Trading with High-frequency Data," International Journal of Economics and Financial Issues, Econjournals, vol. 7(4), pages 650-662.
    29. Fama, Eugene F. & French, Kenneth R., 2015. "A five-factor asset pricing model," Journal of Financial Economics, Elsevier, vol. 116(1), pages 1-22.
    30. Chen, Shiu-Sheng, 2009. "Predicting the bear stock market: Macroeconomic variables as leading indicators," Journal of Banking & Finance, Elsevier, vol. 33(2), pages 211-223, February.
    31. Cecilia Mancini, 2009. "Non‐parametric Threshold Estimation for Models with Stochastic Diffusion Coefficient and Jumps," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 36(2), pages 270-296, June.
    32. Sayat R. Baronyan & İ. İlkay Boduroğlu & Emrah Şener, 2010. "Investigation Of Stochastic Pairs Trading Strategies Under Different Volatility Regimes," Manchester School, University of Manchester, vol. 78(s1), pages 114-134, September.
    33. Bertram, William K., 2010. "Analytic solutions for optimal statistical arbitrage trading," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 389(11), pages 2234-2243.
    34. Cai, Jun, 1994. "A Markov Model of Switching-Regime ARCH," Journal of Business & Economic Statistics, American Statistical Association, vol. 12(3), pages 309-316, July.
    35. Marco Avellaneda & Jeong-Hyun Lee, 2010. "Statistical arbitrage in the US equities market," Quantitative Finance, Taylor & Francis Journals, vol. 10(7), pages 761-782.
    36. Hamilton, James D. & Susmel, Raul, 1994. "Autoregressive conditional heteroskedasticity and changes in regime," Journal of Econometrics, Elsevier, vol. 64(1-2), pages 307-333.
    37. Gilles Teyssière & Alan P. Kirman (ed.), 2007. "Long Memory in Economics," Springer Books, Springer, number 978-3-540-34625-8, December.
    38. Chevallier Julien & Goutte Stéphane, 2017. "On the estimation of regime-switching Lévy models," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 21(1), pages 3-29, February.
    39. Fama, Eugene F & French, Kenneth R, 1996. "Multifactor Explanations of Asset Pricing Anomalies," Journal of Finance, American Finance Association, vol. 51(1), pages 55-84, March.
    40. Steven Kou & Cindy Yu & Haowen Zhong, 2017. "Jumps in Equity Index Returns Before and During the Recent Financial Crisis: A Bayesian Analysis," Management Science, INFORMS, vol. 63(4), pages 988-1010, April.
    41. Johannes Stübinger & Benedikt Mangold & Christopher Krauss, 2018. "Statistical arbitrage with vine copulas," Quantitative Finance, Taylor & Francis Journals, vol. 18(11), pages 1831-1849, November.
    42. Ahmet Göncü & Erdinc Akyildirim, 2016. "A stochastic model for commodity pairs trading," Quantitative Finance, Taylor & Francis Journals, vol. 16(12), pages 1843-1857, December.
    43. Bertram, William K., 2009. "Optimal trading strategies for Itô diffusion processes," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 388(14), pages 2865-2873.
    44. Hossein Rad & Rand Kwong Yew Low & Robert Faff, 2016. "The profitability of pairs trading strategies: distance, cointegration and copula methods," Quantitative Finance, Taylor & Francis Journals, vol. 16(10), pages 1541-1558, October.
    Full references (including those not matched with items on IDEAS)

    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. Endres, Sylvia & Stübinger, Johannes, 2017. "Optimal trading strategies for Lévy-driven Ornstein-Uhlenbeck processes," FAU Discussion Papers in Economics 17/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    2. Johannes Stübinger & Sylvia Endres, 2018. "Pairs trading with a mean-reverting jump–diffusion model on high-frequency data," Quantitative Finance, Taylor & Francis Journals, vol. 18(10), pages 1735-1751, October.
    3. Stübinger, Johannes & Endres, Sylvia, 2017. "Pairs trading with a mean-reverting jump-diffusion model on high-frequency data," FAU Discussion Papers in Economics 10/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    4. Johannes Stübinger & Lucas Schneider, 2019. "Statistical Arbitrage with Mean-Reverting Overnight Price Gaps on High-Frequency Data of the S&P 500," JRFM, MDPI, vol. 12(2), pages 1-19, April.
    5. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    6. Alexander Lipton & Marcos Lopez de Prado, 2020. "A closed-form solution for optimal mean-reverting trading strategies," Papers 2003.10502, arXiv.org.
    7. Stübinger, Johannes & Walter, Dominik & Knoll, Julian, 2017. "Financial market predictions with Factorization Machines: Trading the opening hour based on overnight social media data," FAU Discussion Papers in Economics 19/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    8. Vladimír Holý & Michal Černý, 2022. "Bertram’s pairs trading strategy with bounded risk," Central European Journal of Operations Research, Springer;Slovak Society for Operations Research;Hungarian Operational Research Society;Czech Society for Operations Research;Österr. Gesellschaft für Operations Research (ÖGOR);Slovenian Society Informatika - Section for Operational Research;Croatian Operational Research Society, vol. 30(2), pages 667-682, June.
    9. Matthew Clegg & Christopher Krauss, 2018. "Pairs trading with partial cointegration," Quantitative Finance, Taylor & Francis Journals, vol. 18(1), pages 121-138, January.
    10. Vladim'ir Hol'y & Petra Tomanov'a, 2018. "Estimation of Ornstein-Uhlenbeck Process Using Ultra-High-Frequency Data with Application to Intraday Pairs Trading Strategy," Papers 1811.09312, arXiv.org, revised Jul 2022.
    11. Erdinc Akyildirim & Ahmet Goncu & Alper Hekimoglu & Duc Khuong Nguyen & Ahmet Sensoy, 2023. "Statistical arbitrage: factor investing approach," OR Spectrum: Quantitative Approaches in Management, Springer;Gesellschaft für Operations Research e.V., vol. 45(4), pages 1295-1331, December.
    12. Stübinger, Johannes, 2018. "Statistical arbitrage with optimal causal paths on high-frequencydata of the S&P 500," FAU Discussion Papers in Economics 01/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    13. Lucas Schneider & Johannes Stübinger, 2020. "Dispersion Trading Based on the Explanatory Power of S&P 500 Stock Returns," Mathematics, MDPI, vol. 8(9), pages 1-22, September.
    14. Han, Chulwoo & He, Zhaodong & Toh, Alenson Jun Wei, 2023. "Pairs trading via unsupervised learning," European Journal of Operational Research, Elsevier, vol. 307(2), pages 929-947.
    15. Knoll, Julian & Stübinger, Johannes & Grottke, Michael, 2017. "Exploiting social media with higher-order Factorization Machines: Statistical arbitrage on high-frequency data of the S&P 500," FAU Discussion Papers in Economics 13/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    16. Ahmet Göncü & Erdinc Akyildirim, 2016. "A stochastic model for commodity pairs trading," Quantitative Finance, Taylor & Francis Journals, vol. 16(12), pages 1843-1857, December.
    17. Krauss, Christopher, 2015. "Statistical arbitrage pairs trading strategies: Review and outlook," FAU Discussion Papers in Economics 09/2015, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    18. 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.
    19. Jeff Stephenson & Bruce Vanstone & Tobias Hahn, 2021. "A Unifying Model for Statistical Arbitrage: Model Assumptions and Empirical Failure," Computational Economics, Springer;Society for Computational Economics, vol. 58(4), pages 943-964, December.
    20. Fernando Caneo & Werner Kristjanpoller, 2021. "Improving statistical arbitrage investment strategy: Evidence from Latin American stock markets," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 26(3), pages 4424-4440, July.

    More about this item

    Keywords

    Finance; Pairs trading; Statistical arbitrage; Markov regime switching; Lévy-driven Ornstein-Uhlenbeck process; High-frequency data;
    All these keywords.

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:zbw:iwqwdp:072018. 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/vierlde.html .

    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.