IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v12y2020i17p6791-d402176.html
   My bibliography  Save this article

Machine Learning and Algorithmic Pairs Trading in Futures Markets

Author

Listed:
  • Seungho Baek

    (Department of Finance, Brooklyn College, City University of New York, 2900 Bedford Ave, Brooklyn, NY 11210, USA)

  • Mina Glambosky

    (Department of Finance, Brooklyn College, City University of New York, 2900 Bedford Ave, Brooklyn, NY 11210, USA)

  • Seok Hee Oh

    (Department of Computer Engineering, Gachon University, 1342 Seongnam-daero, Sujeong-gu, Seongnam-si, Gyeonggi-do 461-701, Korea)

  • Jeong Lee

    (Department of Economics and Finance, University of North Dakota, Gamble Hall Room 110, 293 Centennial Dr Stop 8098, Grand Forks, ND 58202, USA)

Abstract

This study applies machine learning methods to develop a sustainable pairs trading market-neutral investment strategy across multiple futures markets. Cointegrated pairs with similar price trends are identified, and a hedge ratio is determined using an Error Correction Model (ECM) framework and support vector machine algorithm based upon the two-step Engle–Granger method. The study shows that normal backwardation and contango do not consistently characterize futures markets, and an algorithmic pairs trading strategy is effective, given the unique predominant price trends of each futures market. Across multiple futures markets, the pairs trading strategy results in larger risk-adjusted returns and lower exposure to market risk, relative to an appropriate benchmark. Backtesting is employed and results show that the pairs trading strategy may hedge against unexpected negative systemic events, specifically the COVID-19 pandemic, remaining profitable over the period examined.

