Issue 
Renew. Energy Environ. Sustain.
Volume 1, 2016



Article Number  41  
Number of page(s)  5  
DOI  https://doi.org/10.1051/rees/2016045  
Published online  08 September 2016 
Research Article
Demand and residual demand modelling using quantile regression
^{1}
Department of Industrial Economics and Technology Management, Norwegian University of Science and Technology,
7491
Trondheim, Norway
^{2}
Charles University, CERGEEI (Center for Economic Research and Graduate Education – Economics Institute),
Prague, Czech Republic
^{⁎} email: peter.molnar@iot.ntnu.no
Residual demand, the difference between demand and solar and wind production, is an important variable in predicting the future price and storage requirements. However, little is known about predicting the residual demand itself as well as its quantiles. Therefore, we model both demand and residual demand using both ordinary and quantile regression and compare the results for the hourly electricity consumption in Germany. We find that the residual demand is less predictable than demand. The effect is visible for all hours, and is higher for the lower than the upper quantiles.
© L.P.C. Do et al., published by EDP Sciences, 2016
This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
1 Introduction
Over the last years, an increasing amount of renewables has been installed in Germany. This has caused a challenge for different market participants. The power producers need to consider the fluctuations from both load and renewable energy infeed when submitting daily price bids. A market with high infeed of renewable, like Germany, requires a more integrated demand model. As for the grid operators, they need to balance the demand and the supply. Since the production of renewable energy is price inelastic, it makes sense to look at the balancing problem as balancing the demand minus renewables with the supply of conventional electricity sources in order to get grid stability.
The word residual demand has not reached a common definition. We use the term residual demand as a demand minus wind and solar electricity production. This distinction is meaningful because wind and solar electricity producers supply electricity independently on the price. Therefore, we can consider wind and solar electricity as a negative demand.
Earlier studies use the residual demand in strategic price bidding in day ahead market [1,2] and forward market [3]. Reference [4] provides a residual demand model to forecast electricity prices. Reference [5] uses residual demand to understand the energy storage requirement in the future.
Our study applies ordinary and quantile regression method. The former method is useful to find the tendencies and the average relation between the demand and the explanatory variable. The quantile regression approach, introduced by [6], evaluates the tail dependencies and the risk on electricity consumption. The quantile regression application has been widely applied in financial risk management and been recently used in energy market studies: on electricity price [7], CO_{2} emission allowance price [8], household energy consumption [9] and oil prices [10]. This paper aims to contribute to the quantile regression literature by applying this method on both the aggregated electricity demand and residual demand. This analysis is relevant because it provides a more comprehensive picture of the effects from the variables.
This paper is organized as follows. Section 2 describes the data used in this study. The results from ordinary and quantile regression are presented and compared in Sections 3 and 4, respectively. Finally, Section 5 concludes the paper.
2 Data
The hourly electricity consumption in Germany can be described by following fundamental variables: trend, holidays and weather [11]. This paper uses industrial production as the trend, and incorporates holidays and weekend dummies, as well weather factor like hours of daylight and heating degree days.
The German hourly electricity load data is retrieved from the European Network of Transmission System Operators for Electricity (ENTSOE). Our dataset contains data from July 1, 2010 to July 1, 2013. The load data is the hourly average active power consumed by all installation connected to the central and the distribution network.
The biggest share of renewables production in Germany consists of wind and solar. Moreover, production of these two renewables is completely price inelastic. We therefore focus only on these two renewables in our paper and use the term renewables as interchangeably with wind and solar. The actual production data is available on the website to the four Transmission System Operators in Germany: Tennet, 50 Hertz, TransnetBW and Amprion. The wind and PV data have been converted from 15 min data to hourly data.
Table 1 shows the descriptive statistics of the load, wind and solar timeseries. The solar production is highest around the noon and zero during the night. In contrast to solar production, the wind production is higher during the night than during the day. In general, the wind and solar production is highly volatile.
Descriptive statistics demand, wind and PV for hour 8 am, 12 pm, and 24 pm.
3 Demand and residual demand modelling
We use a linear regression models for demand and residual demand specified in equations (1) and (2), respectively. We estimate 24 separate linear regression model for each hour during the day. (1) (2) where Y is demand, Z is residual demand, AZ is the average residual demand over one to seven lags, HDD is heating degree days, W_{n} are dummy variables for days of the week, H is a holiday variable, MH is a minor holiday variable, M_{j} are dummy variables for months of the year and DL is hours of daylight.
The coefficients from these regressions are presented in Table 2 for three hours of the day (other hours are omitted due to space limitations). These results illustrate significant differences in modelling demand and residual demand.
First of all, R^{2} shows that the models are able to explain much more of the variation of demand then residual demand. This is due to stochastic nature of wind and solar production. This is confirmed also by looking at the coefficient of the lagged demand/residual demand. Coefficient is larger for demand. This means that past demand tells us more about future demand than past residual demand tells us about future residual demand.
Another notable difference is the impact of HDD variable (transformation of temperature). This variable has much larger impact on residual demand than on demand. This is because on average cold days are also days with low solar production.
Since the results of ordinary regression show differences in demand and residual demand modelling, we investigate this further using quantile regression.
OLS estimates for demand and residual demand for hours 8 am, 12 pm, and 24 pm. ⁎⁎⁎, ⁎⁎ and ⁎ indicates that the coefficient is significant at 10%, 5% and 1% level, respectively.
4 Quantile regression
The quantile regression method is an extension of ordinary regression, which allows estimating the effect of explanatory variables not only on the mean, but also the effect on conditional quantiles. We use the same equation specification as equations (1) and (2), but we estimate these equations for different quantiles. The model is estimated for 5th, 25th, 50th, 75th, 95th quantile for each hour of the day. Based on previous results from ordinary regression we focus on the impact of lagged demand and lagged residual demand.
The coefficients from quantile regressions for the 5%, 25%, 50%, 75% and 95% quantiles for demand for each hour are presented in Figure 1. As we can see, median, 25th and 75th quantile are higher than 5th or 95th quantile. This means that the current demand provides more information about the future median demand than about the possible future extremely high or low demand. Moreover, this difference is more pronounced during the day than during the night, because the load variation is also higher at the day period.
Figure 2 depicts the estimated coefficients from quantile regressions estimated for residual demand. In accordance with results from ordinary regression we find that the coefficients in Figure 2 is on average lower than the coefficients in Figure 1. This confirms that the past residual demand has less predicting power for the current value than the past demand. Moreover, the quantile of residual demand are much more dispersed than quantiles of demand. This means that residual demand is much less predictable then demand. In comparison to Figure 1, the spread between the quantiles in Figure 2 increases during the night, due to high wind production during this period. The most notable difference between Figure 1 and Figure 2 is the difference between 5th and 95th quantile. Current demand tells us relatively little about either of these quantiles for future demand. However, current residual demand tells us relatively a lot about 5th quantile of the future demand, but little about the 95th quantile of the future demand.
In order to make it easier to analyze and discuss the result, we again focus on the timeseries from 8 am, 12 pm and 24 pm representing morning, day and night. Figure 3 presents the conditional quantile regression estimates of the lagged demand and lagged residual demand for 8 am, 12 pm and 24 pm. For most quantiles the estimates are outside the ordinary least square confident band, suggesting that the ordinary regression estimates is not sufficient. The general pattern for the demand is an inverse Ushape, meaning that extreme quantiles (5th and 95th) have lower values than median, 25th and 75th quantiles. However, this is not the case for residual demand. In this case upper quantiles have smaller values than lower quantiles. This is in accordance with our previous discussion.
Fig. 1 Coefficients from quantile regression for demand lag estimated for 5%, 25%, 50%, 75% and 95% quantiles for each hour of the day. 
Fig. 2 Coefficients from quantile regression for residual demand lag estimated for 5%, 25%, 50%, 75% and 95% quantiles for each hour of the day. 
Fig. 3 Ordinary and quantile regression estimates for demand and residual demand. The shaded area represents 95% confident band for the blue quantile regression line. The dotted lines are the confident band for the ordinary regression estimates. 
5 Conclusions
We studied the differences in modelling demand and residual demand (the difference between demand and price inelastic solar and wind production) using both ordinary regressions and quantile regressions. We find that residual demand is less predictable than demand. Similarly, the relationship between current and future value is weaker for residual demand than for demand. This result is confirmed in the quantile regression model. The quantile regression model shows that the conditional quantiles of the residual demand are more widely spread than conditional quantiles of demand. The effect was visible for all hours, and was higher for the lower than for the upper quantiles. Our results do not only confirm that the renewables lead to more challenge in predicting the load, but also illustrate how this challenge can be addressed. Our findings have implications for future research on the demand modelling, particularly in countries with increasing renewables infeed.
Acknowledgments
We recognize the Norwegian Research Centre CenSES, Centre for Sustainable Energy Studies (RCN grant 209697), and acknowledge financial support from the Research Council of Norway through project 228811.
References
 A. Baillo, M. Ventosa, M. Rivier, A. Ramos, Optimal offering strategies for generation companies operating in electricity spot markets, IEEE Trans. Power Syst. 19, 745 (2004) [CrossRef] [Google Scholar]
 S. Vázquez, P. Rodilla, C. Batlle, Residual demand models for strategic bidding in European power exchanges: revisiting the methodology in the presence of a large penetration of renewables, Electr. Power Syst. Res. 108, 178 (2014) [CrossRef] [Google Scholar]
 A. Wagner, Residual demand modeling and application to electricity pricing, Available at SSRN 2018908, 2012 [Google Scholar]
 A. Motamedi, C. Geidel, H. Zareipour, W.D. Rosehart, Electricity price forecasting considering residual demand , in 2012 3rd IEEE PES International Conference and Exhibition on Innovative Smart Grid Technologies (ISGT Europe), October (IEEE, 2012), p. 1 [Google Scholar]
 W.P. Schill, Residual load, renewable surplus generation and storage requirements in Germany, Energy Policy 73, 65 (2014) [CrossRef] [Google Scholar]
 R. Koenker, G. Basset, Regression quantiles, Econometrica 46, 33 (1978) [CrossRef] [MathSciNet] [Google Scholar]
 L.I. Hagfors, E. Kristoffersen, T. Staver, D. Bunn, S. Westgaard, Modelling the UK electricity price distributions using quantile regression, Working Paper, 2015 [Google Scholar]
 S. Hammoudeh, D.K. Nguyen, R.M. Sousa, Energy prices and CO_{2} emission allowance prices: a quantile regression approach, Energy Policy 70, 201 (2014) [CrossRef] [Google Scholar]
 N. Kaza, Understanding the spectrum of residential energy consumption: a quantile regression approach, Energy Policy 38, 6574 (2010) [CrossRef] [Google Scholar]
 C.C. Lee, J.H. Zeng, The impact of oil price shocks on stock market activities: asymmetric effect with quantile regression, Math. Comput. Simul. 81, 1910 (2011) [CrossRef] [Google Scholar]
 E.A. Feinberg, D. Genethliou, Load forecasting, in Applied Mathematics for Restructured Electric Power Systems (Springer, USA, 2005), p. 269 [CrossRef] [Google Scholar]
Cite this article as: Linh Phuong Catherine Do, Lars Ivar Hagfors, KuanHeng Lin, Peter Molnár, Demand and residual demand modelling using quantile regression, Renew. Energy Environ. Sustain. 1, 41 (2016)
All Tables
OLS estimates for demand and residual demand for hours 8 am, 12 pm, and 24 pm. ⁎⁎⁎, ⁎⁎ and ⁎ indicates that the coefficient is significant at 10%, 5% and 1% level, respectively.
All Figures
Fig. 1 Coefficients from quantile regression for demand lag estimated for 5%, 25%, 50%, 75% and 95% quantiles for each hour of the day. 

In the text 
Fig. 2 Coefficients from quantile regression for residual demand lag estimated for 5%, 25%, 50%, 75% and 95% quantiles for each hour of the day. 

In the text 
Fig. 3 Ordinary and quantile regression estimates for demand and residual demand. The shaded area represents 95% confident band for the blue quantile regression line. The dotted lines are the confident band for the ordinary regression estimates. 

In the text 
Current usage metrics show cumulative count of Article Views (fulltext article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 4896 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.