<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JMF</journal-id><journal-title-group><journal-title>Journal of Mathematical Finance</journal-title></journal-title-group><issn pub-type="epub">2162-2434</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jmf.2023.133026</article-id><article-id pub-id-type="publisher-id">JMF-127292</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Business&amp;Economics</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Forecasting Crude Oil Price Volatility by Heston Model
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Patrick</surname><given-names>Kandege Mwanakatwe</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Joanitha</surname><given-names>Daniel</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kulwa</surname><given-names>Roberth Nzungu</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>College of Business Education, Dar es Salaam, Tanzania</addr-line></aff><aff id="aff1"><addr-line>Eastern Africa Statistical Training Center, Dar es Salaam, Tanzania</addr-line></aff><pub-date pub-type="epub"><day>04</day><month>07</month><year>2023</year></pub-date><volume>13</volume><issue>03</issue><fpage>408</fpage><lpage>420</lpage><history><date date-type="received"><day>6,</day>	<month>July</month>	<year>2023</year></date><date date-type="rev-recd"><day>26,</day>	<month>August</month>	<year>2023</year>	</date><date date-type="accepted"><day>29,</day>	<month>August</month>	<year>2023</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Given the significance and complexity of forecasting the crude oil price volatility, this paper introduces the Heston model to predict volatility dynamics of crude oil price. The high-frequency intra-day data of the West Texas Intermediate (WTI) market serves to model the problem. Furthermore, the study used the Euler-Maruyama scheme to simulate Heston model using an error analysis. On the other hand, the study used the mean square error (MSE), the mean average error (MAE), and the root means square error (RMSE) for the forecast accuracy of the GARCH-type models. The results of the error analysis indicated that Heston’s stochastic volatility model is more consistent with oil performance data than traditional GARCH-class models. The study’s findings demonstrated that the Heston model is more economical in terms of setup and is capable of handling stylized facts.
 
