Next Article in Journal
Cost-Benefit Analysis of a Standby Retrial System with an Unreliable Server and Switching Failure
Previous Article in Journal
Short-Term Mortality Fluctuations and Longevity Risk-Adjusted Age: Learning the Resilience of a Country to a Health Shock
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Closed-Form Formula for the Conditional Moments of Log Prices under the Inhomogeneous Heston Model

by
Kittisak Chumpong
1,2 and
Patcharee Sumritnorrapong
3,*
1
Division of Computational Science, Faculty of Science, Prince of Songkla University, Songkhla 90110, Thailand
2
Statistics and Applications Research Unit, Faculty of Science, Prince of Songkla University, Songkhla 90110, Thailand
3
Department of Mathematics, Faculty of Science, Silpakorn University, Nakhon Pathom 73000, Thailand
*
Author to whom correspondence should be addressed.
Computation 2022, 10(4), 46; https://doi.org/10.3390/computation10040046
Submission received: 11 February 2022 / Revised: 10 March 2022 / Accepted: 19 March 2022 / Published: 22 March 2022
(This article belongs to the Section Computational Engineering)

Abstract

:
Several financial instruments have been thoroughly calculated via the price of an underlying asset, which can be regarded as a solution of a stochastic differential equation (SDE), for example the moment swap and its exotic types that encourage investors in markets to trade volatility on payoff and are especially beneficial for hedging on volatility risk. In the past few decades, numerous studies about conditional moments from various SDEs have been conducted. However, some existing results are not in closed forms, which are more difficult to apply than simply using Monte Carlo (MC) simulations. To overcome this issue, this paper presents an efficient closed-form formula to price generalized swaps for discrete sampling times under the inhomogeneous Heston model, which is the Heston model with time-parameter functions. The obtained formulas are based on the infinitesimal generator and solving a recurrence relation. These formulas are expressed in an explicit and general form. An investigation of the essential properties was carried out for the inhomogeneous Heston model, including conditional moments, central moments, variance, and skewness. Moreover, the closed-form formula obtained was numerically validated through MC simulations. Under this approach, the computational burden was significantly reduced.

1. Introduction

The Heston model [1] is a diffusion model that consists of two stochastic processes, where the dynamics of the first process involve the instantaneous variance process, namely the Cox–Ingersoll–Ross (CIR) process [2]. The model can be applied to basic derivative products with various prices and allows the instantaneous variance to be the CIR process having its mean reversion. The Heston model appears in a wide variety of real-world applications in different branches of mathematical science; see [1,3,4,5,6] for more details. For example, a well-known application of the Heston model is the variance swap pricing based on log prices; see [7,8,9,10,11]. The model can be also applied to the energy industry as financial applications; see [12,13,14] for more details. In the variance swap context observed by Zhu and Lian [9], two main types of swap valuation approaches exist, numerical and analytical methods. However, the numerical method increases the computational burden. In contrast, the analytical method is poorly studied in general. Investigating the Heston model’s properties is still challenging.
Commonly, the CIR process is applied to describe the dynamics of the interest rates or instantaneous variance in the Heston model of the stochastic interest rate or stochastic volatility models. In practice, strong empirical evidence shows that the movements in practice tend to involve time; see [15,16,17,18,19]; thus, the dynamics of the processes are usually governed by time parameters. In the case of the CIR process, it becomes the extended CIR (ECIR) process [16], which has been investigated in numerous research works such as [16,17], who studied an extension of the CIR process that is more suitable for the data than the CIR process. In 2011, Grzelak and Oosterlee [20] discussed an extension of the Heston model by replacing the constant interest rate by a stochastic environment. However, the properties of the process, such as conditional moments, central moments, and variance, are rarely investigated. In this study, we call the Heston model with time-parameter functions the inhomogeneous Heston model. Unlike the Heston model, the conditional moments and properties of the inhomogeneous Heston model cannot be derived directly by using the transition probability density function (PDF) due to the arbitrary time-parameter functions in the process that make the transition PDFs unknown.
Under sufficient conditions, this research provides a closed-form formula for the conditional moments of log prices under the inhomogeneous Heston model. Based on a partial differential equation (PDE) according to the infinitesimal generator [21], a recursive coefficient function was obtained. The obtained formula was derived by solving the PDE without requiring any knowledge of the transition PDFs. The presented formula is more general in terms of time-dependent parameters than other approaches in the literature. Some essential properties of the inhomogeneous Heston model are observed, which can be beneficial for statistical applications, such as for calculating the variance swap valuation, which is also more general in terms of the time-dependent parameters than Zhu and Lian’s results [9].
The rest of the paper is organized as follows: Section 2 provides a brief overview of the Heston model and the inhomogeneous Heston model. Section 3 mentions the main methodology to address the relevant concepts for our proposed results, which are closed-form formulas for the conditional moments of the inhomogeneous Heston model. Section 4 provides the essential properties of the closed-form formula. Section 5 experimentally validates our proposed formulas for the inhomogeneous Heston model for time-inhomogeneous cases via Monte Carlo (MC) simulations. Section 6 concludes the paper.

2. Inhomogeneous Heston Model

