Regime-Switching Model on Hourly Electricity Spot Price Dynamics ()

Samuel Asante Gyamerah^{1}, Philip Ngare^{2}

^{1}Institute of Basic Sciences Technology and Innovation, Pan African University, Nairobi, Kenya.

^{2}University of Nairobi, Nairobi, Kenya.

**DOI: **10.4236/jmf.2018.81008
PDF
HTML XML
901
Downloads
1,944
Views
Citations

A robust time-varying regime-switching model for price dynamics of hourly spot price of electricity on the electricity market is developed. We propose a two-state Markov Regime Switching (MRS) model that gives weight to the existence of different variance for each regime. Our model is tractable as it integrates the main features exhibited in the hourly spot price dynamics on the electricity market. The parameters of our hourly spot price of electricity market model are estimated using the Expectation Maximization algorithm. Based on this model, an efficient and tractable pricing technique can be developed to price the dynamics of the hourly spot price of electricity.

Keywords

Regime-Switching Model, Time-Varying Volatility, Hourly Spot Price of Electricity, Expectation-Maximization (EM)-Algorithm

Share and Cite:

Gyamerah, S. and Ngare, P. (2018) Regime-Switching Model on Hourly Electricity Spot Price Dynamics. *Journal of Mathematical Finance*, **8**, 102-110. doi: 10.4236/jmf.2018.81008.

1. Introduction

