Pricing Energy Contracts under Regime Switching Time-Changed models
Abstract.
The shortcomings of the popular Black-Scholes-Merton (BSM) model have led to models which could more accurately model the behavior of the underlying assets in energy markets, particularly in electricity and future oil prices. In this paper we consider a class of regime switching time-changed Levy processes, which builds upon the BSM model by incorporating jumps through a random clock, as well as randomly varying parameters according to a two-state continuous-time Markov chain. We implement pricing methods based on expansions of the characteristic function as in [6]. Finally, we estimate the parameters of the model by incorporating historic energy data and option quotes using a variety of methods.
1. Introduction
A main goal of the paper is to develop a methodology to price European option’s contracts on electricity and future oil prices. The approach is based on Fourier expansions and implements models that capture specific stylized features of the underlying assets such as stochastic volatility and random jumps. In particular, we consider a switching time-changed Levy process as an alternative to the BSM model and implement a pricing algorithm based on the expansion of its characteristic function as considered in [6].
We compare the prices we obtain with those obtained via a computationally costly, but accurate, Monte Carlo method and study sensitivities with respect to relevant parameters, e.g. maturity, strike price and initial price. Moreover, we contrast prices under the regime switching model to those given by the Black-Scholes equation and show that the prices agree when the switching model is reduced to the Black-Scholes model.
We rely on the Esscher transformation, see [8], to obtain
an equivalent martingale measure(EMM) and in order to work on a risk-neutral setting. To calibrate parameters, we use market option prices and minimize the mean squared error. On the other hand, and in order to estimate parameters, we implement the method of moments, minimum distance estimation and maximum likelihood estimation techniques. For simplicity an Expectation Maximization algorithm (EM) is not considered.
Although most of these elements have been previously implemented, to the best of our knowledge, the combination consisting of the selected model class, the pricing methodology, the risk-neutral framework and the estimation/calibration approach have not been studied before in energy markets or elsewhere. It is worth noticing that non-switching models with Levy noises have been introduced in [3]. On the other hand, results for switching Levy models and their characteristic functions can be found in [4].
Many financial time series, including commodity futures seem to exhibit dramatic breaks in their behaviour, for example in the events of political changes or financial crises. Different intervals sharing similar characteristic can be grouped together under a single regime. Models that can capture such behaviour are regime switching Levy. Under such a model, the process switches randomly between different Levy processes according to an unobservable Markov chain. The regime switching time-changed Levy process is a pure jump process which captures two key features of the market: the existence of regimes and price jumps.
The organization of the paper is the following: Section 2 introduces the regime switching time-changed Levy model, we then derive its characteristic function under Gamma and Inverse Gaussian subordinators. In section 3 we discuss Monte Carlo and Fourier Cosine pricing methods. For Monte Carlo, we develop an algorithm to simulate trajectories of the process, as well as for pricing European call options by simulating many regime switching processes simultaneously. In section 4 we use calibration and various methods to estimate values of model parameters from option quotes and historical prices of oil and electricity commodities.
2. Model, contract and characteristic function
Let be a filtered probability space verifying the usual conditions. For a stochastic process defined on the space filtered space above the functions and define its characteristic function and characteristic exponent respectively. When the process has stationary and independent increments the later does not depend on .
is the transpose of matrix unless it is specified differently.
Let the process represent the price of the underlying asset at any time , represents the logarithm of the prices.
We define a continuous-time Markov chain driving the changes between regimes with the state space . The switching times are described by a sequence of independent random variables in a way that:
The infinitesimal generator matrix of the continuous-time Markov chain is given by
(1) |
Hence:
Next, consider a collection of independent subordinators for , where each subordinator is also independent of each process , for . Each subordinator is characterized by two parameters which change between states on the (non-observable) Markov Chain. Each process is a pure jump process and each process has almost surely continuous paths
We define the collection of time-changed Levy processes where
with and .
There exists a natural economic interpretation of a time-changed process. Energy markets alternate at random times between calmed and frenzy periods at random times.
We now define the regime switching time-changed Levy process as:
(2) |
or, in differential terms:
The regime switching time-changed Levy process is assumed to be the log-price process of the underlying asset and the stochastic process of the asset price itself is defined as:
For simplicity we assume that the process will always start out at state 1 with probability 1.
Following [4], for the process defined in equation (2) along with a Markov chain with the infinitesimal generator matrix defined in equation (1), its characteristic function is given by:
(3) |
where and is the matrix:
Notice that conditionally on the characteristic function of , i.e. the characteristic function of conditionally on , is:
To compute the exponential matrix we use a scaling and squaring algorithm, see [10], based on the following approximation:
where is the Pade approximant of and the nonnegative integers and are chosen in such a way as to achieve minimum error at minimal cost. A table of errors as a function of and is given in [1]. The Pade approximant for the exponential function is:
where:
The discounted price process is denoted where . We have that under an EMM , the discounted price process is a martingale under if and only if the following equation is satisfied:
(4) |
See [14] for details.
Example 2.1.
Case of Inverse Gaussian and Gamma subordinators.
Inverse Gamma and Gamma subordinators have been studied in [2] and [12].
When the subordinator is an Inverse Gaussian process with shape parameter and rate parameter , we have:
(5) |
In Figure 1 the real and imaginary parts of the characteristic function and the characteristic function of with an Inverse Gaussian subordinator are shown. Parameters are obtained from estimating procedures for future oil prices as explained in Section 4. A similar result is obtained under a Gamma subordinator.