The original Heston model was first introduced by Heston [1] for application to option pricing, which satisfies the dynamics of the following stochastic differential equations (SDEs):
d S t = r S t d t + v t S t d W ˜ t S , d v t = κ ( θ v t ) d t + σ v t d W ˜ t v ,
where S t is the price of the asset at time t, r is a constant interest rate of the asset, v t is a stochastic instantaneous variance, θ is the long-term average of variance of the price, κ is the rate of reverting to θ , σ is the volatility of volatility, and d W ˜ t S and d W ˜ t v are two Winner processes. The stochastic instantaneous variance in the Heston model can be represented by the CIR process [2].
In 2011, Grzelak and Oosterlee [20] discussed an extension of the Heston model, replacing constant interest rate r by time-dependent interest rate r ( t ) . In addition, References [16,17,18] studied an extension of the CIR process, which is more suitable for the data than the CIR process. Consequently, we considered an extended Heston model by using r ( t ) and a general form of the ECIR that appeared in [18] to describe the stochastic instantaneous variance and having a general form as follows:
d S t = r ( t ) S t d t + v t S t d W ˜ t S , d v t = κ ( t ) ( θ ( t ) v t ) d t + σ ( t ) v t d W ˜ t v ,
where θ ( t ) and κ ( t ) are smooth and bounded time-dependent parameter functions; d W ˜ t S and d W ˜ t v are correlated Winner processes with correlation coefficient ρ based on a filtered probability space ( Ω , F t , { F t } 0 t T , Q ) generated by an adapted the Brownian motion W ˜ t S and W ˜ t v , where Ω is a sample space, Q is a risk-neutral measure, and the family { F t } 0 t T of the σ -field on Ω parametrized over t [ 0 , T ] is a filtration. By applying Itô’s lemma [21] with x t : = ln S t for all t 0 to the first equation of (2), the process for the log price can be rewritten as:
d x t = d S t S t 1 2 d S t S t 2 = r ( t ) 1 2 v t d t + v t d W ˜ t S .
Then, the system (2) becomes:
d x t = r ( t ) 1 2 v t d t + v t d W ˜ t S , d v t = κ ( t ) ( θ ( t ) v t ) d t + σ ( t ) v t d W ˜ t v . d W ˜ t S d W ˜ t v = ρ d t .
To obtain a dynamical system with mutually independent Winner processes W t S and W t v , by applying the Cholesky decomposition method [22] with the system (3), the system (3) can be rewritten as:
d x t d v t = r ( t ) 1 2 v t κ ( t ) ( θ ( t ) v t ) d t + Σ C W t S W t v ,
where matrices Σ and C are defined by:
Σ = v t 0 0 σ ( t ) v t and C = 1 0 ρ 1 ρ 2 satisfying C C = 1 ρ ρ 1 ,
and Winner processes W t S and W t v are mutually independent under Q satisfying:
d W ˜ t S d W ˜ t v = C d W t S d W t v .
Finally, the dynamical system (3) becomes:
d x t = r ( t ) 1 2 v t d t + v t d W t S , d v t = κ ( t ) ( θ ( t ) v t ) d t + ρ σ ( t ) v t d W t S + σ ( t ) v t 1 ρ 2 d W t v .
To ensure that a pathwise unique strong solution exists for the ECIR process v t given in (4) and to avoid zero a.s. with respect to the measure Q for all t [ 0 , T ] , the two assumptions below proposed by Maghsoodi [17], Rogers and Williams [23], and Ekström et al. [24] are required.
Assumption 1.
The functions θ ( t ) , κ ( t ) , and σ ( t ) in the ECIR process v t given in (4) are strictly positive, smooth, and continuous time-dependent functions on [ 0 , T ] . Moreover, the ECIR process v t holds the inequality 2 κ ( t ) θ ( t ) > σ ( t ) 2 .
According to Assumption 1, this paper defines the parameter function space of the inhomogeneous Heston model (4) as follows:
r ( t ) , κ ( t ) , θ ( t ) , σ ( t ) , τ , ρ R + 5 × [ 1 , 1 ] 2 κ ( t ) θ ( t ) > σ ( t ) 2
for all t [ 0 , T ] where τ = T t 0 .
Under Assumption 1 and the parameter space (5), this study proposes a closed-form formula for log prices on the basis of the inhomogeneous Heston model (4), where the parameters depend on time, in the form:
E Q x T n F t = E Q x T n x t = x , v t = v : = E t Q x T n , 0 t T ,
for the degree n N . The idea of our results relies on a solution of the PDE given in the infinitesimal generator for a two-dimensional diffusion process [21], which corresponds to the solution of (6). Roughly speaking, by expressing the solution of the PDE as a polynomial expression, we can solve its coefficients to obtain a closed-form formula directly. The motivation for the form of conditional moments, that is a solution to the PDE, is based on [25,26,27,28,29]; considering that both SDEs in the inhomogeneous Heston model (4) have linear drift and linear squared diffusion coefficients, the infinitesimal generator maps polynomials to polynomials; see more details in [25,26,30,31].

3. Main Results