Electricity, among other commodities, is one of the most important blessings science has given to the world. It is an essential commodity for social and economic development of developing countries. Most small household and manufacturing industries depend on electricity for their activities. According to the World Banks Global Tracking Framework (GTF), released in April 2017, 1.06 billion people live without electricity―a negligible improvement since 2012 (http://www.worldbank.org/en/topic/energy/overview, accessed on 02/09/2017) and this impedes the growth of countries economy due to the over-reliance of most activities on electricity. Crousillat, Hamilton, and Antmann (2010) stated that “eventhough electricity alone is not sufficient to spur economic growth, it is certainly necessary for human development” [1] .

The electricity market facilitates the purchase of electricity through bids to buy; sales, through offers to sell; and short-term trades. In the early 1990s, the deregulation of the energy market (electricity market in our case) started in some countries (among others were the United Kingdom, Australia, and Norway) and gradually spread out to the European Union and the United States. This has created competitive markets that boost wholesale trading in most countries. This deregulation instigated substantial elements of risk such as uncertain demand, price risk, and volumetric risk; the principal of them being electricity price volatility. In result of this, there is the need to understand and model the spot price dynamics of the electricity market accurately to aid in an efficient pricing of electricity spots.

2. Electricity Spot Prices: Markets and Models

The spot price dynamics of electricity show signs of strong seasonality, high volatility, and generally unexpected extreme changes known as “spike” or “jumps” [2] [3] . Electricity spot prices (the underlying) show forms of nonlinear dynamics. Among the nonlinearities of the series of the price dynamics are the clustering of large shocks, and non-constant variance. These distinctive characteristics make it difficult for practitioners and researchers to model accurately the spot price of electricity on the electricity market. Most researchers have modelled electricity spot price dynamics using single regime stochastic models where it is assumed that there is no changes in state of the underlying spot price dynamics. But a single stochastic model may not be able to incorporate the dynamics of these electricity spot price dynamics accurately [4] [5] [6] . In reality, the underlying can go through different unobservable (latent) states in a particular period of interval. The underlying exhibits switching mechanism that needs different stochastic model for each switching state. Hence, the need to formulate appropriate models that can capture efficiently the electricity price dynamics to help in the proper pricing of spot and futures contract. From Figure 1, it is clear that mean-reversion is the optimal choice for electricity spot price dynamics. To build up the efficiency of Markov Regime Switching (MRS) models to electricity spot price dynamics, we proposed a model that gives weight to the existence of different variance for two Markov Regime Switching (MRS) models. The dynamics of electricity are more complex than normal spot price models allow and it can be noted that in the deregulated market, the dynamics of electricity prices are characterized with a combination of low price behavior and sharp price spikes as illustrated in Figure 1.

Ethier and Mount (1998) presented MRS models to electricty prices [7] . Huisman and Mahieu (2003) presented a three regime-switching model that separates price spikes from normal price [8] . They indicated that power spikes are short-lived and that stochastic jumps process cannot adequately model the electricity price behaviour. To substantiate their proposed model, they stated

Figure 1. Hourly spot price of the NordPool Electricity market from 01/01/2017- 31/04/2017.

that the mean-reverting rate of the long-run price level and the normal periods are not the same. Weron, Bierbrauer, and Trück (2004) modelled spot electricity prices by reviewing different electricity spot models [3] . Bierbrauer, Trück, and Weron (2010) addressed the problem of modeling spot electricity prices from the Nordic power exchange with a regime switching model [9] . The performance of the regime switching model was evaluated by comparing simulated and market prices. De Jong (2006) presented a two-regime MRS model by considering an autoregressive, spike regime dynamics driven by a Poisson distribution [10] . Weron (2008) also presented a model that decreases the computational time induced by independent regimes [11] .

In this paper, we develop a robust two state regime-switching model with time-varying volatility for the price dynamics of the electricity spot price on the electricity market. The model is mathematically tractable to represent well the characteristics of the spot price dynamics of the electricity market.

3. Regime-Switching Brownian-“Jump” Model

Suppose in a two independent state regime switching, each state undergoes discrete shifts between states ${S}_{t}$ of the process. Then ${S}_{t}$ follows a first order Markov chain with the transition matrix:

$P=\left[\begin{array}{cc}\mathbb{P}\left({S}_{t}=1|{S}_{t-1}=1\right)& \mathbb{P}\left({S}_{t}=1|{S}_{t-1}=2\right)\\ \mathbb{P}\left({S}_{t}=2|{S}_{t-1}=1\right)& \mathbb{P}\left({S}_{t}=2|{S}_{t-1}=2\right)\end{array}\right]$

$P=\left[\begin{array}{cc}{P}_{11}& {P}_{12}\\ {P}_{21}& {P}_{22}\end{array}\right]=\left[\begin{array}{cc}1-{P}_{12}& {P}_{12}\\ {P}_{21}& 1-{P}_{21}\end{array}\right]$

The transition matrix $P$ contains the probabilities ${P}_{ij}\left(i,j=0,1\right)=P\left\{{S}_{t}=j|{S}_{t-1}=1\right\}$ , $0\le {P}_{ij}\le 1$ , $\sum}\text{\hspace{0.05em}}\text{\hspace{0.05em}}{P}_{ij}=1$ and satisfying ${P}_{i0}+{P}_{i1}=1,\forall i=0,1$

Keeping the stylized features of the spot price dynamics of electricity in mind, we propose a two-state Markov regime-Switching model with base regime driven by a mean-reverting process and a shifted regime driven by a Brownian- “Jump” process. In both regimes, we assume that the volatility of the current spot price is dependent on the current spot price level ${X}_{t}$ . The “jump” behaviour is as a result of an “extreme” Brownian motion with a greater extreme drift and volatility than the standard mean-reverting regime. The “jump” regime is modelled with a simple Itô process. Given a time interval $\left[\mathrm{0,}T\right]$ at a finite time horizon $\left[T<\infty \right]$ , assume there is trading activities in the electricty market. Suppose, given a probability space $\left(\Omega \mathrm{,}\mathcal{F}\mathrm{,}\mathbb{P}\right)$

