1 Introduction

Uncertain theory and probability theory are two axiomatic mathematical systems to rationally handle the indeterminacy. It was demonstrated by Liu (2012a) that probability theory is suitable to deal with frequency, whereas uncertainty theory is suitable to deal with belief degree. For a given quantity, a distribution function should be given in order to select whether probability theory or uncertainty theory is better to be used. Liu (2019) provided a convincing example based on uncertain urn problem to illustrate that probability theory should be applied if the given distribution function is close enough to the frequency; otherwise, uncertainty theory has to be applied. Unfortunately, the given distribution function is not close enough to the real frequency in many practical situations. Therefore, uncertainty theory is an important mathematical tool to deal with the real problems. Major topics of uncertainty theory include uncertain programming (Liu 2009a), uncertain statistics (Liu 2010a), uncertain risk analysis and reliability analysis (Liu 2010b), uncertain propositional logic (Li and Liu 2009), uncertain set (Liu 2010c), uncertain logic (Liu 2011), uncertain inference (Liu 2010c), uncertain process (Liu 2008), uncertain calculus (Liu 2009b), and uncertain differential equation (Liu 2008).

As an important application of uncertainty theory, uncertain differential equation has been developed by many scholars. An existence and uniqueness theorem of solutions of uncertain differential equations was verified by Chen and Liu (2010) under the assumption of linear growth and Lipschitz condition, while the theorem is verified by Gao (2012) under the assumption of local linear growth and Lipschitz condition. Moreover, Chen and Liu (2010) presented a method to get the analytic solutions of linear uncertain differential equations, and Liu (2012b) and Yao (2013b) obtained the analytic solutions of some specific types of nonlinear uncertain differential equations. Following that, a vital numerical method for calculating the solution of an uncertain differential equation by a family of solutions of ordinary differential equations was introduced by Yao and Chen (2013). Based on this numerical method, Yao (2013a) further computed the extreme value, first hitting time and time integral of the solutions of uncertain differential equations. Another concern about uncertain differential equation is its parameter estimation based on the some given observed values. For this purpose, the method of moments (Yao and Liu 2020), least squares estimation (Sheng et al. 2020), generalized moment estimation (Liu 2021), uncertain maximum likelihood (Liu and Liu 2020) and minimum cover estimation (Yang et al. 2020) were applied. Furthermore, the initial value estimation of uncertain differential equation was investigated by Lio and Liu (2020).

Nowadays, uncertain differential equation has been successfully used in COVID-19 spread (Chen et al. 2020; Jia and Chen 2020; Lio and Liu 2020), finance (Mehrdoust and Najafi 2020; Hassanzadeh and Mehrdoust 2018; Liu 2013), pharmacokinetics (Liu and Yang 2021), population growth (Zhang and Yang 2020), heat conduction (Yang and Yao 2017), string vibration (Gao and Ralescu 2019) and spring vibration (Jia and Yang 2018). This paper aims to develop the application of uncertain differential equation to the field about electricity market.

To maintain a balance between production and demand, all manufacturers must follow the National Network Company (NGC) regulatory guidelines. The prices paid for this purpose are determined by Pool rules. Every day, pursuant to the existing capacities, the producers offer the prices of each production set for the next day. Then, to estimate the demand forecast level based on the bid price with lowest cost, NGC uses a computer algorithm to determine the operational plan (see Green 1996). In most deregulated electricity markets, there is a day-ahead market. In the Nordic region, the day-ahead market is a non-mandatory market called Elspot, which organized by Nord Pool. The significant examples of non-mandatory day-ahead markets are APX Power UK, Powernext and European Energy Exchange. In these markets, daily hourly electricity contracts are traded for physical delivery over the next 24 hours (midnight to midnight). On the Nord Pool’s spot market, Nordic countries players (Danish, Finnish, Norwegian and Swedish) trade hourly contracts for each of the next 24 hours (see Benth and Koekebakker 2008). Every morning, players make offers to buy or sell a certain amount of electricity for different hours of the next day. When the spot market closes, at noon each day, the day-ahead price is obtained for each hour of the next day (for more information, we refer readers to Benth et al. 2008). Asian and European options are two type options which are traded in this market. Asian options in the Nord Pool market are always written on the spot price (see Weron 2008). However, as noted by Mehrdoust and Noorani (2021), these options were traded on the Nord Pool energy exchange in the 1990s and they abandoned in 2000. Nevertheless, European-style options are very common in the Nord Pool market and are still traded on future contracts (see Benth and Kruhner 2015). Spark-spread option is another important class of derivatives in the electricity and gas market. These derivatives are written in various electricity and gas future contracts, and factory owners can use this type of derivatives for hedging the undesirable movements that occur in the gas and electricity markets. Valuation of spark-spread option was recently studied by Carmona et al. (2013).

With the liberalization of electricity markets, most of the literature in the electricity spot price is to develop models that are more consistent with reality market. In recent years, researchers have modeled the dynamics of daily electricity prices in the Nordic power exchange using various characteristics such as seasonality, mean reversion, jumps and regime-switching processes. For instance, in order to motivate the Heath–Jarrow–Morton approach to evaluate swap prices, Weron (2008) provided a thorough discussion of how the Nordic energy market is organized. Lucia and Schwartz (2002) proposed two models to describe the stochastic process governing the spot price in the Nordic power exchange. The first model is a one-factor model with two components: a known deterministic function of time and a stochastic process that is either a mean-reverting process or a Ornstein–Uhlenbeck process. The second model is a two-factor model with three components: a known deterministic function of time, a mean-reverting process and a drifted Brownian motion. Geman and Roncoroni (2006) introduced a similar model through jump process for electrical spikes. Empirical results showed that their proposed model has good flexibility and it is consistent with the observed electricity spot prices in several markets. Mehrdoust and Noorani (2021) modeled the electricity spot price in the Nordic power exchange by using a deterministic component, which is a function of time, and a stochastic component. The stochastic component was modeled by a mean-reverting process, drifted Brownian motion and jump component, such that the model parameters were dependent on hidden Markov chain. In addition to fitting Nord Pool market prices, their model also has the ability to generate forward contract prices. Other works on spot price models include, to mention a few, Barndorff-Nielsen et al. (2018), Bennedsen (2017), Mayer et al (2015), Liebl (2013), Rypdal and Løvsletten (2013), Benth et al. (2012) and Janczura and Weron (2010).

An acceptable comparison between the actual market data and the obtained data by the implemented model in the framework of probability theory requires that the distribution function of the considered stochastic model is close enough to the actual frequency (see Liu 2015). However, given that unforeseen events (system failure, climate change, war, etc.) and economic problems (inflation and recession) affect the behavior of financial and energy time series, this assumption is not applicable in some cases. In such a situation, to better deal with dynamic noises in the electricity spot price, this paper uses uncertain differential equations under the framework of uncertainty theory. As far as we know, there are no papers in the literature electricity modeling when the electricity spot price is modeled by the uncertain process. This paper intends to fill this gap by concentrating upon the two-factor canonical Liu processes. In this work, first the model parameters are estimated by applying the generalized moment estimation method. We then show that the electricity spot prices obtained by two-factor model are closer to market realities compared to the one-factor model.

The rest of this paper is organized as follows. In Sect. 2, some concepts and theorems about uncertain variables and uncertain differential equations are introduced. In Sect. 3, we formulate and explain the electricity model in the uncertain framework. In Sect. 4, we estimate the model parameters by employing generalized moment estimation method based on the \(\alpha \)-path of the uncertain differential equations. Section 5 reports our numerical results, and Sect. 6 contains our conclusions.

2 Preliminary

In this section, the basic definitions and fundamental concepts in uncertain theory including uncertain axioms, uncertain process and uncertain differential equation are introduced.

Definition 1

(Liu 2007) Let \({\mathcal {L}}\) be a \(\sigma \)-algebra on a non-empty set \(\varGamma \). A set function \({\mathcal {M}}: {\mathcal {L}} \longrightarrow [0, 1]\) is called an uncertain measure if it satisfies the following axioms

  • (Normality Axiom) \({\mathcal {M}}\{\varGamma \} = 1\) for the universal set \(\varGamma \).

  • (Duality Axiom) \({\mathcal {M}}\{\varLambda \} + {\mathcal {M}}\{\varLambda ^C\} = 1\) for any event \(\varLambda \).

  • (Subadditivity Axiom) For every countable sequence of events \(\varLambda _1,\varLambda _2, \ldots \), we have

    $$\begin{aligned} {\mathcal {M}}\Big \{\bigcup _{i=1}^\infty \varLambda _i \Big \}\le \sum _{i=1}^\infty {\mathcal {M}}\{\varLambda _i\}. \end{aligned}$$

    The triple \((\varGamma ,{\mathcal {L}},{\mathcal {M}})\) is called an uncertainty space.

  • (Product Axiom) Let \((\varGamma _i ,{\mathcal {L}}_i,{\mathcal {M}}_i )\) be an uncertainty space for \(i = 1, 2, \ldots , n\). Then, the product uncertain measure \({\mathcal {M}}\) is an uncertain measure on product \(\sigma \)-algebra \({\mathcal {L}}_1 \times {\mathcal {L}}_2 \times \ldots \times {\mathcal {L}}_n\) satisfying

    $$\begin{aligned} {\mathcal {M}}\Big \{\prod _{i=1}^n \varLambda _i \Big \}= \min \limits _{1\le i\le n} {\mathcal {M}}\{\varLambda _i\}, \end{aligned}$$

    where \(\varLambda _i\) are arbitrarily chosen events from \({\mathcal {L}}_i\)  for \(i = 1, 2, \ldots , n\), respectively.

Definition 2

(Liu 2007) If \(\xi \) is measurable from \((\varGamma , {\mathcal {L}}, {\mathcal {M}})\) to a real number set, i.e., the following set

$$\begin{aligned} \{\xi \in {\mathcal {B}}\} = \{\gamma \in \varGamma |\xi (\gamma ) \in {\mathcal {B}}\} \end{aligned}$$

is an event for each real Borel set \({\mathcal {B}}\), then \(\xi \) is called an uncertain variable.

Definition 3

(Liu 2007) An uncertainty distribution of the uncertain variable \(\xi \) is defined as

$$\begin{aligned} \varPhi (x) = {\mathcal {M}} \big \{\xi \le x\big \}, \end{aligned}$$

for arbitrary real number x; then, x is called an uncertain variable.

Definition 4

(Liu 2009b) An uncertain variable sequence of \(\xi _1, \xi _2, \ldots , \xi _n\) is regarded to be independent mutually if

$$\begin{aligned} {\mathcal {M}}\Big \{\bigcap _{i=1}^n (\xi _i\in {\mathcal {B}}_i)\Big \}=\bigwedge _{i=1}^n{\mathcal {M}}\big \{\xi _i\in {\mathcal {B}}_i\big \} \end{aligned}$$

