IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v17y2024i6p1296-d1353373.html
   My bibliography  Save this article

Forecasting East and West Coast Gasoline Prices with Tree-Based Machine Learning Algorithms

Author

Listed:
  • Emmanouil Sofianos

    (Bureau d’Economie Théorique et Appliquée (BETA), University of Strasbourg, 67085 Strasbourg, France)

  • Emmanouil Zaganidis

    (Department of Economics, Democritus University of Thrace, 69100 Komotini, Greece)

  • Theophilos Papadimitriou

    (Department of Economics, Democritus University of Thrace, 69100 Komotini, Greece)

  • Periklis Gogas

    (Department of Economics, Democritus University of Thrace, 69100 Komotini, Greece)

Abstract

This study aims to forecast New York and Los Angeles gasoline spot prices on a daily frequency. The dataset includes gasoline prices and a big set of 128 other relevant variables spanning the period from 17 February 2004 to 26 March 2022. These variables were fed to three tree-based machine learning algorithms: decision trees, random forest, and XGBoost. Furthermore, a variable importance measure (VIM) technique was applied to identify and rank the most important explanatory variables. The optimal model, a trained random forest, achieves a mean absolute percent error (MAPE) in the out-of-sample of 3.23% for the New York and 3.78% for the Los Angeles gasoline spot prices. The first lag, AR (1), of gasoline is the most important variable in both markets; the top five variables are all energy-related. This paper can strengthen the understanding of price determinants and has the potential to inform strategic decisions and policy directions within the energy sector, making it a valuable asset for both industry practitioners and policymakers.

