IDEAS home Printed from https://ideas.repec.org/a/spr/empeco/v66y2024i2d10.1007_s00181-023-02480-0.html
   My bibliography  Save this article

Forecasting oil prices with random forests

Author

Listed:
  • Emanuel Kohlscheen

    (Bank for International Settlements)

Abstract

This study analyzes oil price movements through the lens of an agnostic random forest model, which is based on 1000 regression trees. It shows that this highly disciplined, yet flexible computational model reduces in-sample root-mean-square errors (RMSEs) by 65% relative to a standard linear least square model that uses the same comprehensive set of 11 high-frequency explanatory factors. In 1–3 months ahead price forecasting exercises the RMSE reduction relative to OLS ranges exceeds 50%, highlighting the relevance of non-linearities in oil markets. The results underscore the importance of incorporating financial factors into oil models: US interest rates, the dollar and the VIX together account for 39% of the models’ RMSE reduction in the post-2010 sample, rising to 48% in the post-2020 sample.

Suggested Citation

  • Emanuel Kohlscheen, 2024. "Forecasting oil prices with random forests," Empirical Economics, Springer, vol. 66(2), pages 927-943, February.
  • Handle: RePEc:spr:empeco:v:66:y:2024:i:2:d:10.1007_s00181-023-02480-0
    DOI: 10.1007/s00181-023-02480-0
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s00181-023-02480-0
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s00181-023-02480-0?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. Hamilton, James D., 1996. "This is what happened to the oil price-macroeconomy relationship," Journal of Monetary Economics, Elsevier, vol. 38(2), pages 215-220, October.
    2. Jon Kleinberg & Jens Ludwig & Sendhil Mullainathan & Ziad Obermeyer, 2015. "Prediction Policy Problems," American Economic Review, American Economic Association, vol. 105(5), pages 491-495, May.
    3. Chakraborty, Chiranjit & Joseph, Andreas, 2017. "Machine learning at central banks," Bank of England working papers 674, Bank of England.
    4. Hamilton, James D., 2003. "What is an oil shock?," Journal of Econometrics, Elsevier, vol. 113(2), pages 363-398, April.
    5. Sendhil Mullainathan & Jann Spiess, 2017. "Machine Learning: An Applied Econometric Approach," Journal of Economic Perspectives, American Economic Association, vol. 31(2), pages 87-106, Spring.
    6. Christiane Baumeister & Dimitris Korobilis & Thomas K. Lee, 2022. "Energy Markets and Global Economic Conditions," The Review of Economics and Statistics, MIT Press, vol. 104(4), pages 828-844, October.
    7. Christiane Baumeister & Lutz Kilian, 2016. "Forty Years of Oil Price Fluctuations: Why the Price of Oil May Still Surprise Us," Journal of Economic Perspectives, American Economic Association, vol. 30(1), pages 139-160, Winter.
    8. Akram, Q. Farooq, 2009. "Commodity prices, interest rates and the dollar," Energy Economics, Elsevier, vol. 31(6), pages 838-851, November.
    9. Kilian, Lutz & Zhou, Xiaoqing, 2018. "Modeling fluctuations in the global demand for commodities," Journal of International Money and Finance, Elsevier, vol. 88(C), pages 54-78.
    10. Marcelo C. Medeiros & Gabriel F. R. Vasconcelos & Álvaro Veiga & Eduardo Zilberman, 2021. "Forecasting Inflation in a Data-Rich Environment: The Benefits of Machine Learning Methods," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 39(1), pages 98-119, January.
    11. Christiane Baumeister & Lutz Kilian, 2014. "What Central Bankers Need To Know About Forecasting Oil Prices," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 55(3), pages 869-889, August.
    12. Guliyev, Hasraddin & Mustafayev, Eldayag, 2022. "Predicting the changes in the WTI crude oil price dynamics using machine learning models," Resources Policy, Elsevier, vol. 77(C).
    13. Hamilton, James D, 1983. "Oil and the Macroeconomy since World War II," Journal of Political Economy, University of Chicago Press, vol. 91(2), pages 228-248, April.
    14. Hal R. Varian, 2014. "Big Data: New Tricks for Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 28(2), pages 3-28, Spring.
    15. Lutz Kilian, 2009. "Not All Oil Price Shocks Are Alike: Disentangling Demand and Supply Shocks in the Crude Oil Market," American Economic Review, American Economic Association, vol. 99(3), pages 1053-1069, June.
    16. Soojin Jo, 2014. "The Effects of Oil Price Uncertainty on Global Real Economic Activity," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 46(6), pages 1113-1135, September.
    17. Avalos, Fernando, 2014. "Do oil prices drive food prices? The tale of a structural break," Journal of International Money and Finance, Elsevier, vol. 42(C), pages 253-271.
    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. Emanuel Kohlscheen, 2022. "Quantifying the Role of Interest Rates, the Dollar and Covid in Oil Prices," Papers 2208.14254, arXiv.org, revised Oct 2022.
    2. Lang, Korbinian & Auer, Benjamin R., 2020. "The economic and financial properties of crude oil: A review," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    3. Nonejad, Nima, 2021. "The price of crude oil and (conditional) out-of-sample predictability of world industrial production," Journal of Commodity Markets, Elsevier, vol. 23(C).
    4. Zhang, Zhikai & Wang, Yudong & Xiao, Jihong & Zhang, Yaojie, 2023. "Not all geopolitical shocks are alike: Identifying price dynamics in the crude oil market under tensions," Resources Policy, Elsevier, vol. 80(C).
    5. Kyritsis, Evangelos & Serletis, Apostolos, 2018. "The zero lower bound and market spillovers: Evidence from the G7 and Norway," Research in International Business and Finance, Elsevier, vol. 44(C), pages 100-123.
    6. Benk, Szilard & Gillman, Max, 2023. "Identifying money and inflation expectation shocks to real oil prices," Energy Economics, Elsevier, vol. 126(C).
    7. Nima Nonejad, 2021. "Should crude oil price volatility receive more attention than the price of crude oil? An empirical investigation via a large‐scale out‐of‐sample forecast evaluation of US macroeconomic data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 40(5), pages 769-791, August.
    8. Ramos, Sofia B. & Veiga, Helena, 2011. "Risk factors in oil and gas industry returns: International evidence," Energy Economics, Elsevier, vol. 33(3), pages 525-542, May.
    9. Athanasios Triantafyllou & Dimitrios Bakas & Marilou Ioakimidis, 2023. "Commodity price uncertainty as a leading indicator of economic activity," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(4), pages 4194-4219, October.
    10. Aktham I. Maghyereh & Basil Awartani & Osama D. Sweidan, 2019. "Oil price uncertainty and real output growth: new evidence from selected oil-importing countries in the Middle East," Empirical Economics, Springer, vol. 56(5), pages 1601-1621, May.
    11. Christiane Baumeister & Dimitris Korobilis & Thomas K. Lee, 2022. "Energy Markets and Global Economic Conditions," The Review of Economics and Statistics, MIT Press, vol. 104(4), pages 828-844, October.
    12. Nima Nonejad, 2024. "Point forecasts of the price of crude oil: an attempt to “beat” the end-of-month random-walk benchmark," Empirical Economics, Springer, vol. 67(4), pages 1497-1539, October.
    13. Jon Ellingsen & Caroline Espegren, 2022. "Lost in transition? Earnings losses of displaced petroleum workers," Working Papers No 06/2022, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    14. Jochen H. F. Güntner & Katharina Linsbauer, 2018. "The Effects of Oil Supply and Demand Shocks on U.S. Consumer Sentiment," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 50(7), pages 1617-1644, October.
    15. Conny Olovsson, 2019. "Oil prices in a general equilibrium model with precautionary demand for oil," Review of Economic Dynamics, Elsevier for the Society for Economic Dynamics, vol. 32, pages 1-17, April.
    16. Knotek, Edward S. & Zaman, Saeed, 2021. "Asymmetric responses of consumer spending to energy prices: A threshold VAR approach," Energy Economics, Elsevier, vol. 95(C).
    17. repec:cii:cepiei:2012-q3-131-4 is not listed on IDEAS
    18. Nguyen, Bao H. & Okimoto, Tatsuyoshi, 2019. "Asymmetric reactions of the US natural gas market and economic activity," Energy Economics, Elsevier, vol. 80(C), pages 86-99.
    19. Priya, Pragati & Pal, Debdatta, 2024. "Does crude oil price volatility respond asymmetrically to financial shocks?," Resources Policy, Elsevier, vol. 92(C).
    20. Wang, Yudong & Hao, Xianfeng, 2023. "Forecasting the real prices of crude oil: What is the role of parameter instability?," Energy Economics, Elsevier, vol. 117(C).
    21. Rajesh H. Acharya & Anver C. Sadath, 2018. "Revisiting the relationship between oil price and macro economy: Evidence from India," ECONOMICS AND POLICY OF ENERGY AND THE ENVIRONMENT, FrancoAngeli Editore, vol. 2018(1), pages 173-190.

    More about this item

    Keywords

    Dollar; Forecasting; Machine learning; Oil; Risk;
    All these keywords.

    JEL classification:

    • C40 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - General
    • F30 - International Economics - - International Finance - - - General
    • Q40 - Agricultural and Natural Resource Economics; Environmental and Ecological Economics - - Energy - - - General
    • Q41 - Agricultural and Natural Resource Economics; Environmental and Ecological Economics - - Energy - - - Demand and Supply; Prices
    • Q47 - Agricultural and Natural Resource Economics; Environmental and Ecological Economics - - Energy - - - Energy Forecasting

    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:spr:empeco:v:66:y:2024:i:2:d:10.1007_s00181-023-02480-0. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.