</p></abstract><kwd-group><kwd>Stochastic Volatility</kwd><kwd> Euler-Maruyama Scheme</kwd><kwd> Heston Model</kwd><kwd> Crude Oil Price Volatility</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Globally, crude oil prices, gold prices, currency exchange rates and other macroeconomic indicators play a fundamental role in the global economy. To clarify, the crude oil price is always treated more seriously since oil is the blood in the vessels of the economy. Forecasting crude oil price volatility provides market participants with valuable information regarding market uncertainty. Overall, oil price variability implies enormous losses or gains and therefore lower incomes or higher reserves to achieve the development targets [<xref ref-type="bibr" rid="scirp.127292-ref1">1</xref>] . Therefore, forecasting the price of crude oil and its volatility has attracted a lot of attention from researchers, policy makers and investors.</p><p>Moreover, instabilities in the price system affect governments in many sectors, such as, planning and decision-making regarding the revenue system. Oil price uncertainties are also linked to inflation and have implications for the cost of consumer products and goods in industry. As a result, it may have a critical effect on the policy order of petroleum-dependent economies. Furthermore, the association between the price of oil and agricultural commodity prices is important for the world food policy, and the sensitivity of the different economic agents on which the main input in the production process is oil [<xref ref-type="bibr" rid="scirp.127292-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref4">4</xref>] .</p><p>Numerous studies consider the modeling and forecasting the volatility of crude oil price by using improved GARCH models. Although various work has been done to find the most suitable model that offers the best performance of out-of-sample forecasts, none of the models has always outperformed the other [<xref ref-type="bibr" rid="scirp.127292-ref2">2</xref>] . For example, the Autoregressive Conditional Heteroscedasticity (ARCH) model, considered a powerful tool to describe conditional, and historical volatilities, was introduced by Engle [<xref ref-type="bibr" rid="scirp.127292-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref7">7</xref>] . This was followed by the introduction of the generalized autoregressive conditional heteroskedasticity (GARCH) model as an extension to the ARCH models [<xref ref-type="bibr" rid="scirp.127292-ref8">8</xref>] . Moreover, different scholars have developed variations of GARCH models, for example integrated GARCH (IGARCH), exponential GARCH (EGARCH), asymmetrical power GARCH (APGARCH), and fractional integrated GARCH (FIGARCH) [<xref ref-type="bibr" rid="scirp.127292-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref9">9</xref>] . These extension models were enhancing the GARCH model to capture the features of the time series data. Therefore, from an investor’s perspective, the forecast nature of future returns and volatility in oil markets is critical in determining asset prices, hedging, pricing of derivatives, and risk control. Given its vital global significance and the minimization of the negative effect fluctuations of oil price, the academic literature over the past few years has focused on modeling and forecasting oil price volatility. The market for crude oil sometimes seems at times relatively quiet, while other highly volatile markets [<xref ref-type="bibr" rid="scirp.127292-ref2">2</xref>] .</p><p>The upgraded GARCH-type models are capable of capturing the most important stylized facts [<xref ref-type="bibr" rid="scirp.127292-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref10">10</xref>] . For more information on stylised facts, please refer to the following studies [<xref ref-type="bibr" rid="scirp.127292-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref12">12</xref>] . These models are popular for the modeling of time-variable conditional volatility as a deterministic function of lagged variance, lagged conditional squared residuals, and the past observations with the future volatility [<xref ref-type="bibr" rid="scirp.127292-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref13">13</xref>] . In addition, these models are parametric and usually assess daily, weekly or monthly volatility using sampled data at the same rate. However, these models may not capture the fat-tail property of financial data.</p><p>Currently, stochastic volatility (SV) models are alternative existing models to accurately capture stylized facts [<xref ref-type="bibr" rid="scirp.127292-ref7">7</xref>] . The SV models are non-parametric and are based on the time-continuous probability process. In addition, the variance in the SV models is treated as an unobserved quantity that admits a stochastic, and logarithmic first-order autoregressive processes. In general, these models extend the geometric Brownian motion model by incorporating an additional source of uncertainty. Therefore, in describing volatility behavior, the volatility approximation is more realistic [<xref ref-type="bibr" rid="scirp.127292-ref3">3</xref>] . Although the (SV) model is theoretically appealing, it is difficult, because the unobserved volatility process introduces the model into a non-linear model. This process leads to the likelihood function depending on the high-dimension integrals [<xref ref-type="bibr" rid="scirp.127292-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref9">9</xref>] .</p><p>The study’s new contribution to the literature is the introduction of the Heston stochastic volatility model to forecast the price volatility of crude oil. The model develops the Black and Scholes model (BSM) by incorporating the process driven by a Cox-Ingersoll-Ross (CIR) process [<xref ref-type="bibr" rid="scirp.127292-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref15">15</xref>] . Furthermore, the model can capture the volatility clustering, the leverage effect, and the heavy-tailed nature of the return distributions. In this model, while the volatility of the variance controls the kurtosis of the underlying asset return distribution, the correlation defines its asymmetry. To conclude, the model is analytical tractable [<xref ref-type="bibr" rid="scirp.127292-ref14">14</xref>] . Despite the advantages of the model, the fundamental challenge is the complexity of the approximation process. Compared to models like BSM, the implementation of the Heston model involves more sophisticated calculations, and a more difficult process for the model calibration. Since the closed-form solutions for non linear SDEs are rarely available or are too hard to obtain, numerical approximations are very important. To overcome this challenge, this study employs the Euler-Maruyama scheme to approximate the price volatility model.</p><p>To sum up, the main objective of this study is to introduce the Heston stochastic volatility model in forecasting price volatility of a crude oil. Moreover, the innovations of this study are; introduction of the Heston model to measure the price volatility of crude oil, and applying the Euler-Maruyama method to simulate the Heston model. Moreover, in the accuracy analysis of the model, the study compares the Heston model performance with the improved GARCH-type models by performing error analysis. Normally, the smallest error implies a good approximation measure. For improved GARCH-type models, three error measures to evaluate the forecasting accuracy of models were employed. These are the mean squared error (MSE), the root means squared error (RMSE), and the mean absolute error (MAE).</p><p>The remaining sections of this paper are organized as follows. In Section 2, the mathematical model is presented. Moreover, Section 3 presents the Data and preliminary analysis; a numerical example is in Section 4. Finally, Section 5 concludes the study.</p><sec id="s1_1"><title>1.1. Mathematical Model</title><p>In this study, the crude oil market is assumed to be complete, frictionless, and continuously open over a fixed time interval [0, T]. Moreover, the financial market uncertainties are defined and modeled using a complete filtered probability space ( Ω , F , P ) . In the probability space above, Ω is the sample space, F = F ( t ) , t ≥ 0 , is the information available at a time t, and P is the historical probability measure.</p></sec><sec id="s1_2"><title>1.2. The Heston Model</title><p>In this study, we consider that crude oil price dynamics assume a stochastic volatility model, particularly the Heston model. The introduction of a stochastic volatility model is because the volatility is not constant or deterministic instead it is a random process. Hence, the asset price at time t follows the system of stochastic differential equations (SDE) given:</p><p>d Y ( t ) = Y ( t ) ( μ d t + V ( t )   d W 1 ( t ) ) , (1)</p><p>d V ( t ) = β ( θ − V ( t ) ) d t + σ V ( t )   d W 2 ( t ) , (2)</p><p>Y ( 0 ) = Y 0     and     V ( 0 ) = V 0 . (3)</p><p>In addition, β is the mean reversion rate, θ is the long-run variance, and the volatility of volatility (variance of volatility) is denoted by σ . Thus, the Heston volatility model is the system of two correlated SDEs namely the price of asset and the volatility process, see (1) and (2). In addition, to ensure that V ( t ) is almost surely non-negative (the Feller condition has to be net), that is, 2 β θ &gt; σ 2 . Moreover, W 1 ( t ) and W 2 ( t ) are standard Brownian motions with a nonzero correlation.</p></sec><sec id="s1_3"><title>1.3. The Euler-Maruyama Method</title><p>The simplest and most useful scheme for the approximation of the numerical solution of the stochastic differential equations is the Euler-Maruyama. This is a generalization of the Euler’s approach method in ordinary differential equations and stochastic differential equations [<xref ref-type="bibr" rid="scirp.127292-ref16">16</xref>] . Consider the SDE below:</p><p>d Y ( t ) = μ ( t , Y ( t ) ) d t + σ ( t , Y ( t ) ) d W ( t ) ,   Y ( 0 ) = Y 0 , (4)</p><p>where σ and μ are scalar functions, W ( t ) is the Wiener process, and Y ( 0 ) is the initial condition. The solution to (4) admits the process Y t :</p><p>Y t = Y 0 + ∫ 0 t     μ ( s , Y s ) d s + ∫ 0 t     σ ( s , Y s ) d W s . (5)</p><p>To approximate the solution of the SDE on the interval [ 0, T ] , time is discretized into N equal subintervals with width Δ t = T N . Therefore, the Euler-Maruyama approximation to the actual solution of (4) is the Markov chain X expressed in the form:</p><p>Y n + 1 = Y n + μ ( t n , Y n ) Δ t + σ ( t n , Y n ) Δ W n , (6)</p><p>with Y n + 1 standing for an approximation, Δ t = t n + 1 − t n = T N , Δ W = W n + 1 − W n , and n = 0 , 1 , 2 , ⋯ , N . From the expression, Δ W is normally distributed, i.e., Δ W ~ N ( 0, Δ t ) .</p><p>Proposition 1.1 Assume that Y n + 1 , and V n + 1 are discrete approximate of Y and V respectively. The corresponding continuous Euler-Maruyama method is then used to approximate the solution to the Heston model is given by:</p><p>Y n + 1 = Y n ( 1 + μ Δ t + V n Δ W n ) ,</p><p>V n + 1 = V n + β ( θ − V n ) Δ t + σ V n Δ W n .</p><p>where Y n + 1 is the approximate price, and V n + 1 is the approximate volatility.</p></sec><sec id="s1_4"><title>1.4. Numerical Approximation of the Model</title><p>Simulation methods are critical for approximating numerical solutions of SDEs. For the model efficiency, the focus is on analyzing errors measured at t = T by quantity.</p><p>ε Δ t = E | Y ( T ) − Y &#175; ( T ) | .</p><p>This process determines whether the method is converging to the exact solution. The Euler-Maruyama scheme exhibits both strongly and weakly convergent properties [<xref ref-type="bibr" rid="scirp.127292-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref19">19</xref>] . The strong (convergent) error measures the error of the approximate Y sampling paths on average, the pathwise error is the random quantity that satisfies:</p><p>l i m Δ t → 0 E ( | Y ( T ) − Y &#175; ( T ) | ) = 0. (7)</p><p>From above expression, E is the expected value, while Y &#175; ( T ) is the approximation of Y ( t ) at time t = T calculated with a constant step Δ t .</p><p>Conversely, it is weakly convergent (weak error) if the random quantity satisfies:</p><p>l i m Δ t → 0 | E [ f ( Y ( T ) ) ] − E ( f ( Y &#175; ( T ) ) ) | = 0, (8)</p><p>for all f polynomials.</p></sec><sec id="s1_5"><title>1.5. Approximation of GARCH-Type Models</title><p>In the present study, the symmetric GARCH and asymmetric GARCH (EGARCH and TGARCH) models compare with the Heston model. These models are discussed extensively in the few studies mentioned here [<xref ref-type="bibr" rid="scirp.127292-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref20">20</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref21">21</xref>] . To assess the forecast performance of the models above, the Mean Square Error (MSE), Root Mean Square Error (RMSE), and Mean Absolute Error (MAE) are used. These error measures are the most well-known for testing model accuracy [<xref ref-type="bibr" rid="scirp.127292-ref2">2</xref>] . The model with the smallest error is referred to be the best one.</p><sec id="s1_5_1"><title>1.5.1. The Means Squared Error (MSE)</title><p>The MSE is regularly used to compare forecasting performance of models. It is considered the most suitable measure for determining methods that avoid significant errors. Thus, the MSE is computed by averaging the square of the difference between the original and predicted values of the data.</p><p>RMSE = ∑ t n e t 2 n (9)</p><p>where, e = Y T − Y &#175; .</p></sec><sec id="s1_5_2"><title>1.5.2. The Root Means Squared Error (RMSE)</title><p>RMSE is the standard deviation for errors that occur when a forecast is performed. This is similar to mean square error (MSE), but the root of the value is taken into consideration when determining the accuracy of the model. It is expressed by:</p><p>RMSE = ∑ t n e t 2 n (10)</p></sec><sec id="s1_5_3"><title>1.5.3. The Mean Absolute Error (MAE)</title><p>It is expressed as:</p><p>MAE = ∑ t = 1 n | e t Y t | n (11)</p><p>where | e t Y t | is the absolute error calculated on the values adjusted for a specific forecasting method.</p></sec></sec></sec><sec id="s2"><title>2. Data Description and Preliminary Analysis</title><p>To carry out the numerical illustration, this study employs daily spot prices of West Texas Intermediate (WTI) observations. The data is taken from the U.S. Energy Information Administration (EIA). In brief, the WTI crude oil is a specific grade of crude oil and one of the main three benchmarks in oil pricing, along with Brent and Dubai Crude.</p><p>The sampling period covers the period from January 4, 2009, to December 31, 2019, and consists 2761 observations. Since the logarithmic returns are analytically tractable when sub-period returns are related together to form returns over long intervals, then the crude oil price of each series is transformed into logarithmic returns. Study focuses on the logarithmic behavior of the crude oil returns. Furthermore, simulations using the Heston model and the application of the Euler-Maruyama numerical method to approximate the model are performed.</p><sec id="s2_1"><title>2.1. Preliminary Analysis</title><p>The preliminary analysis reveals significant differences in price movements during the period under consideration. Similarly, there are signs of positive asymmetry in the statistical distribution of crude oil prices, implying extreme of the right tail. Also, the returns are non-Normal, which proved significantly asymmetrical positive and excess kurtosis, as is expected from daily returns.</p><p>For the kurtosis, the price of crude oil is leptokurtic, which implies the fat tails than the normal distribution, see <xref ref-type="table" rid="table1">Table 1</xref>. Particularly, <xref ref-type="table" rid="table1">Table 1</xref> presents the following; descriptive statistics, the unit root test, the normality test, and the ARCH effect test for crude oil. The results indicate that the mean returns are measured by standard deviation. In addition, returns show leptokurtic features (i.e., fat-tailed) and therefore, the variance of oil prices for crude primarily reflects irregular but extreme differences. Similarly, returns are skewed positively, implying that the series has a longer right tail than the left tail.</p><p>Moreover, the unit root test, and the Augmented Dickey-Fuller (ADF) tests examine the presence of a unit root [<xref ref-type="bibr" rid="scirp.127292-ref22">22</xref>] [<xref ref-type="bibr" rid="scirp.127292-ref23">23</xref>] . The method tests the hypotheses H0: A series is non-static versus H1: A series is stationary. The results of unit root test for the data, altogether at levels 0.01 and 0.05 reject the null hypothesis that there is a unit root in the returns.</p><p>Furthermore, the ARCH effect test looks at the existence of a heteroscedasticity of crude oil data. The ARCH effect test reveals the presence of strong conditional heteroscedasticity for the crude oil prices, which is common in financial data. Therefore, there is sufficient evidence to reject the null hypothesis that there is no ARCH effect. Likewise, the Jarque-Bera (JB) statistic using kurtosis and skewness test information illustrates non-normality. Therefore, it leads to the rejection of the null hypothesis.</p></sec><sec id="s2_2"><title>2.2. Volatility and Approximation of Model Parameters</title><p>Considering Y t as the price of crude oil on day t, then daily spot price return transformation is:</p><p>S t = log ( Y t Y t − 1 ) , (12)</p><p>where S t is the daily return on crude oil, Y t is the current day crude oil price, and Y t − 1 is the crude oil price of the previous day. Also, the daily square returns are taken as an approximation of the real volatilities. Using the transformation results the annual and daily volatilities are determined with their respective variances as presented in <xref ref-type="table" rid="table2">Table 2</xref>. Therefore, we find the daily and annual volatility of crude oil prices ( σ ) with the respective variances ( σ 2 ) for each year by using the Parkinson’s extreme values method [<xref ref-type="bibr" rid="scirp.127292-ref24">24</xref>] .</p></sec></sec><sec id="s3"><title>3. Numerical Illustrations</title><p>The daily observations of crude oil return for the period from 02.01.2019 to 31.12.2019 amount to 250 days are used in this study. From these observations, we compute the model parameters (see <xref ref-type="table" rid="table3">Table 3</xref>).</p><p>Figures 1-3 show the spot prices, returns, and volatility of crude oil respectively. The results reveal an asymmetrical pattern in crude oil price behavior and returns. It implies that the performance patterns suggest evidence of volatility clustering. Thus, periods of relatively low volatility are the response to the periods of high volatility. The unusual peaks in these figures are evidence of major unstable trends in crude oil price returns.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Basic statistics for the crude oil data</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Parameter</th><th align="center" valign="middle" >Value</th></tr></thead><tr><td align="center" valign="middle"  colspan="2"  >A: Descriptive statistics</td></tr><tr><td align="center" valign="middle" >Maximum</td><td align="center" valign="middle" >113</td></tr><tr><td align="center" valign="middle" >Minimum</td><td align="center" valign="middle" >26.19</td></tr><tr><td align="center" valign="middle" >Mean</td><td align="center" valign="middle" >71.5394 (3.87E−05)</td></tr><tr><td align="center" valign="middle" >Stand.dev.</td><td align="center" valign="middle" >21.51654 (0.0098)</td></tr><tr><td align="center" valign="middle" >Skewness</td><td align="center" valign="middle" >0.1319</td></tr><tr><td align="center" valign="middle" >Kurtosis</td><td align="center" valign="middle" >4.0524</td></tr><tr><td align="center" valign="middle"  colspan="2"  >B: Normality test</td></tr><tr><td align="center" valign="middle" >Jarque-Bera</td><td align="center" valign="middle" >2506.982***</td></tr><tr><td align="center" valign="middle"  colspan="2"  >C: Unit root test</td></tr><tr><td align="center" valign="middle" >ADF</td><td align="center" valign="middle" >−74.32***</td></tr><tr><td align="center" valign="middle" >PP</td><td align="center" valign="middle" >−73.54***</td></tr><tr><td align="center" valign="middle"  colspan="2"  >D: ARCH effects</td></tr><tr><td align="center" valign="middle" >LM(10)</td><td align="center" valign="middle" >35.27</td></tr></tbody></table></table-wrap><p>Note: ***indicate statistical significance at 0.05 level.</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Crude oil volatilities, WTI 2009-2019</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Time interval</th><th align="center" valign="middle" >Number of Trading days</th><th align="center" valign="middle" >Minimum Price</th><th align="center" valign="middle" >Maximum price</th><th align="center" valign="middle" >Annual Volatility</th><th align="center" valign="middle" >Annual Variance</th><th align="center" valign="middle" >Daily Volatility</th><th align="center" valign="middle" >Daily Variance</th></tr></thead><tr><td align="center" valign="middle" >2.1.2009-31.12.2009</td><td align="center" valign="middle" >251</td><td align="center" valign="middle" >34.03</td><td align="center" valign="middle" >81.02</td><td align="center" valign="middle" >0.2320</td><td align="center" valign="middle" >0.054</td><td align="center" valign="middle" >0.00021</td><td align="center" valign="middle" >4.573E−08</td></tr><tr><td align="center" valign="middle" >4.1.2010-31.12.2010</td><td align="center" valign="middle" >252</td><td align="center" valign="middle" >64.78</td><td align="center" valign="middle" >91.47</td><td align="center" valign="middle" >0.1280</td><td align="center" valign="middle" >0.016</td><td align="center" valign="middle" >0.00006</td><td align="center" valign="middle" >4.228E−09</td></tr><tr><td align="center" valign="middle" >3.1.2011-29.12.2011</td><td align="center" valign="middle" >252</td><td align="center" valign="middle" >75.40</td><td align="center" valign="middle" >113.40</td><td align="center" valign="middle" >0.0226</td><td align="center" valign="middle" >0.001</td><td align="center" valign="middle" >0.00009</td><td align="center" valign="middle" >8.076E−09</td></tr><tr><td align="center" valign="middle" >3.1.2012-31.12.2012</td><td align="center" valign="middle" >252</td><td align="center" valign="middle" >75.40</td><td align="center" valign="middle" >109.39</td><td align="center" valign="middle" >0.1316</td><td align="center" valign="middle" >0.017</td><td align="center" valign="middle" >0.00069</td><td align="center" valign="middle" >4.717E−09</td></tr><tr><td align="center" valign="middle" >2.1.2013-27.12.2013</td><td align="center" valign="middle" >252</td><td align="center" valign="middle" >86.55</td><td align="center" valign="middle" >110.61</td><td align="center" valign="middle" >0.0792</td><td align="center" valign="middle" >0.006</td><td align="center" valign="middle" >0.00025</td><td align="center" valign="middle" >6.184E−10</td></tr><tr><td align="center" valign="middle" >3.1.2014-31.12.2014</td><td align="center" valign="middle" >249</td><td align="center" valign="middle" >53.45</td><td align="center" valign="middle" >107.96</td><td align="center" valign="middle" >0.1145</td><td align="center" valign="middle" >0.132</td><td align="center" valign="middle" >0.00053</td><td align="center" valign="middle" >2.773E−09</td></tr><tr><td align="center" valign="middle" >2.1.2015-30.12.2015</td><td align="center" valign="middle" >252</td><td align="center" valign="middle" >34.55</td><td align="center" valign="middle" >61.35</td><td align="center" valign="middle" >0.2030</td><td align="center" valign="middle" >0.041</td><td align="center" valign="middle" >0.00016</td><td align="center" valign="middle" >2.674E−08</td></tr><tr><td align="center" valign="middle" >4.1.2016-30.12.2016</td><td align="center" valign="middle" >252</td><td align="center" valign="middle" >26.19</td><td align="center" valign="middle" >54.01</td><td align="center" valign="middle" >0.2111</td><td align="center" valign="middle" >0.045</td><td align="center" valign="middle" >0.00018</td><td align="center" valign="middle" >3.126E−08</td></tr><tr><td align="center" valign="middle" >3.1.2017-29.12.2017</td><td align="center" valign="middle" >250</td><td align="center" valign="middle" >42.48</td><td align="center" valign="middle" >60.45</td><td align="center" valign="middle" >0.1071</td><td align="center" valign="middle" >0.012</td><td align="center" valign="middle" >0.00005</td><td align="center" valign="middle" >2.106E−09</td></tr><tr><td align="center" valign="middle" >2.1.2018-31.12.2018</td><td align="center" valign="middle" >249</td><td align="center" valign="middle" >44.48</td><td align="center" valign="middle" >77.41</td><td align="center" valign="middle" >0.1367</td><td align="center" valign="middle" >0.019</td><td align="center" valign="middle" >0.00008</td><td align="center" valign="middle" >5.638E−09</td></tr><tr><td align="center" valign="middle" >4.1.2019-09.12.2019</td><td align="center" valign="middle" >250</td><td align="center" valign="middle" >46.31</td><td align="center" valign="middle" >66.23</td><td align="center" valign="middle" >0.1483</td><td align="center" valign="middle" >0.022</td><td align="center" valign="middle" >0.00009</td><td align="center" valign="middle" >8.757E−09</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Computed parameters</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Parameter</th><th align="center" valign="middle" >Symbol</th><th align="center" valign="middle" >Value</th></tr></thead><tr><td align="center" valign="middle" >Initial price</td><td align="center" valign="middle" >Y 0</td><td align="center" valign="middle" >46.31</td></tr><tr><td align="center" valign="middle" >Initial volatility</td><td align="center" valign="middle" >V 0</td><td align="center" valign="middle" >2.3 &#215; 10<sup>−4</sup></td></tr><tr><td align="center" valign="middle" >Vol-volatility</td><td align="center" valign="middle" >σ</td><td align="center" valign="middle" >9.0 &#215; 10<sup>−5</sup></td></tr><tr><td align="center" valign="middle" >long-run variance</td><td align="center" valign="middle" >θ</td><td align="center" valign="middle" >8.8 &#215; 10<sup>−9</sup></td></tr><tr><td align="center" valign="middle" >Reversion rate</td><td align="center" valign="middle" >β</td><td align="center" valign="middle" >2.95 &#215; 10<sup>−3</sup></td></tr><tr><td align="center" valign="middle" >Mean log-return</td><td align="center" valign="middle" >μ</td><td align="center" valign="middle" >4.94 &#215; 10<sup>−4</sup></td></tr></tbody></table></table-wrap><p>Particularly, <xref ref-type="fig" rid="fig1">Figure 1</xref> shows the change in the spot price for the crude oil. Precisely, it shows that over the 2014-2016, crude oil prices declined sharply, reflecting increased uncertainty in the crude oil market. Moreover, <xref ref-type="fig" rid="fig2">Figure 2</xref> illustrates the dynamics of crude oil returns. It implies that a number of global supply and demand tremors cause significant fluctuations in crude oil markets. Generally speaking, crude oil prices tend to reflect a high degree of uncertainty over time.</p><sec id="s3_1"><title>3.1. Simulation Results</title><p>This section starts by focusing on the logarithmic behavior of crude oil prices and conducting simulations using Heston’s stochastic volatility model. First of all, the January 2009 to January 2019 observations were used for parameters computation. Moreover, to forecast, the data from 02.01.2019 to 31.12.2019 were used. That is, for the parameters estimation the interval t = 1 to N was used while for forecasting N + 1 was used. This study uses Euler-Maruyama’s numerical method to simulate the Heston model.</p><p>In addition, the following parameters were also used in the simulations: the initial time “ t = 0 ”, the terminal time “ T = 1 ”, the number of discretization between “ n = 100 ”, Δ t = 0.01 (the uniform mesh size), the number of paths) “ N = 1000 ”. <xref ref-type="fig" rid="fig3">Figure 3</xref> displays the results of the crude oil volatility simulation. The simulated results suggest that crude oil prices tend to be asymmetrical with lower kurtosis.</p></sec><sec id="s3_2"><title>3.2. Error Analysis</title><p>Normally, for the efficacy of the model, the emphasis is on error analysis. We start by defining the error by</p><p>E | Y ( T ) − Y &#175; ( T ) | .</p><p>To test the convergence strength for the Euler-Maruyama, we use N = 2 9 dicretized Brownian paths over [ 0,1 ] , and five different stepsizes: Δ t = 2 p − 1 d t for 1 ≤ p ≤ 5 . Results for this process are shown in <xref ref-type="table" rid="table5">Table 5</xref>. These results are compared with the results obtained from GARCH-type models as shown in <xref ref-type="table" rid="table5">Table 5</xref>. To conclude, the model with the lowest error implies a more accurate estimate of the model.</p><p><xref ref-type="table" rid="table4">Table 4</xref>, and <xref ref-type="table" rid="table5">Table 5</xref> present error analysis results for the Euler-Maruyama scheme and GARCH-type models respectively. Particularly, <xref ref-type="table" rid="table4">Table 4</xref> shows the error analysis results for the Heston model. Likewise, the error analysis for the GARCH-type models is presented in <xref ref-type="table" rid="table5">Table 5</xref> as shown. The results in <xref ref-type="table" rid="table5">Table 5</xref> show that the GARCH model offers the best accurate forecast than the two improved GARCH-type models (EGARCH and TGARCH). In general, results in <xref ref-type="table" rid="table4">Table 4</xref>, and <xref ref-type="table" rid="table5">Table 5</xref>, reveal the small errors in Heston model approximation than the improved GARCH models. Basing on results, it is evident that the Heston model can estimate better crude oil price volatility than the counterpart improved GARCH-type models.</p></sec></sec><sec id="s4"><title>4. Conclusion</title><p>This study introduces the Heston stochastic volatility model to model the crude oil price volatility. It applied the Euler-Maruyama scheme to approximate the Heston stochastic volatility model. Moreover, the differences in the trend of prices for the covered period are revealed by simulation results. Furthermore, results show that the Heston model fits data well compared to counterpart improved GARCH-type models in the approximation of the price volatility.</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> The error analysis, the Euler-Maruyama scheme</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Step size (Δt)</th><th align="center" valign="middle" >Error</th></tr></thead><tr><td align="center" valign="middle" >0.0010</td><td align="center" valign="middle" >0.000564</td></tr><tr><td align="center" valign="middle" >0.1010</td><td align="center" valign="middle" >0.010153</td></tr><tr><td align="center" valign="middle" >0.2010</td><td align="center" valign="middle" >0.011524</td></tr><tr><td align="center" valign="middle" >0.3010</td><td align="center" valign="middle" >0.010771</td></tr><tr><td align="center" valign="middle" >0.4010</td><td align="center" valign="middle" >0.012742</td></tr><tr><td align="center" valign="middle" >0.5010</td><td align="center" valign="middle" >0.013142</td></tr><tr><td align="center" valign="middle" >0.6010</td><td align="center" valign="middle" >0.012421</td></tr><tr><td align="center" valign="middle" >0.7010</td><td align="center" valign="middle" >0.012101</td></tr><tr><td align="center" valign="middle" >0.8010</td><td align="center" valign="middle" >0.010621</td></tr><tr><td align="center" valign="middle" >0.9010</td><td align="center" valign="middle" >0.011283</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> The Error analysis, the GARCH-type models</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Model</th><th align="center" valign="middle" >MSE</th><th align="center" valign="middle" >RMSE</th><th align="center" valign="middle" >MAE</th></tr></thead><tr><td align="center" valign="middle" >GARCH</td><td align="center" valign="middle" >0.01578</td><td align="center" valign="middle" >0.01681</td><td align="center" valign="middle" >0.01198</td></tr><tr><td align="center" valign="middle" >EGARCH</td><td align="center" valign="middle" >0.01572</td><td align="center" valign="middle" >0.01695</td><td align="center" valign="middle" >0.01656</td></tr><tr><td align="center" valign="middle" >TGARCH</td><td align="center" valign="middle" >0.01587</td><td align="center" valign="middle" >0.01957</td><td align="center" valign="middle" >0.01803</td></tr></tbody></table></table-wrap><p>Because of the strategic role of crude oil price volatility and its effects to all countries globally, it is essential to employ different forecasting methods. In the future study, we will work on jump-diffusion models to investigate the behavior of crude oil price volatility.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Mwanakatwe, P.K., Daniel, J. and Nzungu, K.R. (2023) Forecasting Crude Oil Price Volatility by Heston Model. Journal of Mathematical Finance, 13, 408-420. https://doi.org/10.4236/jmf.2023.133026</p></sec></body><back><ref-list><title>References</title><ref id="scirp.127292-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Nakajima, J. (2009) Bayesian Analysis of GARCH and Stochastic Volatility: Modeling Leverage, Jumps and Heavy-Tails for Financial Time Series. Technical Report Mimeo, Department of Statistical Science, Duke University, Durham.</mixed-citation></ref><ref id="scirp.127292-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Charles, A. and Darné, O. (2017) Forecasting Crude-Oil Market Volatility: Further Evidence with Jumps. Energy Economics, 67, 508-519. https://doi.org/10.1016/j.eneco.2017.09.002</mixed-citation></ref><ref id="scirp.127292-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Crisostomo, R. (2015) An Analysis of the Heston Stochastic Volatility Model: Implementation and Calibration Using Matlab. https://doi.org/10.2139/ssrn.2527818</mixed-citation></ref><ref id="scirp.127292-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Wang, Y., Wu, C. and Yang, L. (2016) Forecasting Crude Oil Market Volatility: A Markov Switching Multifractal Volatility Approach. International Journal of Forecasting, 32, 1-9. https://doi.org/10.1016/j.ijforecast.2015.02.006</mixed-citation></ref><ref id="scirp.127292-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Cont, R. (2001) Empirical Properties of Asset Returns: Stylized Facts and Statistical Issues. Quantitative Finance, 1, 223-236. https://doi.org/10.1080/713665670</mixed-citation></ref><ref id="scirp.127292-ref6"><label>6</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Lee</surname><given-names> J. </given-names></name>,<etal>et al</etal>. (<year>2000</year>)<article-title>Change in Volatility in the Won/Us Dollar Daily Exchange Rate: Stochastic Volatility Model</article-title><source> Asia-Pacific Financial Markets</source><volume> 7</volume>,<fpage> 83</fpage>-<lpage>96</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.127292-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Sadorsky, P. (2005) Stochastic Volatility Forecasting and Risk Management. Applied Financial Economics, 15, 121-135. https://doi.org/10.1080/0960310042000299926</mixed-citation></ref><ref id="scirp.127292-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Bollerslev, T. (1986) General Autoregressive Conditional Heteroscedasticity. Journal of Econometrics, 31, 307-327. https://doi.org/10.1016/0304-4076(86)90063-1</mixed-citation></ref><ref id="scirp.127292-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Sadorsky, P. (2006) Modeling and Forecasting Petroleum Futures Volatility. Energy Economics, 28, 467-488. https://doi.org/10.1016/j.eneco.2006.04.005</mixed-citation></ref><ref id="scirp.127292-ref10"><label>10</label><mixed-citation publication-type="book" xlink:type="simple">Laurent, S. and Neely, C.J. (2012) Econometric Modeling of Exchange Rate Volatility and Jumps. In: Bell, A.R., Brooks, C. and Prokopczuk, M., Eds., Handbook of Research Methods and Applications in Empirical Finance, Edward Elgar Publishing, Cheltenham, 373-427.</mixed-citation></ref><ref id="scirp.127292-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Kulikova, M. and Taylor, D. (2013) Stochastic Volatility Models for Exchange Rates and Their Estimation Using Quasi-Maximum-Likelihood Methods: An Application to the South African Rand. Journal of Applied Statistics, 40, 495-507. https://doi.org/10.1080/02664763.2012.740791</mixed-citation></ref><ref id="scirp.127292-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Salisu, A.A. and Fasanya, I.O. (2013) Modelling Oil Price Volatility with Structural Breaks. Energy Policy, 52, 554-562. https://doi.org/10.1016/j.enpol.2012.10.003</mixed-citation></ref><ref id="scirp.127292-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Vo, M.T. (2009) Regime-Switching Stochastic Volatility: Evidence from the Crude Oil Market. Energy Economics, 31, 779-788. https://doi.org/10.1016/j.eneco.2009.05.001</mixed-citation></ref><ref id="scirp.127292-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Heston, S.L. (1993) A Closed-Form Solution for Options with Stochastic Volatility with Applications to Bond and Currency Options. Review of Financial Studies, 6, 327-343. https://doi.org/10.1093/rfs/6.2.327</mixed-citation></ref><ref id="scirp.127292-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Sircar, K. (1999) Stochastic Volatility, Smile and Asymptotics. Applied Mathematical Finance, 6, 107-145. https://doi.org/10.1080/135048699334573</mixed-citation></ref><ref id="scirp.127292-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Cao, W., Liu, M. and Fan, Z. (2004) Ms-Stability of the Euler-Maruyama Method for Stochastic Differential Delay Equations. Applied Mathematics and Computation, 159, 127-135. https://doi.org/10.1016/j.amc.2003.10.015</mixed-citation></ref><ref id="scirp.127292-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Broadie, M. and Kaya, O. (2006) Exact Simulation of Stochastic Volatility and Other Affine Jump Diffusion Processes. Operations Research, 54, 217-231. https://doi.org/10.1287/opre.1050.0247</mixed-citation></ref><ref id="scirp.127292-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Gerstner, T. and Kloeden, P. (2013) Convergence of Numerical Methods for Stochastic Differential Equations in Mathematical Finance. World Scientific, Singapore, 49-80. https://doi.org/10.1142/9789814436434_0002</mixed-citation></ref><ref id="scirp.127292-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Rosa, M.L. (2016) Numerical Methods for Stochastic Differential Equations.</mixed-citation></ref><ref id="scirp.127292-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Lux, T., Segnon, M. and Gupta, R. (2016) Forecasting Crude Oil Price Volatility and Value-at-Risk: Evidence from Historical and Recent Data. Energy Economics, 56, 117-133. https://doi.org/10.1016/j.eneco.2016.03.008</mixed-citation></ref><ref id="scirp.127292-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Manera, M., Nicolini, M. and Vignati, I. (2016) Modelling Futures Price Volatility in Energy Markets: Is There a Role for Financial Speculation. Energy Economics, 53, 220-229. https://doi.org/10.1016/j.eneco.2014.07.001</mixed-citation></ref><ref id="scirp.127292-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Dickey, D.A. and Fuller, W.A. (1979) Distribution of the Estimators for Autoregressive Time Series with a Unit Root. Journal of the American Statistical Society, 75, 427-431. https://doi.org/10.1080/01621459.1979.10482531</mixed-citation></ref><ref id="scirp.127292-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Phillips, P.C.B. and Perron, P. (1988) Testing for a Unit Root in Time Series Regressions. Biometrica, 75, 335-346. https://doi.org/10.1093/biomet/75.2.335</mixed-citation></ref><ref id="scirp.127292-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Parkinson, M. (1980) The Extreme Value Method for Estimating the Variance of the Rate of Return. Journal of Business, 53, 61-65. https://doi.org/10.1086/296071</mixed-citation></ref></ref-list></back></article>