is tenable for any real Borel sets \({\mathcal {B}}_1, {\mathcal {B}}_2, \ldots , {\mathcal {B}}_n\).

Definition 5

(Liu 2015) An uncertain variable \(\xi \) is called normal if it has a normal uncertainty distribution

$$\begin{aligned} \varPhi (x)=\left( 1+\exp \left( \frac{\pi (\mu -x)}{\sqrt{3} \sigma }\right) \right) ^{-1}, \quad x \in {\mathbb {R}}, \end{aligned}$$

denoted by \({\mathcal {N}}(\mu , \sigma )\) where \(\mu \) and \(\sigma \) are real numbers with \(\sigma > 0\). Besides, an uncertain variable is called lognormal if \(\ln \xi \) is a normal uncertain variable \({\mathcal {N}}(\mu , \sigma )\).

Theorem 1

(Liu 2015) Let \(\xi \) be an uncertain variable with continuous uncertainty distribution \(\varPhi \). Then, for any interval [ab], we have

$$\begin{aligned} \varPhi (b)-\varPhi (a)\le {\mathcal {M}}\big \{a\le \xi \le b\big \}. \end{aligned}$$

Theorem 2

(Liu 2015) Let \(\xi _1\) and \(\xi _2\) be independent normal uncertain variables \({\mathcal {N}}(\mu _1, \sigma _1)\) and \({\mathcal {N}}(\mu _2, \sigma _2)\), respectively. Then, the sum \(\xi _1 +\xi _2\) is also a normal uncertain variable \({\mathcal {N}}(\mu _1 + \mu _2, \sigma _1 + \sigma _2)\), i.e.,

$$\begin{aligned} {\mathcal {N}}(\mu _1, \sigma _1)+{\mathcal {N}}(\mu _2, \sigma _2)={\mathcal {N}}(\mu _1 + \mu _2, \sigma _1 + \sigma _2). \end{aligned}$$

Definition 6

(Liu 2007) Let \(\xi \) be an uncertain variable with uncertainty distribution \(\varPhi \). Then, the expected value of \(\xi \) is defined by

$$\begin{aligned} {\mathbb {E}}[\xi ]=\int _{0}^{+\infty } {\mathcal {M}}\{\xi \ge x\} \mathrm{d}x-\int _{-\infty }^{0} {\mathcal {M}}\{\xi \le x\} \mathrm{d}x, \end{aligned}$$

provided that at least one of the two integrals is finite. Besides, the variance of \(\xi \) is defined by \(V[\xi ] = {\mathbb {E}}[(\xi -{\mathbb {E}}[\xi ])^2]\).

Theorem 3

(Liu 2015) If \(\xi \) has an inverse uncertainty distribution \(\varPhi ^{-1}(\alpha )\), and k be a positive integer, then the kth moment of \(\xi \) is as follows:

$$\begin{aligned} {\mathbb {E}}[\xi ^k]=\int _{0}^{1}\Big ( \varPhi ^{-1}(\alpha )\Big )^k \mathrm {d} \alpha . \end{aligned}$$

In the other word, for a standard normal uncertain variable \(\xi \sim {\mathcal {N}}(0, 1)\), we have

$$\begin{aligned} E\left[ \xi ^{k}\right] =\left( \frac{\sqrt{3}}{\pi }\right) ^{k} \int _{0}^{1}\left( \ln \frac{\alpha }{1-\alpha }\right) ^{k} \mathrm {d} \alpha . \end{aligned}$$

Definition 7

(Liu 2008) Let \((\varGamma ,{\mathcal {L}},{\mathcal {M}})\) be an uncertainty space and let T be a totally ordered set (e.g., time). An uncertain process is a function \(C_t (\gamma )\) from \(T \times (\varGamma ,{\mathcal {L}},{\mathcal {M}})\) to the set of real numbers such that \({C_t \in B}\) is an event for any Borel set B of real numbers at each \(t \in T\).

Definition 8

(Liu 2009b) An uncertain process \(C_t\) is called a Liu process if

  • \(C_0 = 0\) and almost all sample paths are Lipschitz continuous,

  • \(C_t\) has stationary and independent increments,

  • the increment \(C_{s+t} - C_s\) has a normal uncertainty distribution

    $$\begin{aligned} \varPhi _{t}(x)=\left( 1+\exp \left( -\frac{\pi x}{\sqrt{3} t}\right) \right) ^{-1}, \quad x \in {\mathbb {R}}. \end{aligned}$$

Let \(C_t\) be an uncertain process. For any partition of closed interval [ab] with \(a = t_1< t_2<\ldots < t_{k+1} = b\), the mesh is written as

$$\begin{aligned} \varDelta = \max \limits _{1\le i \le k} |t_{i+1}-t_i|. \end{aligned}$$

Then, the time integral of \(C_t\) with respect to t is

$$\begin{aligned} \int _{a}^{b} C_{t} \mathrm{d}t=\lim _{\varDelta \rightarrow 0} \sum _{i=1}^{k} C_{t_{i}} \cdot \left( t_{i+1}-t_{i}\right) , \end{aligned}$$

provided that the limit exists almost surely and is finite. \(C_t\) is said to be time integrable.

Definition 9

(Li and Liu 2009) Suppose that \(C_t\) is a Liu process, and f and g are two measurable real functions. Then,

$$\begin{aligned} \mathrm{d}X_t =f(t,X_t)\mathrm{d}t+g(t,X_t)\mathrm{d}C_t, \end{aligned}$$
(1)

is called an uncertain differential equation.

Definition 10

(Yao and Chen 2013) Let \(0<\alpha < 1\) be a real number. An uncertain differential equation (1) has an \(\alpha \)-path \(X_t^\alpha \), if it solves the corresponding ordinary differential equation as follows:

$$\begin{aligned} \mathrm{d}X_t^\alpha =f(t,X_t^\alpha )\mathrm{d}t+|g(t,X_t^\alpha )|\varPhi ^{-1}(\alpha ) \mathrm{d}t, \end{aligned}$$
(2)

where \(\varPhi ^{-1}(\alpha )\) is the inverse standard normal uncertainty distribution, i.e.,

$$\begin{aligned} \varPhi ^{-1}(\alpha )=\frac{\sqrt{3}}{\pi } \ln \frac{\alpha }{1-\alpha }. \end{aligned}$$

In this case, \(X_t\) is called a contour process.

Theorem 4

(Yao and Chen 2013) Let \(X_t\) and \(X_t^\alpha \) be the solution and \(\alpha \)-path of the uncertain differential equation

$$\begin{aligned} \mathrm{d}X_t=f(t,X_t)\mathrm{d}t+g(t,X_t)\mathrm{d}C_t, \end{aligned}$$

respectively. Then, for any monotone function J, we have

$$\begin{aligned} {\mathbb {E}}[J(X_t)]=\int _0^1 J(X_t^\alpha )\mathrm{d}\alpha . \end{aligned}$$

Theorem 5

(Yao and Chen 2013) Let \(X_t\) and \(X_t^\alpha \) be the solution and \(\alpha \)-path of the uncertain differential equation (1), respectively. Then,

$$\begin{aligned} \begin{array}{l} {\mathcal {M}}\left\{ X_{t} \le X_{t}^{\alpha }, \forall t\right\} =\alpha , \\ {\mathcal {M}}\left\{ X_{t}>X_{t}^{\alpha }, \forall t\right\} =1-\alpha . \end{array} \end{aligned}$$

This theorem is called Yao–Chen formula.

3 Multi-factor model of electricity

It is significant to allow seasonal changes, because the demand for energies, especially electricity, varies with temperatures, which are highly dependent on season. The idea of modeling is to first identify a seasonal floor as f, such that prices are returning to it (see Benth et al. 2008). According to this approach, the floor can be obtained by fitting the deterministic function to data, and then, move the whole function down until the difference between the observations of energy spot price and floor is positive. The difference is referred to as the “deseasonalized” spot prices. From Benth et al. (2008), since the electricity spot prices show a definite pattern between specific months, seasonal behavior can be modeled with a simple sinusoidal function as follows:

$$\begin{aligned} f_t=a+bt+c\sin \Big (\frac{2\pi (t-d)}{365}\Big ), \end{aligned}$$
(3)

for constants abc and d. Suppose that the spot price dynamics \(S(t), 0 \le t \le T\), with maturity date \(T>0\) is defined by

$$\begin{aligned} S_t=g(t,X^{(1)}_t,\ldots , X^{(n)}_t), \end{aligned}$$
(4)

for n independent adapted stochastic processes \(X^{(1)}_t,\ldots ,X^{(n)}_t\), which represent the factors. To ensure that \(S_t\) is adapted as well, we assume that he function \(g: {\mathbb {R}}^n \rightarrow {\mathbb {R}}\) be continuous. The spot price model in (4) is very general and includes many interesting cases known in the energy and commodity markets. Here, we list a few examples and connect them to our model. Schwartz (1997) introduced a simple model for oil price dynamics called the Schwartz model, which is defined as follows:

$$\begin{aligned} S_t=e^{U_t}, \end{aligned}$$

with

$$\begin{aligned} \mathrm{d}U_t=\kappa \big (\theta -X_t)\mathrm{d}t+\sigma \mathrm{d}W_t, \end{aligned}$$

where \(\theta >0\) is the mean-reverting level, \(\kappa >0\) is the rate at which \(U_t\) is pulled back to the level \(\theta \), \(\sigma >0\) is the volatility rate of \(U_t\), and \(W_t\) is a Brownian motion. After that, two-factor extension of the commodity Schwartz model is proposed by Schwartz and Smith (2000). It takes the form

$$\begin{aligned} S_t=S_0\exp \big \{X_t+Y_t\big \}, \end{aligned}$$
(5)

with

$$\begin{aligned} \mathrm{d}X_t&=-\theta X_t \mathrm{d}t+\sigma \mathrm{d}W_t^{(1)}, \end{aligned}$$
(6)
$$\begin{aligned} \mathrm{d}Y_t&=\mu \mathrm{d}t +\xi \mathrm{d}W_t^{(2)}, \end{aligned}$$
(7)

where the short-run deviations (i.e., \(X_t\)) are assumed to revert toward zero following an Ornstein–Uhlenbeck process and the equilibrium level (i.e., \(Y_t\)) is a drifted Brownian motion. \(W_{t}^{(1)}\) and \(W_{t}^{(2)}\) are two Brownian motions with correlation \(\rho \in (-1,1)\). Moreover, \(\theta ,\mu ,\sigma ,\xi \) are mean-reversion coefficient of short-term deviation, drift parameter of equilibrium level, volatility rate of short-term deviation and volatility rate of equilibrium level, respectively. We note that \(\theta >0\) describes the rate at which the short-term deviations are expected to disappear.

