[Paper Review] Understanding electricity prices beyond the merit order principle using explainable AI
This study develops an explainable machine learning model using gradient boosted trees and SHAP values to analyze German day-ahead electricity prices, significantly outperforming a traditional merit order benchmark. It reveals that wind generation impacts prices more than solar, fuel prices have strong nonlinear interactions with other features, and generation ramps are key drivers, offering data-driven insights beyond standard market models.
Electricity prices in liberalized markets are determined by the supply and demand for electric power, which are in turn driven by various external influences that vary strongly in time. In perfect competition, the merit order principle describes that dispatchable power plants enter the market in the order of their marginal costs to meet the residual load, i.e. the difference of load and renewable generation. Many market models implement this principle to predict electricity prices but typically require certain assumptions and simplifications. In this article, we present an explainable machine learning model for the prices on the German day-ahead market, which substantially outperforms a benchmark model based on the merit order principle. Our model is designed for the ex-post analysis of prices and thus builds on various external features. Using Shapley Additive exPlanation (SHAP) values, we can disentangle the role of the different features and quantify their importance from empiric data. Load, wind and solar generation are most important, as expected, but wind power appears to affect prices stronger than solar power does. Fuel prices also rank highly and show nontrivial dependencies, including strong interactions with other features revealed by a SHAP interaction analysis. Large generation ramps are correlated with high prices, again with strong feature interactions, due to the limited flexibility of nuclear and lignite plants. Our results further contribute to model development by providing quantitative insights directly from data.
Motivation & Objective
- To develop a high-performing, interpretable machine learning model for German day-ahead electricity prices that surpasses traditional merit order-based benchmarks.
- To identify and quantify the influence of external factors—beyond residual load—on electricity price dynamics using explainable AI (XAI).
- To analyze feature interactions and dependencies, particularly involving fuel prices, renewable generation, and load ramps, using SHAP values.
- To provide data-driven insights that can inform and improve mechanistic models of electricity markets.
- To explore the causal interpretability of feature impacts in electricity price formation using empirical data and domain knowledge.
Proposed method
- Trained a gradient boosted tree (GBT) model on a comprehensive dataset of German day-ahead electricity prices and external features (load, wind, solar, fuel prices, imports/exports, ramps).
- Used SHapley Additive exPlanations (SHAP) to interpret the black-box model, quantifying the contribution of each input feature to individual price predictions.
- Applied SHAP interaction values to uncover nonlinear and higher-order dependencies between features, such as between residual load and fuel prices.
- Compared model performance using R² scores, demonstrating superior accuracy over a single-feature benchmark model based on the merit order principle.
- Employed a time-series analysis to examine correlations between fuel prices (oil and gas) and electricity prices, identifying periods of strong dependency.
- Integrated domain knowledge of power system operations to interpret SHAP results causally, distinguishing between correlation and potential causal mechanisms.
Experimental results
Research questions
- RQ1How do wind and solar generation differently affect electricity prices, despite both contributing equally to residual load?
- RQ2To what extent do fuel prices (oil and gas) influence electricity prices, and what are the nature and strength of their interactions with other market features?
- RQ3What role do large generation ramps play in driving price spikes, and how do they interact with other system constraints?
- RQ4How do feature interactions—particularly between residual load and fuel prices—contribute to price formation beyond simple marginal cost pricing?
- RQ5Can explainable AI models reveal market dynamics that are missed by standard merit order models, and how might this improve market modeling?
Key findings
- The GBT model with SHAP interpretation achieved significantly higher R² performance than the benchmark merit order model, demonstrating superior predictive accuracy.
- Wind generation was found to have a stronger downward impact on electricity prices than solar generation, despite both being non-dispatchable renewables.
- Fuel prices, particularly oil and gas, showed strong and nontrivial dependencies on electricity prices, with significant feature interactions revealed by SHAP analysis.
- Large generation ramps—especially from inflexible plants like lignite and nuclear—were strongly correlated with high electricity prices, indicating system flexibility constraints.
- The model revealed that residual load interacts nonlinearly with fuel prices, suggesting that high fuel costs amplify price sensitivity to load fluctuations.
- SHAP analysis highlighted that while fuel prices are correlated with electricity prices, the relationship is complex and may involve delayed effects or confounding factors, limiting direct causal interpretation without additional assumptions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.