This section presents a closed-form formula for the conditional moments corresponding to the two-factor model (4) based on the solution of the PDE according to the infinitesimal generator for the two-dimensional diffusion process [21]. The formula is provided in Theorem 1 as function u ( n ) ( x , v , τ ) : = E t Q x T n . Next, we derive a formula for the first conditional moment of log price x t as a consequence of Theorem 1, which is represented in Corollary 1.
Theorem 1.
Suppose that n 2 is an integer and S t follows the dynamics described by the inhomogeneous Heston model (4), then:
u ( n ) ( x , v , τ ) = j = 0 n = 0 j A j , ( n ) ( τ ) x v j ,
where τ = T t 0 , ( x , v ) R × R + , and A j , ( n ) ( τ ) can be obtained by solving the system of recursive ordinary differential equations (ODEs), for all 0 j n ,
d d τ A n , n ( n ) ( τ ) = 0 ,
d d τ A n , b ( n ) ( τ ) = 1 2 ( b + 1 ) A n , b + 1 ( n ) ( τ ) κ ( T τ ) ( n b ) A n , b ( n ) ( τ ) for 0 b n 1 ,
d d τ A a , a ( n ) ( τ ) = r ( T τ ) ( a + 1 ) A a + 1 , a + 1 ( n ) ( τ ) + κ ( T τ ) θ ( T τ ) A a + 1 , a ( n ) ( τ ) for 1 a n 1 , d d τ A a , b ( n ) ( τ ) = 1 2 ( b + 2 ) ( b + 1 ) A a + 1 , b + 2 ( n ) ( τ ) + 1 2 σ 2 ( T τ ) ( ( a + 1 ) b ) ( a b ) + κ ( T τ ) θ ( T τ ) ( ( a + 1 ) b ) A a + 1 , b ( n ) ( τ ) + ρ σ ( T τ ) ( b + 1 ) ( a b ) + r ( T τ ) ( b + 1 ) A a + 1 , b + 1 ( n ) ( τ ) 1 2 ( b + 1 ) A a , b + 1 ( n ) ( τ )
κ ( T τ ) ( a b ) A a , b ( n ) ( τ ) , for 1 b + 1 a n 1 , and
d d τ A 0 , 0 ( n ) ( τ ) = r ( T τ ) A 1 , 1 ( n ) ( τ ) + κ ( T τ ) θ ( T τ ) A 1 , 0 ( n ) ( τ )
subject to the initial conditions A n , n ( n ) ( 0 ) = 1 and A a , b ( n ) ( 0 ) = 0 for 0 b a n 1 .
Proof. 
From Appendix A of Rujivan and Zhu [32], we obtain the PDE associated with the Heston model (2) when x t = ln S t as follows:
u ( n ) τ + 1 2 v 2 u ( n ) x 2 + 1 2 σ 2 ( t ) v 2 u ( n ) v 2 + ρ σ ( t ) v 2 u ( n ) x v + r ( t ) 1 2 v u ( n ) x + κ ( t ) ( θ ( t ) v ) u ( n ) v = 0
which are subject to the terminal condition:
u ( n ) ( x , v , 0 ) = x n
for all ( x , v ) R × R + . Let τ = T t > 0 . We solve the PDE (13) subject to the terminal condition (14) by assuming that the solution can be written in the form:
u ( n ) ( x , v , t ) = j = 0 n = 0 j A j , ( n ) ( τ ) x v j
where A j , ( n ) ( τ ) is the function depending on τ for 0 j n . Calculating all partial derivatives of u ( n ) in (13) by using the solution form (15) and shifting index gives the relations:
u ( n ) τ = d A 0 , 0 ( n ) d τ + j = 1 n 1 = 0 j 1 x v j d A j , ( n ) d τ + j = 1 n 1 x j d A j , j ( n ) d τ + = 0 n 1 x v n d A n , ( n ) d τ + x n d A n , n ( n ) d τ ,
1 2 v 2 u ( n ) x 2 = j = 1 n 1 = 0 j 1 1 2 ( + 2 ) ( + 1 ) x v j A j + 1 , + 2 ( n ) ,
1 2 σ 2 ( T τ ) v 2 u ( n ) v 2 = j = 1 n 1 = 0 j 1 1 2 σ 2 ( T τ ) ( ( j + 1 ) ) ( j ) x v j A j + 1 , ( n ) ,
ρ σ ( T τ ) v 2 u ( n ) x v v j ( + 1 ) A j , ( n ) = j = 1 n 1 = 0 j 1 ρ σ ( T τ ) ( + 1 ) ( j ) x v j A j + 1 , + 1 ( n ) , r ( T τ ) u ( n ) x = r ( T τ ) A 1 , 1 ( n ) + j = 1 n 1 = 0 j 1 r ( T τ ) ( + 1 ) x v j A j + 1 , + 1 ( n )
+ j = 1 n 1 r ( T τ ) ( j + 1 ) x j A j + 1 , j + 1 ( n ) ,
1 2 v u ( n ) x = j = 1 n 1 = 0 j 1 1 2 ( + 1 ) x v j A j , + 1 ( n ) + = 0 n 1 1 2 ( + 1 ) x v n A n , + 1 ( n ) , κ ( T τ ) θ ( T τ ) u ( n ) v = κ ( T τ ) θ ( T τ ) A 1 , 0 ( n )
+ j = 1 n 1 = 0 j 1 κ ( T τ ) θ ( T τ ) ( ( j + 1 ) ) x v j A j + 1 , ( n ) + j = 1 n 1 κ ( T τ ) θ ( T τ ) x j A j + 1 , j ( n ) ,
and:
κ ( T τ ) v u ( n ) v = j = 1 n 1 = 0 j 1 κ ( T τ ) ( j ) x v j A j , ( n ) + = 0 n 1 κ ( T τ ) ( n ) x v n A n , ( n ) .
Substituting (16)–(23) in (13) and comparing the coefficients of x v j for 0 j n provide the system of recursive ODEs shown in (8)–(12), as required.    □
Corollary 1.
Suppose that S t follows the dynamics described by the inhomogeneous Heston model (4), then:
u ( 1 ) ( x , v , τ ) = j = 0 1 = 0 j A j , ( 1 ) ( τ ) x v j
where τ = T t 0 , ( x , v ) R × R + , and A j , ( n ) ( τ ) can be obtained by solving the system of recursive ODEs, for all 0 j n ,
d d τ A 1 , 1 ( 1 ) ( τ ) = 0 , d d τ A 1 , 0 ( 1 ) ( τ ) = 1 2 A 1 , 1 ( 1 ) ( τ ) κ ( T τ ) A 1 , 0 ( 1 ) ( τ ) , d d τ A 0 , 0 ( 1 ) ( τ ) = r ( T τ ) A 1 , 1 ( 1 ) ( τ ) + κ ( T τ ) θ ( T τ ) A 1 , 0 ( 1 ) ( τ )
which are subject to the initial conditions A 1 , 1 ( 1 ) ( 0 ) = 1 and A 1 , 0 ( 1 ) ( 0 ) = A 0 , 0 ( 1 ) ( 0 ) = 0 .
Proof. 
We can follow the proof of Theorem 1 when n = 1 and use the fact that:
2 u ( 1 ) x 2 = 2 u ( 1 ) v 2 = 2 u ( 1 ) x v = 0
to complete the proof.    □
Note that our proposed results in this section are more general than other results in the existing literature [7,8,9,10,11,33,34]. Unlike the methods proposed in [7,8,9,10,11,33,34], our method is based on the PDE generated from the infinitesimal generator for the two-dimensional diffusion process, which attempts to assume the solution of the infinitesimal generator in the form of a combination of polynomial expansions between x t and v t .
One primary concern when we work with the inhomogeneous Heston model (4) is that (8)–(12) and (25) may be indirectly evaluated as exact solutions. Therefore, the conditional moment (7) cannot be expressed as an exact formula. To overcome this issue, a numerical integration method is required, for example, the simple and well-known methods, such as the trapezoidal rule and Simpson’s rule, or higher accuracy methods, such as the Chebyshev integration method [35,36,37], which has been illustrated to produce a much higher accuracy than the other mentioned integration methods when using the same discretizing nodes.

4. Mathematical Properties

This section provides the benefits of all our results in Section 3, such as the first and second conditional moments, conditional variance, conditional central moments, and conditional skewness for the log price x t of the two-factor model (4) with piecewise constant parameters. Then, we can solve the system of recursive ODEs; see more details in [38].

4.1. First Conditional Moment

