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

Using Generative Pre-Trained Transformers (GPT) for Electricity Price Trend Forecasting in the Spanish Market

Author

Listed:
  • Alberto Menéndez Medina

    (Cátedra Industria 4.0, Universitat Jaume I, 12071 Castellón, Spain)

  • José Antonio Heredia Álvaro

    (Cátedra Industria 4.0, Universitat Jaume I, 12071 Castellón, Spain)

Abstract

The electricity market in Spain holds significant importance in the nation’s economy and sustainability efforts due to its diverse energy mix that encompasses renewables, fossil fuels, and nuclear power. Accurate energy price prediction is crucial in Spain, influencing the country’s ability to meet its climate goals and ensure energy security and affecting economic stakeholders. We have explored how leveraging advanced GPT tools like OpenAI’s ChatGPT to analyze energy news and expert reports can extract valuable insights and generate additional variables for electricity price trend prediction in the Spanish market. Our research proposes two different training and modelling approaches of generative pre-trained transformers (GPT) with specialized news feeds specific to the Spanish market: in-context example prompts and fine-tuned GPT models. We aim to shed light on the capabilities of GPT solutions and demonstrate how they can augment prediction models by introducing additional variables. Our findings suggest that insights derived from GPT analysis of electricity news and specialized reports align closely with price fluctuations post-publication, indicating their potential to improve predictions and offer deeper insights into market dynamics. This endeavor can support informed decision-making for stakeholders in the Spanish electricity market and companies reliant on electricity costs and price volatility for their margins.

