IDEAS home Printed from https://ideas.repec.org/a/wly/jfutmk/v44y2024i2p302-322.html
   My bibliography  Save this article

Predictability of commodity futures returns with machine learning models

Author

Listed:
  • Shirui Wang
  • Tianyang Zhang

Abstract

We use prevailing machine learning models to investigate the predictability of futures returns in 22 commodities with commodity‐specific and macroeconomic factors as predictors. Out‐of‐sample prediction errors for the majority of futures contracts are lowered compared with those obtained by the baseline models of AR(1) and forecast combinations. Using Shapley values to explain feature importance, we identify dominant predictors for each commodity. A long–short portfolio strategy based on monthly light gradient‐boosting machine predictions outperforms the benchmark linear models in terms of annual return, Sharpe ratio, and max drawdown.

Suggested Citation

  • Shirui Wang & Tianyang Zhang, 2024. "Predictability of commodity futures returns with machine learning models," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 44(2), pages 302-322, February.
  • Handle: RePEc:wly:jfutmk:v:44:y:2024:i:2:p:302-322
    DOI: 10.1002/fut.22471
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/fut.22471
    Download Restriction: no

    File URL: https://libkey.io/10.1002/fut.22471?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
    ---><---

    References listed on IDEAS

    as
    1. Kelly, Bryan T. & Pruitt, Seth & Su, Yinan, 2019. "Characteristics are covariances: A unified model of risk and return," Journal of Financial Economics, Elsevier, vol. 134(3), pages 501-524.
    2. Ivo Welch & Amit Goyal, 2008. "A Comprehensive Look at The Empirical Performance of Equity Premium Prediction," Review of Financial Studies, Society for Financial Studies, vol. 21(4), pages 1455-1508, July.
    3. Leippold, Markus & Wang, Qian & Zhou, Wenyu, 2022. "Machine learning in the Chinese stock market," Journal of Financial Economics, Elsevier, vol. 145(2), pages 64-82.
    4. Victor DeMiguel & Lorenzo Garlappi & Raman Uppal, 2009. "Optimal Versus Naive Diversification: How Inefficient is the 1-N Portfolio Strategy?," Review of Financial Studies, Society for Financial Studies, vol. 22(5), pages 1915-1953, May.
    5. Libing Fang & Baizhu Chen & Honghai Yu & Yichuo Qian, 2018. "The importance of global economic policy uncertainty in predicting gold futures market volatility: A GARCH‐MIDAS approach," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 38(3), pages 413-422, March.
    6. Juan Ignacio Guzmán & Enrique Silva, 2018. "Copper price determination: fundamentals versus non-fundamentals," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 31(3), pages 283-300, October.
    7. Joachim Freyberger & Andreas Neuhierl & Michael Weber & Andrew KarolyiEditor, 2020. "Dissecting Characteristics Nonparametrically," Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2326-2377.
    8. Yang, Fan, 2013. "Investment shocks and the commodity basis spread," Journal of Financial Economics, Elsevier, vol. 110(1), pages 164-184.
    9. Clark, Todd E. & West, Kenneth D., 2007. "Approximately normal tests for equal predictive accuracy in nested models," Journal of Econometrics, Elsevier, vol. 138(1), pages 291-311, May.
    10. Jun Pan & Allen M. Poteshman, 2006. "The Information in Option Volume for Future Stock Prices," Review of Financial Studies, Society for Financial Studies, vol. 19(3), pages 871-908.
    11. Ziran Li & Dermot J. Hayes, 2022. "The hedging pressure hypothesis and the risk premium in the soybean reverse crush spread," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 42(3), pages 428-445, March.
    12. Daskalaki, Charoula & Kostakis, Alexandros & Skiadopoulos, George, 2014. "Are there common factors in individual commodity futures returns?," Journal of Banking & Finance, Elsevier, vol. 40(C), pages 346-363.
    13. Ahmed, Shamim & Tsvetanov, Daniel, 2016. "The predictive performance of commodity futures risk factors," Journal of Banking & Finance, Elsevier, vol. 71(C), pages 20-36.
    14. Massimo Guidolin & Manuela Pedio, 2021. "Forecasting commodity futures returns with stepwise regressions: Do commodity-specific factors help?," Annals of Operations Research, Springer, vol. 299(1), pages 1317-1356, April.
    15. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    16. Gary B. Gorton & Fumio Hayashi & K. Geert Rouwenhorst, 2013. "The Fundamentals of Commodity Futures Returns," Review of Finance, European Finance Association, vol. 17(1), pages 35-105.
    17. David E. Rapach & Jack K. Strauss & Guofu Zhou, 2013. "International Stock Return Predictability: What Is the Role of the United States?," Journal of Finance, American Finance Association, vol. 68(4), pages 1633-1662, August.
    18. Wang, Yang & Cao, Xinbang & Sui, Xiuping & Zhao, Wenxi, 2019. "How do black swan events go global? -Evidence from US reserves effects on TOCOM gold futures prices," Finance Research Letters, Elsevier, vol. 31(C).
    19. Mohammad Isleimeyyeh, 2020. "The role of financial investors in determining the commodity futures risk premium," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 40(9), pages 1375-1397, September.
    20. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," Review of Finance, European Finance Association, vol. 33(5), pages 2223-2273.
    21. Yu, Dan & Chen, Chuang & Wang, Yudong & Zhang, Yaojie, 2023. "Hedging pressure momentum and the predictability of oil futures returns," Economic Modelling, Elsevier, vol. 121(C).
    22. Fernandez-Perez, Adrian & Frijns, Bart & Fuertes, Ana-Maria & Miffre, Joelle, 2018. "The skewness of commodity futures returns," Journal of Banking & Finance, Elsevier, vol. 86(C), pages 143-158.
    23. Chan, Kam Fong & Treepongkaruna, Sirimon & Brooks, Robert & Gray, Stephen, 2011. "Asset market linkages: Evidence from financial, commodity and real estate assets," Journal of Banking & Finance, Elsevier, vol. 35(6), pages 1415-1426, June.
    24. Gurdip Bakshi & Xiaohui Gao & Alberto G. Rossi, 2019. "Understanding the Sources of Risk Underlying the Cross Section of Commodity Returns," Management Science, INFORMS, vol. 65(2), pages 619-641, February.
    25. Bakas, Dimitrios & Triantafyllou, Athanasios, 2019. "Volatility forecasting in commodity markets using macro uncertainty," Energy Economics, Elsevier, vol. 81(C), pages 79-94.
    26. Liang, Qi & Sun, Wenjia & Li, Wenyu & Yu, Fengyan, 2021. "Media effects matter: Macroeconomic announcements in the gold futures market," Economic Modelling, Elsevier, vol. 96(C), pages 1-12.
    27. Giampietro, Marta & Guidolin, Massimo & Pedio, Manuela, 2018. "Estimating stochastic discount factor models with hidden regimes: Applications to commodity pricing," European Journal of Operational Research, Elsevier, vol. 265(2), pages 685-702.
    28. Idilbi-Bayaa, Yasmeen & Qadan, Mahmoud, 2022. "What the current yield curve says, and what the future prices of energy do," Resources Policy, Elsevier, vol. 75(C).
    29. Fuertes, Ana-Maria & Miffre, Joëlle & Rallis, Georgios, 2010. "Tactical allocation in commodity futures markets: Combining momentum and term structure signals," Journal of Banking & Finance, Elsevier, vol. 34(10), pages 2530-2548, October.
    30. Marta Szymanowska & Frans Roon & Theo Nijman & Rob Goorbergh, 2014. "An Anatomy of Commodity Futures Risk Premia," Journal of Finance, American Finance Association, vol. 69(1), pages 453-482, February.
    31. Geetesh Bhardwaj & Gary Gorton & Geert Rouwenhorst, 2015. "Facts and Fantasies about Commodity Futures Ten Years Later," NBER Working Papers 21243, National Bureau of Economic Research, Inc.
    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. Massimo Guidolin & Manuela Pedio, 2022. "Switching Coefficients or Automatic Variable Selection: An Application in Forecasting Commodity Returns," Forecasting, MDPI, vol. 4(1), pages 1-32, February.
    2. Cotter, John & Eyiah-Donkor, Emmanuel & Potì, Valerio, 2023. "Commodity futures return predictability and intertemporal asset pricing," Journal of Commodity Markets, Elsevier, vol. 31(C).
    3. Sakkas, Athanasios & Tessaromatis, Nikolaos, 2020. "Factor based commodity investing," Journal of Banking & Finance, Elsevier, vol. 115(C).
    4. Jun Yuan & Qi Xu & Ying Wang, 2023. "Probability weighting in commodity futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 43(4), pages 516-548, April.
    5. Doron Avramov & Si Cheng & Lior Metzker, 2023. "Machine Learning vs. Economic Restrictions: Evidence from Stock Return Predictability," Management Science, INFORMS, vol. 69(5), pages 2587-2619, May.
    6. Daxuan Cheng & Yin Liao & Zheyao Pan, 2023. "The geopolitical risk premium in the commodity futures market," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 43(8), pages 1069-1090, August.
    7. Cortazar, Gonzalo & Ortega, Hector & Rojas, Maximiliano & Schwartz, Eduardo S., 2021. "Commodity index risk premium," Journal of Commodity Markets, Elsevier, vol. 22(C).
    8. Mykola Babiak & Jozef Barunik, 2020. "Deep Learning, Predictability, and Optimal Portfolio Returns," CERGE-EI Working Papers wp677, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    9. Nguyen, Duc Binh Benno & Prokopczuk, Marcel & Wese Simen, Chardin, 2019. "The risk premium of gold," Journal of International Money and Finance, Elsevier, vol. 94(C), pages 140-159.
    10. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    11. Xi Dong & Yan Li & David E. Rapach & Guofu Zhou, 2022. "Anomalies and the Expected Market Return," Journal of Finance, American Finance Association, vol. 77(1), pages 639-681, February.
    12. David A. Mascio & Marat Molyboga & Frank J. Fabozzi, 2023. "The battle of the factors: Macroeconomic variables or investor sentiment?," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(8), pages 2280-2291, December.
    13. Iason Kynigakis & Ekaterini Panopoulou, 2022. "Does model complexity add value to asset allocation? Evidence from machine learning forecasting models," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(3), pages 603-639, April.
    14. Wang, Qiao & Balvers, Ronald, 2021. "Determinants and predictability of commodity producer returns," Journal of Banking & Finance, Elsevier, vol. 133(C).
    15. Cakici, Nusret & Fieberg, Christian & Metko, Daniel & Zaremba, Adam, 2023. "Machine learning goes global: Cross-sectional return predictability in international stock markets," Journal of Economic Dynamics and Control, Elsevier, vol. 155(C).
    16. Ahmed, Shamim & Tsvetanov, Daniel, 2016. "The predictive performance of commodity futures risk factors," Journal of Banking & Finance, Elsevier, vol. 71(C), pages 20-36.
    17. Huang, Dashan & Li, Jiangyuan & Wang, Liyao, 2021. "Are disagreements agreeable? Evidence from information aggregation," Journal of Financial Economics, Elsevier, vol. 141(1), pages 83-101.
    18. John Hua Fan & Tingxi Zhang, 2020. "The untold story of commodity futures in China," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 40(4), pages 671-706, April.
    19. Wen, Danyan & Liu, Li & Wang, Yudong & Zhang, Yaojie, 2022. "Forecasting crude oil market returns: Enhanced moving average technical indicators," Resources Policy, Elsevier, vol. 76(C).
    20. Zaremba, Adam & Bianchi, Robert J. & Mikutowski, Mateusz, 2021. "Long-run reversal in commodity returns: Insights from seven centuries of evidence," Journal of Banking & Finance, Elsevier, vol. 133(C).

    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:wly:jfutmk:v:44:y:2024:i:2:p:302-322. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www.interscience.wiley.com/jpages/0270-7314/ .

    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.