DAY-AHEAD ELECTRICITY PRICE FORECASTING BASED ON TIME SERIES MODELS: A COMPARISON



Similar documents
Forecasting Next-Day Electricity Prices by Time Series Models

An important observation in supply chain management, known as the bullwhip effect,

Re-Dispatch Approach for Congestion Relief in Deregulated Power Systems

Implementation of Statistic Process Control in a Painting Sector of a Automotive Manufacturer

The fast Fourier transform method for the valuation of European style options in-the-money (ITM), at-the-money (ATM) and out-of-the-money (OTM)

On the predictive content of the PPI on CPI inflation: the case of Mexico

A Virtual Machine Dynamic Migration Scheduling Model Based on MBFD Algorithm

Risk and Return. Sample chapter. e r t u i o p a s d f CHAPTER CONTENTS LEARNING OBJECTIVES. Chapter 7

Machine Learning with Operational Costs

Multiperiod Portfolio Optimization with General Transaction Costs

Managing specific risk in property portfolios

Two-resource stochastic capacity planning employing a Bayesian methodology

Large firms and heterogeneity: the structure of trade and industry under oligopoly

A MOST PROBABLE POINT-BASED METHOD FOR RELIABILITY ANALYSIS, SENSITIVITY ANALYSIS AND DESIGN OPTIMIZATION

The risk of using the Q heterogeneity estimator for software engineering experiments

The impact of metadata implementation on webpage visibility in search engine results (Part II) q

Load Balancing Mechanism in Agent-based Grid

Comparing Dissimilarity Measures for Symbolic Data Analysis

A Simple Model of Pricing, Markups and Market. Power Under Demand Fluctuations

An inventory control system for spare parts at a refinery: An empirical comparison of different reorder point methods

Monitoring Frequency of Change By Li Qin

Service Network Design with Asset Management: Formulations and Comparative Analyzes

Concurrent Program Synthesis Based on Supervisory Control

The Online Freeze-tag Problem

A Multivariate Statistical Analysis of Stock Trends. Abstract

Automatic Search for Correlated Alarms

Probabilistic models for mechanical properties of prestressing strands

Title: Stochastic models of resource allocation for services

An Introduction to Risk Parity Hossein Kazemi

Risk in Revenue Management and Dynamic Pricing

Softmax Model as Generalization upon Logistic Discrimination Suffers from Overfitting

Compensating Fund Managers for Risk-Adjusted Performance

COST CALCULATION IN COMPLEX TRANSPORT SYSTEMS

Migration to Object Oriented Platforms: A State Transformation Approach

Buffer Capacity Allocation: A method to QoS support on MPLS networks**

Joint Production and Financing Decisions: Modeling and Analysis

Finding a Needle in a Haystack: Pinpointing Significant BGP Routing Changes in an IP Network

Jena Research Papers in Business and Economics

Design of A Knowledge Based Trouble Call System with Colored Petri Net Models

Web Application Scalability: A Model-Based Approach

Storage Basics Architecting the Storage Supplemental Handout

Rummage Web Server Tuning Evaluation through Benchmark

Service Network Design with Asset Management: Formulations and Comparative Analyzes

ENFORCING SAFETY PROPERTIES IN WEB APPLICATIONS USING PETRI NETS

Measuring relative phase between two waveforms using an oscilloscope

Stochastic Derivation of an Integral Equation for Probability Generating Functions

Optional Strain-Rate Forms for the Johnson Cook Constitutive Model and the Role of the Parameter Epsilon_0 1 AUTHOR

STATISTICAL CHARACTERIZATION OF THE RAILROAD SATELLITE CHANNEL AT KU-BAND

Project Management and. Scheduling CHAPTER CONTENTS

Beyond the F Test: Effect Size Confidence Intervals and Tests of Close Fit in the Analysis of Variance and Contrast Analysis

INFERRING APP DEMAND FROM PUBLICLY AVAILABLE DATA 1

A highly-underactuated robotic hand with force and joint angle sensors

An actuarial approach to pricing Mortgage Insurance considering simultaneously mortgage default and prepayment

Characterizing and Modeling Network Traffic Variability