By applying Corollary 1, the first conditional moment of the log price based on the Heston model, (4) with κ ( t ) = k , θ ( t ) = θ , and σ ( t ) = σ , can be expressed as:
E t Q x T = u ( 1 ) ( x , v , τ ) = A 0 , 0 ( 1 ) ( τ ) + A 1 , 0 ( 1 ) ( τ ) v + A 1 , 1 ( 1 ) ( τ ) x ,
where τ = T t , and solving the initial value problem given in Theorem 1 yields:
A 1 , 1 ( 1 ) ( τ ) = 1 , A 1 , 0 ( 1 ) ( τ ) = 1 2 κ e κ τ e κ τ 1 , A 0 , 0 ( 1 ) ( τ ) = 1 2 κ e κ τ θ θ e κ τ 2 r κ τ e κ τ + θ κ τ e κ τ .
Remark 1.
The recursive coefficient functions of the first conditional moment in our result agree with the result in Proposition 2.3 of Rujivan and Zhu [32] by comparing A 0 , 0 ( 1 ) and A 1 , 0 ( 1 ) with A 1 and A 2 in their work, respectively.

4.2. Conditional Variance and Central Moments

The nth moment about the mean (the nth central moment) is expressed as:
μ t n : = E t Q x T E t Q x T n = k = 0 n 1 n k n k E t Q x T k E t Q x T n k ,
where the zeroth conditional moment is equal to 1. The first few well-known conditional central moments have intuitive interpretations: μ t 0 , known as the conditional zeroth central moment, is equal to 1; the first central conditional moment μ t 1 is equal to 0; the second conditional central moment μ t 2 is called conditional variance; higher orders, such as the third and fourth conditional central moments, are used to define conditional standardized moments, well known as the skewness and kurtosis, respectively.
In the case of conditional variance μ t 2 , it can be calculated by the first and second conditional moments by using the following formula:
Var t Q x T : = Var Q x T F t = E Q x T 2 F t E t Q x T 2 .
By applying the recurrent formula given in Theorem 1, the second conditional moment of the log price based on the Heston model can be expressed as:
E t Q x T 2 = u ( 2 ) ( x , v , τ ) = A 0 , 0 ( 2 ) ( τ ) + A 1 , 0 ( 2 ) ( τ ) v + A 1 , 1 ( 2 ) ( τ ) x + A 2 , 0 ( 2 ) ( τ ) v 2 + A 2 , 1 ( 2 ) ( τ ) x v + A 2 , 2 ( 2 ) ( τ ) x 2 ,
where we use (8)–(12) to obtain the following system of ODEs:
d d τ A 2 , 2 ( 2 ) ( τ ) = 0 , d d τ A 2 , 1 ( 2 ) ( τ ) = A 2 , 2 ( 2 ) ( τ ) κ A 2 , 1 ( 2 ) ( τ ) , d d τ A 2 , 0 ( 2 ) ( τ ) = 1 2 A 2 , 1 ( 2 ) ( τ ) 2 κ A 2 , 0 ( 2 ) ( τ ) , d d τ A 1 , 1 ( 2 ) ( τ ) = 2 r A 2 , 2 ( 2 ) ( τ ) + κ θ A 2 , 1 ( 2 ) , d d τ A 1 , 0 ( 2 ) ( τ ) = A 2 , 2 ( 2 ) ( τ ) + σ 2 + 2 κ θ A 2 , 0 ( 2 ) ( τ ) + ρ σ + r A 2 , 1 ( 2 ) ( τ ) 1 2 A 1 , 1 ( 2 ) ( τ ) κ A 1 , 0 ( 2 ) ( τ ) , d d τ A 0 , 0 ( 2 ) ( τ ) = r A 1 , 1 ( 2 ) ( τ ) + κ θ A 1 , 0 ( 2 ) ( τ ) .
Then, we use a symbolic package, namely Dsolve, in Mathematica for solving the initial value problem given in Theorem 1 when n = 2 . The solutions can be expressed as:
A 2 , 2 ( 2 ) ( τ ) = 1 , A 2 , 1 ( 2 ) ( τ ) = 1 κ e κ τ e κ τ 1 , A 2 , 0 ( 2 ) ( τ ) = 1 4 κ 2 e 2 κ τ e κ τ 1 2 , A 1 , 1 ( 2 ) ( τ ) = 1 κ e κ τ θ θ e κ τ 2 r κ τ e κ τ + θ κ τ e κ τ , A 1 , 0 ( 2 ) ( τ ) = 1 4 κ 3 e 2 κ τ ( 2 κ θ + 4 κ θ e κ τ 2 κ θ e 2 κ τ 4 κ 2 e κ τ + 4 κ 2 e 2 κ τ + 4 r κ 2 τ e κ τ 4 r κ 2 τ e 2 κ τ 2 θ κ 2 τ e κ τ + 2 θ κ 2 τ e 2 κ τ + 4 ρ σ κ e κ τ 4 ρ σ κ e 2 κ τ + 4 ρ σ κ 2 τ e κ τ σ 2 + σ 2 e 2 κ τ 2 σ 2 κ τ e κ τ ) , A 0 , 0 ( 2 ) ( τ ) = 1 8 κ 3 e 2 κ τ ( 2 θ 2 κ 4 θ 2 κ e κ τ + 2 θ 2 κ e 2 κ τ + 8 θ κ 2 e κ τ 8 θ κ 2 e 2 κ τ 8 r θ κ 2 τ e κ τ + 8 r θ κ 2 τ e 2 κ τ + 4 θ 2 κ 2 τ e κ τ 4 θ 2 κ 2 τ e 2 κ τ + 8 r 2 κ 3 τ 2 e 2 κ τ + 8 θ κ 3 τ e 2 κ τ 8 r θ κ 3 τ 2 e 2 κ τ + 2 θ 2 κ 3 τ 2 e 2 κ τ 16 θ ρ σ κ e κ τ + 16 θ ρ σ κ e 2 κ τ 8 θ ρ σ κ 2 τ e κ τ 8 θ ρ σ κ 2 τ e 2 κ τ + θ σ 2 + 4 θ σ 2 e κ τ 5 θ σ 2 e 2 κ τ + 4 θ σ 2 κ τ e κ τ + 2 θ σ 2 κ τ e 2 κ τ ) .
Remark 2.
The recursive coefficient functions of the second conditional moment in our result agree with the results proposed by Rujivan and Zhu [32] by comparing term by term the coefficients of x t and v t .

