Improving electricity market price scenarios by means of forecasting factor models
Abstract
In liberalized electricity markets, generation Companies must build an hourly bid that is sent to the market operator. The price at which the energy will be paid is unknown during the bidding process and has to be forecast. In this work we apply forecasting factor models to this framework and study its suitability.
Full text
Improving electricity market price scenarios by means of forecasting factor models M. Pilar Mu˜noz, Cristina Corchero and F.-Javier Heredia Dept. of Statistics and Operations Research Universitat Polit`ecnica de Catalunya, Barcelona (Spain) DR 2009/6 1 June 2009 Copies of this report may be downloaded at Corresponding author: M. Pilar Mu˜noz Dept. Statistics and Operations Research, Technical University of Catalonia, Campus Nord c. Jordi Girona 1-3, 08034 Barcelona, tel. (0034) 934017030 fax. (0034) 934015855 email: [email protected]
Improving electricity market price scenarios by means of forecasting factor models M. Pilar Mu˜noz, Cristina Corchero and F.-Javier Heredia Dept. of Statistics and Operations Research Universitat Polit`ecnica de Catalunya, Barcelona (Spain) DR 2009/?? 1 June 2009 Copies of this report may be downloaded at Corresponding author: M. Pilar Mu˜noz Dept. Statistics and Operations Research, Technical University of Catalonia, Campus Nord c. Jordi Girona 1-3, 08034 Barcelona, tel. (0034) 934017030 fax. (0034) 934015855 email: [email protected]
Improving electricity market price scenarios by means of forecasting factor models Munoz, M.P., Corchero, C. and Heredia, F.J. Dept. of Statistics and Operations Research, Universitat Politecnica de Catalunya Jordi Girona 1-3, Barcelona, 08034, Spain E-mail: [email protected] Abstract: In liberalized electricity markets, Generation Companies must build an hourly bid that is sent to the market operator. The price at which the energy will be paid is unknown during the bidding process and has to be forecast. In this work we apply forecasting factor models to this framework and study its suitability. Keywords: Electricity market prices, short term forecasting, factor models, price scenarios 1 Introduction In liberalized electricity markets, a Generation Company (GenCo) must build an hourly bid that is sent to the market operator, who selects the lowest price among the bidding companies in order to match the pool load. For this reason, GenCos that participate in liberalized electricity markets around the world need to know the prices at which the energy will be paid in order to decide how to bid and how to schedule their resources for maximizing their profit. The problem is that the market price is only known once the market has been cleared, so it is needed to forecast. In fact, is not only the price needed to forecast, but also its distribution. Our main objective is to include short-term forecasting of the electricity market spot price in an optimization model for the management of a generation company in order to obtain realistic market price scenarios in which the generation company should decide how to optimally operate and to easily update these scenarios over time. Our approach has been applied to the Iberian Electricity Market. The problem with building electricity price scenarios has been tackled within many areas. Nonparametric statistic methods -such as clustering or bootstrappingapplied to historical data were the first and simplest approaches. The advantage of these methods is that they are easy and computationally cheap to use but, on the other hand, they do not characterize the price distribution properly. Electricity spot prices exhibit non-constant mean and variance, daily and weekly seasonality, calendar effects on weekends and holidays, high volatility and the presence of outliers. Those characteristics do not necessarily make it easy for electricity price short-term forecasting. Several approaches have been proposed in the power system literature which basically can be classified into parametric/nonparametric, conditional homoscedastic/heteroscedastic and others, ranging from the most popular ARIMA models belonging to the class of parametric-conditional homoscedastic models to the most sophisticated ones, as for example wavelet or neural networks models. In this field, Contreras et al. (2003) use ARIMA models for forecasting day-ahead electricity prices and Conejo et al. (2005) compare the goodness of the day-ahead electricity price forecasting using ARIMA models, dynamic regression, transfer function, wavelet-transform and neural networks for the PJM market, concluding that the predictions extrapolated from dynamic regression and transfer function procedures are better than those obtained from ARIMA models; whereas wavelet models have results close to ARIMA models and neural network algorithms do not offer good forecasts. Garcia-Martos et al. (2007) decompose the Spanish hourly time series electricity prices in 24 time series and model them separately obtaining the one day-ahead forecast for each time series. However the residuals in most of the analyzed models exhibit non stationary conditional variance. To solve this problem, the classical GARCH models and their variants are used for estimating the conditional heteroscedasticity of the
electricity spot prices. Garcia et al. (2005) estimate an ARMA model with GARCH errors for the Spanish and California Electricity market showing that this combined model overcomes the predictions obtained by the classical ARIMA model. Koopman et al (2007) give a more complex version of this model, extending it to periodic dynamic long memory regression models with GARCH errors also. All of the models mentioned previously present advantages and drawbacks; nevertheless any one of them is absolutely convenient for our objective. Our approach in this work is to apply the well-known methodology of factors models to forecast electricity market prices in a short-term horizon (24 hours). In this case, the spot prices have been interpreted not as a single time series but a set of 24 time series, one for each hour, in a similar way to Munoz and Bunk (2007), Alonso et al. (2008) and Karakatsani and Bunn (2008). The factor model procedure allows us to identify common unobserved factors, which represent the relationship between the hours of a day. Despite the fact that dynamic and static factor models have been extensively used in many different frameworks (Geweke (1977), Stock and Watson (2002), Pena and Poncela (2004), Pena and Poncela (2006)), their application to short term electricity market prices forecasting has not been exploited. Previous results have shown that dynamic factor models are better for improving or extending them, but on the other hand, some authors conclude that these benefits are not sufficient to justify their use compared to the ease of estimating static factor models. For this first approach, static factor models have been applied and evaluated for the Iberian Electricity Spot prices. The second part of our objective is to apply the results obtained from the presented forecasting technique to a stochastic optimization model for the management of a generation company operating in an electricity day-ahead market. The optimization model will be focused on the inclusion of physical derivatives products in the short-term management of a GenCo, following the model proposed in Corchero and Heredia (2009). Other approaches to similar problems involving futures contracts can be found in the works of Chen et al. (2004) and, in the medium-term optimization, Conejo et al. (2008) and Guan et al. (2008).The stochastic model is based on the representation through scenarios of the random variable involved in the problem. In our case, the stochastic variable is the day-ahead market clearing price. So, a set of scenarios for the day-ahead market clearing price will be built from the forecasting results. Once this set of scenarios is obtained, it is introduced into the optimization model, whereby the stability analysis and results are obtained. The forecasting technique used results in a characterization of the market clearing price that is easy to estimate and to update. The results obtained in the forecasting part allow us to build realistic price scenarios that -once introduced into the modelprovide suitable results for the optimization objective. This paper is organized as follows: Section 2 contains the factor model used, the optimization procedures is in Section 3, the results in Section 4 and finally the conclusions are in Section 5. 2 Factors models The estimation and forecasting price variables using factor analysis can be classified into two overarching groups: Static and Dynamic. The first uses Principal Component Analysis whereas the second basically formulates the model into State Space and uses the Kalman filter or the ExpectationMaximization (EM) algorithm for estimating the parameters and forecasting future values of the variable in question, the price, in our case. In this work we use the alternative procedure Time Series Factors Analysis (TSFA) based on the previous work of Cattell et al. (1947) and described in Gilbert and Meijer (2005). The code is available in the R package TSFA available on CRAN. TSFA is an alternative for Standard Factor Analysis (FA) and Dynamic Factor Analysis (DFA). In the case of FA, it should not be used with
economic times series because the characteristics of the data do not agree with the assumptions of the method. Whereas TSFA differs from Dynamic Factor Analysis (DFA) in the sense that TSFA estimates parameters and predicts factor scores with few assumptions about factor dynamics; in particular, TSFA does not assume stationary covariance. DFA assumes a predetermined relationship between factors in the sense that there is an assumed a priori relationship between the factors at time tand the factors at time t−1. If this relationship is misspecified, the factors estimated by DFA can be biased. 2.1 Factor Model Estimation Let ytbe an M-vector of observed time series of length Tand kunobserved factors (k << M) collected in the K-vector ξ. The relationship between the observed time series ytand the ξfactors is assumed to be linear and described by equation (1) (1) yt=αt+Bξt+²t where αtis an M-vector of intercept parameters that can be omitted without losing generality, B is an Mxk matrix parameter of loadings, assumed time-invariant, and ²is a random M-vector of measurement errors. Defining Das the difference operator, (1) becomes: (2) Dyt=τt+BDξt+D²t and the following conditions are assumed by Gilbert and Meijer (2005): (3) T X t=1 Dξt T d −→ κ (4) T X t=1 (Dξt−κ)(Dξt−κ)0 T d −→ Φ (5) T X t=1 D²tD²0 t T d −→ Ω The sample covariance of the differenced series Dytis denoted by SDyand from the previous assumptions, it follows that1: (6) SDy d −→ Σ≡BΦB0+ Ω Parameters are estimated by maximum likelihood, minimizing the function: (7) L≡lg det Σ + tr(Σ−1SDy) 2.2 Forecasting Model The factors obtained following the previous procedure have to be implemented into a forecasting model in order to obtain the price forecasts. Many authors (such as Schumacher (2007) or Stock and Watson (2002)) describe forecasting models suitable to either dynamic or static factors and to any factor estimation methods. The one-step-ahead forecasting model is specified and estimated as a linear multiple regression model with the factors as predictors, it has the form (8) yt+1 =βˆ ξt+α(L)yt+εt+1 1See Gibert and Mejer (2005) for a complete description
where ˜ ξtare the estimation of the factors, βis the regression coefficients matrix and εt+1 is the resulting forecast error. Autoregressive terms are included through the polynomial of non-negative power of the lag operator Lwith coefficients α(L). The out of the sample forecasts for yT+1 conditional on information until period T is given by the conditional expectation yT+1|T=ˆ βˆ ξT+ ˆα(L)yT. Once the forecasting has been done, the set of scenarios needed for the optimization model has to be buil. The set of scenarios consists of a set of possible values for the forecast variable, in this case the electricity prices, λs t={λs 1, . . . , λs T}and its corresponding probability Ps=P(λs)∀s∈S. In this work the set of scenarios is built based on the discretization of the forecast confidence interval. 3 Stochastic programming optimization model The optimization model used to test the energy price forecasting model is a simplification of the stochastic model described in Corchero and Heredia (2009). The main objective of this work is to build a stochastic programming optimization model which includes the coordination between Physical Futures Contracts (PFC) and Day-Ahead Market (DAM) bidding following the MIBEL rules. In the MIBEL, the market operator (OMEL) demands that every generation company (GenCo) commit the quantity designated to PFC through the DAM bidding of the physical units. This commitment is made by the so called instrumental price offer, that is, a sale offer with a bid price of 0e/MWh (also called price acceptant). That regulation implies that the Generation Company (GenCo) has to determine its optimal bid by taking into account those instrumental price offers. Due to the algorithm the market operator uses to clear the DAM, all instrumental price offers will be matched (i.e. accepted) in the clearing process, that is, this energy shall be produced and will be remunerated at the spot price λs te/MWh. Following MIBEL’s rules, if we are optimizing today we focus on tomorrow’s DAM because we have to submit tomorrow’s bidding. Thus, the optimization horizon is at 24-hour intervals; this set of intervals is denoted as T. The proposed short-term bidding strategies are addressed to a price-taker GenCo, that is, a GenCo without market power. The generation units to be considered are the set Iof thermal units with participation in the auction process. The relevant parameters of a thermal unit are: •Quadratic generation costs with constant, linear and quadratic coefficients, cb i(e), cl i(e/MWh) and cq i(e/MWh2) respectively, for the unit i∈I. •Piand Pithe upper and lower bound, respectively, on the energy generation (MWh) of a committed unit i∈I. The problem to be solved is in trying to maximize the expected value of the benefits coming from the DAM, which, at each scenario s∈Scan be calculated as the difference between the incomes from the matched energy, λd,s tps it, and the generations costs (cb t+cl ips it +cq i(ps it)2). This maximization must be done satisfactorily, for each PFC j∈J, a delivering of LjMWh, and the DAM rules. The first-stage decision variables of this model are qit, the energy of the instrumental price offer, that is, the energy bid by unit ito the tth auction of the DAM at 0e/MWh, and variable fitj, the energy delivered by the thermal unit ito the PFC jat period t. The second-stage variables are ps it, the matched energy of thermal iat the tth auction of the DAM under scenario s. The mathematical expression of this two-stage stochastic programming problem is:
maximize p,q,f X t∈T X i∈Ut X s∈S Ps λd,s tps it −(cb t+cl ips it +cq i(ps it)2) (9) s.t. X i∈Utj fitj =Ljt∈T, j ∈F(10) qit ≥ X j∈Fi fitj i∈Ut, t ∈T(11) Pi≤qit ≤ps it ≤Pii∈Ut, t ∈T, s ∈S(12) fitj ≥0i∈Ut, t ∈T, j ∈F(13) The sets appearing in this formulation are: the subset of PFC in which unit tparticipates (Ft); the set of thermal units that participates in contract j(Tj); the energy that has to be settled for contract j(Lj); the set of thermal units assigned to PFC jwhich are operating at period t(Utj) and, finally, the periods where thermal unit tis operating (Ut). Constraint (10) ensures that the energy of the jth PFC, Lj, will be completely dispatched among all the committed units. Constraints (11) formulate the MIBEL’s rule that forces the energy of the future contracts to be bid through the instrumental price offer. Constraints (12) express the relations between the instrumental price offer qit, the matched energy at scenario s,ps it, and the minimum and maximum generation levels Piand Pirespectively. Finally, the nonnegativity on variables fitj are expressed in (13). 4 Results In this section both the results of the validation of the proposed forecasting method and its application to the optimization process are shown. The variable to be forecasted is the Iberian Day-Ahead Market electricity prices. This is hourly data and the data set used corresponds to the work days from January 1st, 2007 to March 30th, 2008. This data is available at OMEL’s site (www.omel.es). As has been described, the electricity prices have been interpreted not as a single time series but as a set of 24 time series, one for each hour. This 24 time series must be summarized by a small number of factors. Following Gilbert and Meijer (2005) the number of factors is fixed based on the eigenvalues of the sample correlation matrix of indicators, in our case the number of significant factors is three. The loading matrix obtained is represented in Figure and its relationship can be observed in the the boxplot of hourly prices shown in Figure 2. The behavior of the prices throughout one day has a particular profile, with hours called ”base hours”, in which the price is low and there is lower variance. There are also hours called ”peak hours”, in which there are higher prices and high variance. The first factor separates clearly between night and day and it can be observed that the profile of the daily hours loads (between 8 a.m. and 8 p.m.) is similar to the profile of the prices during these hours. The second factor gives positive loads to the base hours and the third to the peak hours. The forecasting model is based on these factors. The estimation of the 24 regression models is made with a subset of the available data. The R2and the Mean Square Error (MSE) of the forecast regression model for each hour are shown in Table 1. The estimated model is used to forecast the next 5 days. In Figure 2, the following are plotted: the real price (red line), the forecast price (black line) and the forecast confidence interval (blue line) used to build the set of scenarios. This forecasting procedure has been compared to the ARIMA model used in previous works (Corchero and Heredia (2009)) and it has been observed that the results in terms of MSE are equivalent.