IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v179y2019icp214-221.html
   My bibliography  Save this article

Long-term forecast of energy commodities price using machine learning

Author

Listed:
  • Herrera, Gabriel Paes
  • Constantino, Michel
  • Tabak, Benjamin Miranda
  • Pistori, Hemerson
  • Su, Jen-Je
  • Naranpanawa, Athula

Abstract

We compare the long-horizon forecast performance of traditional econometric models with machine learning methods (Neural Networks and Random Forests) for the main energy commodities in the world using monthly prices provided by the International Monetary Fund (IMF). We study the case of Oil (Brent, WTI and Dubai Fateh), Coal (AU) and Gas (US and Russia). Models accuracy are measured using RMSE and MAPE and the M-DM test is applied to evaluate whether there is a statistically significant difference between the methods. We computed thousands of tests regarding the machine learning parameters combinations as there is no method to set the optimal structure for these models. The results show that machine learning methods outperform traditional econometric methods and also that they present an additional advantage, which is the capacity to predict turning points. This study adds further evidence for the discussion on the use of machine learning algorithms for the development of more accurate forecasts to support policymakers and help the decision-making process in the international energy market.

Suggested Citation

  • Herrera, Gabriel Paes & Constantino, Michel & Tabak, Benjamin Miranda & Pistori, Hemerson & Su, Jen-Je & Naranpanawa, Athula, 2019. "Long-term forecast of energy commodities price using machine learning," Energy, Elsevier, vol. 179(C), pages 214-221.
  • Handle: RePEc:eee:energy:v:179:y:2019:i:c:p:214-221
    DOI: 10.1016/j.energy.2019.04.077
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.energy.2019.04.077?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. Alquist, Ron & Kilian, Lutz & Vigfusson, Robert J., 2013. "Forecasting the Price of Oil," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 427-507, Elsevier.
    2. Kang, Wensheng & Ratti, Ronald A. & Vespignani, Joaquin L., 2017. "Oil price shocks and policy uncertainty: New evidence on the effects of US and non-US oil production," Energy Economics, Elsevier, vol. 66(C), pages 536-546.
    3. Gianluca Bontempi & Souhaib Ben Taieb & Yann-Aël Le Borgne, 2013. "Machine learning strategies for time series forecasting," ULB Institutional Repository 2013/167761, ULB -- Universite Libre de Bruxelles.
    4. van de Ven, Dirk Jan & Fouquet, Roger, 2017. "Historical energy price shocks and their changing effects on the economy," Energy Economics, Elsevier, vol. 62(C), pages 204-216.
    5. Zhao, Yang & Li, Jianping & Yu, Lean, 2017. "A deep learning ensemble approach for crude oil price forecasting," Energy Economics, Elsevier, vol. 66(C), pages 9-16.
    6. Choi, In, 1999. "Testing the Random Walk Hypothesis for Real Exchange Rates," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 14(3), pages 293-308, May-June.
    7. Cheng, Fangzheng & Fan, Tijun & Fan, Dandan & Li, Shanling, 2018. "The prediction of oil price turning points with log-periodic power law and multi-population genetic algorithm," Energy Economics, Elsevier, vol. 72(C), pages 341-355.
    8. Sensoy, Ahmet & Hacihasanoglu, Erk, 2014. "Time-varying long range dependence in energy futures markets," Energy Economics, Elsevier, vol. 46(C), pages 318-327.
    9. Sánchez Lasheras, Fernando & de Cos Juez, Francisco Javier & Suárez Sánchez, Ana & Krzemień, Alicja & Riesgo Fernández, Pedro, 2015. "Forecasting the COMEX copper spot price by means of neural networks and ARIMA models," Resources Policy, Elsevier, vol. 45(C), pages 37-43.
    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. Chai, Jian & Xing, Li-Min & Zhou, Xiao-Yang & Zhang, Zhe George & Li, Jie-Xun, 2018. "Forecasting the WTI crude oil price by a hybrid-refined method," Energy Economics, Elsevier, vol. 71(C), pages 114-127.
    12. Zhu, Suling & Wang, Jianzhou & Zhao, Weigang & Wang, Jujie, 2011. "A seasonal hybrid procedure for electricity demand forecasting in China," Applied Energy, Elsevier, vol. 88(11), pages 3807-3815.
    13. Safari, Ali & Davallou, Maryam, 2018. "Oil price forecasting using a hybrid model," Energy, Elsevier, vol. 148(C), pages 49-58.
    14. Tang, Ling & Wu, Yao & Yu, Lean, 2018. "A randomized-algorithm-based decomposition-ensemble learning methodology for energy price forecasting," Energy, Elsevier, vol. 157(C), pages 526-538.
    15. Harvey, David & Leybourne, Stephen & Newbold, Paul, 1997. "Testing the equality of prediction mean squared errors," International Journal of Forecasting, Elsevier, vol. 13(2), pages 281-291, June.
    16. Gérard Biau & Erwan Scornet, 2016. "A random forest guided tour," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 25(2), pages 197-227, June.
    17. Kim, Jae H., 2009. "Automatic variance ratio test under conditional heteroskedasticity," Finance Research Letters, Elsevier, vol. 6(3), pages 179-185, September.
    18. G. Elliott & C. Granger & A. Timmermann (ed.), 2013. "Handbook of Economic Forecasting," Handbook of Economic Forecasting, Elsevier, edition 1, volume 2, number 2.
    19. Ding, Yishan, 2018. "A novel decompose-ensemble methodology with AIC-ANN approach for crude oil forecasting," Energy, Elsevier, vol. 154(C), pages 328-336.
    20. Tabak, Benjamin M. & Cajueiro, Daniel O., 2007. "Are the crude oil markets becoming weakly efficient over time? A test for time-varying long-range dependence in prices and volatility," Energy Economics, Elsevier, vol. 29(1), pages 28-36, January.
    21. Wang, Ju-Jie & Wang, Jian-Zhou & Zhang, Zhe-George & Guo, Shu-Po, 2012. "Stock index forecasting based on a hybrid model," Omega, Elsevier, vol. 40(6), pages 758-766.
    22. Darbellay, Georges A. & Slama, Marek, 2000. "Forecasting the short-term demand for electricity: Do neural networks stand a better chance?," International Journal of Forecasting, Elsevier, vol. 16(1), pages 71-83.
    23. Lahouar, A. & Ben Hadj Slama, J., 2017. "Hour-ahead wind power forecast based on random forests," Renewable Energy, Elsevier, vol. 109(C), pages 529-541.
    24. Wang, Minggang & Tian, Lixin & Zhou, Peng, 2018. "A novel approach for oil price forecasting based on data fluctuation network," Energy Economics, Elsevier, vol. 71(C), pages 201-212.
    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. Li, Jinchao & Zhu, Shaowen & Wu, Qianqian, 2019. "Monthly crude oil spot price forecasting using variational mode decomposition," Energy Economics, Elsevier, vol. 83(C), pages 240-253.
    2. Manickavasagam, Jeevananthan & Visalakshmi, S. & Apergis, Nicholas, 2020. "A novel hybrid approach to forecast crude oil futures using intraday data," Technological Forecasting and Social Change, Elsevier, vol. 158(C).
    3. Guo, Jingjun & Zhao, Zhengling & Sun, Jingyun & Sun, Shaolong, 2022. "Multi-perspective crude oil price forecasting with a new decomposition-ensemble framework," Resources Policy, Elsevier, vol. 77(C).
    4. Abdollahi, Hooman & Ebrahimi, Seyed Babak, 2020. "A new hybrid model for forecasting Brent crude oil price," Energy, Elsevier, vol. 200(C).
    5. Czudaj, Robert L., 2022. "Heterogeneity of beliefs and information rigidity in the crude oil market: Evidence from survey data," European Economic Review, Elsevier, vol. 143(C).
    6. Nonejad, Nima, 2020. "Crude oil price changes and the United Kingdom real gross domestic product growth rate: An out-of-sample investigation," The Journal of Economic Asymmetries, Elsevier, vol. 21(C).
    7. Safari, Ali & Davallou, Maryam, 2018. "Oil price forecasting using a hybrid model," Energy, Elsevier, vol. 148(C), pages 49-58.
    8. Nima Nonejad, 2020. "A detailed look at crude oil price volatility prediction using macroeconomic variables," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 39(7), pages 1119-1141, November.
    9. Drachal, Krzysztof, 2018. "Comparison between Bayesian and information-theoretic model averaging: Fossil fuels prices example," Energy Economics, Elsevier, vol. 74(C), pages 208-251.
    10. Nonejad, Nima, 2019. "Forecasting aggregate equity return volatility using crude oil price volatility: The role of nonlinearities and asymmetries," The North American Journal of Economics and Finance, Elsevier, vol. 50(C).
    11. Zheng, Li & Sun, Yuying & Wang, Shouyang, 2024. "A novel interval-based hybrid framework for crude oil price forecasting and trading," Energy Economics, Elsevier, vol. 130(C).
    12. Butler, Sunil & Kokoszka, Piotr & Miao, Hong & Shang, Han Lin, 2021. "Neural network prediction of crude oil futures using B-splines," Energy Economics, Elsevier, vol. 94(C).
    13. Liyang Tang, 2020. "Application of Nonlinear Autoregressive with Exogenous Input (NARX) neural network in macroeconomic forecasting, national goal setting and global competitiveness assessment," Papers 2005.08735, arXiv.org.
    14. Lu, Quanying & Li, Yuze & Chai, Jian & Wang, Shouyang, 2020. "Crude oil price analysis and forecasting: A perspective of “new triangle”," Energy Economics, Elsevier, vol. 87(C).
    15. Nonejad, Nima, 2020. "A comprehensive empirical analysis of the predictive impact of the price of crude oil on aggregate equity return volatility," Journal of Commodity Markets, Elsevier, vol. 20(C).
    16. Li, Jingjing & Tang, Ling & Wang, Shouyang, 2020. "Forecasting crude oil price with multilingual search engine data," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 551(C).
    17. Qin, Quande & Xie, Kangqiang & He, Huangda & Li, Li & Chu, Xianghua & Wei, Yi-Ming & Wu, Teresa, 2019. "An effective and robust decomposition-ensemble energy price forecasting paradigm with local linear prediction," Energy Economics, Elsevier, vol. 83(C), pages 402-414.
    18. Magnus Reif, 2020. "Macroeconomics, Nonlinearities, and the Business Cycle," ifo Beiträge zur Wirtschaftsforschung, ifo Institute - Leibniz Institute for Economic Research at the University of Munich, number 87.
    19. Naser, Hanan, 2016. "Estimating and forecasting the real prices of crude oil: A data rich model using a dynamic model averaging (DMA) approach," Energy Economics, Elsevier, vol. 56(C), pages 75-87.
    20. Radosław Puka & Bartosz Łamasz & Marek Michalski, 2021. "Effectiveness of Artificial Neural Networks in Hedging against WTI Crude Oil Price Risk," Energies, MDPI, vol. 14(11), pages 1-26, June.

    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:energy:v:179:y:2019:i:c:p:214-221. 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.journals.elsevier.com/energy .

    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.