These experimental validations discuss the inhomogeneous Heston model (
4
) by employing the Euler–Maruyama (EM) discretization method [
39
] to the model. We let
, respectively, be time-discretized approximations of
, which are generated on the time interval
steps, i.e.,
. Then, the EM approximation for (
4
) is performed by:
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
, and
. 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
at each initial value
.
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
. 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
by varying
at different
in
Figure 4
and
Figure 5
.