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. 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.
    3. 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.
    4. 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.
    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. 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.
    7. 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.
    8. 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.
    9. Dufour, Jean-Marie & García, René, 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.
    10. 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.
    11. 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.
    12. Billé, Anna Gloria & Gianfreda, Angelica & Del Grosso, Filippo & Ravazzolo, Francesco, 2023. "Forecasting electricity prices with expert, linear, and nonlinear models," International Journal of Forecasting, Elsevier, vol. 39(2), pages 570-586.
    13. Suk-Joong Kim, 2018. "The Spillover Effects of US and Japanese Public Information News in Advanced Asia-Pacific Stock Markets," World Scientific Book Chapters, in: Information Spillovers and Market Integration in International Finance Empirical Analyses, chapter 6, pages 175-201, World Scientific Publishing Co. Pte. Ltd..
    14. Barr, David G. & Priestley, Richard, 2004. "Expected returns, risk and the integration of international bond markets," Journal of International Money and Finance, Elsevier, vol. 23(1), pages 71-97, February.
    15. Dimitrakopoulos, Stefanos & Tsionas, Mike, 2019. "Ordinal-response GARCH models for transaction data: A forecasting exercise," International Journal of Forecasting, Elsevier, vol. 35(4), pages 1273-1287.
    16. Bhar, Ramprasad & Mallik, Girijasankar, 2010. "Inflation, inflation uncertainty and output growth in the USA," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 389(23), pages 5503-5510.
    17. Asai, Manabu & McAleer, Michael, 2015. "Forecasting co-volatilities via factor models with asymmetry and long memory in realized covariance," Journal of Econometrics, Elsevier, vol. 189(2), pages 251-262.
    18. Charles, Amélie, 2010. "The day-of-the-week effects on the volatility: The role of the asymmetry," European Journal of Operational Research, Elsevier, vol. 202(1), pages 143-152, April.
    19. Christensen, Bent Jesper & Nielsen, Morten Ørregaard & Zhu, Jie, 2010. "Long memory in stock market volatility and the volatility-in-mean effect: The FIEGARCH-M Model," Journal of Empirical Finance, Elsevier, vol. 17(3), pages 460-470, June.
    20. Theodore Panagiotidis, 2010. "Market efficiency and the Euro: the case of the Athens stock exchange," Empirica, Springer;Austrian Institute for Economic Research;Austrian Economic Association, vol. 37(3), pages 237-251, July.

    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.