4.3. Conditional Skewness and Higher Conditional Moments

Conditional skewness can be computed from the first, second, and third conditional moments by using the following formula:
Skew Q [ x T | F t ] = E t Q x T E t Q x T 3 Var t Q [ x T ] 3 2 = E t Q x T 3 3 E t Q x T E t Q x T 2 + 4 E t Q x T 3 Var t Q [ x T ] 3 2 .
By applying Theorem 1, the third moment of the log price based on the Heston model can be expressed as:
E t Q x T 3 = u ( 3 ) ( x , v , t ) = A 0 , 0 ( 3 ) ( τ ) + A 1 , 0 ( 3 ) ( τ ) v + A 1 , 1 ( 3 ) ( τ ) x + A 2 , 0 ( 3 ) ( τ ) v 2 + A 2 , 1 ( 3 ) ( τ ) x v + A 2 , 2 ( 3 ) ( τ ) x 2 + A 3 , 0 ( 3 ) ( τ ) v 3 + A 3 , 1 ( 3 ) ( τ ) x v 2 + A 3 , 2 ( 3 ) ( τ ) x 2 v + A 3 , 3 ( 3 ) ( τ ) x 3 ,
where we solve the initial value problem (8)–(12) given in Theorem 1 when n = 3 .
Higher conditional moments using the nth conditional moments can be computed by applying Theorem 1 as well. To obtain the recursive coefficient functions, A j , ( n ) for 0 j n , we solve A j , ( n ) foreach term in the order of the diagram illustrated in Figure 1.
The steps to solve recursive coefficient functions in Figure 1 are explained as follows. The recursive function coefficient A n , n ( n ) is solved first and is always equal to 1. Next, we compute A n , n 1 ( n ) , A n , n 2 ( n ) , , A n , 1 ( n ) , and A n , 0 ( n ) by solving the system of ODEs of (9). After obtaining A n , n 1 ( n ) , we can solve A n 1 , n 1 ( n ) by using Formula (10). For each k = n 2 , n 3 , , 1 , 0 , when A n , k ( n ) is obtained, A n 1 , k ( n ) can be solved using Formula (11). After terms A n 1 , n 1 ( n ) , A n 1 , n 2 ( n ) , , A n 1 , 1 ( n ) , and A n 1 , 0 ( n ) are obtained, we can solve terms A n 2 , n 2 ( n ) , A n 2 , n 3 ( n ) , , A n 2 , 1 ( n ) , and A n 2 , 0 ( n ) by using Formulas (10) and (11) again. Continue this process until A 1 , 1 ( n ) and A 1 , 0 ( n ) are obtained. Recursive function coefficient A 0 , 0 ( n ) is computed lastly by solving Formula (12).
Moreover, we give the pseudocode in Algorithm 1 from Figure 1 to obtain the nth conditional moment for n 2 .
Algorithm 1 Recursive coefficient functions.
Input: n 2 conditional moments
Output: A a , b ( n ) for a { n , n 1 , , 0 } and b { a , a 1 , , 0 }
1:
for a n to 0 (step = 1 ) do
2:
    for  b a to 0 (step = 1 ) do
3:
        if  a = n  then
4:
           if  b = a  then
5:
               Solve (8)
6:
           else
7:
               Solve (9)
8:
           end if
9:
        else if  1 a n 1  then
10:
           if  b = a  then
11:
               Solve (10)
12:
           else
13:
               Solve (11)
14:
           end if
15:
        else if  a = 0  then
16:
           Solve (12)
17:
        end if
18:
    end for
19:
end for

5. Numerical Validation

These experimental validations discuss the inhomogeneous Heston model (4) by employing the Euler–Maruyama (EM) discretization method [39] to the model. We let x ^ t and v ^ t , respectively, be time-discretized approximations of x t and v t , which are generated on the time interval [ 0 , T ] in N s steps, i.e., 0 = t 0 < t 1 < t 2 < < t N s = T . Then, the EM approximation for (4) is performed by:
x ^ t i = x ^ t i 1 + r ( t i 1 ) 1 2 v ^ t i 1 d t + v ^ t i 1 Δ t Z i + 1 ( 1 ) , v ^ t i = v ^ t i 1 + κ ( t i 1 ) ( θ ( t i 1 ) v ^ t i 1 ) d t + ρ σ ( t i 1 ) v ^ t i 1 Z i + 1 ( 1 ) + σ ( t i 1 ) v ^ t i 1 1 ρ 2 Δ t Z i + 1 ( 2 ) ,
where the initial values x ^ t 0 = x t 0 , v ^ t 0 = v t 0 , the time-step size is Δ t = t i t i 1 , and the standard normal random variables Z i ( 1 ) and Z i ( 2 ) are mutually independent.
In this study, the numerical simulations for obtaining the comparison results were implemented by applying MATLAB R2021b running on a laptop computer configured with the following details: Intel(R) Core(TM) i7-5700HQ, CPU @2.70 GHz, 16.0 GB RAM, Windows 10 Pro, Version 20H2, and 64 bit operating system.
For the numerical testing, we used parameters r = 0.01 , κ = 0.1 , θ = 0.1 , ρ = 0.01 , and σ = 0.001 . The comparison results between Formula (7) given in Theorem 1 and the MC simulations with 10,000 sample paths are shown in Figure 2 and Figure 3. These figures illustrate that the results obtained from the MC simulations (colored circles) completely match with the closed-form Formula (7) (colored lines) for the first and second conditional moments, thereby validating the accuracy of the closed-form Formula (7) obtained from Theorem 1.
In addition, Table 1 and Table 2 demonstrate the mean absolute errors (MAEs) between Formula (7) and the MC simulations and the average runtimes (ARTs) of the MC simulations for different numbers of the sample paths: 20,000, 40,000, and 80,000, to validate the accuracy and efficiency of our proposed formula. These ARTs are the average of the computational times to calculate the MC simulations for fixing τ = 1 at each initial value x = 1 , 5 , 10 and v = 1 , 5 , 10 . Table 1 and Table 2 conclude that the more the sample path numbers increase, the more the MAEs decrease. However, the ARTs also increase. Moreover, we can see the efficiency of our proposed Formula (7) from Theorem 1, which provides the exact value of u ( 1 ) ( x , v , τ ) . Our proposed Formula (7) employs a small computational time around 0.1532 s. Finally, we depict the surface plots of the first and second conditional moments u ( 1 ) ( x , v , τ ) and u ( 2 ) ( x , v , τ ) by varying x , v [ 1 , 10 ] at different τ = 0.25 , 0.5 , 0.75 , 1 in Figure 4 and Figure 5.