Asymmetric Information, Transaction Cost, and. Externalities in Competitive Insurance Markets *

TOWARDS REAL-TIME METADATA FOR SENSOR-BASED NETWORKS AND GEOGRAPHIC DATABASES

Applications of Regret Theory to Asset Pricing

THE RELATIONSHIP BETWEEN EMPLOYEE PERFORMANCE AND THEIR EFFICIENCY EVALUATION SYSTEM IN THE YOTH AND SPORT OFFICES IN NORTH WEST OF IRAN

CFRI 3,4. Zhengwei Wang PBC School of Finance, Tsinghua University, Beijing, China and SEBA, Beijing Normal University, Beijing, China

ANALYSING THE OVERHEAD IN MOBILE AD-HOC NETWORK WITH A HIERARCHICAL ROUTING STRUCTURE

Sang Hoo Bae Department of Economics Clark University 950 Main Street Worcester, MA

F inding the optimal, or value-maximizing, capital

Sage Document Management. User's Guide Version 13.1

Branch-and-Price for Service Network Design with Asset Management Constraints

The predictability of security returns with simple technical trading rules

Failure Behavior Analysis for Reliable Distributed Embedded Systems

Sage Timberline Office

On-the-Job Search, Work Effort and Hyperbolic Discounting

New Approaches to Idea Generation and Consumer Input in the Product Development

CRITICAL AVIATION INFRASTRUCTURES VULNERABILITY ASSESSMENT TO TERRORIST THREATS

Penalty Interest Rates, Universal Default, and the Common Pool Problem of Credit Card Debt

Static and Dynamic Properties of Small-world Connection Topologies Based on Transit-stub Networks

Alpha Channel Estimation in High Resolution Images and Image Sequences

Sage Document Management. User's Guide Version 12.1

Moving Objects Tracking in Video by Graph Cuts and Parameter Motion Model

Synopsys RURAL ELECTRICATION PLANNING SOFTWARE (LAPER) Rainer Fronius Marc Gratton Electricité de France Research and Development FRANCE

CABRS CELLULAR AUTOMATON BASED MRI BRAIN SEGMENTATION

Rob J Hyndman. Forecasting using. 11. Dynamic regression OTexts.com/fpp/9/1/ Forecasting using R 1

Computational Finance The Martingale Measure and Pricing of Derivatives

Multi-Channel Opportunistic Routing in Multi-Hop Wireless Networks

Factoring Variations in Natural Images with Deep Gaussian Mixture Models

Evaluating a Web-Based Information System for Managing Master of Science Summer Projects

Unicorn Investment Funds - Mastertrust Fund

IEEM 101: Inventory control

An effective multi-objective approach to prioritisation of sewer pipe inspection

From Simulation to Experiment: A Case Study on Multiprocessor Task Scheduling

Drinking water systems are vulnerable to

Index Numbers OPTIONAL - II Mathematics for Commerce, Economics and Business INDEX NUMBERS

A Modified Measure of Covert Network Performance

Transcription:

