IDEAS home Printed from https://ideas.repec.org/a/eee/ejores/v295y2021i2p772-791.html
   My bibliography  Save this article

Revealing Pairs-trading opportunities with long short-term memory networks

Author

Listed:
  • Flori, Andrea
  • Regoli, Daniele

Abstract

This work examines a deep learning approach to complement investors’ practices for the identification of pairs-trading opportunities among cointegrated stocks. We refer to the reversal effect, consisting in the fact that temporarily market deviations are likely to correct and finally converge again, to generate valuable pairs-trading signals based on the application of Long Short-Term Memory networks (LSTM). Specifically, we propose to use the LSTM to estimate the probability of a stock to exhibit increasing market returns in the near future compared to its peers, and we compare and combine these predictions with trading practices based on sorting stocks according to either price or returns gaps. In so doing, we investigate the ability of our proposed approach to provide valuable signals under different perspectives including variations in the investment horizons, transaction costs and weighting schemes. Our analysis shows that strategies including such predictions can contribute to improve portfolio performances providing predictive signals whose information content goes above and beyond the one embedded in both price and returns gaps.

Suggested Citation

  • 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.
  • Handle: RePEc:eee:ejores:v:295:y:2021:i:2:p:772-791
    DOI: 10.1016/j.ejor.2021.03.009
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0377221721001995
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ejor.2021.03.009?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. Richards, Anthony J, 1997. "Winner-Loser Reversals in National Stock Market Indices: Can They Be Explained?," Journal of Finance, American Finance Association, vol. 52(5), pages 2129-2144, December.
    2. Krauss, Christopher & Do, Xuan Anh & Huck, Nicolas, 2017. "Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500," European Journal of Operational Research, Elsevier, vol. 259(2), pages 689-702.
    3. Andreou, Panayiotis C. & Charalambous, Chris & Martzoukos, Spiros H., 2008. "Pricing and trading European options by combining artificial neural networks and parametric models with implied parameters," European Journal of Operational Research, Elsevier, vol. 185(3), pages 1415-1433, March.
    4. Randolph B. Cohen & Joshua D. Coval & Ľuboš Pástor, 2005. "Judging Fund Managers by the Company They Keep," Journal of Finance, American Finance Association, vol. 60(3), pages 1057-1096, June.
    5. Ledoit, Oliver & Wolf, Michael, 2008. "Robust performance hypothesis testing with the Sharpe ratio," Journal of Empirical Finance, Elsevier, vol. 15(5), pages 850-859, December.
    6. Binh Do & Robert Faff, 2012. "Are Pairs Trading Profits Robust To Trading Costs?," Journal of Financial Research, Southern Finance Association;Southwestern Finance Association, vol. 35(2), pages 261-287, June.
    7. de Groot, Wilma & Huij, Joop & Zhou, Weili, 2012. "Another look at trading costs and short-term reversal profits," Journal of Banking & Finance, Elsevier, vol. 36(2), pages 371-382.
    8. Kim, A. & Yang, Y. & Lessmann, S. & Ma, T. & Sung, M.-C. & Johnson, J.E.V., 2020. "Can deep learning predict risky retail investors? A case study in financial risk behavior forecasting," European Journal of Operational Research, Elsevier, vol. 283(1), pages 217-234.
    9. Sermpinis, Georgios & Theofilatos, Konstantinos & Karathanasopoulos, Andreas & Georgopoulos, Efstratios F. & Dunis, Christian, 2013. "Forecasting foreign exchange rates with adaptive neural networks using radial-basis functions and Particle Swarm Optimization," European Journal of Operational Research, Elsevier, vol. 225(3), pages 528-540.
    10. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    11. 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.
    12. Kraus, Mathias & Feuerriegel, Stefan & Oztekin, Asil, 2020. "Deep learning in business analytics and operations research: Models, applications and managerial implications," European Journal of Operational Research, Elsevier, vol. 281(3), pages 628-641.
    13. Lasfer, M. Ameziane & Melnik, Arie & Thomas, Dylan C., 2003. "Short-term reaction of stock markets in stressful circumstances," Journal of Banking & Finance, Elsevier, vol. 27(10), pages 1959-1977, October.
    14. Wei Bao & Jun Yue & Yulei Rao, 2017. "A deep learning framework for financial time series using stacked autoencoders and long-short term memory," PLOS ONE, Public Library of Science, vol. 12(7), pages 1-24, July.
    15. Huck, Nicolas, 2009. "Pairs selection and outranking: An application to the S&P 100 index," European Journal of Operational Research, Elsevier, vol. 196(2), pages 819-825, July.
    16. Toni M. Whited & Guojun Wu, 2006. "Financial Constraints Risk," Review of Financial Studies, Society for Financial Studies, vol. 19(2), pages 531-559.
    17. Jacobs, Heiko & Weber, Martin, 2015. "On the determinants of pairs trading profitability," Journal of Financial Markets, Elsevier, vol. 23(C), pages 75-97.
    18. Carhart, Mark M, 1997. "On Persistence in Mutual Fund Performance," Journal of Finance, American Finance Association, vol. 52(1), pages 57-82, March.
    19. Nicolas Huck & Komivi Afawubo, 2015. "Pairs trading and selection methods: is cointegration superior?," Applied Economics, Taylor & Francis Journals, vol. 47(6), pages 599-613, February.
    20. Jegadeesh, Narasimhan, 1990. "Evidence of Predictable Behavior of Security Returns," Journal of Finance, American Finance Association, vol. 45(3), pages 881-898, July.
    21. Lo, Andrew W & MacKinlay, A Craig, 1990. "When Are Contrarian Profits Due to Stock Market Overreaction?," The Review of Financial Studies, Society for Financial Studies, vol. 3(2), pages 175-205.
    22. Christopher Krauss, 2017. "Statistical Arbitrage Pairs Trading Strategies: Review And Outlook," Journal of Economic Surveys, Wiley Blackwell, vol. 31(2), pages 513-545, April.
    23. Evan Gatev & William N. Goetzmann & K. Geert Rouwenhorst, 2006. "Pairs Trading: Performance of a Relative-Value Arbitrage Rule," Review of Financial Studies, Society for Financial Studies, vol. 19(3), pages 797-827.
    24. Gutierrez, Roberto Jr. & Prinsky, Christo A., 2007. "Momentum, reversal, and the trading behaviors of institutions," Journal of Financial Markets, Elsevier, vol. 10(1), pages 48-75, February.
    25. 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.
    26. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    27. Adrian, Tobias & Franzoni, Francesco, 2009. "Learning about beta: Time-varying factor loadings, expected returns, and the conditional CAPM," Journal of Empirical Finance, Elsevier, vol. 16(4), pages 537-556, September.
    28. Chordia, Tarun & Roll, Richard & Subrahmanyam, Avanidhar, 2002. "Order imbalance, liquidity, and market returns," Journal of Financial Economics, Elsevier, vol. 65(1), pages 111-130, July.
    29. Christian L Dunis & Richard Ho, 2005. "Cointegration portfolios of European equities for index tracking and market neutral strategies," Journal of Asset Management, Palgrave Macmillan, vol. 6(1), pages 33-52, June.
    30. Christopher Krauss & Anh Do & Nicolas Huck, 2017. "Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500," Post-Print hal-01768895, HAL.
    31. Coval, Joshua & Stafford, Erik, 2007. "Asset fire sales (and purchases) in equity markets," Journal of Financial Economics, Elsevier, vol. 86(2), pages 479-512, November.
    32. Da, Zhi & Gao, Pengjie, 2010. "Clientele Change, Liquidity Shock, and the Return on Financially Distressed Stocks," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 45(1), pages 27-48, February.
    33. Focardi, Sergio M. & Fabozzi, Frank J. & Mitov, Ivan K., 2016. "A new approach to statistical arbitrage: Strategies based on dynamic factor models of prices and their performance," Journal of Banking & Finance, Elsevier, vol. 65(C), pages 134-155.
    34. Matthew Clegg & Christopher Krauss, 2018. "Pairs trading with partial cointegration," Quantitative Finance, Taylor & Francis Journals, vol. 18(1), pages 121-138, January.
    35. Robert J. Bloomfield & William B. Tayler & Flora (Hailan) Zhou, 2009. "Momentum, Reversal, and Uninformed Traders in Laboratory Markets," Journal of Finance, American Finance Association, vol. 64(6), pages 2535-2558, December.
    36. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    37. Engle, Robert & Granger, Clive, 2015. "Co-integration and error correction: Representation, estimation, and testing," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 39(3), pages 106-135.
    38. Hameed, Allaudeen & Mian, G. Mujtaba, 2015. "Industries and Stock Return Reversals," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 50(1-2), pages 89-117, April.
    39. Fama, Eugene F. & French, Kenneth R., 2015. "A five-factor asset pricing model," Journal of Financial Economics, Elsevier, vol. 116(1), pages 1-22.
    40. Boudoukh, Jacob & Richardson, Matthew P & Whitelaw, Robert F, 1994. "A Tale of Three Schools: Insights on Autocorrelations of Short-Horizon Stock Returns," Review of Financial Studies, Society for Financial Studies, vol. 7(3), pages 539-573.
    41. Jegadeesh N. & Titman S., 1995. "Short-Horizon Return Reversals and the Bid-Ask Spread," Journal of Financial Intermediation, Elsevier, vol. 4(2), pages 116-132, April.
    42. Bekiros, Stelios D., 2010. "Fuzzy adaptive decision-making for boundedly rational traders in speculative stock markets," European Journal of Operational Research, Elsevier, vol. 202(1), pages 285-293, April.
    43. Bruce N. Lehmann, 1990. "Fads, Martingales, and Market Efficiency," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 105(1), pages 1-28.
    44. Avanidhar Subrahmanyam, 2005. "Distinguishing Between Rationales for Short‐Horizon Predictability of Stock Returns," The Financial Review, Eastern Finance Association, vol. 40(1), pages 11-35, February.
    45. Fama, Eugene F. & French, Kenneth R., 1993. "Common risk factors in the returns on stocks and bonds," Journal of Financial Economics, Elsevier, vol. 33(1), pages 3-56, February.
    46. Huck, Nicolas, 2019. "Large data sets and machine learning: Applications to statistical arbitrage," European Journal of Operational Research, Elsevier, vol. 278(1), pages 330-342.
    47. Doron Avramov & Tarun Chordia & Amit Goyal, 2006. "Liquidity and Autocorrelations in Individual Stock Returns," Journal of Finance, American Finance Association, vol. 61(5), pages 2365-2394, October.
    48. Nicolas Huck, 2019. "Large data sets and machine learning: Applications to statistical arbitrage," Post-Print hal-02143971, HAL.
    49. Huck, Nicolas, 2010. "Pairs trading and outranking: The multi-step-ahead forecasting case," European Journal of Operational Research, Elsevier, vol. 207(3), pages 1702-1716, December.
    50. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    51. Nicolas Huck & Komivi Afawubo, 2015. "Pairs trading and selection methods: is cointegration superior?," Post-Print hal-01369852, HAL.
    52. Conrad, Jennifer & Gultekin, Mustafa N & Kaul, Gautam, 1997. "Profitability of Short-Term Contrarian Strategies: Implications for Market Efficiency," Journal of Business & Economic Statistics, American Statistical Association, vol. 15(3), pages 379-386, July.
    53. Marco Avellaneda & Jeong-Hyun Lee, 2010. "Statistical arbitrage in the US equities market," Quantitative Finance, Taylor & Francis Journals, vol. 10(7), pages 761-782.
    54. Timofei Bogomolov, 2013. "Pairs trading based on statistical variability of the spread process," Quantitative Finance, Taylor & Francis Journals, vol. 13(9), pages 1411-1430, September.
    55. James B. Heaton & Nicholas Polson & Jan H. Witte, 2017. "Rejoinder to ‘Deep learning for finance: deep portfolios’," Applied Stochastic Models in Business and Industry, John Wiley & Sons, vol. 33(1), pages 19-21, January.
    56. Svetlana Borovkova & Ioannis Tsiamas, 2019. "An ensemble of LSTM neural networks for high‐frequency stock market classification," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 38(6), pages 600-619, September.
    57. Blitz, David & Huij, Joop & Lansdorp, Simon & Verbeek, Marno, 2013. "Short-term residual reversal," Journal of Financial Markets, Elsevier, vol. 16(3), pages 477-504.
    58. Johansen, Soren, 1991. "Estimation and Hypothesis Testing of Cointegration Vectors in Gaussian Vector Autoregressive Models," Econometrica, Econometric Society, vol. 59(6), pages 1551-1580, November.
    59. Jegadeesh, Narasimhan & Titman, Sheridan, 1995. "Overreaction, Delayed Reaction, and Contrarian Profits," Review of Financial Studies, Society for Financial Studies, vol. 8(4), pages 973-993.
    60. 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.
    61. Cheng, Si & Hameed, Allaudeen & Subrahmanyam, Avanidhar & Titman, Sheridan, 2017. "Short-Term Reversals: The Effects of Past Returns and Institutional Exits," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 52(1), pages 143-173, February.
    62. Chan, Louis K C & Jegadeesh, Narasimhan & Lakonishok, Josef, 1996. "Momentum Strategies," Journal of Finance, American Finance Association, vol. 51(5), pages 1681-1713, December.
    63. 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.
    64. Jegadeesh, Narasimhan & Titman, Sheridan, 1993. "Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency," Journal of Finance, American Finance Association, vol. 48(1), pages 65-91, March.
    65. J. B. Heaton & N. G. Polson & J. H. Witte, 2017. "Deep learning for finance: deep portfolios," Applied Stochastic Models in Business and Industry, John Wiley & Sons, vol. 33(1), pages 3-12, January.
    66. Blackburn, Douglas W. & Cakici, Nusret, 2017. "Overreaction and the cross-section of returns: International evidence," Journal of Empirical Finance, Elsevier, vol. 42(C), pages 1-14.
    67. 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)

    Citations

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


    Cited by:

    1. Kriebel, Johannes & Stitz, Lennart, 2022. "Credit default prediction from user-generated text in peer-to-peer lending using deep learning," European Journal of Operational Research, Elsevier, vol. 302(1), pages 309-323.
    2. Yongli Li & Tianchen Wang & Baiqing Sun & Chao Liu, 2022. "Detecting the lead–lag effect in stock markets: definition, patterns, and investment strategies," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-36, December.
    3. Abhiraj Sen & Jaydip Sen, 2023. "Performance Evaluation of Equal-Weight Portfolio and Optimum Risk Portfolio on Indian Stocks," Papers 2309.13696, arXiv.org.
    4. Jakub Michańków & Paweł Sakowski & Robert Ślepaczuk, 2023. "Hedging Properties of Algorithmic Investment Strategies using Long Short-Term Memory and Time Series models for Equity Indices," Working Papers 2023-25, Faculty of Economic Sciences, University of Warsaw.
    5. Jaydip Sen & Arup Dasgupta & Partha Pratim Sengupta & Sayantani Roy Choudhury, 2023. "A Comparative Study of Portfolio Optimization Methods for the Indian Stock Market," Papers 2310.14748, 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. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    2. 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.
    3. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, November.
    4. Fischer, Thomas & Krauss, Christopher, 2017. "Deep learning with long short-term memory networks for financial market predictions," FAU Discussion Papers in Economics 11/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    5. Rubesam, Alexandre, 2022. "Machine learning portfolios with equal risk contributions: Evidence from the Brazilian market," Emerging Markets Review, Elsevier, vol. 51(PB).
    6. 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.
    7. Cakici, Nusret & Zaremba, Adam, 2022. "Salience theory and the cross-section of stock returns: International and further evidence," Journal of Financial Economics, Elsevier, vol. 146(2), pages 689-725.
    8. Matthew Clegg & Christopher Krauss, 2018. "Pairs trading with partial cointegration," Quantitative Finance, Taylor & Francis Journals, vol. 18(1), pages 121-138, January.
    9. 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.
    10. 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.
    11. 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.
    12. Fabian Waldow & Matthias Schnaubelt & Christopher Krauss & Thomas Günter Fischer, 2021. "Machine Learning in Futures Markets," JRFM, MDPI, vol. 14(3), pages 1-14, March.
    13. Blitz, David & Huij, Joop & Lansdorp, Simon & Verbeek, Marno, 2013. "Short-term residual reversal," Journal of Financial Markets, Elsevier, vol. 16(3), pages 477-504.
    14. 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.
    15. Xiang, Yun & He, Jiaxuan, 2022. "Pairs trading and asset pricing," Pacific-Basin Finance Journal, Elsevier, vol. 72(C).
    16. 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.
    17. Bali, Turan G. & Subrahmanyam, Avanidhar & Wen, Quan, 2021. "Long-term reversals in the corporate bond market," Journal of Financial Economics, Elsevier, vol. 139(2), pages 656-677.
    18. Thomas Günter Fischer & Christopher Krauss & Alexander Deinert, 2019. "Statistical Arbitrage in Cryptocurrency Markets," JRFM, MDPI, vol. 12(1), pages 1-15, February.
    19. Kim, A. & Yang, Y. & Lessmann, S. & Ma, T. & Sung, M.-C. & Johnson, J.E.V., 2020. "Can deep learning predict risky retail investors? A case study in financial risk behavior forecasting," European Journal of Operational Research, Elsevier, vol. 283(1), pages 217-234.
    20. Marianna Brunetti & Roberta De Luca, 2023. "Pairs trading in the index options market," Eurasian Economic Review, Springer;Eurasia Business and Economics Society, vol. 13(1), pages 145-173, March.

    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:eee:ejores:v:295:y:2021:i:2:p:772-791. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/eor .

    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.