Lucia and Schwartz (2002) by adding the seasonal factor to the commodity model (5) presented the dynamics of electricity spot price as follows:

$$\begin{aligned} S_{t}=f_{t}\exp \big \{X_t+Y_t\big \}, \end{aligned}$$
(8)

where \(f_t,X_t\) and \(Y_t\) are given by Eqs. (3), (6) and (7), respectively.

Following Benth et al. (2010), we consider the electricity spot price dynamic as follows:

$$\begin{aligned} S(t)=f(t)\exp \big \{X_t+Y_t\big \}, \end{aligned}$$
(9)

where

$$\begin{aligned} \mathrm{d}X_t&=(\kappa -\theta X_t) \mathrm{d}t+\sigma \mathrm{d}W_t^{(1)}, \end{aligned}$$
(10)
$$\begin{aligned} \mathrm{d}Y_t&=\mu \mathrm{d}t +\xi \mathrm{d}W_t^{(2)}, \end{aligned}$$
(11)

and the short-run deviations \(X_t\) mean-revert toward a level given by the \(\kappa \). We note that if \(\kappa =0\), then model (9) becomes model (8).

A dynamics for the spot price evolution is desirable for several reasons. The models that describe the uncertainty of spot price are of interest to traders operating in the energy markets (see Benth et al. 2008). However, as stated in Benth et al. (2008), the uncertain models are also used as a reference point for the settlement of future and forward contracts and are therefore an essential input in understanding the dynamics of energy derivatives. In addition, since energy commodities are driven by the balance between demand and production, prices return to their mean levels. A natural class of stochastic models to describe such dynamics is the Ornstein–Uhlenbeck processes (see Benth et al. 2008). When we use the models based on the stochastic processes, which are defined on probability space, a large sample size is needed to estimate probability distribution based on long-run frequency (see Liu 2012a). However, Liu (2012a) stated that the sample size is often small (even no sample) in practice and the belief degree usually has much larger variance than the long-run frequency. Thus, we should deal with it by using uncertainty theory. Actually, we intend to express the electricity models in an uncertain space and create a connection between electricity markets and this space. If we assume that the electricity spot price follows some uncertain differential equation, then we may produce a new topic of uncertain electricity. Let the logarithmic electricity spot prices represent by \(Z_t\) with \(0\le t\le T\), as the sum of three components with canonical processes. Which the first one is considered the logarithmic seasonality function and is represented by a known deterministic function of time, \(F_t\). The second and third parts are the uncertain Ornstein–Uhlenbeck process \(X_t\) and an ordinary uncertain differential equation \(Y_t\). In this case, if Wiener processes \(W^{(1)}_t\) and \(W^{(2)}_t\) in Eqs. (10) and (11) are replaced by Liu processes \(C^{(1)}_t\) and \(C^{(2)}_t\), we have an electricity two-factor model in which the electricity spot price \(S_t\) is determined by