Suggested Citation

  • Alberto Menéndez Medina & José Antonio Heredia Álvaro, 2024. "Using Generative Pre-Trained Transformers (GPT) for Electricity Price Trend Forecasting in the Spanish Market," Energies, MDPI, vol. 17(10), pages 1-15, May.
  • Handle: RePEc:gam:jeners:v:17:y:2024:i:10:p:2338-:d:1393354
    as

    Download full text from publisher

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

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

    References listed on IDEAS

    as
    1. Kok, M. & Lootsma, F. A., 1985. "Pairwise-comparison methods in multiple objective programming, with applications in a long-term energy-planning model," European Journal of Operational Research, Elsevier, vol. 22(1), pages 44-55, October.
    2. Nowotarski, Jakub & Weron, Rafał, 2018. "Recent advances in electricity price forecasting: A review of probabilistic forecasting," Renewable and Sustainable Energy Reviews, Elsevier, vol. 81(P1), pages 1548-1568.
    3. Engle, Robert F & Ng, Victor K, 1993. "Measuring and Testing the Impact of News on Volatility," Journal of Finance, American Finance Association, vol. 48(5), pages 1749-1778, December.
    4. Xu Gong & Keqin Guan & Qiyang Chen, 2022. "The role of textual analysis in oil futures price forecasting based on machine learning approach," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 42(10), pages 1987-2017, October.
    5. Qianqian Xie & Weiguang Han & Yanzhao Lai & Min Peng & Jimin Huang, 2023. "The Wall Street Neophyte: A Zero-Shot Analysis of ChatGPT Over MultiModal Stock Movement Prediction Challenges," Papers 2304.05351, arXiv.org, revised Apr 2023.
    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. Goncalves, Silvia & Kilian, Lutz, 2004. "Bootstrapping autoregressions with conditional heteroskedasticity of unknown form," Journal of Econometrics, Elsevier, vol. 123(1), pages 89-120, November.
    2. Xilong Chen & Eric Ghysels, 2011. "News--Good or Bad--and Its Impact on Volatility Predictions over Multiple Horizons," The Review of Financial Studies, Society for Financial Studies, vol. 24(1), pages 46-81, October.
    3. Renatas Kizys & Peter Spencer, 2007. "Assessing the Relation between Equity Risk Premium and Macroeconomic Volatilities in the UK," Discussion Papers 07/13, Department of Economics, University of York.
    4. Alagidede, Paul & Panagiotidis, Theodore, 2009. "Modelling stock returns in Africa's emerging equity markets," International Review of Financial Analysis, Elsevier, vol. 18(1-2), pages 1-11, March.
    5. A.P. Wierzbicki, 1998. "Reference Point Methods in Vector Optimization and Decision Support," Working Papers ir98017, International Institute for Applied Systems Analysis.
    6. Fuertes, Ana-Maria & Phylaktis, Kate & Yan, Cheng, 2019. "Uncovered equity “disparity” in emerging markets," Journal of International Money and Finance, Elsevier, vol. 98(C), pages 1-1.
    7. Anders Johansson, 2009. "An analysis of dynamic risk in the Greater China equity markets," Journal of Chinese Economic and Business Studies, Taylor & Francis Journals, vol. 7(3), pages 299-320.
    8. Christos Floros & Konstantinos Gkillas & Christoforos Konstantatos & Athanasios Tsagkanos, 2020. "Realized Measures to Explain Volatility Changes over Time," JRFM, MDPI, vol. 13(6), pages 1-19, June.
    9. Hartwell, Christopher A., 2014. "The impact of institutional volatility on financial volatility in transition economies : a GARCH family approach," BOFIT Discussion Papers 6/2014, Bank of Finland, Institute for Economies in Transition.
    10. Dimitrios D. Thomakos & Michail S. Koubouros, 2011. "The Role of Realised Volatility in the Athens Stock Exchange," Multinational Finance Journal, Multinational Finance Journal, vol. 15(1-2), pages 87-124, March - J.
    11. Lucchetti, Riccardo & Palomba, Giulio, 2009. "Nonlinear adjustment in US bond yields: An empirical model with conditional heteroskedasticity," Economic Modelling, Elsevier, vol. 26(3), pages 659-667, May.
    12. Stentoft, Lars, 2005. "Pricing American options when the underlying asset follows GARCH processes," Journal of Empirical Finance, Elsevier, vol. 12(4), pages 576-611, September.
    13. D Büttner & B. Hayo, 2012. "EMU-related news and financial markets in the Czech Republic, Hungary and Poland," Applied Economics, Taylor & Francis Journals, vol. 44(31), pages 4037-4053, November.
    14. Dufour, Jean-Marie & García, René & Taamouti, Abderrahim, 2008. "Measuring causality between volatility and returns with high-frequency data," UC3M Working papers. Economics we084422, Universidad Carlos III de Madrid. Departamento de Economía.
    15. Dimitrakopoulos, Dimitris N. & Kavussanos, Manolis G. & Spyrou, Spyros I., 2010. "Value at risk models for volatile emerging markets equity portfolios," The Quarterly Review of Economics and Finance, Elsevier, vol. 50(4), pages 515-526, November.
    16. Onour , Ibrahim A., 2021. "Modeling and assessing systematic risk in stock markets in major oil exporting countries," Economic Consultant, Roman I. Ostapenko, vol. 35(3), pages 18-29.
    17. Arısoy, Yakup Eser & Altay-Salih, Aslıhan & Akdeniz, Levent, 2015. "Aggregate volatility expectations and threshold CAPM," The North American Journal of Economics and Finance, Elsevier, vol. 34(C), pages 231-253.
    18. P. Kearns & A.R. Pagan, 1993. "Australian Stock Market Volatility: 1875–1987," The Economic Record, The Economic Society of Australia, vol. 69(2), pages 163-178, June.
    19. Chen, Cathy W.S. & Gerlach, Richard H. & Tai, Amanda P.J., 2008. "Testing for nonlinearity in mean and volatility for heteroskedastic models," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 79(3), pages 489-499.
    20. Shih Yung Wei & Jack J. W. Yang, 2011. "The Impact Of Short Sale Restrictions On Stock Volatility: Evidence From Taiwan," The International Journal of Business and Finance Research, The Institute for Business and Finance Research, vol. 5(4), pages 89-98.

    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:10:p:2338-:d:1393354. 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.