6. Conclusions

In this study, we derived a closed-form formula of conditional moments for the inhomogeneous Heston model (4) in the term of a polynomial expansion, as provided in Theorem 1. We further presented a formula for the first conditional moment u ( 1 ) ( x , v , τ ) proposed in Corollary 1 as a consequence of Theorem 1. Additionally, some essential properties of the inhomogeneous Heston model (4), such as the first and second conditional moments, and the skewness were observed and discussed in Section 4. The algorithm to solve the recursive coefficient functions (8)–(12) given in Theorem 1 was provided in Algorithm 1.
Finally, we validated our closed-form formula for the first and second conditional moments by comparing it with the MC simulations via several experimental examples in Section 5. The experiments in each example indicated that our proposed formula and the MC simulations completely matched. Figure 2 and Figure 3 and Table 1 and Table 2 confirmed that our closed-form formula provides good accuracy and reduces the computational burden compared with the MC simulations.
This technique presented here can be also applied to the other two-factor models, such as Schwartz’s two- or three-factor model. However, one primary concern for our presented formulas is that the coefficients A j , ( n ) ( τ ) in (7) cannot be obtained directly by solving the system of recursive ODEs. In such a case, a numerical method is required to manipulate those coefficients.

Author Contributions

Conceptualization, K.C. and P.S.; methodology, K.C. and P.S.; software, K.C. and P.S.; validation, K.C. and P.S.; formal analysis, K.C. and P.S.; investigation, K.C. and P.S.; writing—original draft preparation, K.C. and P.S.; writing—review and editing, K.C. and P.S.; visualization, K.C. and P.S.; supervision, K.C. and P.S.; project administration, K.C. and P.S.; funding acquisition, K.C. and P.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We are grateful for a variety of valuable suggestions from the anonymous Referees, which substantially improved the quality and presentation of the results. All errors are the authors’ own responsibility.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ARTAverage runtime
CIRCox–Ingersoll–Ross
ECIRExtended Cox–Ingersoll–Ross
EMEuler–Maruyama
MAEMean absolute error
MCMonte Carlo
ODEOrdinary differential equation
PDEPartial differential equation
PDFProbability density function
SDEStochastic differential equation