$$\begin{aligned} {\left\{ \begin{array}{ll} &{}S_t=f_t\exp \big \{X_t+Y_t\big \},\\ &{}\mathrm{d}X_t=(\kappa -\theta X_t)\mathrm{d}t+\sigma \mathrm{d}C^{(1)}_t,\quad X_0=0,\\ &{}\mathrm{d}Y_t=\mu \mathrm{d}t+\xi \mathrm{d}C^{(2)}_t,\quad Y_0=0, \end{array}\right. } \end{aligned}$$
(12)

where \(X_t\) and \(Y_t\) are, respectively, short-term deviation and equilibrium level processes, which are driven by Liu processes. Moreover, \(\theta ,\mu ,\sigma ,\xi \) and \(\kappa \) are mean-reversion coefficient of short-term deviation, drift parameter of equilibrium level, volatility rate of short-term deviation, volatility rate of equilibrium level and mean reversion of short-run deviations (i.e., the short-run deviations \(X_t\) mean-revert toward a level given by the \(\kappa \)), respectively.

Since in real market, electricity spot prices return rates are more concerned, the logarithms of the electricity spot prices \(Z_t, 0\le t\le T\) are conducted as follows:

$$\begin{aligned} {\left\{ \begin{array}{ll} &{}Z_t=F_t+ X_t+Y_t,\\ &{}\mathrm{d}X_t=(\kappa -\theta X_t)\mathrm{d}t+\sigma \mathrm{d}C^{(1)}_t,\quad X_0=0,\\ &{}\mathrm{d}Y_t=\mu \mathrm{d}t+\xi \mathrm{d}C^{(2)}_t,\quad Y_0=0, \end{array}\right. } \end{aligned}$$
(13)

where \(F_t=\ln f_t\).

Theorem 6

The solution of the logarithmic uncertain electricity model \(Z_t\) in system (13) is as follows:

$$\begin{aligned} Z_t=F_t+ X_t+Y_t, \end{aligned}$$

where

$$\begin{aligned} X_t&=\frac{\kappa }{\theta }(1-e^{-\theta t})+\sigma e^{-\theta t} \int _0^te^{\theta s} \mathrm{d}C_s^{(1)},\\ Y_t&=\mu t +\xi C_t^{(2)}. \end{aligned}$$

Proof

The proof follows easily from Chen and Liu (2010) and is omitted here. \(\square \)

At any given time t, the solutions \(X_t\) and \(Y_t\) in Theorem 6 are normal uncertain variables with expected values

$$\begin{aligned} \frac{\kappa }{\theta }(1-e^{-\theta t}),\quad \mu t \end{aligned}$$

and standard deviations

$$\begin{aligned} \frac{\sigma e^{-\theta t}}{\theta } (e^{\theta t}-1),\quad \xi t, \end{aligned}$$

respectively. From Definition 5, \(X_t\) and \(Y_t\) can be expressed as follows:

$$\begin{aligned} X_t\sim {\mathcal {N}}\Big (\frac{\kappa }{\theta }(1-e^{-\theta t}), \frac{\sigma e^{-\theta t}}{\theta } (e^{\theta t}-1)\Big ),\quad Y_t\sim {\mathcal {N}}\Big (\mu t, \xi t\Big ). \end{aligned}$$

Thus, by applying Theorem 2, the logarithmic electricity spot price \(Z_t\) is a normal uncertain variable with expected value

$$\begin{aligned} F_t+\frac{\kappa }{\theta }(1-e^{-\theta t})+ \mu t \end{aligned}$$
(14)

and standard deviation

$$\begin{aligned} \frac{\sigma e^{-\theta t}}{\theta } (e^{\theta t}-1)+\xi t, \end{aligned}$$
(15)

which is denoted as

$$\begin{aligned} Z_t\sim {\mathcal {N}}\Big (F_t+\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t, \frac{\sigma e^{-\theta t}}{\theta } (e^{\theta t}-1)+\xi t\Big ). \end{aligned}$$
(16)

The uncertainty distribution \(\varPhi _t\) of \(Z_t\) at any time t is

$$\begin{aligned} \varPhi _t(z)=\Big (1+\exp \Big \{\frac{\pi \big (\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t-z\big )}{\sqrt{3}\big (\xi t +\frac{\sigma }{\theta }(1-e^{-\theta t})\big )}\Big \}\Big )^{-1}. \end{aligned}$$
(17)

Before discussing the confidence interval and some other important properties of logarithmic electricity spot price \(Z_t\), we prove that \(Z_t\) satisfying in the Yao–Chen formula. The next theorem plays an important role in simulation of the electricity spot price.

Theorem 7

(Hassanzadeh and Mehrdoust 2020) Assume that for \(i=1,2\), \(f_i\) and \(g_i\) are continuous functions and \(C^{(1)}_t\) and \(C^{(2)}_t\) are independent canonical Liu processes. Suppose that \(Y_{it}\) and \(Y_{it}^{\alpha }\) be the solution and \(\alpha \)-path of an uncertain differential equation

$$\begin{aligned} \mathrm{d}Y_{it}=f_{i}(t,Y_{it})\mathrm{d}t+g_{i}(t,Y_{it}) \mathrm{d}C^{(i)}_{t},\quad i=1, 2, \end{aligned}$$

respectively. Let \(|h_i(t,y)|\) be a continuous increasing function. Then, the solution \(U_t\) of an uncertain differential equation

$$\begin{aligned} \mathrm {d} U_{t}=f\left( t, U_{t}\right) \mathrm {d} t+\sum _{i=1}^{2} h_{i}\left( t, Y_{i t}\right) g_{ i}\left( t, U_{t}\right) \mathrm {d} C_{t}^{(i)} \end{aligned}$$

is a contour process with an \(\alpha \)-path \(U_t^\alpha \) that solves the corresponding ordinary differential equation

$$\begin{aligned} \mathrm {d} U_{t}^{\alpha }=f\left( t, U_{t}^{\alpha }\right) \mathrm {d} t+\sum _{i=1}^{2}\left| h_{i}\left( t, Y_{i t}^{\alpha }\right) g_{i }\left( t, U_{t}^{\alpha }\right) \right| \varPhi ^{-1}(\alpha ) \mathrm {d} t, \end{aligned}$$

where

$$\begin{aligned} \varPhi ^{-1}(\alpha )=\frac{\sqrt{3}}{\pi }\ln \frac{\alpha }{1-\alpha },\quad \alpha \in (0, 1). \end{aligned}$$

In other words,

$$\begin{aligned} {\mathcal {M}}\big \{U_t\le U_t^{\alpha }\big \}=\alpha ,\quad {\mathcal {M}}\big \{U_t> U_t^{\alpha }\big \}=1-\alpha . \end{aligned}$$

Corollary 1

The process followed by \(Z_t\) can be expressed as the solution to the following stochastic differential equation (provided again that the function \(F_t = \ln f_t\) satisfies appropriate regularity conditions)

$$\begin{aligned} \mathrm{d}Z_t&=\mathrm{d}F_t+(\kappa -\theta X_t)\mathrm{d}t+\mu \mathrm{d}t+\sigma \mathrm{d}C_t^{(1)}+\xi \mathrm{d}C_t^{(2)}\nonumber \\&=(F'_t+\mu +\kappa +\theta F_t+\theta Y_t-\theta Z_t)\mathrm{d}t\nonumber \\&\qquad +\sigma \mathrm{d}C_t^{(1)} +\xi \mathrm{d}C_t^{(2)}\nonumber \\&=(F'_t+\mu +\kappa +\theta F_t+\theta \mu t+\theta \xi C_t^{(2)} -\theta Z_t)\mathrm{d}t\nonumber \\&\quad +\sigma \mathrm{d}C_t^{(1)}+\xi \mathrm{d}C_t^{(2)}. \end{aligned}$$
(18)

Now, we define

$$\begin{aligned}&f(t,Z_t)=F'_t+\mu +\kappa +\theta F_t+\theta \mu t+\theta \xi C_t^{(2)} -\theta Z_t,\\&h_1(t,X_t)=h_2(t,Y_t)=1,\quad g_1(t,Z_t)=\xi ,\quad g_2(t,Z_t)=\sigma . \end{aligned}$$

Then, we have

$$\begin{aligned} \mathrm{d}Z_t=&f(t,Z_t)\mathrm{d}t+h_1(t,X_t)g_1(t,Z_t)\mathrm{d}C_t^{(1)}\nonumber \\&+h_2(t,Y_t)g_2(t,Z_t)\mathrm{d}C_t^{(2)}. \end{aligned}$$
(19)

From Theorem 7, the uncertain differential equation (19) is a contour process with an \(\alpha \)-path \(Z_t^\alpha \) that solves the corresponding ordinary differential equation

$$\begin{aligned} \mathrm {d} Z_{t}^{\alpha }=&f\left( t, Z_{t}^{\alpha }\right) \mathrm {d} t+\Big (h_1(t,X_t^\alpha )g_1(t,Z_t^\alpha )\\&+h_2(t,Y_t^\alpha )g_2(t,Z_t^\alpha )\Big ) \varPhi ^{-1}(\alpha ) \mathrm {d} t. \end{aligned}$$

In other words,

$$\begin{aligned} {\mathcal {M}}\big \{Z_t\le Z_t^{\alpha }\big \}=\alpha ,\quad {\mathcal {M}}\big \{Z_t> Z_t^{\alpha }\big \}=1-\alpha . \end{aligned}$$

We note that

$$\begin{aligned} \mathrm{d}Z_t^\alpha =\Big (F'_t+\mu +\kappa -\theta X_t^\alpha +\frac{\sqrt{3}}{\pi }(\sigma +\xi )\ln \frac{\alpha }{1-\alpha }\Big )\mathrm{d}t, \end{aligned}$$
(20)

where

$$\begin{aligned} X_t^\alpha =\frac{\big (\pi \kappa +\sqrt{3}\sigma \ln \frac{\alpha }{1-\alpha }\big ) \big (1-e^{-\theta t}\big )}{\theta \pi }. \end{aligned}$$

Given a confidence level \(\alpha ~ (0< \alpha < 1)\), the \(\alpha \) confidence interval for \(Z_t\) is suggested as

$$\begin{aligned} \Big [{\mathbb {E}}[Z_t]-\ell ,~{\mathbb {E}}[Z_t]+\ell \Big ], \end{aligned}$$
(21)

where \(\ell \) is the solution of

$$\begin{aligned} \varPhi _t({\mathbb {E}}[Z_t]+\ell )-\varPhi _t({\mathbb {E}}[Z_t]-\ell )=\alpha . \end{aligned}$$
(22)

Denote the uncertain measure as \({\mathcal {M}}\), which indicates the belief degree that an uncertain event may happen. It follows from the subadditivity axiom of uncertain measure in Definition 1 that

$$\begin{aligned}&{\mathcal {M}}\Big \{{\mathbb {E}}[Z_t]-\ell<Z_t<{\mathbb {E}}[Z_t]+\ell \Big \}\\&\quad \ge \varPhi _t({\mathbb {E}}[Z_t]+\ell )-\varPhi _t({\mathbb {E}}[Z_t]-\ell )=\alpha . \end{aligned}$$

Thus, we have the chance of \(\alpha \) to cover the logarithmic electricity spot price \(Z_t\) with this confidence interval.

Proposition 1

For the uncertain model (13), the \(\alpha ~ (0<\alpha <1)\) confidence interval of the log-electricity spot price \(Z_t\) at any time t can be expressed as follows:

$$\begin{aligned}&\Big [\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t -\frac{\sqrt{3}}{\pi }(\xi t +\frac{\sigma }{\theta }-\frac{\sigma }{\theta }e^{-\theta t})\ln \frac{1+\alpha }{1-\alpha },\nonumber \\&\quad \frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t +\frac{\sqrt{3}}{\pi }(\xi t +\frac{\sigma }{\theta }-\frac{\sigma }{\theta }e^{-\theta t})\ln \frac{1+\alpha }{1-\alpha }\Big ]. \end{aligned}$$
(23)

Proof

We put

$$\begin{aligned} {\mathbb {E}}[Z_t]={\bar{C}}_t,\quad \varPhi _t(z)=\Big (1+\exp \Big \{\frac{\pi ({\bar{C}}_t-z)}{{\bar{D}}_t}\Big \}\Big )^{-1}, \end{aligned}$$

and

$$\begin{aligned} {\bar{C}}_t&=\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t,\\&\quad {\bar{D}}_t=\sqrt{3} \Big (\xi t +\frac{\sigma }{\theta }-\frac{\sigma }{\theta }e^{-\theta t}\Big ). \end{aligned}$$

We now obtain the value of \(\ell \). From Eq. (22), we have

$$\begin{aligned}&\Big (1+\exp \Big \{\frac{\pi ({\bar{C}}_t-{\bar{C}}_t-\ell )}{{\bar{D}}_t}\Big \}\Big )^{-1}\\&\quad -\Big (1+\exp \Big \{\frac{\pi ({\bar{C}}_t-{\bar{C}}_t+\ell )}{{\bar{D}}_t}\Big \} \Big )^{-1}=\alpha . \end{aligned}$$

Thus,

$$\begin{aligned} \Big (1+\exp \big \{\frac{-\pi \ell }{{\bar{D}}_t}\big \}\Big )^{-1} -\Big (1+\exp \big \{\frac{\pi \ell }{{\bar{D}}_t}\big \}\Big )^{-1}=\alpha , \end{aligned}$$

which implies

$$\begin{aligned} \frac{\exp \big \{\frac{\pi \ell }{{\bar{D}}_t}\big \}-\exp \big \{\frac{-\pi \ell }{{\bar{D}}_t}\big \}}{2+\exp \big \{\frac{\pi \ell }{{\bar{D}}_t}\big \} +\exp \big \{\frac{-\pi \ell }{{\bar{D}}_t}\big \}}=\alpha . \end{aligned}$$

Hence, by change of variable \(U=\exp \big \{\frac{\pi \ell }{{\bar{D}}_t}\big \}\), we have

$$\begin{aligned}&\frac{U-U^{-1}}{2+U+U^{-1}}= \frac{U^2-1}{(U+1)^2}=\alpha . \end{aligned}$$

Thus, \(U=\displaystyle \frac{1+\alpha }{1-\alpha }\), and we obtain

$$\begin{aligned} \ell =\frac{1}{\pi }{\bar{D}}_t\ln U=\frac{1}{\pi }{\bar{D}}_t\ln \frac{1+\alpha }{1-\alpha }. \end{aligned}$$

Substituting the solution of \(\ell \) into Eq. (21) proves the result.

\(\square \)

As pointed out by Byström (2003), to update the hedge based on the dynamics model, future contracts on the Nordic energy exchange must be bought or sold every day. When traders’ assets are about to be lost, they usually prefer to make a profit rather than make a loss. On the other hand, since the evolution of future contracts depend on the starting level of the spot price (see Cartea et al. 2005), many traders set a certain level to sell their future contracts if the electricity spot price reaches this level, with this approach they can maintain their profits. They can also set a limit for electricity spot price to buy future contracts. Due to the fact that logarithm is a strictly monotone increasing function, if the logarithmic electricity spot price reaches a level at time t, one can adopt the appropriate strategy for the future contract at time t. Theorems 8 and 9 state, respectively, the uncertain measure of logarithmic electricity spot price (i.e., \({\mathcal {M}}(Z_t\ge z_0), \ z_0\in {\mathbb {R}}\)) and the uncertainty distribution of the first time that the logarithmic electricity spot price reaches a certain level \(\eta \). From Liu (2007), we note that the uncertain measure \({\mathcal {M}}(Z_t\ge z_0)\) indicates the belief degree of an uncertain event \(Z_t\ge z_0\).

Theorem 8

Consider the logarithmic uncertain electricity model \(Z_t\) in system (13). Denoting the MEV, \(z_0\), the uncertain measure for at time t is as follows:

$$\begin{aligned}&{\mathcal {M}}(Z_t\ge z_0)\nonumber \\&\quad =\Big (1+\exp \Big \{\frac{-\pi \big (\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t-z_0\big )}{\sqrt{3}\big (\xi t +\frac{\sigma }{\theta }(1-e^{-\theta t})\big )}\Big \}\Big )^{-1}. \end{aligned}$$
(24)

Proof

It follows from Eq. (17) and the duality of the uncertain measure in Definition 1.

$$\begin{aligned}&{\mathcal {M}}(Z_t\ge z_0)\\&\quad =1-\varPhi _t(z_0)\\&\quad =1-\Big (1+\exp \Big \{\frac{\pi \big (\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t-z_0\big )}{\sqrt{3}\big (\xi t +\frac{\sigma }{\theta }(1-e^{-\theta t})\big )}\Big \}\Big )^{-1}\\&\quad =\Big (1+\exp \Big \{\frac{-\pi \big (\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t-z_0\big )}{\sqrt{3}\big (\xi t +\frac{\sigma }{\theta }(1-e^{-\theta t})\big )}\Big \}\Big )^{-1}. \end{aligned}$$

\(\square \)

For a given constant \(\eta \in {\mathbb {R}}\), define the uncertain variable

$$\begin{aligned} t_\eta =\inf \big \{t\ge 0|Z_t\ge \eta \}. \end{aligned}$$
(25)

Theorem 9

For a given constant \(\eta \in {\mathbb {R}}\) and the logarithmic uncertain electricity model \(Z_t\) in system (13), the level-time defined in (25) has an uncertainty distribution

$$\begin{aligned} \varPsi _\eta (t^*)=\Big (1+\exp \Big \{\frac{-\pi \big (\frac{\kappa }{\theta }(1-e^{-\theta t^*})+\mu t^*+F_{t^*}-\eta \big )}{\sqrt{3}\big (\xi t^* +\frac{\sigma }{\theta }(1-e^{-\theta t^*})\big )}\Big \}\Big )^{-1}. \end{aligned}$$
(26)

Proof

Denote

$$\begin{aligned} \alpha _0=\inf \big \{\alpha \big | \sup \limits _{0\le t\le t^*} \varPhi _t^{-1}(\alpha )\ge \eta \big \}, \end{aligned}$$
(27)

where

$$\begin{aligned} \varPhi ^{-1}_t(\alpha )=&\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t+F_t\\&+\frac{\sqrt{3}(\xi \theta t +\sigma -\sigma e^{-\theta t})}{\pi \theta }\ln \frac{\alpha }{1-\alpha } \end{aligned}$$

is the inverse uncertainty distribution of the \(Z_t\). It follows from definition of the level-time defined in (25) and \(Z_t\) that

$$\begin{aligned} \Big \{Z_t\ge \varPhi _t^{-1}(\alpha _0),~\forall t\Big \}\subset \Big \{\sup \limits _{0\le t \le t^*} Z_t\ge \eta \Big \}=\big \{t_\eta \le t^*\big \} \end{aligned}$$

and

$$\begin{aligned} \Big \{Z_t<\varPhi _t^{-1}(\alpha _0),~\forall t\Big \}\subset \Big \{\sup \limits _{0\le t \le t^*} Z_t< \eta \Big \}=\big \{t_\eta > t^*\big \}. \end{aligned}$$

Using Yao–Chen formula, we have

$$\begin{aligned} {\mathcal {M}}\big \{t_\eta \le t^*\big \}\ge {\mathcal {M}}\Big \{Z_t\ge \varPhi _t^{-1}(\alpha _0)\Big \}=1-\alpha _0 \end{aligned}$$
(28)

and

$$\begin{aligned} {\mathcal {M}}\big \{t_\eta > t^*\big \}\le {\mathcal {M}}\Big \{Z_t< \varPhi _t^{-1}(\alpha _0)\Big \}=\alpha _0. \end{aligned}$$

From the duality axiom in Definition 1 for the uncertain measure, we have

$$\begin{aligned} {\mathcal {M}}\big \{t_\eta \le t^*\big \}=1-{\mathcal {M}}\big \{t_\eta > t^*\big \}\le 1-\alpha _0. \end{aligned}$$
(29)

Following inequalities (28) and (29), we obtain

$$\begin{aligned} \varPsi _\eta (z)={\mathcal {M}}\big \{t_\eta \le t^*\big \}=1-\alpha _0. \end{aligned}$$

Notice that \(\varPhi _t^{-1}(\alpha )\) is a monotone function with respect to t. Thus,

$$\begin{aligned} \big \{\sup \limits _{0\le t \le t^*}\varPhi _t^{-1}(\alpha )\ge \eta \big \}=\big \{\varPhi _{t^*}^{-1}(\alpha )\ge \eta \big \}. \end{aligned}$$

From expression (27), we have

$$\begin{aligned} \alpha _0&=\inf \big \{\alpha \big | \sup \limits _{0\le t\le t^*} \varPhi _t^{-1}(\alpha )\ge \eta \big \}\\&=\inf \big \{\alpha \big | \varPhi _{t^*}^{-1}(\alpha )\ge \eta \big \}=\inf \big \{\alpha \big | \alpha \ge \varPhi _{t^*}(\eta )\big \}=\varPhi _{t^*}(\eta ). \end{aligned}$$

As a result, we obtain

$$\begin{aligned} \alpha _0=\Big (1+\exp \Big \{\frac{\pi \big (\frac{\kappa }{\theta }(1-e^{-\theta t^*})+\mu t^*+F_{t^*}-\eta \big )}{\sqrt{3}\big (\xi t^* +\frac{\sigma }{\theta }(1-e^{-\theta t^*})\big )}\Big \}\Big )^{-1}. \end{aligned}$$

Therefore,

$$\begin{aligned}&\varPsi _\eta (z)=1-\alpha _0\\&\quad =\Big (1+\exp \Big \{\frac{-\pi \big (\frac{\kappa }{\theta } (1-e^{-\theta t^*})+\mu t^*+F_{t^*}-\eta \big )}{\sqrt{3}\big (\xi t^* +\frac{\sigma }{\theta }(1-e^{-\theta t^*})\big )}\Big \}\Big )^{-1}, \end{aligned}$$

and the proof is completed. \(\square \)

In the electricity exchange market, trading the future and forward contracts is based on the spot prices. The main difference between such contracts and other products in commodity markets is that in electricity markets, contracts are delivered over a period, not at a specific time. In the electricity market, these products are cash settled based on the spot price in the settlement period (see Benth et al. 2008). From Benth et al. (2007), the electricity is delivered as a flow of rate \(Z(t)/T, 0\le t \le T\) during the settlement period [0, T], giving a total cost (in logarithmic units) of

$$\begin{aligned} G_T:=\frac{1}{T}\int _0^T Z_s \mathrm{d}s. \end{aligned}$$
(30)

The following two theorems express the expected value and confidence interval for \(G_t=\frac{1}{T}\int _0^t Z_s \mathrm{d}s\).

Theorem 10

For the uncertain model in (13), the \(G_t\) has the inverse uncertainty distribution

$$\begin{aligned} \varUpsilon _t^{-1}(\alpha )=&{\frac{1}{T}}\Big (\frac{\kappa }{\theta }(t+\frac{e^{-\theta t}-1}{\theta })+\frac{\mu t^2}{2}+{\mathbf {F}}_t\nonumber \\&+\frac{\sqrt{3}}{\pi \theta }\ln \frac{\alpha }{1-\alpha }\big (\frac{\xi \theta t^2}{2}+\sigma t +\frac{\sigma }{\theta }(e^{-\theta t}-1)\big )\Big ), \end{aligned}$$
(31)

where

$$\begin{aligned} {\mathbf {F}}_t=\int _0^t \ln \Big (a+b s+c\sin \big (\frac{2\pi (s-d)}{365}\big )\Big )\mathrm{d}s. \end{aligned}$$

Moreover, the expected value is

$$\begin{aligned} {\mathbb {E}}[G_t]={\frac{1}{T}\Big (\frac{\kappa }{\theta }(t+\frac{e^{-\theta t}-1}{\theta })+\frac{\mu t^2}{2}+{\mathbf {F}}_t\Big ).} \end{aligned}$$
(32)

Proof

For a fixed maturity time \(T>0\), the product of a normal uncertain variable \(Z_t\) in Eq. (16) and the scalar number 1/T is also a normal uncertain variable with expectation

$$\begin{aligned} \frac{1}{T}\left( F_t+\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t\right) \end{aligned}$$

and standard deviation

$$\begin{aligned} \frac{1}{T}\left( \frac{\sigma e^{-\theta t}}{\theta } (e^{\theta t}-1)+\xi t\right) . \end{aligned}$$

Thus, the uncertainty distribution \(\varpi _t\) of \(\frac{1}{T}Z_t\) at any time t is as follows:

$$\begin{aligned} \varpi _t(z)=\left( 1+\exp \left\{ \frac{\pi \left( \frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t-zT\right) }{\sqrt{3}\left( \xi t +\frac{\sigma }{\theta }(1-e^{-\theta t})\right) }\right\} \right) ^{-1}. \end{aligned}$$

Moreover, \(\frac{1}{T}Z_t\) has the inverse uncertainty distribution as follows:

$$\begin{aligned} \varpi _t^{-1}(\alpha )=&\frac{1}{T}\Big (\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t+F_t\\&+\frac{\sqrt{3}(\xi \theta t+\sigma -\sigma e^{-\theta t})}{\pi \theta }\ln \frac{\alpha }{1-\alpha }\Big ). \end{aligned}$$

Obviously, for any time \(0\le t\le T\), we have

$$\begin{aligned} \big \{\frac{1}{T}Z_s\le \varpi _s^{-1}(\alpha ),~\forall s\big \}\subset \big \{\int _0^t \frac{1}{T} Z_s \mathrm{d}s\le \int _0^t \varpi _s^{-1}(\alpha ) \mathrm{d}s\big \} \end{aligned}$$

and

$$\begin{aligned} \big \{\frac{1}{T}Z_s>\varpi _s^{-1}(\alpha ),~\forall s\big \}\subset \big \{\int _0^t \frac{1}{T} Z_s \mathrm{d}s> \int _0^t \varpi _s^{-1}(\alpha ) \mathrm{d}s\big \}. \end{aligned}$$

Using Yao–Chen formula, we have

$$\begin{aligned}&{\mathcal {M}}\big \{\int _0^t \frac{1}{T} Z_s \mathrm{d}s\le \int _0^t \varpi _s^{-1}(\alpha ) \mathrm{d}s\big \}\nonumber \\&\quad \ge {\mathcal {M}}\big \{\frac{1}{T} Z_s \le \varpi _s^{-1}(\alpha ),~ \forall s\big \}=\alpha \end{aligned}$$
(33)

and

$$\begin{aligned}&{\mathcal {M}}\big \{\int _0^t \frac{1}{T}Z_s \mathrm{d}s> \int _0^t \varpi _s^{-1}(\alpha ) \mathrm{d}s\big \}\nonumber \\&\quad \ge {\mathcal {M}}\big \{ \frac{1}{T}Z_s > \varpi _s^{-1}(\alpha ),~ \forall s\big \}=1-\alpha . \end{aligned}$$
(34)

From the duality axiom for the uncertainty measure in Definition 1, we have

$$\begin{aligned}&{\mathcal {M}}\big \{\int _0^t \frac{1}{T}Z_s \mathrm{d}s\le \int _0^t \varpi _s^{-1}(\alpha ) \mathrm{d}s\big \}\nonumber \\&\quad =1-{\mathcal {M}}\big \{\int _0^t \frac{1}{T}Z_s \mathrm{d}s\ge \int _0^t \varpi _s^{-1}(\alpha ) \mathrm{d}s\big \}\le 1-(1-\alpha )\nonumber \\&=\alpha . \end{aligned}$$
(35)

From inequalities (33) and (35), we obtain

$$\begin{aligned} {\mathcal {M}}\big \{\frac{1}{T}\int _0^t Z_s \mathrm{d}s\le \int _0^t \varpi _s^{-1}(\alpha ) \mathrm{d}s\big \}=\alpha . \end{aligned}$$

Thus, \(G_t=\frac{1}{T}\int _0^t Z_s \mathrm{d}s\) has the inverse uncertainty distribution as follows:

$$\begin{aligned} \varUpsilon _t^{-1}(\alpha )&=\frac{1}{T}\int _0^t\varpi _s^{-1}(\alpha )\mathrm{d}s\\&=\frac{1}{T}\int _0^t\Big [\frac{\kappa }{\theta }(1-e^{-\theta s})+\mu s +F_s\\&\quad +\frac{\sqrt{3}(\xi \theta s +\sigma -\sigma e^{-\theta s})}{\pi \theta }\ln \frac{\alpha }{1-\alpha }\Big ]\mathrm{d}s\\&=\frac{1}{T}\Big (\frac{\kappa }{\theta }(t+\frac{e^{-\theta t}-1}{\theta })+\frac{\mu t^2}{2}+{\mathbf {F}}_t\\&\quad +\frac{\sqrt{3}}{\pi \theta }\ln \frac{\alpha }{1-\alpha }\big (\frac{\xi \theta t^2}{2}+\sigma t +\frac{\sigma }{\theta }(e^{-\theta t}-1)\big )\Big ). \end{aligned}$$

Due to Theorem 3, the expected value of \(G_t\) can be calculated as follows:

$$\begin{aligned} {\mathbb {E}}[G_t]&=\int _0^1 \varUpsilon _t^{-1}(\alpha ) \mathrm{d}\alpha \\&{=\frac{1}{T}\Big (\frac{\kappa }{\theta }(t+\frac{e^{-\theta t}-1}{\theta })+\frac{\mu t^2}{2}+{\mathbf {F}}_t\Big ),} \end{aligned}$$

and the proof is completed.\(\square \)

Theorem 11

For the uncertain model in (13), the \(G_t\) has an \(\alpha ~ (0<\alpha <1)\) confidence interval

$$\begin{aligned} \Big [{\mathbb {E}}[{G_t}]-\lambda ^*,\quad {\mathbb {E}}[{G_t}]+\lambda ^*\Big ], \end{aligned}$$
(36)

where

$$\begin{aligned} \lambda ^*&=\inf \big \{\lambda >0\big |H(\lambda )\ge \alpha \big \},\\ H(\lambda )&=\varUpsilon _t\big ({\mathbb {E}}[G_t]+\lambda \big )-\varUpsilon _t \big ({\mathbb {E}}[G_t]-\lambda \big ) \end{aligned}$$

and \(\varUpsilon _t\) is the uncertainty distribution for \(G_t\).

Proof

It follows from Theorem 1

$$\begin{aligned}&{\mathcal {M}}\big \{{\mathbb {E}}[G_t]-\lambda \le G_t \le {\mathbb {E}}[G_t]+\lambda \big \}\\&\quad \ge {\mathcal {M}}\big \{G_t\le {\mathbb {E}}[G_t]+\lambda \big \}- {\mathcal {M}}\big \{G_t\le {\mathbb {E}}[G_t]-\lambda \big \}\\&\quad =\varUpsilon _t\big ({\mathbb {E}}[G_t]+\lambda \big )-\varUpsilon _t\big ({\mathbb {E}}[G_t] -\lambda \big ). \end{aligned}$$

Due to the fact that \(0<\varUpsilon _t\big ({\mathbb {E}}[G_t]-\lambda \big )<1\), and by applying Yao–Chen formula, we conclude that

$$\begin{aligned} {\mathcal {M}}\big \{{\mathbb {E}}[G_t]-\lambda \le G_t \le {\mathbb {E}}[G_t]+\lambda \big \}\ge \varUpsilon _t\big ({\mathbb {E}}[G_t]+\lambda \big )\ge \alpha . \end{aligned}$$

Thus, we have the chance of \(\alpha \) to cover \(G_t\) with this confidence interval and the theorem follows immediately. \(\square \)

4 Framework of calibration

To compare simulated data with real market data, estimation of the parameters \(\kappa , \theta , \mu , \sigma \) and \(\xi \) in the logarithmic electricity model based on the observations is a crucial problem. Since the moment estimations for these parameters are not exist, in this section we derive generalized moment estimations for unknown parameters \(\kappa , \theta , \mu , \sigma \) and \(\xi \) in the logarithmic electricity spot model in Theorem 6.

Theorem 12

Consider the logarithmic electricity model in Theorem 6 with unknown parameters \(\kappa , \theta , \mu , \sigma \) and \(\xi \). Assume that there are n observations \(z_{t_1},z_{t_2},\ldots ,z_{t_n}\) of the log-spot price of electricity \(Z_t\) at time \(t_1, t_2, \ldots , t_n\) with \(0< t_1< t_2< \cdots < t_n\), respectively. The corresponding generalized moment estimation \((\kappa ^*, \theta ^*, \mu ^*, \sigma ^*, \xi ^*)\) is the optimal solution of

$$\begin{aligned} \min \limits _{\kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*}\sum _{k=1}^{5}\Big (\frac{1}{n-1} \sum _{i=1}^{n-1}\left( \varXi _{i}\left( \kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*\right) \right) ^{k}-\beta _k\Big )^2, \end{aligned}$$
(37)

where

$$\begin{aligned}&\varXi _i(\kappa ,\theta ,\mu ,\sigma ,\xi )\\&\quad =\frac{z_{t_{i+1}}-z_{t_i} -\Big (F'_{t_i}+\mu +\kappa +\theta F_{t_i}+\theta \mu t_i-\theta z_{t_i}\Big )\Big (t_{i+1}-t_i\Big )}{(t_{i+1}-t_i)(\sigma +\xi +\theta \xi t_i)}, \end{aligned}$$

and

$$\begin{aligned} \beta _k=\big (\frac{1+(-1)^k}{2}\big )\big (\frac{21}{5}\big )^{\frac{k-2}{2}},\quad k=1,\ldots ,5. \end{aligned}$$

Proof

Equation (18) has a difference form

$$\begin{aligned} Z_{t_{i+1}}=\,&Z_{t_i}+\Big (F'_{t_i}+\mu +\kappa +\theta F_{t_i}+\theta \mu t_i-\theta Z_{t_i}\Big )\Big (t_{i+1}-t_i\Big )\nonumber \\&+\sigma \Big (C_{t_{i+1}}^{(1)}-C_{t_{i}}^{(1)}\Big )+\xi \Big (C_{t_{i+1}}^{(2)} -C_{t_{i}}^{(2)}\Big )+\theta \xi \Big (t_{i+1}-t_i\Big )C_{t_{i}}^{(2)}. \end{aligned}$$
(38)

On the other hand,

$$\begin{aligned} \Big (C_{t_{i+1}}^{(1)}-C_{t_{i}}^{(1)}\Big )&\sim {\mathcal {N}}(0,t_{i+1}-t_i),\\ \Big (C_{t_{i+1}}^{(2)}-C_{t_{i}}^{(2)}\Big )&\sim {\mathcal {N}}(0,t_{i+1}-t_i),\\ C_{t_{i}}^{(2)}&\sim {\mathcal {N}}(0, t_i).\\ \end{aligned}$$

Due to the fact that \((C_{t_{i+1}}^{(1)}-C_{t_{i}}^{(1)})\), \(C_{t_{i+1}}^{(2)}-C_{t_{i}}^{(2)}\) and \(C_{t_{i}}^{(2)}\) are independent, we have

$$\begin{aligned}&\big (\sigma (C_{t_{i+1}}^{(1)}-C_{t_{i}}^{(1)})+\xi (C_{t_{i+1}}^{(2)}-C_{t_{i}}^{(2)})+\theta \xi (t_{i+1}-t_i) C_{t_{i}}^{(2)}\big )\\&\quad \sim {\mathcal {N}}\big (0, (t_{i+1}-t_i)(\sigma +\xi +\theta \xi t_i)\big ). \end{aligned}$$

Based on Definition 8 of Liu process, the following expression

$$\begin{aligned}&\frac{\big (\sigma (C_{t_{i+1}}^{(1)}-C_{t_{i}}^{(1)})+\xi (C_{t_{i+1}}^{(2)}-C_{t_{i}}^{(2)})+\theta \xi (t_{i+1}-t_i)C_{t_{i}}^{(2)}\big )}{(t_{i+1}-t_i)(\sigma +\xi +\theta \xi t_i)}\\&\quad \sim {\mathcal {N}}\big (0, 1\big ) \end{aligned}$$

is a standard normal uncertain variable with expected value 0 and variance 1, which has an uncertainty distribution

$$\begin{aligned} \varPhi (x)=\left( 1+\exp \left( -\frac{\pi x}{\sqrt{3}}\right) \right) ^{-1}. \end{aligned}$$

From Eq. (38), we have

$$\begin{aligned}&Z_{t_{i+1}}-Z_{t_i}-\Big (F'_{t_i}+\mu +\kappa +\theta F_{t_i}+\theta \mu t-\theta Z_{t_i}\Big )\Big (t_{i+1}-t_i\Big )\\&\quad =\Big (\sigma (C_{t_{i+1}}^{(1)}-C_{t_{i}}^{(1)})+\xi (C_{t_{i+1}}^{(2)}-C_{t_{i}}^{(2)})+\theta \xi (t_{i+1}-t_i) C_{t_{i}}^{(2)}\Big ). \end{aligned}$$

Therefore, the estimation of the parameters \( \kappa , \theta , \mu , \sigma \) and \( \xi \) is assumed to follow the standard normal uncertainty distribution, i.e.,

$$\begin{aligned}&\frac{Z_{t_{i+1}}-Z_{t_i}-\Big (F'_{t_i}+\mu +\kappa +\theta F_{t_i}+\theta \mu t_i-\theta Z_{t_i}\Big )\Big (t_{i+1}-t_i\Big )}{(t_{i+1}-t_i)(\sigma +\xi +\theta \xi t_i)}\nonumber \\&\sim {\mathcal {N}}(0,1). \end{aligned}$$
(39)

Assume that there are n observations \(z_1,z_2,\ldots ,z_n\) of the log energy spot price at the times \(t_1, t_2, \ldots , t_n\) with \(t_1< t_2< \ldots < t_n\), respectively. Substituting \(Z_{t_{i+1}}\) and \(Z_{t_{i}}\) with the observations \(z_{t_{i+1}}\) and \(z_{t_{i}}\) in Eq. (39), we write

$$\begin{aligned}&\varXi _i(\kappa ,\theta ,\mu ,\sigma ,\xi )\\&\quad =\frac{z_{t_{i+1}}-z_{t_i}-\Big (F'_{t_i} +\mu +\kappa +\theta F_{t_i}+\theta \mu t_i-\theta z_{t_i}\Big )\Big (t_{i+1}-t_i\Big )}{(t_{i+1}-t_i)(\sigma +\xi +\theta \xi t_i)}\\&\qquad \sim {\mathcal {N}}(0,1),\quad i=1,2,\ldots ,n-1. \end{aligned}$$

Note that \(\varXi _i, i=1,2,\ldots ,n-1\), are real functions of the parameters \( \kappa , \theta , \mu , \sigma \) and \( \xi \). For the estimates of \( \kappa , \theta , \mu , \sigma \) and \( \xi \) denoted by \( \kappa ^*, \theta ^*, \mu ^*, \sigma ^*\) and \( \xi ^*\), it follows from Eq. (39) that the values of these functions

$$\begin{aligned}&\varXi _1(\kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*), \varXi _2(\kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*),\ldots ,\\&\quad \varXi _{n-1}(\kappa ^*, \theta ^*,\mu ^*,\sigma ^*,\xi ^*) \end{aligned}$$

can be regarded as \(n-1\) samples of a standard normal uncertainty distribution \({\mathcal {N}}(0, 1)\). The sample moments would provide good estimates of the corresponding population moments. Further, the kth sample moments are

$$\begin{aligned} \frac{1}{n-1} \sum _{i=1}^{n-1}\left( \varXi _{i}\left( \kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*\right) \right) ^{k}, \quad k=1,2, \ldots , 5, \end{aligned}$$

and the kth population moments are

$$\begin{aligned} \beta _k=\left( \frac{\sqrt{3}}{\pi }\right) ^{k} \int _{0}^{1}\left( \ln \frac{\alpha }{1-\alpha }\right) ^{k} \mathrm {d} \alpha , \quad k=1,2, \ldots , 5. \end{aligned}$$

We have \(\beta _k = 0\) for any positive odd number k, and

$$\begin{aligned} \beta _2=1,\quad \beta _4=\frac{21}{5}. \end{aligned}$$

Specially, for \(k=1,2, \ldots , 5\), we have

$$\begin{aligned} \beta _k=\big (\frac{1+(-1)^k}{2}\big )\big (\frac{21}{5}\big )^{\frac{k-2}{2}}. \end{aligned}$$

Thus, the generalized moment estimation \((\kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*)\) is the optimal solution of

$$\begin{aligned} \min \limits _{\kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*}\sum _{k=1}^{5}\Big (\frac{1}{n-1} \sum _{i=1}^{n-1}\left( \varXi _{i}\left( \kappa ^*,\theta ^*,\mu ^*,\sigma ^*,\xi ^*\right) \right) ^{k}-\beta _k\Big )^2. \end{aligned}$$

Therefore, the result follows. \(\square \)

We use the ga command of MATLAB software to solve the optimization problem (37). Genetic algorithm (GA) is a model of biological evolution based on Charles Darwin’s theory of natural selection. Population size, selection rate, crossover and mutation probability, number of generations, convergence conditions, fit function (loss) and search space operators organize the essential part of the genetic algorithm as a problem-solving strategy. GA was first introduced by Holland (1975).

5 Numerical results

In this section, we present the theories expressed for the electricity spot price as numerically by using the electricity data set from the Nordic region of Oslo and Stockholm. We also compare the electricity spot price obtained by the uncertain two-factor model and the one-factor uncertainty model with the actual market data and show that the introduced two-factor model performs better.

The electricity spot price \(S_t^o\) under one-factor uncertainty model is expressed as follows:

$$\begin{aligned} S_t^{o} = f_t e^{X_t}, \end{aligned}$$
(40)

where

$$\begin{aligned} f_t&=a+bt+c \sin \left( \frac{2\pi (t-d)}{365}\right) ,\\ \mathrm{d}X_t&= (\kappa -\theta X_t)\mathrm{d}t + \sigma \mathrm{d}C_t, \end{aligned}$$

and \(\mathrm{d}C_t\) is the increment of the Liu process and \(a,b,c,d,\kappa ,\theta \in {\mathbb {R}}, \sigma >0\) are constants.

Suppose that \(Z_t^o\) and \(Z_t^{\alpha ^o}\) be the solution and \(\alpha \)-path for logarithmic spot price of electricity under one-factor uncertainty model, respectively. Then, the solution \(Z_t\) is a contour process with an \(\alpha \)-path \(Z_t^{\alpha ^o}\) that solves the corresponding ordinary differential equation

$$\begin{aligned} \mathrm{d}Z_t^{\alpha ^o}=&\Big (\kappa +\theta \ln \big (a+bt+c\sin (\frac{2\pi (t-d)}{365}) \big )\\&+\frac{b+\frac{2\pi c}{365}\cos (\frac{2\pi (t-d)}{365})}{a+bt+c\sin (\frac{2\pi (t-d)}{365})}\\&+ \frac{\sqrt{3}\sigma }{\pi } \ln \frac{\alpha }{1-\alpha }-\theta Z_t^{\alpha ^o}\Big )\mathrm{d}t. \end{aligned}$$

In other words,

$$\begin{aligned}&{\mathcal {M}}\left\{ Z_t^o \le Z_t^{\alpha ^o}, \forall t\right\} =\alpha , \\&{\mathcal {M}}\left\{ Z_t^o>Z_t^{\alpha ^o}, \forall t\right\} =1-\alpha . \end{aligned}$$
Fig. 1
figure 1

Electricity spot price (solid line) and its seasonality function (dashed line) related to Stockholm (upper) and Oslo (lower) regions over the period of 2019

Consider the logarithmic electricity model in system (40) with unknown parameters \(\kappa , \theta \) and \(\sigma \). Assume that there are n observations \(z_{t_1},z_{t_2},\ldots ,z_{t_n}\) of the log-spot price of electricity \(Z_t^o\) at time \(t_1, t_2, \ldots , t_n\) with \(0< t_1< t_2< \cdots < t_n\), respectively. Similar to Theorem 12, the corresponding generalized moment estimation \((\kappa ^*, \theta ^*,\sigma ^*)\) is the optimal solution of

$$\begin{aligned} \min \limits _{\kappa ^*,\theta ^*,\sigma ^*}\sum _{k=1}^{3}\Big (\frac{1}{n-1} \sum _{i=1}^{n-1}\left( \varXi _{i}\left( \kappa ^*,\theta ^*\sigma ^*\right) \right) ^{k}-\beta _k\Big )^2, \end{aligned}$$
(41)

where

$$\begin{aligned}&\varXi _i(\kappa ,\theta ,\mu ,\sigma ,\xi )\\&\quad =\frac{z_{t_{i+1}}-z_{t_i}- \Big (F'_{t_i}+\kappa +\theta F_{t_i}-\theta z_{t_i}\Big )\Big (t_{i+1}-t_i\Big )}{\sigma (t_{i+1}-t_i)}, \end{aligned}$$

and

$$\begin{aligned} F_t=\ln f_t,\quad \beta _k=\big (\frac{1+(-1)^k}{2}\big )\big (\frac{21}{5} \big )^{\frac{k-2}{2}},\quad k=1,2,3,\\ \end{aligned}$$

The parameters of the seasonality function were estimated using the least squares approach. For this purpose, we have applied the nlinfit procedure in MATLAB software. We consider the estimated parameters as \(a^*, b^*, c^*\) and \(d^*\). All four parameters are significant at the \(5\%\) level, indicating that there are both significant seasonal variations and increase in electricity spot prices over the considered period. The electricity spot prices of the Nordic related to the Stockholm and Oslo regions with their seasonality function are graphed in Fig. 1. The estimated parameters of seasonality function \(f_t\) are reported in Table 1.

Table 1 Fitted parameters of the seasonality function from the Stockholm and Oslo regions over the period of 2019
Table 2 Estimated parameters of the uncertain two-factor model and the uncertain one-factor model from the Stockholm region over the monthly period of 2019

Tables 2 and 3 report the estimated parameters of the uncertain two-factor model and the uncertain one-factor model related to the electricity spot prices of Stockholm and Oslo, respectively. The performance of the these models for the electricity spot price related to Stockholm and Oslo regions is represented in Table 4 for different horizons based on the the mean-absolute-error (MAE) criteria, respectively. As it can be readily seen from the table, our proposed uncertain two-factor model has a better performance in all time horizons. A close look at this table shows that the uncertain two-factor model has smaller MAE values than the other model considered for all horizons. Notice that the MAE is calculated as follows:

$$\begin{aligned} \text {MAE}=\frac{1}{n}\sum _{i=1}^n \big |S^*_{t_i}-S_{t_i}\big |, \end{aligned}$$

where n is the total number of the electricity spot price data set, \(S_{t_i}\) is the simulated electricity spot price and \(S_{t_i}^*\) is the actual electricity spot price. It should be noted that to provide the numerical results, all the parameters of the proposed model are taken from Tables 1 and 2.

Table 3 Estimated parameters of the uncertain two-factor model and one-factor model from the Oslo region over the monthly period of 2019
Table 4 MAE comparison of the uncertain two-factor model and the uncertain one-factor model from the Stockholm and Oslo regions over the monthly period of 2019
Fig. 2
figure 2

The expected value \({\mathbb {E}}[Z_t]\) (plus), the lower bound (dashed line), the upper bound (solid line) of the \(95\%\) confidence interval for \(Z_t\) and logarithmic electricity spot price (circle) related to Stockholm region over the monthly period of 2019

Fig. 3
figure 3

The expected value \({\mathbb {E}}[Z_t]\) (plus), the lower bound (dashed line), the upper bound (solid line) of the \(95\%\) confidence interval for \(Z_t\) and logarithmic electricity spot price (circle) related to Oslo region over the monthly period of 2019

From Eq. (14) and Proposition 1 in Sect. 3, the expected value and the \(95\%\) confidence interval for the logarithmic electricity spot price \(Z_t\) are

$$\begin{aligned}&{\mathbb {E}}[Z_t]=F_t+\frac{\kappa }{\theta }(1-e^{-\theta t})+ \mu t, \end{aligned}$$

and

$$\begin{aligned}&\Big [\frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t\\&\quad -\frac{\sqrt{3}}{\pi }(\xi t +\frac{\sigma }{\theta }-\frac{\sigma }{\theta }e^{-\theta t})\ln 39,~ \frac{\kappa }{\theta }(1-e^{-\theta t})+\mu t +F_t\\&\quad +\frac{\sqrt{3}}{\pi }(\xi t +\frac{\sigma }{\theta }-\frac{\sigma }{\theta }e^{-\theta t})\ln 39\Big ], \end{aligned}$$

respectively. As we can see in Figs. 2 and 3, the mean value of the actually electricity spot prices related to the Stockholm and Oslo regions is close to \({\mathbb {E}}[Z_t]\), and both of them are included in the \(95\%\) confidence interval for \(Z_t\).

We now consider the estimated parameters in August 2019. Remember that by Eq. (17) in Sect. 3, the logarithmic electricity spot price \(Z_t\) of the Stockholm and Oslo regions has the uncertainty distribution

$$\begin{aligned} \varPhi _t(z)=\Big (1+\exp \Big \{\frac{\pi \big (0.9499(1-e^{-0.2678 t})+0.2780 t +F_t-z\big )}{\sqrt{3}\big (0.1105 t +9.2908(1-e^{-0.2678 t})\big )}\Big \}\Big )^{-1}, \end{aligned}$$

and

$$\begin{aligned} \varPhi _t(z)=\Big (1+\exp \Big \{\frac{\pi \big (0.2650(1-e^{-0.9776 t})+0.0556 t +F_t-z\big )}{\sqrt{3}\big (1.0634 t +0.7795(1-e^{-0.9776 t})\big )}\Big \}\Big )^{-1}, \end{aligned}$$

respectively, which is shown in Fig. 4.

The uncertainty distribution of logarithmic electricity spot price of Oslo and Stockholm regions on the second day of February, June, August and October is illustrated in Fig. 5. From the results of this figure, we find that the logarithmic electricity spot price related to the Stockholm region on the second day of February, June, August and October is \(\varPhi _2(4.5)=0.9434, \varPhi _2(4.5)=0.7304, \varPhi _2(4.5)=0.8653\, \hbox {and}\, \varPhi _2(4.5)=0.8054\), respectively. The logarithmic electricity spot price related to the Oslo region for these months is \(\varPhi _2(4.5)=0.9635, \varPhi _2(4.5)=0.8874, \varPhi _2(4.5)=0.9547\, \hbox {and}\, \varPhi _2(4.5)=0.9115\), respectively. These values indicate the belief degree that the uncertain event \(Z_2\le 4.5\) may happen. From the market data, the logarithmic electricity spot price in the Stockholm {Oslo} regions on the second day of February, June, August and October is \(3.9328 \{3.9347\}, 3.05352 \{3.4375\}, 3.7316 \{3.6891\}\) and \(3.4744\{3.3881\}\), respectively. Therefore, on the second day of these months, the electricity spot prices from Stockholm and Oslo regions are always less than 4.5, and this justifies the high values of the belief degree at these moments.

Fig. 4
figure 4

The uncertainty distribution \(\varPhi _t (z)\) for the logarithmic electricity spot \(Z_t\) with estimated parameters related to Stockholm (left) and Oslo (right) region over August 2019

Fig. 5
figure 5

The uncertainty distribution for the logarithmic electricity spot price at the different times related to the Stockholm region (up) and Oslo region (down) on the second day of February, June, August and October 2019

Fig. 6
figure 6

The expected value \(G_T\) (star line) under two-factor uncertain models, the lower bound (dashed line) and the upper bound (solid line) of the \(80\%\) confidence interval for \(G_T\) and the real total cost (circle) related to Stockholm region (up) and Oslo region (down) in August 2019

Fig. 7
figure 7

The uncertainty distribution for the logarithmic electricity spot price at the different times \(t^*\) related to the Stockholm region (up) and Oslo region (down) on June, August and October 2019

Fig. 8
figure 8

Comparison of 0.95 confidence interval (dotted line), 0.95 path (solid line) and 0.05 path (dashed line) with logarithmic electricity spot prices (plus) related to Stockholm region. Left figures are graphed under the stochastic two-factor model, and right figures are graphed under the uncertain two-factor model

Fig. 9
figure 9

Comparison of 0.95 confidence interval (dotted line), 0.95 path (solid line) and 0.05 path (dashed line) with logarithmic electricity spot prices (plus) related to Oslo region. Left figures are graphed under the stochastic two-factor model, and right figures are graphed under the uncertain two-factor model

From Eq. (30), the electricity is delivered as a flow of rate \(Z(t)/T, 0\le t \le T\) in the settlement period [0, T], giving the total cost of \(G_T=\frac{1}{T}\int _0^T Z_s \mathrm{d}s\). Figure 6 illustrates the actual of total cost and the expected value of \(G_T\) with lower and upper bounds with 80% confidence interval for various maturity times T. As shown in this figure, the total cost rises with increasing maturity time T. Based on Theorems 10 and 11, the expected value of \(G_T\) for the electricity spot price related to the Stockholm and Oslo regions with estimated parameters from the August 2019 is

$$\begin{aligned} E^s_T=&\frac{1}{T}\Big [0.9499(T+\frac{e^{-0.2678 T}-1}{0.2678})+0.1390 T^2\\&+\int _0^T \ln \Big (25.5433+0.0556 s\\&-8.5918\sin \big (\frac{2\pi (s-54.8379)}{365}\big )\Big ) \mathrm{d}s\Big ] \end{aligned}$$

and

$$\begin{aligned} E^o_T=&\frac{1}{T}\Big [0.2650(T+\frac{e^{-0.9776 T}-1}{0.9776})+0.0278 T^2\\&+\int _0^T \ln \Big (47.1225-0.0428 s\\&+6.7683\sin \big (\frac{2\pi (s+645.3289)}{365}\big )\Big ) \mathrm{d}s\Big ], \end{aligned}$$
Table 5 Estimated parameters of the stochastic two-factor model from the Stockholm and Oslo regions in 2019 with various months
Table 6 Up and down errors of 0.95 confidence interval under stochastic model and 0.95 path and 0.05 path under uncertain model in 2019 with various months

respectively. Moreover, the \(80\%\) confidence interval of the \(G_T\) for the electricity spot price related to the Stockholm and Oslo regions with estimated parameters from August 2019 is

$$\begin{aligned}&\Big [E_T^s-\inf \big \{\lambda>0\big |H^s(T,\lambda )\ge 0.8\big \},\\&\quad E_T^s+\inf \big \{\lambda >0\big |H^s(T,\lambda )\ge 0.8\big \}\Big ], \end{aligned}$$

and

$$\begin{aligned}&\Big [E_T^o-\inf \big \{\lambda>0\big |H^o(T,\lambda )\ge 0.8\big \},\\&\quad E_T^o+\inf \big \{\lambda >0\big |H^o(T,\lambda )\ge 0.8\big \}\Big ], \end{aligned}$$

respectively, where

$$\begin{aligned} H^s(T,\lambda )&=\varUpsilon _T\big (E_T^s+\lambda \big )-\varUpsilon _T\big (E_T^s-\lambda \big ),\quad \\ H^o(T,\lambda )&=\varUpsilon _T\big (E^o_T+\lambda \big )-\varUpsilon _T\big (E^o_T-\lambda \big ), \end{aligned}$$

and \(\varUpsilon _t\) is the uncertainty distribution for \(G_T\). By Eq. (31), \(\varUpsilon _t\) is expressed as follows:

$$\begin{aligned} \varUpsilon _t(z)=\Big (1+\exp \Big \{\frac{\frac{\kappa }{\theta ^2}(t\theta +e^{-\theta t}-1)+\frac{\mu t^2}{2}+{\mathbf {F}}_t-Tz}{\frac{\sqrt{3}}{\pi \theta }\big (\frac{\xi \theta t^2}{2}+\sigma t+\frac{\sigma }{\theta }(e^{-\theta t}-1)\big )}\Big \}\Big )^{-1},\quad z\in {\mathbb {R}}. \end{aligned}$$

As mentioned in the previous section, due to the first time that the electricity spot price reaches the specified level, traders can consider a beneficial strategy for trading electricity contracts. Using the real market data, the first time that the logarithmic electricity spot price in the Stockholm region reaches the level 3.6 in June, August and October is 12, 2 and 1, respectively. Moreover, the first time that the logarithmic electricity spot price in the Oslo region reaches the level 3.4 in June, August and October is 8, 2 and 1, respectively. Figure 7 shows the belief degree of the uncertain event \(t_{3.6}\le t^*\) and \(t_{3.4}\le t^*\) for Stockholm and Oslo regions with various \(t^*\), respectively. This belief degree value for Stockholm and Oslo areas is calculated from Theorem 9 as follows:

$$\begin{aligned}&\varPsi _{3.6}(t^*)\\&\quad =\Big (1+\exp \Big \{\frac{-\pi \big (\frac{\kappa }{\theta } (1-e^{-\theta t^*})+\mu t^*+F_{t^*}-3.6\big )}{\sqrt{3}\big (\xi t^* +\frac{\sigma }{\theta }(1-e^{-\theta t^*})\big )}\Big \}\Big )^{-1},\\&\varPsi _{3.4}(t^*)\\&\quad =\Big (1+\exp \Big \{\frac{-\pi \big (\frac{\kappa }{\theta }(1-e^{-\theta t^*})+\mu t^*+F_{t^*}-3.4\big )}{\sqrt{3}\big (\xi t^* +\frac{\sigma }{\theta }(1-e^{-\theta t^*})\big )}\Big \}\Big )^{-1}. \end{aligned}$$

Based on the obtained results in Fig. 7, one can be said on the first 12 days of June, August and October the logarithmic electricity spot price of Stockholm region reaches the level 3.6 with the belief degree 0.6450, 0.5814 and 0.5077, respectively. As the same way, on the first 12 days of June, August and October the logarithmic electricity spot price of Oslo region reaches the level 3.4 with the belief degree 0.9979, 0.7580 and 0.9034, respectively. The results show that with a relatively high belief degree (greater than 0.5) in the first 12 days of June, August and October the logarithmic electricity spot prices in Stockholm and Oslo regions reach the levels 3.6 and 3.4, respectively. Referring to market data, we note that the logarithmic electricity spot prices in the Stockholm and Oslo areas reach the levels 3.6 and 3.4 on the first 12 days of June, August and October, respectively.

We now compare the \(\alpha \)-path of logarithmic electricity spot price under the uncertain two-factor model (13) and the stochastic two-factor model (9). Assuming that \(\alpha = 0.95\), we define up (down) error as the mean square error between the actual logarithmic electricity spot price and 0.95(0.05)-path. A similar idea can be found in Yang et al. (2020).

Figures 8 and 9 show 0.95 confidence interval for the logarithmic electricity spot price in Stockholm and Oslo regions under stochastic model (9) for January, August and December 2019, respectively, in which the parameters are selected according to maximum likelihood estimation (MLE) method from Table 5. These figures also compare the 0.95 path and the 0.05 path using Eq. (20) for the mentioned months. As given in Table 6, the up and down errors obtained under the proposed uncertain model (13) are smaller than the stochastic model (9).

6 Conclusion

In this paper, we have studied the modeling and calibration of the electricity market under the uncertain two-factor model. The considered uncertain model is a combination of deterministic seasonal function, short-run deviation and equilibrium level processes derived by Liu process. For the proposed uncertain model, we have evaluated the expected value of the logarithmic electricity spot price, total cost of the logarithmic electricity delivered in the settlement period and their confidence interval. In addition, the first time that the logarithmic electricity spot price reaches a certain level was evaluated along with its confidence interval. Empirical studies for the electricity spot prices in Stockholm and Oslo regions showed that simulation of the electricity spot price is closer to market reality by adding the equilibrium level process. Moreover, the obtained belief degree of the electricity spot price, the total cost and the first time that the electricity spot price is reached the specified level provided desirable results. Finally, we have compared the 0.95 confidence interval of the stochastic model with the 0.95 path and 0.05 path obtained by the uncertain two-factor model. The results illustrated that the accuracy of the proposed uncertainty model is higher than the stochastic two-factor model. Based on the presented results in this paper, it is ensured that the uncertain two-factor model can be used in the empirical applications of electricity market and can at least be served as a good competitor of the stochastic model in practice.