IDEAS home Printed from
   My bibliography  Save this paper

Application of Probabilistic Graphical Models in Forecasting Crude Oil Price


  • Danish A. Alvi


The dissertation investigates the application of Probabilistic Graphical Models (PGMs) in forecasting the price of Crude Oil. This research is important because crude oil plays a very pivotal role in the global economy hence is a very critical macroeconomic indicator of the industrial growth. Given the vast amount of macroeconomic factors affecting the price of crude oil such as supply of oil from OPEC countries, demand of oil from OECD countries, geopolitical and geoeconomic changes among many other variables - probabilistic graphical models (PGMs) allow us to understand by learning the graphical structure. This dissertation proposes condensing data numerous Crude Oil factors into a graphical model in the attempt of creating a accurate forecast of the price of crude oil. The research project experiments with using different libraries in Python in order to construct models of the crude oil market. The experiments in this thesis investigate three main challenges commonly presented while trading oil in the financial markets. The first challenge it investigates is the process of learning the structure of the oil markets; thus allowing crude oil traders to understand the different physical market factors and macroeconomic indicators affecting crude oil markets and how they are \textit{causally} related. The second challenge it solves is the exploration and exploitation of the available data and the learnt structure in predicting the behaviour of the oil markets. The third challenge it investigates is how to validate the performance and reliability of the constructed model in order for it to be deployed in the financial markets. A design and implementation of a probabilistic framework for forecasting the price of crude oil is also presented as part of the research.