Suggested Citation

  • Emmanouil Sofianos & Emmanouil Zaganidis & Theophilos Papadimitriou & Periklis Gogas, 2024. "Forecasting East and West Coast Gasoline Prices with Tree-Based Machine Learning Algorithms," Energies, MDPI, vol. 17(6), pages 1-14, March.
  • Handle: RePEc:gam:jeners:v:17:y:2024:i:6:p:1296-:d:1353373
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/17/6/1296/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/17/6/1296/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Yu, Lean & Ma, Yueming & Ma, Mengyao, 2021. "An effective rolling decomposition-ensemble model for gasoline consumption forecasting," Energy, Elsevier, vol. 222(C).
    2. Gogas, Periklis & Papadimitriou, Theophilos & Sofianos, Emmanouil, 2019. "Money Neutrality, Monetary Aggregates and Machine Learning," DUTH Research Papers in Economics 4-2016, Democritus University of Thrace, Department of Economics.
    3. Periklis Gogas & Theophilos Papadimitriou, 2021. "Machine Learning in Economics and Finance," Computational Economics, Springer;Society for Computational Economics, vol. 57(1), pages 1-4, January.
    4. Drachal, Krzysztof, 2021. "Forecasting selected energy commodities prices with Bayesian dynamic finite mixtures," Energy Economics, Elsevier, vol. 99(C).
    5. Cindy W. Ma, 1989. "Forecasting efficiency of energy futures prices," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 9(5), pages 393-419, October.
    6. M. E. Malliaris & S. G. Malliaris, 2008. "Forecasting inter-related energy product prices," The European Journal of Finance, Taylor & Francis Journals, vol. 14(6), pages 453-468.
    7. Li, Ranran, 2023. "Forecasting energy spot prices: A multiscale clustering recognition approach," Resources Policy, Elsevier, vol. 81(C).
    8. Shian-Chang Huang & Cheng-Feng Wu, 2018. "Energy Commodity Price Forecasting with Deep Multiple Kernel Learning," Energies, MDPI, vol. 11(11), pages 1-16, November.
    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. Raushan Kumar, 2021. "Predicting Wheat Futures Prices in India," Asia-Pacific Financial Markets, Springer;Japanese Association of Financial Economics and Engineering, vol. 28(1), pages 121-140, March.
    2. Dimitrios Mouchtaris & Emmanouil Sofianos & Periklis Gogas & Theophilos Papadimitriou, 2021. "Forecasting Natural Gas Spot Prices with Machine Learning," Energies, MDPI, vol. 14(18), pages 1-13, September.
    3. Qi Zhang & Yi Hu & Jianbin Jiao & Shouyang Wang, 2022. "Exploring the Trend of Commodity Prices: A Review and Bibliometric Analysis," Sustainability, MDPI, vol. 14(15), pages 1-22, August.
    4. Qin Lu & Jingwen Liao & Kechi Chen & Yanhui Liang & Yu Lin, 2024. "Predicting Natural Gas Prices Based on a Novel Hybrid Model with Variational Mode Decomposition," Computational Economics, Springer;Society for Computational Economics, vol. 63(2), pages 639-678, February.
    5. Heyam H. Al-Baity, 2023. "The Artificial Intelligence Revolution in Digital Finance in Saudi Arabia: A Comprehensive Review and Proposed Framework," Sustainability, MDPI, vol. 15(18), pages 1-16, September.
    6. Nwafor, Chioma Ngozi & Nwafor, Obumneme Zimuzor, 2023. "Determinants of non-performing loans: An explainable ensemble and deep neural network approach," Finance Research Letters, Elsevier, vol. 56(C).
    7. Zhu, Bangzhu & Wan, Chunzhuo & Wang, Ping, 2022. "Interval forecasting of carbon price: A novel multiscale ensemble forecasting approach," Energy Economics, Elsevier, vol. 115(C).
    8. Ma, Yixiang & Yu, Lean & Zhang, Guoxing, 2022. "Short-term wind power forecasting with an intermittency-trait-driven methodology," Renewable Energy, Elsevier, vol. 198(C), pages 872-883.
    9. Hankyeung Choi & David J. Leatham & Kunlapath Sukcharoen, 2015. "Oil Price Forecasting Using Crack Spread Futures and Oil Exchange Traded Funds," Contemporary Economics, University of Economics and Human Sciences in Warsaw., vol. 9(1), March.
    10. Melike Bildirici & Nilgun Guler Bayazit & Yasemen Ucan, 2020. "Analyzing Crude Oil Prices under the Impact of COVID-19 by Using LSTARGARCHLSTM," Energies, MDPI, vol. 13(11), pages 1-18, June.
    11. Moting Su & Zongyi Zhang & Ye Zhu & Donglan Zha, 2019. "Data-Driven Natural Gas Spot Price Forecasting with Least Squares Regression Boosting Algorithm," Energies, MDPI, vol. 12(6), pages 1-13, March.
    12. Lean Yu & Yueming Ma, 2021. "A Data-Trait-Driven Rolling Decomposition-Ensemble Model for Gasoline Consumption Forecasting," Energies, MDPI, vol. 14(15), pages 1-26, July.
    13. Krzysztof Drachal & Michał Pawłowski, 2021. "A Review of the Applications of Genetic Algorithms to Forecasting Prices of Commodities," Economies, MDPI, vol. 9(1), pages 1-22, January.
    14. Li, Jinchao & Wu, Qianqian & Tian, Yu & Fan, Liguo, 2021. "Monthly Henry Hub natural gas spot prices forecasting using variational mode decomposition and deep belief network," Energy, Elsevier, vol. 227(C).
    15. Wang, Tiantian & Qu, Wan & Zhang, Dayong & Ji, Qiang & Wu, Fei, 2022. "Time-varying determinants of China's liquefied natural gas import price: A dynamic model averaging approach," Energy, Elsevier, vol. 259(C).
    16. Varela, Oscar, 1999. "Futures and realized cash or settle prices for gold, silver, and copper," Review of Financial Economics, Elsevier, vol. 8(2), pages 121-138.
    17. Zhang, Xiaokong & Chai, Jian & Tian, Lingyue & Yang, Ying & Zhang, Zhe George & Pan, Yue, 2023. "Forecast and structural characteristics of China's oil product consumption embedded in bottom-line thinking," Energy, Elsevier, vol. 278(PA).
    18. Periklis Gogas & Theophilos Papadimitriou & Emmanouil Sofianos, 2022. "Forecasting unemployment in the euro area with machine learning," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(3), pages 551-566, April.
    19. Nikolaos Milonas & Thomas Henker, 2001. "Price spread and convenience yield behaviour in the international oil market," Applied Financial Economics, Taylor & Francis Journals, vol. 11(1), pages 23-36.
    20. Yang, Wendong & Sun, Shaolong & Hao, Yan & Wang, Shouyang, 2022. "A novel machine learning-based electricity price forecasting model based on optimal model selection strategy," Energy, Elsevier, vol. 238(PC).

    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:jeners:v:17:y:2024:i:6:p:1296-:d:1353373. 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.