References

  1. Heston, S.L. A closed-form solution for options with stochastic volatility with applications to bond and currency options. Rev. Financ. Stud. 1993, 6, 327–343. [Google Scholar] [CrossRef] [Green Version]
  2. Cox, J.C.; Ingersoll, J.E., Jr.; Ross, S.A. A theory of the term structure of interest rates. In Theory of Valuation; World Scientific: Singapore, 2005; pp. 129–164. [Google Scholar]
  3. He, X.J.; Zhu, P.S. An alternative form used to calibrate the Heston option pricing model. Comput. Math. Appl. 2016, 71, 1831–1842. [Google Scholar] [CrossRef] [Green Version]
  4. He, X.J.; Zhu, P.S. A closed-form pricing formula for European options under the Heston model with stochastic interest rate. J. Comput. Appl. Math. 2018, 335, 323–333. [Google Scholar] [CrossRef] [Green Version]
  5. Zeng, X.C.; Zhu, P.S. A new simple tree approach for the Heston’s stochastic volatility model. Comput. Math. Appl. 2019, 78, 1993–2010. [Google Scholar] [CrossRef]
  6. Lu, X.; Zhu, P.S.; Yan, D. Nonlinear PDE model for European options with transaction costs under Heston stochastic volatility. Commun. Nonlinear Sci. Numer. Simul. 2021, 103, 105986. [Google Scholar] [CrossRef]
  7. Zhu, P.S.; Lian, G.H. On the convexity correction approximation in pricing volatility swaps and VIX futures. New Math. Natural Comput. 2018, 14, 383–401. [Google Scholar] [CrossRef]
  8. He, X.J.; Zhu, P.S. A series-form solution for pricing variance and volatility swaps with stochastic volatility and stochastic interest rate. Comput. Math. Appl. 2018, 76, 2223–2234. [Google Scholar] [CrossRef]
  9. Zhu, P.S.; Lian, G.H. A closed-form exact solution for pricing variance swaps with stochastic volatility. Math. Financ. Int. J. Math. Stat. Financ. Econ. 2011, 21, 233–256. [Google Scholar]
  10. Zhu, P.S.; Lian, G.H. On the valuation of variance swaps with stochastic volatility. Appl. Math. Comput. 2012, 219, 1654–1669. [Google Scholar] [CrossRef]
  11. Zhu, P.S.; Lian, G.H. Analytically pricing volatility swaps under stochastic volatility. J. Comput. Appl. Math. 2015, 288, 332–340. [Google Scholar] [CrossRef]
  12. Batrancea, L. An econometric approach regarding the impact of fiscal pressure on equilibrium: Evidence from electricity, gas and oil companies listed on the New York Stock Exchange. Mathematics 2021, 9, 630. [Google Scholar] [CrossRef]
  13. Batrancea, L.; Rus, M.I.; Masca, E.S.; Morar, I.D. Fiscal Pressure as a Trigger of Financial Performance for the Energy Industry: An Empirical Investigation across a 16-Year Period. Energies 2021, 14, 3769. [Google Scholar] [CrossRef]
  14. Batrancea, L.; Rathnaswamy, M.K.; Batrancea, I. A panel data analysis on determinants of economic growth in seven non-BCBS Countries. J. Knowl. Econ. 2021, 12, 1–15. [Google Scholar] [CrossRef]
  15. Hansen, L.P.; Scheinkman, J.A. Back to the Future: Generating Moment Implications for Continuous-Time Markov Processes. Econometrica 1995, 63, 767–804. [Google Scholar] [CrossRef]
  16. Hull, J.; White, A. Pricing interest-rate-derivative securities. Rev. Financ. Stud. 1990, 3, 573–592. [Google Scholar] [CrossRef]
  17. Maghsoodi, Y. Solution of the extended CIR term structure and bond option valuation. Math. Financ. 1996, 6, 89–109. [Google Scholar] [CrossRef]
  18. Rujivan, S. A closed-form formula for the conditional moments of the extended CIR process. J. Comput. Appl. Math. 2016, 297, 75–84. [Google Scholar] [CrossRef]
  19. Nonsoong, P.; Mekchay, K.; Rujivan, S. An analytical option pricing formula for mean-reverting asset with time-dependent parameter. ANZIAM J. 2021, 63, 178–202. [Google Scholar]
  20. Grzelak, L.A.; Oosterlee, C.W. On the Heston model with stochastic interest rates. SIAM J. Financ. Math. 2011, 2, 255–286. [Google Scholar] [CrossRef] [Green Version]
  21. Karatzas, I.; Shreve, S. Brownian Motion and Stochastic Calculus; Springer Science & Business Media: New York, NY, USA, 2012; Volume 113. [Google Scholar]
  22. Strang, G. Introduction to Linear Algebra; Wellesley-Cambridge Press: Wellesley, MA, USA, 1993; Volume 3. [Google Scholar]
  23. Rogers, L.C.G.; Williams, D. Diffusions, Markov Processes and Martingales: Volume 2, Itô Calculus; Cambridge University Press: Cambridge, UK, 2000; Volume 2. [Google Scholar]
  24. Ekström, E.; Lötstedt, P.; Tysk, J. Boundary values and finite difference methods for the single factor term structure equation. Appl. Math. Financ. 2009, 16, 253–259. [Google Scholar] [CrossRef]
  25. Forman, J.L.; Sørensen, M. The Pearson diffusions: A class of statistically tractable diffusion processes. Scand. J. Stat. 2008, 35, 438–465. [Google Scholar] [CrossRef]
  26. Schmidt, M.F. Pearson Diffusions with Jumps. Ph.D. Thesis, Technische Universitat Munchen, München, Germany, 2008. [Google Scholar]
  27. Sutthimat, P.; Mekchay, K.; Rujivan, S. Explicit formula for conditional expectations of product of polynomial and exponential function of affine transform of extended Cox-Ingersoll-Ross process. J. Phys. Conf. Ser. IOP Pub. 2018, 1132, 012083. [Google Scholar] [CrossRef]
  28. Sutthimat, P.; Rujivan, S.; Mekchay, K.; Rakwongwan, U. Analytical formula for conditional expectations of path-dependent product of polynomial and exponential functions of extended Cox–Ingersoll–Ross process. Res. Math. Sci. 2022, 9, 1–17. [Google Scholar] [CrossRef]
  29. Sutthimat, P.; Mekchay, K. Closed-form formulas for conditional moments of inhomogeneous Pearson diffusion processes. Commun. Nonlinear Sci. Numer. Simul. 2022, 106, 106095. [Google Scholar] [CrossRef]
  30. Chumpong, K.; Mekchay, K.; Rujivan, S. A simple closed-form formula for the conditional moments of the Ornstein–Uhlenbeck process. Songklanakarin J. Sci. Technol. 2020, 42, 836–845. [Google Scholar]
  31. Chumpong, K.; Mekchay, K.; Thamrongrat, N. Analytical formulas for pricing discretely-sampled skewness and kurtosis swaps based on Schwartz’s one-factor model. Songklanakarin J. Sci. Technol. 2021, 43, 1–6. [Google Scholar]
  32. Rujivan, S.; Zhu, P.S. A simplified analytical approach for pricing discretely-sampled variance swaps with stochastic volatility. Appl. Math. Lett. 2012, 25, 1644–1650. [Google Scholar] [CrossRef] [Green Version]
  33. Han, Y.; Zhao, L. A closed-form pricing formula for variance swaps under MRG–Vasicek model. Comput. Appl. Math. 2019, 38, 1–17. [Google Scholar] [CrossRef]
  34. Zheng, W.; Kwok, Y.K. Closed form pricing formulas for discretely sampled generalized variance swaps. Math. Financ. 2014, 24, 855–881. [Google Scholar] [CrossRef]
  35. Boonklurb, R.; Duangpan, A.; Treeyaprasert, T. Modified finite integration method using Chebyshev polynomial for solving linear differential equations. J. Numer. Ind. Appl. Math 2018, 12, 1–19. [Google Scholar]
  36. Boonklurb, R.; Duangpan, A.; Gugaew, P. Numerical solution of direct and inverse problems for time-dependent Volterra integro-differential equation using finite integration method with shifted Chebyshev polynomials. Symmetry 2020, 12, 497. [Google Scholar] [CrossRef] [Green Version]
  37. Duangpan, A.; Boonklurb, R.; Juytai, M. Numerical solutions for systems of fractional and classical integro-differential equations via Finite Integration Method based on shifted Chebyshev polynomials. Fractal Fract. 2021, 5, 103. [Google Scholar] [CrossRef]
  38. Oosterlee, C.W.; Grzelak, L.A. Mathematical Modeling and Computation in Finance: With Exercises and Python and Matlab Computer Codes; World Scientific: Singapore, 2019. [Google Scholar]
  39. Asmussen, S.; Glynn, P.W. Stochastic Simulation: Algorithms and Analysis; Springer Science & Business Media: New York, NY, USA, 2007; Volume 57. [Google Scholar]