Suggested Citation

  • Danish A. Alvi, 2018. "Application of Probabilistic Graphical Models in Forecasting Crude Oil Price," Papers 1804.10869,
  • Handle: RePEc:arx:papers:1804.10869

    Download full text from publisher

    File URL:
    File Function: Latest version
    Download Restriction: no

    References listed on IDEAS

    1. Baumeister, Christiane & Guérin, Pierre & Kilian, Lutz, 2015. "Do high-frequency financial data help forecast oil prices? The MIDAS touch at work," International Journal of Forecasting, Elsevier, vol. 31(2), pages 238-252.
    2. Hamilton, James D & Herrera, Ana Maria, 2004. "Oil Shocks and Aggregate Macroeconomic Behavior: The Role of Monetary Policy: Comment," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 36(2), pages 265-286, April.
    3. Chul-Yong Lee & Sung-Yoon Huh, 2017. "Forecasting Long-Term Crude Oil Prices Using a Bayesian Model with Informative Priors," Sustainability, MDPI, vol. 9(2), pages 1-15, January.
    4. Alejandro Badel & Joseph McGillicuddy, 2015. "Oil Prices and Inflation Expectations: Is There a Link?," The Regional Economist, Federal Reserve Bank of St. Louis, issue July.
    5. Baumeister, Christiane & Kilian, Lutz & Lee, Thomas K., 2014. "Are there gains from pooling real-time oil price forecasts?," Energy Economics, Elsevier, vol. 46(S1), pages 33-43.
    6. Beckmann, Joscha & Czudaj, Robert L. & Arora, Vipin, 2020. "The relationship between oil prices and exchange rates: Revisiting theory and evidence," Energy Economics, Elsevier, vol. 88(C).
    7. Hong Miao & Sanjay Ramchander & Tianyang Wang & Jian Yang, 2018. "The impact of crude oil inventory announcements on prices: Evidence from derivatives markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 38(1), pages 38-65, January.
    8. Steven Beach & Alexei Orlov, 2007. "An application of the Black–Litterman model with EGARCH-M-derived views for international portfolio management," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 21(2), pages 147-166, June.
    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. Wang, Yudong & Hao, Xianfeng, 2022. "Forecasting the real prices of crude oil: A robust weighted least squares approach," Energy Economics, Elsevier, vol. 116(C).
    2. Beckmann, Joscha & Czudaj, Robert L. & Arora, Vipin, 2020. "The relationship between oil prices and exchange rates: Revisiting theory and evidence," Energy Economics, Elsevier, vol. 88(C).
    3. Bos, Martijn & Demirer, Riza & Gupta, Rangan & Tiwari, Aviral Kumar, 2018. "Oil returns and volatility: The role of mergers and acquisitions," Energy Economics, Elsevier, vol. 71(C), pages 62-69.
    4. Bernard, Jean-Thomas & Khalaf, Lynda & Kichian, Maral & Yelou, Clement, 2018. "Oil Price Forecasts For The Long Term: Expert Outlooks, Models, Or Both?," Macroeconomic Dynamics, Cambridge University Press, vol. 22(3), pages 581-599, April.
    5. Reinhard Ellwanger, Stephen Snudden, 2021. "Predictability of Aggregated Time Series," LCERPA Working Papers bm0127, Laurier Centre for Economic Research and Policy Analysis.
    6. Christiane Baumeister & Lutz Kilian & Thomas K. Lee, 2017. "Inside the Crystal Ball: New Approaches to Predicting the Gasoline Price at the Pump," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 32(2), pages 275-295, March.
    7. Degiannakis, Stavros & Filis, George, 2018. "Forecasting oil prices: High-frequency financial data are indeed useful," Energy Economics, Elsevier, vol. 76(C), pages 388-402.
    8. Gonzalo Cortazar & Cristobal Millard & Hector Ortega & Eduardo S. Schwartz, 2019. "Commodity Price Forecasts, Futures Prices, and Pricing Models," Management Science, INFORMS, vol. 65(9), pages 4141-4155, September.
    9. Mont'Alverne Duarte, Angelo & Gaglianone, Wagner Piazza & de Carvalho Guillén, Osmani Teixeira & Issler, João Victor, 2021. "Commodity prices and global economic activity: A derived-demand approach," Energy Economics, Elsevier, vol. 96(C).
    10. 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.
    11. Zied Ftiti & Kais Tissaoui & Sahbi Boubaker, 2022. "On the relationship between oil and gas markets: a new forecasting framework based on a machine learning approach," Annals of Operations Research, Springer, vol. 313(2), pages 915-943, June.
    12. Stavros Degiannakis, George Filis, and Vipin Arora, 2018. "Oil Prices and Stock Markets: A Review of the Theory and Empirical Evidence," The Energy Journal, International Association for Energy Economics, vol. 0(Number 5).
    13. Zhao, Jing, 2022. "Exploring the influence of the main factors on the crude oil price volatility: An analysis based on GARCH-MIDAS model with Lasso approach," Resources Policy, Elsevier, vol. 79(C).
    14. Yin, Libo & Yang, Qingyuan, 2016. "Predicting the oil prices: Do technical indicators help?," Energy Economics, Elsevier, vol. 56(C), pages 338-350.
    15. Degiannakis, Stavros & Filis, George, 2023. "Oil price assumptions for macroeconomic policy," Energy Economics, Elsevier, vol. 117(C).
    16. Gupta, Rangan & Yoon, Seong-Min, 2018. "OPEC news and predictability of oil futures returns and volatility: Evidence from a nonparametric causality-in-quantiles approach," The North American Journal of Economics and Finance, Elsevier, vol. 45(C), pages 206-214.
    17. Lynda Khalaf & Beatriz Peraza López, 2020. "Simultaneous Indirect Inference, Impulse Responses and ARMA Models," Econometrics, MDPI, vol. 8(2), pages 1-26, April.
    18. Wang, Yudong & Liu, Li & Wu, Chongfeng, 2017. "Forecasting the real prices of crude oil using forecast combinations over time-varying parameter models," Energy Economics, Elsevier, vol. 66(C), pages 337-348.
    19. Degiannakis, Stavros & Filis, George, 2017. "Forecasting oil prices," MPRA Paper 77531, University Library of Munich, Germany.
    20. Hao, Xianfeng & Zhao, Yuyang & Wang, Yudong, 2020. "Forecasting the real prices of crude oil using robust regression models with regularization constraints," Energy Economics, Elsevier, vol. 86(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    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:arx:papers:1804.10869. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: . General contact details of provider: .

    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: arXiv administrators (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.