$X\left(t\right)=\{\begin{array}{l}{X}_{t,1}:\text{d}{X}_{t,1}=\left({\alpha}_{1}-\lambda {X}_{t,1}\right)\text{d}t+{\sigma}_{1}{X}_{t}^{\gamma}\text{d}{W}_{t}^{M},\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{if}\text{\hspace{0.17em}}X\left(t\right)\text{\hspace{0.17em}}\text{is}\text{\hspace{0.17em}}\text{in}\text{\hspace{0.17em}}\text{regime}\text{\hspace{0.17em}}1\text{\hspace{0.05em}}\\ {X}_{t,2}:\text{d}{X}_{t,2}={\mu}_{2}\text{d}t+{\sigma}_{2}{X}_{t}^{\gamma}\text{d}{W}_{t}^{J},\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{\hspace{1em}}\text{\hspace{1em}}\text{\hspace{1em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{if}\text{\hspace{0.17em}}X\left(t\right)\text{\hspace{0.17em}}\text{is}\text{\hspace{0.17em}}\text{in}\text{\hspace{0.17em}}\text{regime}\text{\hspace{0.17em}}2\text{\hspace{0.05em}}\end{array}$ (1)

where $\lambda $ is the mean-reversion rate of the base regime, $\frac{{\alpha}_{1}}{\lambda}$ is the long-term

mean for the spot price reverting to, ${\sigma}_{1}{X}_{t}^{\gamma}$ and ${\sigma}_{2}$ are the daily price volatility of the base and shifted regimes respectively, ${W}_{t}^{M}$ and ${W}_{t}^{J}$ are the standard Brownian motion and a Brownian-”Jump” process respectively, ${T}_{t}$ is the temperature at time t. Let ${p}_{1}$ and $1-{p}_{1}$ be the probabilities that the process is in regime 1 and 2, respectively. The base regime model is based on the mean-reverting constant elasticity variance developed by [12] . There is a strong positive correlation between the price level and the price change for a psoitive $\gamma $ . Assume $\gamma =1$ , then model (1) can be reformulated as

$X\left(t\right)=\{\begin{array}{l}{X}_{t,1}:\text{d}{X}_{t,1}=\left({\alpha}_{1}-\lambda {X}_{t,1}\right)dt+{\sigma}_{1}{X}_{t}{}_{\text{,1}}\text{d}{W}_{t}^{M},\text{\hspace{1em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{if}\text{\hspace{0.17em}}X\left(t\right)\text{\hspace{0.17em}}\text{is}\text{\hspace{0.17em}}\text{in}\text{\hspace{0.17em}}\text{regime}\text{\hspace{0.17em}}1\text{\hspace{0.05em}}\\ {X}_{t,2}:\text{d}{X}_{t,2}={\alpha}_{2}\text{d}t+{\sigma}_{2}{X}_{t,2}\text{d}{W}_{t}^{J},\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{\hspace{1em}}\text{\hspace{1em}}\text{\hspace{1em}}\text{\hspace{1em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{if}\text{\hspace{0.17em}}X\left(t\right)\text{\hspace{0.17em}}\text{is}\text{\hspace{0.17em}}\text{in}\text{\hspace{0.17em}}\text{regime}\text{\hspace{0.17em}}2\text{\hspace{0.05em}}\end{array}$ (2)

By the application of Itô’s lemma to model (2), the integral form to the base regime and shifted regime is explicitly given in integral form as

${X}_{t,1}=\frac{{\alpha}_{1}}{\lambda}+{\text{e}}^{-\lambda t}\left[{X}_{0,1}-\frac{{\alpha}_{1}}{\lambda}\right]+{\sigma}_{1}{\displaystyle {\int}_{t}^{0}}\text{\hspace{0.05em}}{X}_{s,1}{\text{e}}^{-\lambda \left(t-s\right)}\text{d}{W}_{s}^{M}$ (3)

${X}_{t,2}={X}_{0,2}+{\mu}_{2}t+{\displaystyle {\int}_{0}^{t}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}{\sigma}_{2}\text{d}{W}_{s}^{J}$ (4)

4. Parameter Estimation

The EM algorithm was first introduced by Dempster, Laird, and Rubin (1977) [13] . Estimating the parameters in a MRS models is not trivial since the regime is not directly observable(latent). Hamilton (1990) was the first to apply Expectation-Maximization (EM)-algorithm [14] . The EM-algorithm is a comprehensive procedure for finding the maximum-likelihood estimate of the parameters of a distribution from a specified data given that the data is either incomplete or have missing (or hidden) values. The optimal set of unknown parameters to be estimated in the base and shifted regime are ${\theta}_{1}=\left\{{\alpha}_{1},\lambda ,{\sigma}_{1},{P}_{1}\right\}$ and ${\theta}_{2}=\left\{{\alpha}_{2},{\sigma}_{2},{P}_{2}\right\}$ respectively. The optimal set of the unknown parameters in the model to estimate is $\Theta =\left\{{\theta}_{1},{\theta}_{2}\right\}$ .

4.1. Discretization

The discretized version of model 1 in the base and shifted regime is respectively given as

${X}_{t+1,1}={\alpha}_{1}+{X}_{t,1}\left(1-\lambda \right)+{\sigma}_{1}{X}_{t,1}{\u03f5}_{t+1,1}$ (5)

${X}_{t+1,2}={\alpha}_{2}+{X}_{t,2}+{\sigma}_{2}{X}_{t,2}{\u03f5}_{t+1,2}$ (6)

where ${\u03f5}_{t+1}~\mathcal{N}\left(\mathrm{0,1}\right)$ . Let ${\mathcal{F}}_{{t}_{k}}^{X}$ be the vector of past $k+1$ last values of (5) and (6), i.e. ${\mathcal{F}}_{{t}_{k}}^{X}=\left({X}_{{t}_{0}},{X}_{{t}_{1}},{X}_{{t}_{2}},\cdots ,{X}_{{t}_{k}}\right)$ . Also, let $H+1$ be the size of the past data and $\Psi $ be the equivalent increasing pattern of time at which the data is recorded, i.e. $\Psi =\left\{{t}_{j};0={t}_{0}\le {t}_{1}\le {t}_{2}\le \cdots \le {t}_{H-1}\le {t}_{H}=T\right\}.$

4.2. E-Step

As stated earlier, the regime switching model is latent, hence the inference of the regimes are given by the equations below:

$\forall \text{\hspace{0.17em}}i=\left\{1,2\right\}$ , $k=1,2,3,\cdots ,H$ , and n = number of iterations.

${A}_{i\mathrm{,}{t}_{k}}^{n}=\mathbb{P}\left({S}_{{t}_{k}}=i\mathrm{|}{\mathcal{F}}_{{t}_{k}}^{X}\mathrm{;}{\stackrel{^}{\Theta}}^{\left(n\right)}\right)=\frac{\mathbb{P}\left({S}_{{t}_{k}}\mathrm{,}{X}_{{t}_{k}}\mathrm{|}{\mathcal{F}}_{{t}_{k-1}}^{X}\mathrm{;}{\stackrel{^}{\Theta}}^{\left(n\right)}\right)}{f\left({X}_{{t}_{k}}\mathrm{|}{\mathcal{F}}_{{t}_{k-1}}^{X}\mathrm{;}{\stackrel{^}{\Theta}}^{\left(n\right)}\right)}$ (7)

$=\frac{\mathbb{P}\left({S}_{{t}_{k}}=i\mathrm{|}{\mathcal{F}}_{{t}_{k-1}}^{X}\mathrm{;}{\stackrel{^}{\Theta}}^{\left(n\right)}\right)f\left({X}_{{t}_{k}}\mathrm{|}{S}_{{t}_{k}}=i\mathrm{;}{\mathcal{F}}_{{t}_{k-1}}^{X}\mathrm{;}{\stackrel{^}{\Theta}}^{\left(n\right)}\right)}{{\displaystyle \underset{i=1}{\overset{2}{\sum}}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\mathbb{P}\left({S}_{{t}_{k}}=i\mathrm{|}{\mathcal{F}}_{{t}_{k-1}}^{X}\right)f\left({X}_{{t}_{k}}\mathrm{|}{S}_{{t}_{k}}=i\mathrm{;}{\mathcal{F}}_{{t}_{k-1}}^{X}\mathrm{;}{\stackrel{^}{\Theta}}^{\left(n\right)}\right)}$ (8)

with

(9)

(10)

is the density process at time, conditional on

the process in regime i. From (2) and (5), the base regime has a conditional Gaussian distribution with mean and standard deviation. The shifted regime has a conditional Gaussian distribution with mean and standard deviation.

The probability density functions (pdf) of the base and shifted regimes are respectively given as

(11)

(12)

4.3. M-Step

We compute the maximum likelihood estimates for the unknown parameters in (5) and (6).

The transition probabilities and are estimated based on the formula below

(13)

(14)

From (11) and (12), the log-likelihood functions of the base and shifted regimes are given respectively as

(15)

(16)

From (15), each of the parameter in the base regime can be estimated by differentiating the log-likelihood with respect to that parameter.

(17)

(18)

where

(19)

From (16), each of the parameter in the shifted regime can be estimated by differentiating the log-likelihood with respect to that parameter.

(20)

(21)

5. Data Description, Results, and Discussion

Historical electricity hourly spot price on the NordPool market is used, specifically we took an hourly data of Oslo. The data set consist of 764 hours spanning from 01/03/2017-31/03/2017. From Table 1, the kurtosis of the data was found to be 24.6572 which is by far greater than the kurtosis of a gaussian distributed data, hence the existence of extreme data points in hourly spot price of the NordPool Electricity. These extreme data points can be described as “jumps”. The presence of extreme data points in the hourly electricity data are clearly illustrated in Figure 2, as the normal curve was not able to fit well on the histograph. This shows that the consumption of electricity depends largely on the peak hours and normal hours in a day, hence the need to model electricity spot price dynamics hourly. Also from Table 1, with a skewness of 3.9056, the data is skewed to the right. This also shows that the hourly spot price of the NordPool Electricity is not normally distributed. The parameter estimates for both regimes depends on the hourly spot price of the NordPool Electricity market from 01/03/2017-31/03/2017.

The estimated results of the model is found in Table 2. The probability of hourly price remaining in the base regime is very high, 0.8471. With a lower but

Figure 2. The distribution fit of the hourly spot price of the NordPool Electricity market from 01/03/2017-31/03/2017.

significant probability of 0.1529, the hourly price will remain in the shifted regime.

6. Conclusion

In this paper, a two-state Markov Regime switching model for the dynamics of the hourly spot price of electricity is developed. It is clear from the illustrated Figure 3 and Figure 1 that electricity hourly spot price exhibits mean reversion, heteroscedastic volatility in both regimes, price spikes and jumps. Our model is tractable as it integrates the main features exhibited in the hourly spot price on the electricity market. The parameters of our hourly spot price electricity market model are estimated using the EM algorithm. Based on this model, an efficient and tractable pricing technique can be developed to price the dynamics of the hourly spot price of electricity. To the best of our knowledge, our proposed model is the first to consider hourly spot price of electricity. From Figure 2, it is evident that the distribution of hourly spot price of the NordPool Electricity is not normal; hence it will be appropriate to use other distributions like the Normal Inverse Gaussian (NIG) or the Gamma distribution to capture this effect.

Table 1. The distribution (skewness and kurtosis) of hourly spot price of the NordPool Electricity market from 01/03/2017-31/03/2017.

Table 2. Parameter estimates for the two state MRS model. The parameters are estimated using the EM algorithm based on the hourly spot price of the NordPool Electricity market for 01/03/2017-31/03/2017.

Figure 3. Calibration of two state MRS model with independent regimes fitted to deseasonalized hourly electricity spot price from the NordPool Electricity market.

NIG and Gamma distributions can capture the extreme and skewed features of the hourly spot price of the NordPool Electricity data.

Acknowledgements

We thank Pan African University, Instutute of Basic Sciences Technology and Innovation for their support for this research.

Conflicts of Interest

The authors declare no conflicts of interest.

[1] | Crousillat, E., Hamilton, R. and Antmann, P. (2010) Addressing the Electricity Access Gap. World Bank, Washington DC. |

[2] | Park, H., Mjelde, J.W. and Bessler, D.A. (2006) Price Dynamics among U.S. Electricity Spot Markets. Energy Economics, 30, 1098-1115. |

[3] |
Weron, R., Bierbrauer, M. and Trück, S. (2004) Modeling Electricity Prices: Jump Diffusion and Regime Switching. Physica A: Statistical Mechanics and Its Applications, 336, 39-48. https://doi.org/10.1016/j.physa.2004.01.008 |

[4] |
Benth, F.E., Kallsen, J. and Meyer-Brandis, T. (2007) A Non-Gaussian Ornstein-Uhlenbeck Process for Electricity Spot Price Modeling and Derivatives Pricing. Applied Mathematical Finance, 14, 153-169.
https://doi.org/10.1080/13504860600725031 |

[5] |
Benth, F.E. and Saltyte-Benth, J. (2004) The Normal Inverse Gaussian Distribution and Spot Price Modelling in Energy Markets. International Journal of Theoretical and Applied Finance, 7, 177-192. https://doi.org/10.1142/S0219024904002360 |

[6] | Branger, N., Reichmann, O. and Wobben, M. (2009) Pricing Electricity Derivatives. Working Paper, Westflische Wilhelms-Universitt Munster, Germany World Scientific. |

[7] | Ethier, R. and Mount, T. (1998) Estimating the Volatility of Spot Prices in Restructured Electricity Markets and the Implications for Option Values. Cornell University, Ithaca, New York. |

[8] |
Huisman, R. and Mahieu, R. (2003) Regime Jumps in Electricity Prices. Energy Economics, 25, 425-434. https://doi.org/10.1016/S0140-9883(03)00041-0 |

[9] | Bierbrauer, M., Trück, S. and Weron, R. (2010) Modeling Electricity Prices with Regime Switching Models. Computational Science-ICCS, 2004, 859-867. |

[10] |
De Jong, C. (2006) The Nature of Power Spikes: A Regime-Switch Approach. Studies in Nonlinear Dynamics & Econometrics, 10, 1-28.
https://doi.org/10.2202/1558-3708.1361 |

[11] |
Weron, R. (2008) Market Price of Risk Implied by Asian-Style Electricity Options and Futures. Journal of Econometrics, 30, 98-1115.
https://doi.org/10.1016/j.eneco.2007.05.004 |

[12] |
Jones, C.S. (2003) Nonlinear Mean Reversion in the Short-Term Interest Rate. The Review of Financial Studies, 6, 793-843. https://doi.org/10.1093/rfs/hhg014 |

[13] | Dempster, A.P., Laird, N.M. and Rubin, D.B. (1977) Maximum Likelihood from Incomplete Data via the EM Algorithm. Journal of the Royal Statistical Society. Series B (Methodological), 39, 1-38. |

[14] |
Hamilton, J.D. (1990) Analysis of Time Series Subject to Changes in Regime. Journal of Econometrics, 45, 39-70. https://doi.org/10.1016/0304-4076(90)90093-9 |

Journals Menu

Contact us

+1 323-425-8868 | |

customer@scirp.org | |

+86 18163351462(WhatsApp) | |

1655362766 | |

Paper Publishing WeChat |

Copyright © 2024 by authors and Scientific Research Publishing Inc.

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.