When the subordinator is a Gamma process with shape parameter and rate parameter , we have:
(6) |
To have discounted prices being a martingale, according to equation (4):
leading to:
When the process is a time-changed process subordinated by an Inverse Gaussian process with parameters , the characteristic function is given by equation (5) and therefore for each state we solve for :
It leads to:
Holding all the other parameters constant, the drift verifies equation (4). The value of is such that the -th discounted price process, when the subordinator is an Inverse Gaussian process, is a martingale.
3. Pricing European options under switching Levy models
We turn back to pricing, consider a European call contract with maturity at and strike price . Its payoff, written in terms of the log-returns, is:
where .
The price of the contract at a time and
is denoted as and verifies:
(7) |
Notice that is the payoff at maturity time and .
The value is the time to maturity and is the risk-neutral interest rate. The function is the probability density function (p.d.f.) of given the value .
is the expectation value operator with respect to an EMM which is determined by an Esscher transform of the historic measure . See [8] for a rationale in terms of a utility-maximization criteria.
For a stochastic process the latter is defined as:
(8) |
where and are the respective restrictions of and to the -algebra . We define by , and respectively the characteristic function, characteristic exponent and moment generating function of a process under the probability obtained by an Esscher transformation as given in equation (8).
We follow a pricing approach via Fourier- Cosine Series expansion of the p.d.f. . The method has been proposed in [6].
The solution to (7) is obtained by expanding the p.d.f. in terms of a Fourier basis under Gamma and Inverse Gaussian subordinators introduced in the previous section .
The domain of integration is truncated to a finite interval for the purposes of numerical integration, for a discussion about selecting the truncation interval and its associated error, see [11].
The Fourier-cosine expansion of is given by:
(9) |
where the first term of the summation is weighted by one-half.
The coefficients of the Fourier expansion, denoted by , are approximated by:
Hence, substituting (9) into equation (7) we have:
where is the Fourier coefficients of given by:
In particular, for a European call option we have:
For a European put option denoted by a similar expression is found. Finally, truncating the infinite series to terms, we obtain:
The characteristic function of the log-return at maturity is computed above by equation (3) under Inverse Gaussian and Gamma subordinators. As Fourier-cosine series of entire functions converges exponentially, so does not be too large to obtain good approximations. For European call options, it is found that the price is not accurate and extremely sensitive to the values of On the other hand, it is also found that for large values of , diverges while converges quickly and varies little with changes in the left-end of the truncation interval . We therefore rely on the put-call parity which allows for the computation of the European call option using the put option.
We summarize the calculations as follows:
Algorithm
-
(1)
Initialization: choose appropriate boundary points , number of terms in the series expansion and contract specifications (i.e. interest rate , initial stock price , strike price , with and time to maturity ).
-
(2)
Initialize array of payoffs and .
-
(3)
For to
-
(a)
Define the -th element of to be:
. -
(b)
(put-call parity)
-
(a)
-
(4)
(Summation)
The algorithm is implemented in a desktop computer using MATLAB. We compare the European call payoff and running time under Monte Carlo simulation and Fourier-Cosine pricing in Table 1 for different maturities and strike prices.
( | Monte Carlo | Running Time (sec.) | Fourier-Cosine | Running time (sec.) |
---|---|---|---|---|
18.9554 | 9.31 | 19.0401 | 0.0234 | |
19.9612 | 17.54 | 20.3456 | 0.1433 | |
17.9942 | 10.01 | 18.2164 | 0.1339 | |
19.0166 | 11.40 | 18.5523 | 0.193 |
In the parametric set considered (the next section discusses how to estimate the parameters), the Fourier-cosine method is on average 100 times faster than a standard Monte Carlo approach, while producing similar level of precision.
On the other hand, it is found that the difference between pricing European call options using Monte Carlo and Fourier-Cosine pricing remains constant for different strike prices. The error however grows linearly for increasing maturity times.
To compare with the price obtained via Monte Carlo we discuss the simulation procedure employed.
It is well-known that the Markov chain spends independent and exponentially distributed random times between regime transitions. The th switching time is determined by:
where are the times between regime changes. The parameters of the exponential random variables alternate between and .
The differential equation is approximated numerically through finite differences using the Euler-Maruyama Method. Hence, if at time the process is under regime , the increment of the process during the time interval is given by:
Notice that, for small , the process remains under regime with a probability close to one.


Figure 2(a) shows a single realization of a switching time-changed Levy process (top) under an IG subordinator, as well as the underlying Markov chain (bottom). Figure 2(b) shows trajectories under a Gamma subordinator.
We devise an algorithm which computes the payoff of a European Call option by simulating independent realizations of the process simultaneously and then estimating the price according to:
where is the -th simulated log-price at maturity.


We can also estimate the price using confidence intervals. The confidence interval is useful because it provides a range of values that are likely to contain the population mean. Endpoints of the confidence interval are given by:
where is the sample mean of the simulated payoffs, is the sample standard deviation, is the sample size and is the -percentile of the normal distribution.
The confidence interval decreases as the number of simulations approaches infinity, however in the case of the Inverse Gaussian subordinator, the interval is larger at each simulation because Inverse Gaussian random variables have a larger variance than Gamma random variables when .
At the confidence interval when the subordinator is Inverse Gaussian is . When the subordinator is a Gamma process, the confidence interval is .


Figure 4 indicates the behaviour of the price of a European call option for a regime switching time-changed Levy process model under Inverse Gaussian (top) and Gamma subordinators (bottom). Both payoff models are monotone in and . Moreover as increases, the expected payoff increases. For the probability that is very small, therefore the payoff is close to




In each figure parameters between states are held constant, except the ones indicated in the graph: and Setting the parameters implies the process spends an equal amount of time in each regime, on average. The only exception made is in Figure 5, where and so that the process would spend a majority of the time in the second regime; this makes the process an approximation to a time-changed Levy process.
For changes in the payoff approaches an asymptote because Gamma and Inverse Gaussian random variables both have mean which approaches infinity for
In Figure 6 changes in the price with respect to the intensity parameters and the parameters of the underlynig subordinators are shown.
Parameters | Reduced Switching Levy Model | Black Scholes formula |
---|---|---|
(1,1,0.04,0.5) | 19.0463 | 19.0392 |
(3,1,0.1,1) | 19.2955 | 19.3139 |
(2,30,0.5,0.001) | 8.963608 | 8.96361 |
Notice that we can reduce the regime switching Levy processes to the Black-Scholes model by defining the subordinator and setting the parameters equal across both regimes. Setting the drift such that the discounted Black Scholes price process is a martingale . we find that the price by a Fourier-cosine approach is consistent with the price given by the Black-Scholes formula. See Table 2.




4. Parameter estimation and numerical pricing
We implement two approaches of fitting the parameters of the underlying model to financial historical data: calibration and estimation depending when option’s prices or the underlying electricity and oil prices are considered. In a calibration approach, the parameters are fitting by minimizing the quadratic error between the prices obtained numerically and option quotes. The option quotes are taken from Bloomberg’s data base for a variety of strike prices and times to maturity. The parameters are fitted using European call option quotes of West Texas Intermediate (WTI) crude oil.
In a parameter estimation, we implement the following techniques based on historical prices of oil and electricity: method of moments, minimum distance method and maximum likelihood estimation, combined with empirical estimation of the switching parameters. Specifically, we use daily historical NYMEX WTI crude oil futures (11-16-2012 to 06-05-2018) and IESO Ontario (Canada) Zone 24H electricity average spot prices (06-06-2008 to 06-05-2018). Spikes and stochastic volatility are observed in the series, Similar phenomena have been reported in other electricity markets, see [3, 7]. We assume that there are 250 trading days in a year with each trading day corresponding to of unit time.
Figures 7 and 8 plot the historic WTI oil futures and average Ontario electricity prices, as well as their log-returns. Electricity spot prices sometimes move below zero, implying a surplus of electricity produced during low demand. Because electricity produced by power suppliers must be consumed immediately, the supplier pays wholesale customers to buy the surplus energy, see [15]. All negative prices are arbitrarily modified to CAD for estimation purposes.
We also compare the empirical density function of the log-returns of each commodity to the normal distribution under the same mean and variance parameters as the historical log-return process. To this end we implement a kernel smooth technique. Hence, the estimated p.d.f. is:
where the function is the Gaussian kernel.
As the p.d.f. of the log-returns is not available in a close form we simulate the model under a parametric set to get the empirical p.d.f. using a kernel smoothing technique, see for example [9], and continue the optimization procedure.
The value of is chosen to equal Silverman’s quantity , where is the standard deviation of the log-return series, see [13]. See Figure 9 for empirical p.d.f.’s corresponding to WTI futures (left) and Ontario electricity log-return prices(right).


The kurtosis of WTI future and Ontario electricity log-return series are respectively 6.34 and 23.947, much larger than that of the normal distribution, suggesting the presence of heavier tails and extreme behavior. Significant negative skewness is also reported on both series, respectively -0.1314 and -0.1377
In our model the parameters are described by vectors for while and reflect the parameters of the hidden Markov chain. Hence the times the chain remains in regime are independent and exponentially distributed with mean , with . We set to be the set of all feasible parameters for . We assume that the two sets of parameters belong in different parameter spaces i.e. The two parameters of the subordinator and the diffusion coefficient are required to be positive, therefore we add the natural constraints
We assume that the duration of the -th observed historic regime is the most probable value i.e. it is equal to the expectation value For each commodity, the -th holding-rate parameter is given by:
where it is assumed that there are 250 trading days every year.
By simple inspection of the log-return process data of oil futures we set the process to be in regime one between 11-16-2012 and 11-16-2014 as well as between 02-06-2017 and 06-05-2018; otherwise, we assume that the process is in regime two. In the case of the log-returns of electricity spot prices; we set the process be in regime two whenever the absolute value of the log-returns exceeds 3 and in regime one otherwise.
Table 3 shows the average time and daily standard deviation in the two regimes of the WTI futures and Ontario electricity series. We also include the variance of the log-returns within each regime; the different orders of magnitude between regimes justifies the use of a switching model.
Commodity | St. Dev. (regime 1) | St. Dev. (regime 2) | ||
---|---|---|---|---|
Oil | 0.900 | 3.80 | 0.0052 | 0.0148 |
Electricity | 0.2618 | 0.0081 | 0.6020 | 6.1086 |
By having defined the location of the regime changes and therefore estimated the values of , the historic log-returns are separated into two sets of data, one containing all the data points for each regime.
To calibrate the parameters within each regime we minimize the mean square error between the numeric option payoffs and European call option quotes. When the option is out of the money the option price is obtained using a Monte Carlo approach because the Fourier Cosine method exhibits significant error.
Thus, the objective function in regime is
where, by a convenient change in notation to emphasize the dependence on the parameters we write and the option quotes , taken over a range of strike prices and maturity times .
The optimal parameter is . It is calculated using a gradient descent method.
The stopping criteria is taken to be step tolerance, taken to be equal to 1e-10. The k-th step tolerance is a lower bound on the size of the step . The solver stops if the stopping criteria is reached, or if the maximum number of iterations (fixed to 1000 steps) is exceeded. Different initial starting points are found to give similar estimation of the parameters. Table 4 gives the estimated calibration in the case when the subordinator is a Gamma process or an Inverse Gaussian process. As expected, the volatility is higher in regime two in the case of both subordinators.
Commodity (subordinator) | ||||
---|---|---|---|---|
Oil log-return Regime 1 (Gamma) | -0.03387 | 0.0030 | 2.640710 | 1.007e-8 |
Oil log-return Regime 2 (Gamma) | -0.01445 | 1.116184 | 2.56567e-5 | 10.32441 |
Oil log-return 1 (Inverse Gaussian) | -0.04976 | 0.130011 | 0.24788 | 92.6926 |
Oil log-return 2 (Inverse Gaussian) | -0.04950 | 0.515891 | 8.531e-4 | 8.43091 |
To choose the initial set of parameters we use the Method of Moments. Theoretical moments are computed from the characteristic function of the model under both subordinators considered. Matching both, empirical and theoretical moments up to order forth leads to the following non-linear system of equations, in the case of a model under an Inverse Gaussian subordinator:
where is the empirical k-th moment.
The system of equations is solved separately for each regime using the function solve in MATLAB based on the trust region algorithm. The results are summarized in Table \re
tab:method_moment IG.
A similar result is obtained for the model under a Gamma subordinator.
Commodity | ||||
---|---|---|---|---|
Oil log-return Regime 1 | 0.1624 | 0.7213 | 0.3238 | 1.6971 |
Oil log-return Regime 2 | -0.0354 | 1.3402 | 0.0400 | 1.9584 |
Electricity log-return 1 | 0.1111 | 3.1233 | 28.4386 | 3.4862 |
Electricity log-return 2 | -3.7405 | 19.5346 | 0.0132 | 0.3539 |
The method encounter difficulties to find a global minimum in the case where the empirical moments were calculated using electricity log-return prices. Changing the initial starting points resulted in varying results, which indicates the presence of local minima. Despite these shortcomings the method of moments can be used as an initial solution for a Minimum Distance approach based on the distance between the theoretical and empirical characteristics function of the log-returns, the later defined as:
for a sample of log-returns of the underlying series. See [17] for details.
The objective function under regime is defined by:
where is the weight function .
Then, is the minimum distance estimate of if
Again, we apply the algorithm to each regime separately.
The integral is computed numerically using a global adaptive quadrature algorithm, where the interval of integration is subdivided and the integration takes place on each subdivided interval. Intervals are further subdivided if the algorithm determines that the integral is not computed to sufficient accuracy.
Commodity | ||||
---|---|---|---|---|
Oil log-return Regime 1 | 0.01736 | 0.11675 | 31.648 | 8.0554 |
Oil log-return Regime 2 | -0.4956 | 2.0078 | 2.2260 | 10.141 |
Electricity log-return 1 | 0.00813 | 02.0139 | 67.456 | 0.00154 |
Electricity log-return 2 | 5.7435 | 4.48714 | 76.004 | 6.871e-4 |
In table 6 estimates of the model parameters under both regimes and for the two series of underlying assets are shown.
Given a random sample of a random variable with an associated density function of the data under the real world and unknown parameters , maximum likelihood estimation (MLE) is a method used to estimate the vector valued parameter of the model by maximizing the likelihood function:
with respect to . The value of is constrained to , the space of all feasible values of the parameters. The maximum likelihood function is primarily a function of the unknown parameters . The maximum likelihood estimator is given by:
In tables 7 and 8 estimations based on the empirical m.l.e. for both regimes and models under Gamma and Inverse Gaussian subordinators are shown.
Commodity | ||||
---|---|---|---|---|
Oil log-return Regime 1 | 0.0023 | 0.0431 | 42.928 | 11.9960 |
Oil log-return Regime 2 | -0.372 | 0.52851 | 17.3008 | 88.556 |
Electricity log-return 1 | 5.844e-3 | 1.5002 | 93.271 | 2.1903 |
Electricity log-return 2 | -0.0148 | 7.543 | 90.5900 | 0.01770 |
Commodity | ||||
---|---|---|---|---|
Oil log-return Regime 1 | -0.4883 | 0.5058 | 0.64603 | 63.709 |
Oil log-return Regime 2 | 0.1201 | 2.9707 | 0.00014 | 9.993 |
Electricity log-return 1 | -0.1781 | 0.25873 | 0.91878 | 20.0860 |
Electricity log-return 2 | -0.0191 | 4.9752 | 5.512e-5 | 11.016 |
In each case, the values of the volatility are found to be higher in the second regime, hence justifying the use of a regime switching model. In nearly every method, the value of was found to be very small, which is expected as the long term deterministic contribution to the process is expected to be near zero.
In choosing constraints, we set the lower bound of to be some small number . We set the upper bound of to 5 as the diffusion is expected to be smaller than 1 and for we set the upper bound to be 100, as the expected value of both Inverse Gaussian and Gamma random variables depends on the ratio rather than any particular value for and . The drift is expected to be small, so in most cases, it was constrained to the set .
5. Conclusions
We price European-style options with oil and electricity prices as underlying assets under a switching Levy time-changed noise. These are realistic models that allow to incorporate stylized features in the dynamic of the prices. Our findings show that under this framework a pricing method based on a Fourier-cosine offers an efficient and accurate result when compared with a standard Monte Carlo approach.
In addition, we address the problem of parameter estimation and calibration. To this end we successfully tried different methods based on both, historic and risk-neutral measure.
6. Acknowledgments
This research is supported by the Natural Sciences and Engineering Research Council of Canada.
References
- [1] Awad H. Al-Mohy and Nicholas J. Higham. A New Scaling and Squaring Algorithm for the Matrix Exponential. SIAM J. Appl., 31(3):970–989, 2009.
- [2] O. E. Barndorff-Nielsen. Normal inverse gaussian distributions and stochastic volatility modelling. Scandinavian Journal of Statistics, 24:1–14, 1997.
- [3] Fred Benth, J. Kallsen, and T. Meyer-Brandis. A non-gaussian ornstein-uhlenbeck process for electricity spot price modeling and derivatives pricing. Applied Mathematical Finance, 14(2):153–169, 2007.
- [4] Kyriakos Choudarski. Switching lévy models in continuous time: Finite distributions and option pricing. Center for Computational Finance and Economic Agents, 2005.
- [5] Kyriakos Choudarski. Multinomial method for option pricing under variance gamma. Center for Applied Mathematics and Economics - ISEG, 2018.
- [6] F.Fang and C.W. Oosterlee. A novel pricing method for european options based on fourier-cosine series expansions. Journal on Scientific Computing, 2008.
- [7] MG Figueroa and A Cartea. Pricing in electricity markets: A mean reverting jump diffusion model with seasonality. Applied Mathematical Finance, 12(2):313–335, 2005.
- [8] Elias S.W. Shiu Hans U. Gerber. Option pricing by esscher transforms. Transactions of Society of Actuaries, Vol. 46, 1994.
- [9] Nathaniel E. Helwig. Density and Distribution Estimation.
- [10] Nicholas J. Higham. The scaling and squaring method for the matrix exponential revisited. SIAM J. Appl., 26(4):1179–1193, 2005.
- [11] Boyd J.P. Chebyshev and Fourier spectral methods. Springer Verlag, Berlin, 1989.
- [12] D.B. Madan, P. Carr, and E.C. Chang. The variance gamma process and option pricing. European Finance Review, 79(2), 1998.
- [13] A.I. McLeod and B. Quenneville. Mean Likelihood Estimators. Statistics and Computing 11, 57-65, 2001.
- [14] Andrea Pascucci. PDE and Martingale Methods in Option Pricing. Bocconi University Press, 2011.
- [15] Stefan Trück Rafał Weron, Michael Bierbrauer. Modeling electricity prices: Jump diffusion and Regime Switching. Physica A, Hugo Steinhaus Center, Wroclaw University of Technology, 2004.
- [16] Kyle Smith. Estimation methods of reference evapotranspiration at unsampled locations. New Mexico Institute of Mining and Technology.
- [17] Jun Yu. Empirical characteristic function estimation and its applications. Econometric Reviews, 23(2):93-123, 2004.