DAY-AHEAD ELECTRICITY PRICE FORECASTING BASED ON TIME SERIES MODELS: A COMPARISON Rosario Esínola, Javier Contreras, Francisco J. Nogales and Antonio J. Conejo E.T.S. de Ingenieros Industriales, Universidad de Castilla La Mancha 1371 Ciudad Real, Sain Rosa.Esinola@uclm.es, Javier.Contreras@uclm.es, FcoJavier.Nogales@uclm.es, Antonio.Conejo@uclm.es Abstract This aer resents and comares three rice forecasting tools for day-ahead electricity markets: dynamic regression, transfer function and seasonal Auto Regressive Integrated Moving Average models. The three rocedures are based on time series analysis and differ when modelling the relationshi between rices and error terms (error measured by the difference between the actual rice and the one redicted by the model. The dynamic regression model relates the current rice to the values of ast rices. The transfer function aroach relates the current rice to the values of resent and ast rices and demands. This relationshi can include a serially correlated error that can be modelled by an Auto Regressive Moving Average rocess. Finally, the third model relates current rices to the values of ast rices, and current error terms to revious errors. Real world case studies from mainland Sain and California electricity markets are resented to illustrate and comare the redictive behaviour of the models. Keywords: Electricity markets, market clearing rice, forecasting, time series analysis, ARIMA models 1 INTRODUCTION The electric ower industry is becoming more sohisticated after a few years of deregulation and restructuring. Electricity markets have emerged from the revious centralized oeration in order to suly energy to consumers with the target of attaining high reliability and low cost. Electricity rice forecasting has become an essential tool in cometitive electricity markets, both for roducers and consumers. The reason is that buying and selling bidding strategies rely on next day rice redictions in order to achieve benefit or utility maximization (for buying or selling agents, resectively [1, 2]. In addition, reliable rice forecasts have a definitive imact not only in electricity day-ahead markets, but also in monthly schedules and bilateral or financial contracts. For this tye of ortfolio decisions, it is desirable to have available redictions of rice average values over a year horizon. Also, Energy Service Comanies (ESCOs buy energy from the ool or from contracts to sell it to their clients. These comanies need reliable short- and long-term rice forecasts. In the ast, several time series techniques have been used to redict demand in centralized markets [3]. However, there are not many alications of time series forecasting to redict day-ahead electricity rices. The most imortant ones are Auto Regressive Integrated Moving Average (ARIMA methods [4] and Artificial Neural Networks (ANN [, 6, 7]. Fosso et al. [4] use an ARMA model to forecast rices in the Nordic market. Ramsay et al. [] roose a hybrid fuzzy logic-neural network aroach to redict rices in the England- Wales ool, with daily mean errors around %. Szkuta et al. [6] roose a three-layered ANN using backroagation in the Victorian (Australia electricity market, with daily mean errors around %. And Nicolaisen et al. [7] use Fourier and Hartley transforms as filters to ANNs. This aer focuses on short-term decisions associated to the ool and resents three highly effective tools to redict day-ahead rices: dynamic regression, transfer function and seasonal Auto Regressive Integrated Moving Average (ARIMA models. They are based on time series analysis and alied to forecast actual rices of mainland Sain [8] and California [9]. The remainder of the aer is organized as follows. In section 2, a mathematical descrition of the three models is rovided. Section 3 resents numerical results and section 4 states some conclusions. 2 DESCRIPTION OF THE MODELS In this section, the descrition of three models based on time series analysis is resented: dynamic regression, transfer function and ARIMA formulations. These three models are a class of stochastic rocesses used to analyze time series, and have a common methodology. The alication of this methodology to the study of time series analysis is due to Box and Jenkins []. The analysis is based on setting u a hyothetical robability model, one for each of the roosed models, to reresent the data. The models resented are selected based on a careful insection of the main characteristics of the hourly rice series. In most cometitive electricity markets this series resents: high frequency; nonconstant mean and variance; multile seasonality (corresonding to a daily and weekly eriodicity, resectively; calendar effect (such as weekends, holidays; high volatility; and high ercentage of unusual rices (mainly in eriods of high demand. Moreover, the roosed models can include exlanatory variables, for examle, the demand of electricity has been included in one model because, a riori, it seems to artly exlain the rice behavior.

Next, the descrition of the general statistical methodology to build a final model is resented. The three models have been obtained through the following scheme: Ste. A class of models is formulated assuming certain hyotheses. Ste 1. A model is identified for the observed data. Ste 2. The model arameters are estimated. Ste 3. If the hyotheses of the model are validated go to Ste 4, otherwise go to Ste 1 to refine the model. Ste 4. The model can be used to forecast. In the following subsections, each ste of the above scheme is detailed. 2.1 Ste The building of each of the three models resented differs in this ste. This ste is exlained below deending on the selected model. 2.1.1 Dynamic regression The first roosed method to forecast rices is a dynamic regression model [, 11]. In this model, the rice at hour t is related to the values of ast rices at hours t 1, t 2,, etc. This is done to obtain a model that has uncorrelated errors. In Ste, the selected model used to exlain the rice at hour t is the following: where ( t c ω B t + εt = + (1 is the rice at time t and c is a constant. t Function = l K l ω ( B = 1ωl B is a olynomial function l of the backshift oerator B : Bt = t l, where the total number of terms of the function, K, is subject to change in stes 1-3. Function ω ( B deends on arameters ω l, whose values are estimated in Ste 1. Finally, ε t is the error term. In Ste this term is assumed to be a series drawn randomly from a normal 2 distribution with zero mean and constant variance σ, that is, a white noise rocess. The efficiency of this aroach deends on the election of the aroriate arameters in ω (B to achieve an uncorrelated set of errors. This selection is carried out through Stes 1 to 3 as it is exlained below. 2.1.2 Transfer function A second roosed method that includes a serially correlated error is called transfer function model [, 11]. Secifically, it is assumed that the rice and demand series are both stationary (i.e. with constant mean and variance. The general form roosed to model the (rice, demand transfer function is ( d t = c+ ω B dt + Nt (2 where t is the rice at time t, c is a constant, d t is d the demand at time t, = l K d l ω ( B = ωl B is a olynomial function of the backshift oerator, and N t is a disturbance term that follows an ARMA model of the form θ ( B Nt = εt (3 φ( B with θ Θ ( B l = 1 l θ =1 l B and φ = Φ ( B l 1 l φ =1 l B, both of which being olynomial functions of the backshift oerator. The total number of terms of the functions θ ( B and φ ( B, Θ and Φ, resectively, are subject to change in stes 1-3. Finally, ε t is the error term, that is assumed to be a white noise rocess. The model in (2 relates actual rices to demands d through function ω (B and actual rices to ast rices through function φ (B. 2.1.3 ARIMA The third roosed method is an ARIMA formulation. The roosed general ARIMA formulation in Ste is the following: ( B ( B φ t = θ ε t (4 where φ (B and θ (B are functions of the backshift oerator such as in (3, and ε t is the error term. But in this case, functions φ(b and θ (B have secial forms. They can contain factors of olynomial functions of the form φ Φ ( B l = 1 l φ =1 l B Θ l and/or θ ( B = 1 l θ =1 l B, and/or (1 B s, where several values of φ l and θ l can be set to. The total number of terms of the functions θ ( B and φ ( B, Θ and Φ, resectively, are subject to change in stes 1-3. For examle, function φ (B could have the following form: 1 2 24 48 ( B = ( B B ( B B φ 1 φ1 φ2 1 φ24 φ48 168 24 ( 1 φ168b 1 ( B1 ( B ( It should be noted that this examle does not corresond to a standard ARIMA formulation, as resented in []. However, the model in (4 is sufficiently general to include the main characteristics of the rice data. For

examle, to include multile seasonality, factors of the 24 168 24 form ( 1 φ24b, ( 1 φ168b, and/or ( 1 θ24b, 168 24 168 ( 1 θ168b, and erhas (1 B, (1 B can be added to the model. It can be observed that the model in (4 relates actual rices to ast rices through function φ (B, and actual errors to ast errors through function θ (B. Finally, certain hyotheses on the three models must be assumed. These hyotheses are imosed on the error term, ε t. In Ste, this term is assumed to be a randomly drawn series from a normal distribution with zero 2 mean and constant variance σ. In Ste 3, a diagnostic checking is used to validate these model assumtions, as exlained in subsection 2.4. 2.2 Ste 1 Deending on the selected aroach, a trial model must be identified for the rice data. First, in order to make the underlying rocess stationary (more homogeneous mean and variance, a transformation of the original rice data may be necessary. In this ste, if a logarithmic transformation is alied to the rice data, a more stable variance is attained for the three models. For the dynamic regression and the transfer function aroaches, all the initial arameters are set to zero. Particularly, in the ARIMA formulation, the inclusion of factors of the form (1 s B may be necessary to make the rocess more stationary. And, to attain a more stable 24 168 mean, factors of the form (1 B, (1 B, (1 B may be necessary, deending on the articular tye of electricity market, as exlained at the end of this section. The initial selected arameters for the ARIMA formulation are based on the observation of the autocorrelation and artial autocorrelation lots. In successive trials, the same observation of the residuals obtained in Ste 3 (observed values minus redicted values can refine the structure of the functions in the model. 2.3 Ste 2 After the functions of the models have been secified, the arameters of these functions must be estimated. Good estimators of the arameters can be found by assuming that the data are observations of a stationary time series (Ste 1, and by maximizing the likelihood with resect to the arameters []. The SCA System [12] is used to estimate the arameters of the corresonding model in the revious ste. The arameter estimation is based on maximizing a likelihood function for the available data. A conditional likelihood function is selected in order to get a good starting oint to obtain an exact likelihood function, as described in []. 2.4 Ste 3 In this ste, a diagnosis check is used to validate the model assumtions of Ste. This diagnosis checks if the hyotheses made on the residuals (actual rices minus redicted rices by estimated model in Ste 1 are true. Residuals must satisfy the requirements of a white noise rocess: zero mean, constant variance, uncorrelated rocess and normal distribution. These requirements can be checked by taking tests for randomness, such as the one based on the Ljung-Box statistic, and observing lots, such the autocorrelation and artial autocorrelations lots. If the hyotheses on the residuals are validated by tests and lots, then, the corresonding model can be used to forecast rices. Otherwise, the residuals contain a certain structure that should be studied to refine the model in Ste 1. This study is based on a careful insection of the autocorrelation and artial autocorrelation lots of the residuals. 2. Ste 4 In Ste 4, the corresonding model from Ste 2 can be used to redict future values of rices (tyically 24 hours ahead. Due to this requirement, difficulties may arise because redictions can be less certain as the forecast lead time becomes larger. The SCA System is again used to comute the 24- hour forecast. The exact likelihood function is selected to obtain a very accurate rediction. As a result of these five stes, the final models for the Sanish and Californian electricity markets are the following: 2..1 Dynamic regression Final selected arameters ω l of function ω (B in (1 that are different from zero are those corresonding to indices l = 1, 2, 3, 24,, 48, 49, 72, 73, 96, 97, 1, 121, 144, 14, 168, 169, 192, 193. 2..2 Transfer function Final selected arameters different from zero for d function ω (B in (2 are those corresonding to indices l =, 1, 2, 3, 24,, 48, 49, 72, 73, 96, 97, 1, 121, 144, 14, 168, 169, 192, 193. Selected arameters φ l of function φ (B in (2 that are different from zero are those corresonding to indices l = 1, 2, 3, 24,, 48, 49, 72, 73, 96, 97, 1, 121, 144, 14, 168, 169, 192, 193. Due to seasonality, function θ (B has been divided into two functions θ ( B = θ1( B θ 2 ( B where θ Θ 1 ( B l = 1 l θ =1 1 l B and θ = Θ 2 ( B l 1 l θ =1 2 l B. Selected arameters θ 1l for the first factor are different from zero for indices l = 1, 2, 3, 24. The only arameter different from zero for the second factor is at index l = 168. 2..3 ARIMA Final models for the Sanish and Californian electricity markets are, resectively:

1 2 3 4 ( 1 φ1b φ2 B φ3b φ4 B φb 23 24 47 48 ( 1 φ23b φ24b φ47 B φ48b 72 96 1 144 φ72b φ96b φ1 B φ144b 168 336 4 (1 φ168b φ336 B φ4b lo g t = 1 2 24 c + ( 1 θ1b θ 2 B ( 1 θ 24 B 168 336 4 (1 θ168b θ 336B θ 4B εt 1 2 23 24 47 ( 1 φ1b φ2b (1 φ23b φ24b φ47 B 48 72 96 1 144 φ48b φ72b φ96b φ1b φ144b 167 168 169 192 ( 1 φ167b φ168b φ169b φ192b 24 168 1 2 (1 B(1 B (1 B log t = c + ( 1 θ1b θ2b 24 48 72 96 144 ( 1 θ24b θ48b θ72b θ96b (1 θ144b 168 336 4 (1 θ168b θ336b θ4b ε t Note that, as mentioned in Ste, the roosed formulation extends the standard ARIMA model by including more than two factors in (6 and (7, and a secial olynomial structure of the overall function. It should be noted that model (6 needs the revious hours to redict the next hour, whereas (7 just needs the revious two hours. Also, the model in (6 does not use differentiation, and the one in (7 uses hourly, daily and 24 168 weekly differentiations: (1 B(1 B (1 B. This is related to the stationarity roerty of the series, and it can be traced by insecting the autocorrelation and artial autocorrelation lots. 3 NUMERICAL RESULTS (6 (7 3.1 Case Studies The three models described in the revious section have been alied to redict the electricity rices of mainland Sain and Californian markets. For the Sanish electricity market two weeks have been selected to forecast and validate the erformance for each of the three models. The first week corresonds to the second week of May 1 (from days May 11 th to 17 th, which is tyically a high demand week. The second one corresonds to the fourth week of August 1 (from th to 31 st which is a tyically a low demand week. The hourly data used to forecast the first week are from January 1 st to May th, 1; and the hourly data used to forecast the second week are from June 1 st to August 24 th, 1. For the Californian electricity market, the week of Aril 3 rd to 9 th has been chosen. This week is rior in time to the beginning of the dramatic rice volatility eriod. The hourly data used to forecast this week are from January 1 st to Aril 2 nd,. The ARIMA models (6-(7, corresonding to the Sanish and Californian markets, are used in the three roosed study cases. The dynamic regression and transfer function models are unique for both markets and all the case studies. 3.2 Numerical Results Numerical results for the three roosed models are resented. Fig. 1 to 9 show the forecasted rices for each of the three models and for each of the three weeks studied, two for the Sanish electricity market and one for the Californian market, together with the actual rices. Figure 1 corresonds to the selected week of May using a dynamic regression model for the Sanish market. Figure 1: of May week using a dynamic regression model in the Sanish market. Prices in /MWh. Table 1. The daily mean errors are around %. It can be observed that the hours with higher rediction errors are those corresonding to weekend days (Saturday and Sunday. Mean(%.24 3.94 3.6 3.34.19 7.23 7. Table 1: Daily mean errors of May week using a dynamic regression model in the Sanish market. Figure 2 corresonds to the selected week of May using a transfer function model for the Sanish market. 4 3 4 3 May Week (DR May Week (TF 4 6 8 1 14 16 4 6 8 1 14 16 Figure 2: of May week using a transfer function model in the Sanish market. Prices in /MWh.

The seven daily mean errors for this week are shown in Table 2. The daily mean errors are around.2%. On Sunday the error is greater. Mean(%. 4.82 4.7 4.8.9 4.81 7. Table 2: Daily mean errors of May week using a transfer function model in the Sanish market. Figure 3 corresonds to the same week in May using the ARIMA model (6 for the Sanish market. Figure 3: of May week using an ARIMA model in the Sanish market. Prices in /MWh. Table 3. The daily mean errors are around 8%. Mean(%.18 7. 6.47 8.96 6.78 9.3 8.94 Table 3: Daily mean errors of May week using an ARIMA model in the Sanish market. Figure 4 corresonds to the selected week of August using a dynamic regression model for the Sanish market. 4 3 6 4 3 May Week (AM August Week (DR 4 6 8 1 14 16 4 6 8 1 14 16 Figure 4: of August week using a dynamic regression model in the Sanish market. Prices in /MWh. Table 4. The daily mean errors are around 4.%. Mean(% 4.8 3.61 4.18.14 4.62.84 3.62 Table 4: Daily mean errors of August week using a dynamic regression model in the Sanish market. Figure corresonds to the same week of August using a transfer function model for the Sanish market. 6 4 3 August Week (TF 4 6 8 1 14 16 Figure : of August week using a transfer function model in the Sanish market. Prices in /MWh. Table. The daily mean errors are around 4.4%. A good erformance of the rediction method can be observed. Mean(%.81 4.32 3.6 3.97 3.78.31 3.96 Table : Daily mean errors of August week using a transfer function model in the Sanish market. Figure 6 corresonds to the same week of August using the ARIMA model (6 for the Sanish market. 6 4 3 August Week (AM 4 6 8 1 14 16 Figure 6: of August week using an ARIMA model in the Sanish market. Prices in /MWh. Table 6. The daily mean errors are around 7.8%.

Mean(%.3 4.34 8.67 6. 7.91 9.31 8.16 Table 6: Daily mean errors of August week using an ARIMA model in the Sanish market. Figure 7 corresonds to the selected week in Aril using a dynamic regression model for the Californian market. 4 4 3 Aril Week (DR 4 6 8 1 14 16 Figure 7: of Aril week using a dynamic regression model in the Californian market. Prices in $/MWh. Table 7. The daily mean errors are around 3.3%. Mean(% 4.68 3.12 3.1 2.8 1.96 2.89 4.14 Table 7: Daily mean errors of Aril week using a dynamic regression model in the Californian market. Figure 8 corresonds to the same week in Aril using a transfer function model for the Californian market. 4 4 3 Aril Week (TF 4 6 8 1 14 16 Figure 8: of Aril week using a transfer function model in the Californian market. Prices in $/MWh. Table 8. The daily mean errors are around 3.%. Mean(% 4.27 3.32 3.39 2.97 2.36 2.61 3.87 Table 8: Daily mean errors of Aril week using a transfer function model in the Californian market. Figure 9 corresonds to the same week in Aril using the ARIMA model (7 for the Californian market. Prices ($/MWh 4 4 3 Aril Week (AM 4 6 8 1 14 16 Figure 9: of Aril week using an ARIMA model in the Californian market. Prices in $/MWh. Table 9. The daily mean errors are around %. During the weekend the errors are greater. Mean(% 4. 6.17 2.6 2.3 3.7 8.46 7.44 Table 9: Daily mean errors of Aril week using an ARIMA model in the Californian market. Several statistical measures have been used to verify the rediction ability of the roosed models. For all the study cases, the average rediction error of the 24 hours has been comuted for each day. Then, the average of the daily mean errors has been calculated and called Mean Week Error (MWE. Finally, the ed Mean Square Error (FMSE for the 168 hours of each week has been calculated as: 168 2 FMSE = ( t ˆ t (8 i= 1 where t and ˆt are the actual and forecasted rices, resectively. An index of uncertainty in the models is the variability of what is still unexlained after fitting the models. That can be measured through the variance of the error term (σ 2. The smaller σ 2 the more recise the rediction of rices. Normally, the value of σ is not known, thus an estimate is used instead. The standard deviation of the error terms, ŝ R, can be used as such an estimate. This estimate is useful when the true values of the series are unknown.

These measures can be observed in Table. First column indicates the month, and in arenthesis the model used: DR for Dynamic Regression, TF for Transfer Function and AM for ARIMA model. The second column shows the ercentage Mean Week Error (MWE, the third one resents the standard deviation of the error terms ( ŝ R, and the fourth column shows the square root of the ed Mean Square Error (FMSE. Note that rices, ŝ R, and FMSE are measured in /MWh and $/MWh in the Sanish and Californian markets, resectively. MWE (% ŝ R FMSE Sain May 1 (DR.7.223 21.48 Sain May 1(TF.19.2 22. Sain May 1 (AM 8.31.2 32.2 Sain August 1 (DR 4.1.9 28. Sain August 1(TF 4.39.81.61 Sain August 1(AM 7.79.81 42.99 California Aril (DR 3.3.6 14.94 California Aril (TF 3.. 14.1 California Aril (AM.1.6 21.19 Table : Statistical Measures. Finally, Tables 11 and 12 show the MWE for the last week of the first ten months of the year in Sain, and the same week for the months of August and November in California. After Aril the Californian market entered a highly unstable eriod that later rovoked the collase at the end of the year. Exlanatory variables such as: demand, water storage and the available roduction of hydro units, are considered in the ARIMA case. MWE (% DR TF ARIMA ARIMA-EX 1 January 6.93 6.8 12.6 9.97 February.4 4.73 8. 8.13 March 7 7.11 11.28. Aril 6.8.38 19.37 14.68 May 3.81 2.76 4.99 7.7 June 6.87 6.69 9.97.8 July.49.7 9.39 8.83 August.1.17 8.17 9.39 Setember 6.81 7. 12.1.72 October 8.6 7.8 13.63 13.69 Table 11: Mean Week Error for the last week of the first ten months of in the Sanish Market. MWE (% DR TF ARIMA ARIMA-EX 2 August 7.8 7.7.6 21.3 November 4.63 4.68 13.6 13.68 Table 12: Mean Week Error for the last week of August and November, in the Californian Market. 1 With exlanatory variables: demand, water storage and available hydro roduction. 2 With exlanatory variable: demand. All the study cases have been run on a DELL Precision 6 Workstation with two rocessors Pentium III, 1 Gb of RAM, and 8 MHz. Running time, including estimation and forecasting, has been under three minutes in all cases. 4 CONCLUSIONS This aer has roosed three forecasting models: dynamic regression, transfer function and ARIMA, to redict hourly electricity rices in the Sanish and Californian day-ahead markets. These models are based on time series analysis. For all markets and case studies, the dynamic regression and transfer function models have erformed better than the ARIMA model, though the three techniques rovide reasonable redictions. The difference between the ARIMA model and the other two may be due to the lack of flexibility of the ARIMA formulation when including multile seasonality terms. The effect of choosing a low versus a high demand week has been negligible to the forecasts. However, the effect of the exlanatory variables has imroved the ARIMA redictions, albeit not always. The forecasted rices have shown better behavior in the Californian market before the crash that took lace in the summer of. This could be due to the fact that that market showed less volatility and a lower roortion of outliers before the turmoil. The Sanish model has needed hours to redict future rices, instead of the 2 hours needed in the Californian one. These differences may reflect different bidding behaviors and that will be subject of future research. ACKNOWLEDGMENT This work was artially suorted by the Ministry of Science and Technology (Sain and the Euroean Union through grant FEDER-CICYT 1FD97-98. We are also grateful to Mr. Bill Lattyak, from SCA, for his hel and advice. REFERENCES [1] J. M. Arroyo and A. J. Conejo, Otimal Resonse of a Thermal Unit to an Electricity Sot Market, IEEE Transactions on Power Systems, vol., no. 3,. 98-14, August. [2] A. J. Conejo, J. Contreras, J. M. Arroyo and S. de la Torre, Otimal Resonse of an Oligoolistic Generating Comany to a Cometitive Pool-Based Electric Power Market, to aear in IEEE Transactions on Power Systems, aer TR2. [3] G. Gross and F. D. Galiana, Short-Term Load ing, Proc. of the IEEE, vol. 7, no. 12,. 8-73, December 1987. [4] O. B. Fosso, A. Gjelsvik, A. Haugstad, M. Birger and I. Wangensteen, Generation Scheduling in a Deregulated System, IEEE Transactions on Power Systems, vol. 14, no. 1,. 7-81, February 1999.

[] B. Ramsay and A. J. Wang, A Neural Network Based Estimator for Electricity Sot-Pricing with Particular Reference to Weekend and Public Holidays, Neurocomuting, vol. 23,. 47-7, 1998. [6] B. R. Szkuta, L. A. Sanabria and T. S. Dillon, Electricity Price Short-Term ing using Artificial Neural Networks, IEEE Transactions on Power Systems, vol. 14, no. 3,. 81-87, August 1999. [7] J. D. Nicolaisen, C. W. Richter, Jr. and G. B. Sheblé, Signal Analysis for Cometitive Electric Generation Comanies, Proc. of the Conference on Electric Utility Deregulation and Restructuring, London, United Kingdom, 4-7 Aril,. [8] J. J. González and P. Basagoiti, Sanish Power Exchange and Information System Design Concets, and Oerating Exerience, Proc. of the 21 st Power Industry Comuter Alications International Conference, PICA 99, Santa Clara, USA, May 1999. [9] F. Albuyeh and Z. Alaywan, Imlementation of the California Indeendent System Oerator, Proc. of the 21 st Power Industry Comuter Alications International Conference, PICA 99, Santa Clara, USA, May 1999. [] G. E. P. Box and G. M. Jenkins, Time Series Analysis ing and Control, 2 nd ed., Holden-Day, San Francisco, USA, 1976. [11] F. J. Nogales, J. Contreras, A. J. Conejo and R. Esínola, ing Next-Day Electricity Prices by Time Series Models, to aear in IEEE Transactions on Power Systems, aer 1TR212. [12] L. Liu and G. P. Hudak, ing and Time Series Analysis using the SCA Statistical System, Scientific Comuting Associated, 1994.