Suggested Citation

  • Seungho Baek & Mina Glambosky & Seok Hee Oh & Jeong Lee, 2020. "Machine Learning and Algorithmic Pairs Trading in Futures Markets," Sustainability, MDPI, vol. 12(17), pages 1-24, August.
  • Handle: RePEc:gam:jsusta:v:12:y:2020:i:17:p:6791-:d:402176
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/12/17/6791/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/12/17/6791/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Nahid Movassagh & Bagher Modjtahedi, 2005. "Bias and backwardation in natural gas futures prices," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 25(3), pages 281-308, March.
    2. Henriksson, Roy D & Merton, Robert C, 1981. "On Market Timing and Investment Performance. II. Statistical Procedures for Evaluating Forecasting Skills," The Journal of Business, University of Chicago Press, vol. 54(4), pages 513-533, October.
    3. Krista Schwarz, 2012. "Are speculators informed?," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 32(1), pages 1-23, January.
    4. 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.
    5. Hun Y. Park & Andrew H. Chen, 1985. "Differences between futures and forward prices: A further investigation of the marking‐to‐market effects," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 5(1), pages 77-88, March.
    6. 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.
    7. Tim Krehbiel & Roger Collier, 1996. "Normal backwardation in short‐term interest rate futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 16(8), pages 899-913, December.
    8. Viviana Fernandez, 2016. "Spot and Futures Markets Linkages: Does Contango Differ from Backwardation?," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 36(4), pages 375-396, April.
    9. Szakmary, Andrew C. & Shen, Qian & Sharma, Subhash C., 2010. "Trend-following trading strategies in commodity futures: A re-examination," Journal of Banking & Finance, Elsevier, vol. 34(2), pages 409-426, February.
    10. Joëlle Miffre, 2000. "Normal backwardation is normal," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 20(9), pages 803-821, October.
    11. Hamid, Shaikh A. & Iqbal, Zahid, 2004. "Using neural networks for forecasting volatility of S&P 500 Index futures prices," Journal of Business Research, Elsevier, vol. 57(10), pages 1116-1125, October.
    12. Rockwell, Charles S., 1967. "Normal Backwardation, Forecasting, and the Return to Commodity Futures Traders," Food Research Institute Studies, Stanford University, Food Research Institute, vol. 7(Supplemen), pages 1-24.
    13. Miffre, Joelle & Rallis, Georgios, 2007. "Momentum strategies in commodity futures markets," Journal of Banking & Finance, Elsevier, vol. 31(6), pages 1863-1886, June.
    14. Tilton, John E. & Humphreys, David & Radetzki, Marian, 2011. "Investor demand and spot commodity prices," Resources Policy, Elsevier, vol. 36(3), pages 187-195, September.
    15. Gulley, Andrew & Tilton, John E., 2014. "The relationship between spot and futures prices: An empirical analysis," Resources Policy, Elsevier, vol. 41(C), pages 109-112.
    16. Tay, Francis E. H. & Cao, Lijuan, 2001. "Application of support vector machines in financial time series forecasting," Omega, Elsevier, vol. 29(4), pages 309-317, August.
    17. Chang, Eric C, 1985. "Returns to Speculators and the Theory of Normal Backwardation," Journal of Finance, American Finance Association, vol. 40(1), pages 193-208, March.
    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. Sharma, Udayan & Karmakar, Madhusudan, 2023. "Measuring minimum variance hedging effectiveness: Traditional vs. sophisticated models," International Review of Financial Analysis, Elsevier, vol. 87(C).
    2. Juan Antonio Galán-Gutiérrez & Rodrigo Martín-García, 2022. "Fundamentals vs. Financialization during Extreme Events: From Backwardation to Contango, a Copper Market Analysis during the COVID-19 Pandemic," Mathematics, MDPI, vol. 10(4), pages 1-23, February.

    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. Marek Kwas & Michał Rubaszek, 2021. "Forecasting Commodity Prices: Looking for a Benchmark," Forecasting, MDPI, vol. 3(2), pages 1-13, June.
    2. Miffre, Joëlle, 2016. "Long-short commodity investing: A review of the literature," Journal of Commodity Markets, Elsevier, vol. 1(1), pages 3-13.
    3. Lim, Terence & Lo, Andrew W. & Merton, Robert C. & Scholes, Myron S., 2006. "The Derivatives Sourcebook," Foundations and Trends(R) in Finance, now publishers, vol. 1(5–6), pages 365-572, April.
    4. Hsu, Chih-Hsiang, 2021. "The predictability of the return correlation of futures with different expirations in the Chinese futures market," Resources Policy, Elsevier, vol. 74(C).
    5. Rubaszek, Michał & Uddin, Gazi Salah, 2020. "The role of underground storage in the dynamics of the US natural gas market: A threshold model analysis," Energy Economics, Elsevier, vol. 87(C).
    6. Basu, Devraj & Miffre, Joëlle, 2013. "Capturing the risk premium of commodity futures: The role of hedging pressure," Journal of Banking & Finance, Elsevier, vol. 37(7), pages 2652-2664.
    7. Fernandez, Viviana, 2016. "Further evidence on the relationship between spot and futures prices," Resources Policy, Elsevier, vol. 49(C), pages 368-371.
    8. Han, Yufeng & Hu, Ting & Yang, Jian, 2016. "Are there exploitable trends in commodity futures prices?," Journal of Banking & Finance, Elsevier, vol. 70(C), pages 214-234.
    9. Cifuentes, Sebastián & Cortazar, Gonzalo & Ortega, Hector & Schwartz, Eduardo S., 2020. "Expected prices, futures prices and time-varying risk premiums: The case of copper," Resources Policy, Elsevier, vol. 69(C).
    10. Modjtahedi, Bagher & Movassagh, Nahid, 2005. "Natural-gas futures: Bias, predictive performance, and the theory of storage," Energy Economics, Elsevier, vol. 27(4), pages 617-637, July.
    11. Duc Huynh, Toan Luu & Burggraf, Tobias & Nasir, Muhammad Ali, 2020. "Financialisation of natural resources & instability caused by risk transfer in commodity markets," Resources Policy, Elsevier, vol. 66(C).
    12. Sepideh Dolatabadi & Paresh Kumar Narayan & Morten Ørregaard Nielsen & Ke Xu, 2018. "Economic significance of commodity return forecasts from the fractionally cointegrated VAR model," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 38(2), pages 219-242, February.
    13. Helmut Herwartz & Henning Weber, 2005. "Exchange rate uncertainty and trade growth—a comparison of linear and non‐linear (forecasting) models," Applied Stochastic Models in Business and Industry, John Wiley & Sons, vol. 21(1), pages 1-26, January.
    14. Clare, Andrew & Seaton, James & Smith, Peter N. & Thomas, Stephen, 2016. "The trend is our friend: Risk parity, momentum and trend following in global asset allocation," Journal of Behavioral and Experimental Finance, Elsevier, vol. 9(C), pages 63-80.
    15. Adam Zaremba & Jacob Koby Shemer, 2018. "Price-Based Investment Strategies," Springer Books, Springer, number 978-3-319-91530-2, September.
    16. Xue Jin & Shiwei Zhou & Kedong Yin & Mingzhen Li, 2021. "Relationships between Copper Futures Markets from the Perspective of Jump Diffusion," Mathematics, MDPI, vol. 9(18), pages 1-25, September.
    17. Daskalaki, Charoula & Skiadopoulos, George, 2011. "Should investors include commodities in their portfolios after all? New evidence," Journal of Banking & Finance, Elsevier, vol. 35(10), pages 2606-2626, October.
    18. Narayan, Paresh Kumar & Narayan, Seema & Sharma, Susan Sunila, 2013. "An analysis of commodity markets: What gain for investors?," Journal of Banking & Finance, Elsevier, vol. 37(10), pages 3878-3889.
    19. Kladívko, Kamil & Österholm, Pär, 2021. "Do market participants’ forecasts of financial variables outperform the random-walk benchmark?," Finance Research Letters, Elsevier, vol. 40(C).
    20. Henry L. Bryant & David A. Bessler & Michael S. Haigh, 2006. "Causality in futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 26(11), pages 1039-1057, November.

    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:gam:jsusta:v:12:y:2020:i:17:p:6791-:d:402176. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.