Figure 1. Diagram for solving recursive coefficient functions from A n , n ( n ) to A 0 , 0 ( n ) .
Figure 1. Diagram for solving recursive coefficient functions from A n , n ( n ) to A 0 , 0 ( n ) .
Computation 10 00046 g001
Figure 2. Validation tests of the first and second conditional moments for the initial values x = 10 and v = 1 , 2 , 3 , , 10 at different τ = 0.25 , 0.5 , 0.75 , 1 . (a) The first conditional moment u ( 1 ) ( 10 , v , τ ) . (b) The second conditional moment u ( 2 ) ( 10 , v , τ ) .
Figure 2. Validation tests of the first and second conditional moments for the initial values x = 10 and v = 1 , 2 , 3 , , 10 at different τ = 0.25 , 0.5 , 0.75 , 1 . (a) The first conditional moment u ( 1 ) ( 10 , v , τ ) . (b) The second conditional moment u ( 2 ) ( 10 , v , τ ) .
Computation 10 00046 g002
Figure 3. Validation tests of the first and second conditional moments for the initial values v = 10 and x = 1 , 2 , 3 , , 10 at different τ = 0.25 , 0.5 , 0.75 , 1 . (a) The first conditional moment u ( 1 ) ( x , 10 , τ ) . (b) The second conditional moment u ( 2 ) ( x , 10 , τ ) .
Figure 3. Validation tests of the first and second conditional moments for the initial values v = 10 and x = 1 , 2 , 3 , , 10 at different τ = 0.25 , 0.5 , 0.75 , 1 . (a) The first conditional moment u ( 1 ) ( x , 10 , τ ) . (b) The second conditional moment u ( 2 ) ( x , 10 , τ ) .
Computation 10 00046 g003
Figure 4. Surface plots of the first conditional moment u ( 1 ) ( x , v , τ ) by varying x , v [ 1 , 10 ] at different values of τ . (a) u ( 1 ) ( x , v , 0.25 ) . (b) u ( 1 ) ( x , v , 0.5 ) . (c) u ( 1 ) ( x , v , 0.75 ) . (d) u ( 1 ) ( x , v , 1 ) .
Figure 4. Surface plots of the first conditional moment u ( 1 ) ( x , v , τ ) by varying x , v [ 1 , 10 ] at different values of τ . (a) u ( 1 ) ( x , v , 0.25 ) . (b) u ( 1 ) ( x , v , 0.5 ) . (c) u ( 1 ) ( x , v , 0.75 ) . (d) u ( 1 ) ( x , v , 1 ) .
Computation 10 00046 g004
Figure 5. Surface plots of the second conditional moment u ( 2 ) ( x , v , τ ) by varying x , v [ 1 , 10 ] at different values of τ . (a) u ( 2 ) ( x , v , 0.25 ) . (b) u ( 2 ) ( x , v , 0.5 ) . (c) u ( 2 ) ( x , v , 0.75 ) . (d) u ( 2 ) ( x , v , 1 ) .
Figure 5. Surface plots of the second conditional moment u ( 2 ) ( x , v , τ ) by varying x , v [ 1 , 10 ] at different values of τ . (a) u ( 2 ) ( x , v , 0.25 ) . (b) u ( 2 ) ( x , v , 0.5 ) . (c) u ( 2 ) ( x , v , 0.75 ) . (d) u ( 2 ) ( x , v , 1 ) .
Computation 10 00046 g005
Table 1. MAEs of the first conditional moment u ( 1 ) ( x , v , 1 ) between our formula and the MC simulations together with the average runtimes of the MC simulations.
Table 1. MAEs of the first conditional moment u ( 1 ) ( x , v , 1 ) between our formula and the MC simulations together with the average runtimes of the MC simulations.
xNo. of Paths v = 1 v = 5 v = 10
MAEsARTsMAEsARTsMAEsARTs
120,000 6.64 × 10 2 9.14 6.80 × 10 2 8.78 6.88 × 10 2 10.05
40,000 5.43 × 10 2 17.98 6.65 × 10 3 19.11 5.53 × 10 2 18.65
80,000 3.23 × 10 3 36.57 4.74 × 10 3 36.88 7.51 × 10 3 35.52
520,000 6.73 × 10 2 8.81 6.68 × 10 2 9.24 6.14 × 10 2 9.11
40,000 5.45 × 10 2 19.22 6.28 × 10 3 18.05 5.45 × 10 2 18.63
80,000 6.54 × 10 3 35.64 4.95 × 10 3 37.06 2.99 × 10 3 37.69
1020,000 6.72 × 10 2 9.54 7.33 × 10 2 9.47 5.14 × 10 2 9.17
40,000 5.41 × 10 2 18.87 6.23 × 10 2 18.55 4.45 × 10 2 17.57
80,000 6.04 × 10 3 37.87 9.55 × 10 3 36.14 8.53 × 10 3 36.36
Table 2. MAEs of the second conditional moment u ( 2 ) ( x , v , 1 ) between our formula and the MC simulations together with the average runtimes of the MC simulations.
Table 2. MAEs of the second conditional moment u ( 2 ) ( x , v , 1 ) between our formula and the MC simulations together with the average runtimes of the MC simulations.
xNo. of Paths v = 1 v = 5 v = 10
MAEsARTsMAEsARTsMAEsARTs
120,000 7.54 × 10 2 11.14 4.15 × 10 2 9.54 6.23 × 10 2 10.13
40,000 6.87 × 10 3 18.05 7.11 × 10 2 19.91 6.38 × 10 2 20.57
80,000 4.13 × 10 3 39.78 5.09 × 10 3 40.24 7.99 × 10 3 39.76
520,000 5.34 × 10 2 10.81 6.80 × 10 2 10.49 5.41 × 10 2 9.61
40,000 4.55 × 10 2 19.52 5.69 × 10 3 21.59 3.74 × 10 2 21.03
80,000 8.54 × 10 3 38.30 2.12 × 10 3 39.14 8.36 × 10 3 40.11
1020,000 1.25 × 10 2 9.98 7.23 × 10 2 10.08 7.91 × 10 2 11.79
40,000 7.28 × 10 3 20.17 4.15 × 10 2 21.11 5.11 × 10 2 20.50
80,000 5.10 × 10 3 39.88 8.83 × 10 2 40.47 8.94 × 10 3 39.96
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chumpong, K.; Sumritnorrapong, P. Closed-Form Formula for the Conditional Moments of Log Prices under the Inhomogeneous Heston Model. Computation 2022, 10, 46. https://doi.org/10.3390/computation10040046

AMA Style

Chumpong K, Sumritnorrapong P. Closed-Form Formula for the Conditional Moments of Log Prices under the Inhomogeneous Heston Model. Computation. 2022; 10(4):46. https://doi.org/10.3390/computation10040046

Chicago/Turabian Style

Chumpong, Kittisak, and Patcharee Sumritnorrapong. 2022. "Closed-Form Formula for the Conditional Moments of Log Prices under the Inhomogeneous Heston Model" Computation 10, no. 4: 46. https://doi.org/10.3390/computation10040046

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop