Skip to main content

Uncertainty and energy-sector equity returns in Iran: a Bayesian and quasi-Monte Carlo time-varying analysis

Abstract

This study investigates whether the implied crude oil volatility and the historical OPEC price volatility can impact the return to and volatility of the energy-sector equity indices in Iran. The analysis specifically considers the refining, drilling, and petrochemical equity sectors of the Tehran Stock Exchange. The parameter estimation uses the quasi-Monte Carlo and Bayesian optimization methods in the framework of a generalized autoregressive conditional heteroskedasticity model, and a complementary Bayesian network analysis is also conducted. The analysis takes into account geopolitical risk and economic policy uncertainty data as other proxies for uncertainty. This study also aims to detect different price regimes for each equity index in a novel way using homogeneous/non-homogeneous Markov switching autoregressive models. Although these methods provide improvements by restricting the analysis to a specific price-regime period, they produce conflicting results, rendering it impossible to draw general conclusions regarding the contagion effect on returns or the volatility transmission between markets. Nevertheless, the results indicate that the OPEC (historical) price volatility has a stronger effect on the energy sectors than the implied volatility has. These types of oil price shocks are found to have no effect on the drilling sector price pattern, whereas the refining and petrochemical equity sectors do seem to undergo changes in their price patterns nearly concurrently with future demand shocks and oil supply shocks, respectively, gaining dominance in the oil market.

Introduction

As global financial markets become more integrated, knowledge of their mutual interplay becomes more important for market participants to choose appropriate investment strategies. Furthermore, the financialization of the commodity markets has provided valuable tools for managing portfolio risks (Erb and Harvey 2006; Silvennoinen and Thorp 2013). As a commodity, crude oil has a well-recognized impact on equity markets worldwide. Early studies of the impact of oil prices on aggregate stock returns are limited to specific countries, with mixed findings. Some studies find a positive relationship (Narayan and Narayan 2010; Zhu et al. 2011; Zhu et al. 2014; Silvapulle et al. 2017), others find a negative relationship (Gjerde and Saettem 1999; Sadorsky 1999; Papapetrou 2001; Basher and Sadorsky 2006; Driesprong et al. 2008; Park and Ratti 2008; Chen 2009; Filis 2010; Basher et al. 2012), and still others find no relationship (Huang et al. 1996; Cong et al. 2008; Apergis and Miller 2009; Miller and Ratti 2009; Reboredo and Rivero-Castro 2014; Hatemi et al. 2017). These conflicting results may arise owing to several underlying pitfalls in the studies, such as not considering the level of oil dependence among stock markets, not explicitly considering heterogeneity in the context in which the aggregate index is exposed to gains or losses from changes in the oil price, the nature of the oil price shock considered, and the time-varying element used (Smyth and Narayan 2018).

Whereas earlier studies assume linear and symmetrical adjustment processes for the underlying variables (Zhu et al. 2011), the current view favors assuming an asymmetrical effect of oil prices on stock returns (Basher and Sadorsky 2006; Kilian 2008; Kilian and Park 2009; Arouri 2011; Aggarwal et al. 2012; Asteriou and Bashmakova 2013; Narayan and Gupta 2015; Phan et al. 2015; Kang et al. 2016; Li et al. 2017). This view is further supported by the nonlinear characteristics of the oil price-stock return relationship. However, some empirical studies do not support this view, as they either find no asymmetric effects (Bachmeier 2008; Cong et al. 2008; Nandha and Faff 2008; Mollick and Assefa 2013; Reboredo and Rivero-Castro 2014; Asalman and Herrera 2015; Reboredo and Ugolini 2016) or only find evidence for such effects in oil-importing countries in the period after the global financial crisis (Ramos and Veiga 2013). Failure to account for the mixed heterogeneous effects of positive and negative oil price shocks on individual stock returns and merely considering aggregate stock returns may result in these conflicting findings (Tsai 2015).

Furthermore, Kilian (2008) seminal work demonstrates that the nature of the oil price structural shock, be it an oil supply shock, aggregate demand shock, or oil-specific demand shock, could be an important factor in the oil–stock interplay, and failure to consider it may result in erroneous findings (Kilian and Park 2009). The period during which each type of stock gains dominance can be obtained by decomposing oil price data (Fueki et al. 2016). Performing this analysis shows that oil supply shocks were mainly influential from the second half of 2013 through the first half of 2015. Currently, oil supply shocks are no longer as important to macroeconomic developments, and aggregate demand shocks are seen as more influential (Kang et al. 2016). Further, empirical evidence shows that the effect of the oil price on equity returns varies considerably across sectors depending on the nature of the structural shock (Broadstock and Filis 2014). The effect of an oil supply shock is found to be positive (Basher et al. 2012; Abhyankar et al. 2013) or negative (Gupta and Modise 2013; Cunado and de Gracia 2014). For oil-specific demand shocks, however, the empirical evidence almost unanimously suggests a negative effect on equity returns in oil-importing countries (Filis et al. 2011; Basher et al. 2012; Abhyankar et al. 2013; Gupta and Modise 2013; Güntner 2014; Koh 2017) and a positive effect for Norway, an oil-exporting nation.

Another puzzling feature of the oil–stock relationship is that it exhibits different behaviors in periods of low and high economic volatility; in other words, it varies over time. Quite a few studies focus on this feature, primarily using Markov-switching vector autoregression (VAR) models, regime switching models, wavelet decomposition, or frequency domain methods (Aloui and Jimmazi 2009; Chen 2009; Mohanty et al. 2010; Reboredo 2010; Jammazi and Aloui 2010; Daskalaki and Skiadopolous 2011; Filis et al. 2011; Chang and Yu 2013; Ciner 2013; Broadstock and Filis 2014; Reboredo and Rivero-Castro, 2014; Zhang and Li 2014; Kang et al. 2015; Martin-Barragan et al. 2015; Xu 2015; Zhang 2017; Zhu et al. 2017). Concurrently, studies have examined the role of oil price volatility on stock returns using both generalized autoregressive conditional heteroskedasticity (GARCH)-type models and structural VAR models (Äijö 2008; Arouri and Nguyen 2010; Choi and Hammoudeh 2010; Elyasiani et al. 2011; Chen 2014; Lin et al. 2014; Narayan and Sharma 2014; Kang et al. 2015; Salisu and Oloko 2015; Awartani et al. 2016; Maghyereh et al. 2016; Bouri et al. 2017a, 2017b). The findings show that the volatility spillovers across markets can be strong and are significantly influenced by structural breaks, indicating a heterogeneous volatility transmission phenomenon with potential economic significance for hedging purposes. Thus, the recommended approach involves using the implied rather than the historical volatility in analyzing the cross-market association, as the former is a more accurate predictor of investor sentiment.

Many studies have focused on the effect of the oil price–stock returns relationship at the sector level (Cong et al. 2008; Arouri 2011; Elyasiani et al. 2011; Narayan and Sharma 2011; Lee et al. 2012; Li et al. 2012; Moya-Martinez et al. 2014; Caporale et al. 2015; Xu 2015; Zhu et al. 2016; Li et al. 2017; Peng et al. 2017), and many specifically focus on the oil and gas sector (Sadorsky 2001; Boyer and Filion 2007; Cong et al. 2008; Nandha and Faff 2008; Gupta 2016; Li et al. 2017). A key conclusion of these studies is that oil price increases positively affect the stock returns of firms in the oil and gas sector (Smyth and Narayan 2018), with a prolonged nonlinear relationship that strengthens over time (Managi and Okimoto 2013). However, the bulk of these studies focus on developed economies and rarely extend their analyses to emerging or transition markets.

At the country level, studies have been conducted for oil-importing (Masih et al. 2011; Cunado and de Gracia 2014; Bouri 2015; Silvapulle et al. 2017) and oil-exporting countries (Bjornland 2009; Arouri and Rault 2012; Mohanty et al. 2011; Ramos and Veiga 2013; Gil-Alana and Yaya 2014; Demirer et al. 2015), as is intuitive. Although their findings vary, these studies generally find that oil prices positively affect equity returns in oil-exporting countries (Smyth and Narayan 2018). Only a limited number of previous studies examine the oil price–stock relationship in Iran, and few focus on the effect on the price index of the Tehran Stock Exchange (TSE) (Najafabadi et al. 2012) or its volatility (Davoudi et al. 2018).

Based on the above literature review, this study makes a two-fold contribution to the existing literature. It provides the first analysis of the oil price impact on equity returns in Iran’s oil sector, and it uses a firsthand application of the quasi-Monte Carlo (QMC) method and Bayesian network (BN) theory in this setting. The remainder of the paper proceeds as follows. The next section provides a description and preliminary analysis of the data. Section 3 outlines the research methodology used in the empirical investigation. A discussion of the results is presented in Section 4, followed by the concluding remarks.

Data

Implied oil volatility index

The implied oil volatility index is reported by the Chicago Board of Options Exchange and is constructed on an option basis, disregarding the pricing models. In this process, the market prices of out-of-the-money calls and puts are incorporated into the computation, and the implied crude oil volatility (OVX) is obtained using Eq. 1:

$$ OVX={\left[\frac{2}{T}\sum \limits_i\frac{\varDelta {K}_i}{K_i^2}\exp (RT)Q\left({K}_i\right)-\frac{1}{T}{\left(\frac{F}{K_0}-1\right)}^2\right]}^{1/2}\times 100 $$
(1)

Here, T is the time to maturity of the set of options, F is the forward price level derived from the smallest call-put option premium difference, R is the risk-free interest rate, \( \varDelta {K}_i=\frac{k_{i+1}-{K}_{i-1}}{2} \)measures the average interval of the two strike prices adjacent to the strike price of option i, K0 denotes the first strike price below the forward price level F, and (K i) represents the option premium computed as the midpoint of the bid-ask Q spread of each option with strike price K i (Maghyereh et al. 2016). This measure provides an accurate reflection of future market volatility. Other useful texts (Maghyereh et al. 2016) on this topic, however, provide more detailed information on the OVX computation.

Preliminary statistics

Daily data on stock prices were obtained from the TSE archive (Tehran Stock Exchange archive 2018). The archive contains data on several equity sectors, among which the oil drilling (ODR), oil refining (ORE), and chemical/petrochemical (PET) categories are presumably the most-relevant to the energy sector. Thus, this study uses data from these sectors. In addition, data on geopolitical risk (GPR), global economic policy uncertainty (EPU) (Economic Policy Uncertainty 2018) and the TSE price index (TPI) are incorporated to account for other proxies for uncertainty in the analysis. The implied oil volatility is inferred from OVX, whereas the historical oil volatility is taken from OPEC oil price data (OPEC), both of which were obtained using the Quandl package (McTaggart et al. 2016).

The sample spans September 27, 2009 to November 12, 2018, which is an interesting period that witnessed several major market events, including the emergence of shale oil as a key market player, the collapse of cooperation among OPEC members, the start of the global economic recovery, and so on (Maghyereh et al. 2016). The first date of the sample is the first available date in the TSE archive. To provide better insight into the sector data used, Fig. 1 plots these data, and Table 1 provides descriptive statistics of their log returns. Plots of OVX and OPEC are given in Fig. 2. For all the model parameters reported herein, the precision estimates are available from the author.

Fig. 1
figure 1

The equity sector data for ORI (a), PET (b), and ODR (c)

Table 1 Descriptive statistics of the equity log returns
Fig. 2
figure 2

The historical price data for OVX (a), and OPEC (b)

An augmented Dickey–Fuller Test confirms that log return series is stationary. All the equity returns show leptokurtic characteristics (i.e., kurtosis > 3), suggesting that a GARCH model is an appropriate choice in this setting. The Jarque-Bera test rejects the null hypothesis of a normal distribution for all series at the 1% significance level. The results of ARCH tests also confirm the presence of heteroscedasticity in the data.

Methodology

GARCH

We initially considered a simple GARCH model class for studying the return (r i,t) and variance (σ2i,t) dynamics of asset i at time t. In doing so, the OVX and OPEC data were used as external regressors, as in Eqs. 2 and 3.

$$ {\displaystyle \begin{array}{l}{r}_{i,t}=\mu +{\eta}_{i,1}{r}_{i,t-1}+{\eta}_{i,2}{r}_{i,t-2}+{\eta}_{i,3}{\varepsilon}_{i,t-1}+{\eta}_{i,4}{\varepsilon}_{i,t-2}+{\eta}_{i,5}{\varepsilon}_{i,t-3}+{\eta}_{i,6}{r}_{ovx_{t-1}}+{\eta}_{i,7}{r}_{OPEC_{t-1}}\\ {}i\in \left\{ ORI, PET, ODR\right\}\\ {}{\varepsilon}_{i,t}={\sigma}_{i,t}{z}_{i,t}\end{array}} $$
(2)
$$ {\sigma}_{i,t}^2=\omega +{\eta}_{i,8}{\sigma}_{i,t-1}^2+{\eta}_{i,9}{\sigma}_{i,t-2}^2+{\eta}_{i,10}{\varepsilon}_{i,t-1}^2+{\eta}_{i,11}{\sigma_{ovx_{t-1}}}^2+{\eta}_{i,12}{\sigma_{opec_{t-1}}}^2 $$
(3)

We also applied dynamic conditional correlation GARCH (DCC-GARCH) and asymmetric DCC-GARCH (ADCC-GARCH) models; Appendix 1 provides an explanation of these methods.

Quasi-Monte Carlo method

Let Ω be a separable topological space in an N dim -dimensional space. Clearly, any point in Ω can be described by a set of dim N values, with ϖ = (×1, ×2,  … , x Ndim) for x i ∈ ℜ1 ≤ i ≤ Ndim. Let f be a real-valued function on Ω for which a global maximum is sought. Because f is assumed to hold a global maximum in the region of interest, it is bounded from above, and we define its global maximum as:

$$ m(f)={\max}_{\varpi \in \varOmega }f\left(\varpi \right) $$
(4)

Let λ prob be a probability measure on Ω . Furthermore, let S be a sequence of N independent λ prob -distributed random samples, ϖ1 ,ϖ2 ,...,ϖ N ∈Ω. We define

$$ {m}_N\left(f;S\right)={\max}_{1\le i\le N}f\left({\varpi}_i\right) $$
(5)

The QMC method of quasi-random search uses a deterministic sequence of points ϖ1 ,ϖ2 ,...,ϖ N in Ω to find the global optimum. It is proven that m N (f;S) converges to the global maximum of f with unit probability if f is continuous and if a positive probability measure (λ prob > 0) is taken for every nonempty subset of Ω (Niederreiter 1994).

$$ {\lim}_{N\to \infty }{m}_N\left(f;S\right)=m(f) $$
(6)

Consider a point set P = (ϖ1, ϖ2,..., ϖN). The dispersion of point P in Ω is defined by:

$$ {disp}_N\left(P;\Omega \right)=\max {\min}_{1\le i\le N} disp\left(\varpi, {\varpi}_i\right) $$
(7)
$$ {\displaystyle \begin{array}{l} disp\left(\vartheta, o\right)={\max}_{1\le i\le {N}_{\mathrm{dim}}}\left|{\vartheta}_i-{o}_i\right|\kern1.5em \mathrm{for}\\ {}{\vartheta}_i=\left({y}_1,{y}_2,\dots, {y}_s\right);{o}_i=\left({z}_1,{z}_2,\dots, {z}_s\right)\end{array}} $$
(8)

In summary, point sets with small dispersion are proven to be suitable for quasi-random search purposes (Niederreiter 1994). In addition, the point set used for QMC should possess nice properties on its discrepancy, which is interpreted as the difference between the empirical and uniform distributions of the QMC point set (Drew and Homem-de-Mello 2006). QMC deals with infinite low discrepancy sequences (LDS), which have the additional property that, for arbitrary N, the initial segments have relatively small discrepancies (Lei 2002). The merits of LDS are twofold; first, they provide uniform sample points avoiding large gaps or clusters, and, second, they know about their predecessors and fill the gaps left from previous iterations (Kucherenko 2006), eliminating empty areas in which no information on the behavior of the underlying problem can be deducted. The choice of LDS is therefore central to the QMC methodology.

Different principles have been used to generate LDS sets (Sobol 1976; Bratley et al. 1992; Niederreiter 1994). Whereas other theories, such as Niederreiter’s (1994), result in better asymptotic properties (Kucherenko 2006), Sobol’s LDS sets provide enhanced reliability in terms of rapid convergence in high dimensionality situations (Jäckel 2002). As a result, Sobol’s (1976) method was adopted for LDS generation in this study. A description of this method can be found in Appendix 2 to keep this text within a reasonable length.

Once an LDS set is available, the multistart QMC algorithm implements an inexpensive local search (such as the steepest descent) on the quasi-random points to concentrate the sample, which is subsequently reduced by replacing the worst points (with lower function values) with the new quasi-random points. A completely new local search is then applied to any point retained for a certain number of iterations. Two types of stopping criteria may be used for this algorithm. The first is to stop if no new value for the local maximum is found after several iterations (Glover and Kochenberger 2003). The second is to stop if the number of worse stationary points exceeds the number of stationary points, usually by a fraction of three (Hickernell and Yuan 1997). Appendix 3 provides a more detailed description of the QMC algorithm.

Bayesian optimization

Consider the original problem of maximizing the function f on a bounded set Ω . If ϖ is a point in this region, a dataset of the point parameters and their corresponding function evaluations can be iteratively collected, ℘ = {ϖi, f(ϖi)}1 ≤ i ≤ iter, up to the iterth iteration. The dataset can be subsequently used to build a response surface. At this point, the optimization of the original function can be replaced by an alternative optimization of the response surface; the difference is that the latter optimization merely requires the evaluation of the learned model rather than that of the original function f.

Thus, the first requirement of Bayesian optimization (BO) is adopting a probabilistic model to create the response surface. Such a probabilistic framework allows the use of priors that encode the collected information in a principled way. Moreover, probabilistic models tend to be more robust to the effect of model errors, as they take into account uncertainty about the model (Calandra et al. 2016). In other words, the first step involves selecting a prior distribution over functions that expresses assumptions about the function being evaluated (Snoek et al. 2012). The prior over functions is then updated in light of new observations (Brochu et al. 2010). This analysis uses a Gaussian process (GP) (Rasmussen and Williams 2006) for the prior, meaning that any finite set of function values induces a multivariate Gaussian distribution. Other plausible choices for the prior include the random forest (Criminsi et al. 2011) and the Student-t processes (Shah et al. 2014).

In the second step, the previously collected data,℘, are combined with the prior to obtain a posterior distribution using Bayes’ rule. The posterior captures our updated beliefs about the unknown objective function (Brochu et al. 2010). We attempt to maximize the posterior at each step to decrease the distance between the true global maximum and the expected maximum given by the model (Brochu et al. 2010). The next point to evaluate, ϖ iter + 1 , is determined based on an acquisition function, f acquisition, which is a posterior over the functions induced by prior knowledge and data (Snoek et al. 2012). In practice, the next sample is drawn at the maximal acquisition function, ϖ iter + 1 = argmaxϖ f (ϖ) . This study uses the acquisition function of Srinivas et al. (2010), which exploits the upper confidence bound, for maximization.

$$ {f}_{acquisition}\left(\varpi; \wp, {\theta}_{GP}\right)=\mu \left(\varpi; \wp, {\theta}_{GP}\right)-{K}_{balance}\sigma \left(\varpi; \wp, {\theta}_{GP}\right) $$
(9)

Here, θ GP stands for the GP hyper-parameters; μ (ϖ; ℘, θGP) and σ2 (ϖ; ℘, θGP) are the mean and variance functions of the multivariate Gaussian distribution, respectively; and κbalance is a tradeoff parameter (k balance > 0) tuned to balance the search in terms of exploitation (where f is uncertain) against exploration (where f is expected to be high). Exploration prevails if the value of κ balance is increased. In this analysis, this parameter was set such that κbalance = 2.576. The BO algorithm conducts these steps sequentially (Appendix 4) in search for the global optimum. The mathematical foundations behind the method are thoroughly described in several useful texts (Brochu et al. 2010; Snoek et al. 2012), which also provide illustrations of its implementation.

Bayesian network

A BN is an implementation of a graphical model in which nodes represent random variables and arrows represent probabilistic dependencies between the nodes (Korb and Nicholson 2004). The BN’s graphical structure is a directed acyclic graph (DAG) that enables estimation of the joint probability distribution. For each variable, the DAG defines a factorization of the joint probability distribution into a set of local probability distributions, and the factorization form is given by the BN’s Markov property, which assumes that a variable is solely dependent on its parents (Scutari 2010). In this way, the methodology seeks to find a structure along with its parameters.

The two classifications of the BN-structure-learning process either handle this issue by analyzing the probabilistic relationships supervised by the Markov property of BNs with conditional independence tests and subsequently constructing a graph that satisfies the corresponding d-separation statements (constraint-based algorithms) or by assigning a score to each BN candidate and maximizing it with a heuristic algorithm (score-based algorithms) (Scutari 2010). This study tested both algorithm types. For the constrained-based type, we used a Monte Carlo permutation test for the conditional independence test, whereas, in the score-based case, we applied a score-equivalent Gaussian posterior density criterion. The implementation of the graphical structure-learning of the BNs was attempted using the bnlearn package (Scutari 2017).

Results

The choice of lag in the GARCH models was rendered, following a series of computations, over a grid of lag values to identify the model with the least Bayesian information criterion (BIC) value. As our primary deduction on the cross-market association is based on the GARCH model parameters, we meticulously performed their estimation using a variety of techniques, as shown in Tables 2, 3 and 4. As evident from the results, the choice of solution technique clearly affects the estimated parameter values and is therefore extremely critical.

Table 2 The GARCH parameters for the ORI sector
Table 3 The GARCH parameters for the PET sector
Table 4 The GARCH parameters for the ODR sector

In the ORI sector, for example, the limited Broyden–Fletcher–Goldfarb–Shanno (LBFGS)/Bayesian methods estimate a positive effect of OVX/OPEC, whereas the QMC method finds that the effect is insignificant. Furthermore, the LBFGS/Bayesian results estimate that the volatility transmission from OVX/OPEC to ORI is positive, but this result is not supported by the QMC. Similar contradictions arise in other sectors. For example, OVX returns are found to affect PET returns positively and negatively by the LBFGS and Bayesian methods, respectively. The LBFGS/Bayesian method finds that the effect of OPEC returns on PET returns is significant, whereas the QMC method finds minimal effects. The Bayesian method finds that the volatility transmission from OVX/OPEC to PET is significant, whereas the other methods find an insignificant effect.

In the ODR sector, the LBFGS and Bayesian methods find a negative effect of OVX returns on ODR returns, but the methods largely disagree on the direction of the effect of OPEC returns on ODR returns. The QMC method, however, considers ODR returns to be insensitive to external factors. We find similar results for volatility transmission in the ODR sector; the LBFGS/Bayesian methods estimate opposite directions of the volatility transmission between OPEC and ODR returns, but both find a positive volatility transmission scheme between OVX and ODR returns. Likewise, the QMC method finds that the ODR volatility is independent of any external factors. The results for the mean dynamic correlation from the DCC/ADCC-GARCH models, shown in Table 5, also find a strong positive correlation between TPI and the sectors studied.

Table 5 The mean dynamic correlations, obtained from DCC/ADCC GARCH

To help understand the underlying connectedness, the data were also analyzed in the framework of BN theory, which is essentially a GARCH-free scheme. Interestingly, the results, shown in Figs. 3 and 4, indicate a mostly different set of significant relationships relative to those found in the GARCH results. Specifically, the BN results indicate that OPEC returns do affect returns in the ORI and PET sectors and that the volatility transmission between OPEC returns and the ORI and ODR sectors is positive.

Fig. 3
figure 3

The extracted Bayesian network for returns in each sector, obtained by the score-based algorithm. The solid/dashed lines refer to statistically significant/insignificant arcs, respectively. The letters represent A rt, B rt − 1, C rt − 2, D rOVX, t − 1, E rOVX, t − 2, F rOPEC, t − 1, G rOPEC, t − 2

Fig. 4
figure 4

The extracted Bayesian network for volatility in each sector, obtained by the score-based algorithm. The solid/dashed lines refer to statistically significant/insignificant arcs, respectively. The letters represent A \( {\sigma}_t^2 \), B \( {\sigma}_{t-1}^2 \), C \( {\sigma}_{t-2}^2 \), D \( {\sigma}_{OVX,t-1}^2 \), E \( {\sigma}_{OVX,t-2}^2 \), F \( {\sigma}_{OPEC,t-1}^2 \), G \( {\sigma}_{OPEC,t-2}^2 \)

To further investigate whether the dependency structure changes over time, we conducted a copula analysis by estimating the copula dependence parameters for Gaussian, Student-t, Gumbel, Clayton, and Frank copula models, as shown in Table 6. The results on a monthly basis indicate a positive correlation between GPR and EPU and all the energy sectors studied, as shown in Table 7. The correlation is stronger for GPR than for EPU.

Table 6 The estimated copula dependence parameters for Gaussian, Student-t, Gumbel, Clayton, and Frank copula models
Table 7 The correlation between GPR/EPU and the equity sectors, on a monthly basis

To avoid the potential pitfall of bias in the parameters due to periods of high or low volatility, price regimes were also detected for each sector, as shown in Table 8. We initially determined the number of plausible price regimes for each sector by identifying the case with the lowest BIC value out of the results obtained by applying the homogeneous/nonhomogeneous Markov switching autoregressive models (Monbet 2018), as shown in Additional file 1: Tables S1-S2 of the supplementary information. The exact timing of the period was later determined by fitting a regression tree model (Therneau et al. 2015).

Table 8 The time span of the detected price regimes, for the equity sectors

Interestingly, some of the time spans identified coincide with times when the oil price was undergoing breaks owing to changes in the type of shocks (i.e., oil supply or future demand shocks). For example, the ORI sector clearly enters a new price regime in early 2015, when future demand shocks became more dominant than supply shocks in influencing the oil market (Fueki et al. 2016). Likewise, the PET sector begins a new price regime in late 2013, which fits chronologically with the timeline of the positive contribution of future supply shocks to the oil price hike (Fueki et al. 2016). The only exception to this rule is the ODR sector, which has been rather insensitive to shocks. For the sake of brevity, however, the results for the selected price periods are given in the supplementary information to the article.

When the analysis is restricted to a specific price-regime timeline, the results for the GARCH and BN methods tend to agree more. For instance, both methods now confirm the volatility transmission between OPEC returns and the ORI and ODR sectors. Similarly, both methods confirm that the OPEC returns have a contagion effect on the ORI and PET returns.

Conclusions

The choice of solution technique has a clear effect on the parameter values estimated by GARCH, making it an unreliable platform for analyzing cross-market associations. The Bayesian scheme provides an alternative robust route for understanding the underlying connectivity in the market. We find a positive correlation between GPR, EPU, and all the energy sectors studied. Neither the contagion effect on returns nor the volatility transmission between the markets, however, can be deducted upfront, as the methods yield different results. Nevertheless, the results point to the OPEC (historical) price volatility as having a stronger effect on the energy sectors relative to the implied volatility. The ODR sector is found to be insensitive to the type of oil price shock, whereas the price patterns in the ORI and PET sectors seemingly changed when future demand shocks and oil supply shocks, respectively, gained dominance in the oil market. This latter information may have potential significance for TSE market participants in re-shaping their investment portfolios.

Abbreviations

ARCH:

Autoregressive conditional heteroscedasticity

BIC:

Bayesian information criterion

BN:

Bayesian network

CBOE:

Chicago board of options exchange

DCC-GARCH:

Dynamic conditional correlation

GARCH:

Generalized autoregressive conditional heteroskedasticity

GP:

Gaussian process

LBFGS:

Low Memory Broyden–Fletcher–Goldfarb–Shanno

LDS:

Low discrepancy sequences

NSP:

Number of stationary points

NWSP:

Number of worse stationary points

ODR:

Oil drilling

OPEC:

OPEC basket oil price

ORI:

Oil refining

OVX:

Oil volatility index

PET:

Petrochemical

QMC:

Quasi-Monte Carlo

TPI:

Price index of tehran stock exchange

TSE:

Tehran stock exchange

References

Download references

Acknowledgements

Not applicable.

Funding

Not applicable.

Availability of data and materials

Not applicable.

Author information

Authors and Affiliations

Authors

Contributions

The work was solely done by the corresponding author, BF. The author read and approved the final manuscript.

Corresponding author

Correspondence to Babak Fazelabdolabadi.

Ethics declarations

Competing interests

The author declares that he has no competing interests.

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Additional file

Additional file 1:

Figure S1. The ADCC-GARCH dynamic conditional correlation between OVX and ORI (a), PET (b), and ODR (c). Figure S2. The extracted Bayesian network for returns in each sector in selected price regime periods - [‘2015-03-17’-‘2018-06-12’] (ORI); [‘2013-11-18’-‘2018-06-12’] (PET); [‘2009-07-27’-‘2018-07-23’] (ODR) - obtained by the score-based algorithm. The solid/dashed lines refer to statistically significant/insignificant arcs, respectively. The letters represent (A)rt, (B)rt − 1, (C)rt − 2, (D)rOVX, t − 1, (E)rOVX, t − 2, (F) rOPEC, t − 1, (G) rOPEC, t − 2. Figure S3. The extracted Bayesian network for volatility in each sector in selected price regime periods - [‘2015-03-17’-‘2018-06-12’] (ORI); [‘2013-11-18’-‘2018-06-12’] (PET); [‘2009-07-27’-‘2018-07-23’] (ODR) - obtained by the score-based algorithm. The solid/dashed lines refer to statistically significant/insignificant arcs, respectively. The letters represent (A)\( {\sigma}_t^2 \), (B)\( {\sigma}_{t-1}^2 \), (C)\( {\sigma}_{t-2}^2 \), (D)\( {\sigma}_{OVX,t-1}^2 \), (E)\( {\sigma}_{OVX,t-2}^2 \), (F) \( {\sigma}_{OPEC,t-1}^2 \), (G) \( {\sigma}_{OPEC,t-2}^2 \). Table S1. The BIC for different price regimes, under homogeneous Markov switching autoregressive models. Table S2. The BIC for different price regimes, under non-homogeneous Markov switching autoregressive models. Table S3. Descriptive statistics of the equity log returns in the selected periods. Table S4. The GARCH parameters for the ORI sector in the period [‘2015-03-17’-‘2018-06-12’]. Table S5. The GARCH parameters for the PET sector in the period [‘2013-11-18’-‘2018-06-12’]. Table S6. The GARCH parameters for the ODR sector in the period [‘2009-07-27’-‘2018-07-23’]. Table S7. The mean dynamic correlations, obtained from DCC/ADCC GARCH, over the corresponding selected periods. Table S8. The estimated copula dependence parameters for Gaussian, Student-t, Gumbel, Clayton, and Frank copula models, over the corresponding selected periods. (DOCX 470 kb)

Appendices

Appendix 1

Dynamic Conditional Correlation (DCC-GARCH)

The model specifies the conditional mean and the conditional variance dynamics of an asset at time t, as follows (Engle and Sheppard, 2001):

$$ {r}_{i,t}={\mu}_i+{\eta}_{i,13}{r}_{i,t-1}+{\eta}_{i,14}{r}_{i,t-2}+{\varepsilon}_{i,t} $$
(10)
$$ {\sigma}_{i,t}^2={\omega}_i+{\eta}_{i,15}{\sigma}_{i,t-1}^2+{\eta}_{i,16}{\varepsilon}_{i,t-1}^2 $$
(11)
$$ {\displaystyle \begin{array}{l}i\in \left\{ OVX, OPEC, ORI, PET, ODR\right\}\\ {}{\varepsilon}_t={H}_t^{1/2}z{}_t\end{array}} $$
(12)
$$ {H}_t={D}_t{R}_t{D}_t $$
(13)
$$ {R}_t={Q}_t^{\ast^{-1}}{Q}_t{Q}_t^{\ast^{-1}} $$
(14)
$$ {Q}_t=\left(1-{\eta}_{17}-{\eta}_{18}\right)\overline{Q}+{\eta}_{17}{z}_t{z}_t^{\prime }+{\eta}_{18}{Q}_{t-1} $$
(15)

Here, zt is a vector of independent and identically distributed(IID) errors, Ht is the conditional covariance matrix, Rtis the conditional correlation matrix, Dtis a diagonal matrix with conditional volatilities on its main diagonal, Qt = [qij, t]; i, j ∈ {OVX, OPEC, ORI, PET, ODR}, is a time-varying covariance matrix, \( {Q}_t^{\ast } \)is a diagonal matrix with the square root of the diagonal elements of Qt at the diagonal, \( \overline{Q} \)is an unconditional covariance matrix of standardized residuals. For the Asymmetric-DCC (ADCC-GARCH), the conditional variance is modeled by:

$$ {\sigma}_{i,t}^2={\omega}_i+{\eta}_{i,15}{\sigma}_{i,t-1}^2+{\eta}_{i,16}{\varepsilon}_{i,t-1}^2+{\eta}_{i,19}{\varepsilon}_{i,t-1}^2I\left({\varepsilon}_{i,t-1}^2\right) $$
(16)

The (dynamic) correlation estimator at timet, \( {\widehat{\rho}}_{ij,t} \), is given by:

$$ {\widehat{\rho}}_{ij,t}=\frac{q_{ij,t}}{\sqrt{q_{ii,t}{q}_{jj,t}}} $$
(17)

Appendix 2

The construction of Sobol’s low-discrepancy sequences

The initial stage in generating a Sobol LDS set deals with operation on a set of integers in the interval [1, 2b − 1], where b represents the number of bits in an unsigned integer on the operating computer (typically b = 32). Let xnkbe the nth draw of one of Sobol` integers in dimensionk.

Generation of numbers in the Sobol’s method, is based on a set of direction integers. A distinct direction integer is considered for each of the b bits in the binary integer representation. Let vkldenote the lth direction integer for dimension k. In order to construct Sobol` numbers, one needs to evaluate the direction integers, first. This process involves the binary coefficients of a selected primitive modulo two for each dimension (Jäckel 2002). Take pkas the primitive polynomial modulo two for dimension k with the degreegk (defined by Eq. 18). We assume ak0 … akgrepresenting the coefficients ofpk, with ak0being the coefficient of the highest monomial term.

$$ {p}_k(z)=\sum \limits_{j=0}^{g_k}{a}_{kj}{z}^{g_k-j} $$
(18)

In each dimension, the first gk direction integers vklfor l = 1 … gkare allowed to be freely chosen for the associatedpkof the dimension, provided that two conditions are met. First, the lth leftmost bit of the direction integer vkl must be set. Second, only the l leftmost bits can be non-zero, where the leftmost bit refers to the most significant one in a bit field representation. All subsequent direction integers are calculated from a recurrence relation (Eq. 19) (Jäckel 2002):

$$ {v}_{kl}=\frac{v_k\left(l-{g}_k\right)}{2^{g_k}}{\oplus}_2{\sum \limits_{j=1}^{g_k}}^{\oplus_2}{a}_{kj}{v}_{k\left(l-j\right)}\;\mathrm{for}\ l>{g}_k $$
(19)

Hereby, ⊕2represents the binary addition of integers modulo two (often referred to in the computer science literature as the XOR gate), and \( {\sum \limits_{\dots}^{\dots}}^{\oplus_2} \)stands for a set of XOR operations. The procedure is to right-shift the direction integer vk(l − gk)by gk bits, and then performing the XOR operation with a selection of the un-shifted direction integers vk(l − j)forj = 1 … gk. The summation is performed analogous to the conventional ∑summation operator.

The only remaining requirement for the algorithm is the generating integer of the nth draw. For this sake, the natural choice appears to be the draw number itself, n. Nevertheless, any other sequence with a unique integer for each new draw is equally useful (Jäckel 2002). Once all the preliminaries are set, the Sobol` integers, for the s dimensions of interest, are generated by (Jäckel 2002);

$$ {x}_{nk}={\sum \limits_{j=1}^s}^{\oplus_2}{v}_{kj}1 $$
(20)

In which the jth bit of the generating integer is set (counting from the right).

Jäckel (2002) has provided tabulated initialization numbers for generating Sobol` integers, up to a dimension of 32 (Table 9). The generated sequence, using these initialization numbers, posesses the property; such that for any binary segment of the s-dimensional sequence of length 2s there is exactly one draw in each of the 2s hypercubes which result from subdividing the unit hypercube along each of its unit length extensions into half (Jäckel 2002).

Table 9 An instance of the initialisation numbers for generating Sobol’s LDS, up to a dimension of 32 (Jäckel 2002)

Once generated, conversion of Sobol` integers to other scales is fairly straightforward. For example, they can be converted to the [0, 1] scale by dividing the integers by2b.

Appendix 3

The algorithm to perform Quasi-Monte Carlo maximization

Assume \( {\varpi}_i^{iter} \)to represent the best solution for ith point at the iterth iteration, also consider FBESTas the best (maximum) value off, recorded up to the iterth iteration. A detailed description of the QMC procedure is then ensued as follows (Hickernell and Yuan 1997):

Step-0 Initialize.

Input the number of initial points, N, the number of points with best (highestt) objective function values to retain in each iteration, Nbest, and the desired number of iterations to be done for local search on each of the points, Niterlocal. search.

Set the number of iterations, iter = 0.

Set NSP = 0; NSWP = 0; NTIX(j) = 0for (1 ≤ j ≤ N).

Step-1 Concentrate

Obtain a new point set, by applying Niterlocal. search iteration(s) of an inexpensive local search to each of \( {\varpi}_i^{iter} \) points (1 ≤ i ≤ N).

Step-2 Reduce

Find Ξ(iter) ⊂ {1,  … , N}such that Ξ(iter)has Nbest elements and that \( f\left({\varpi}_i^{iter}\right)\ge f\left({\varpi}_j^{iter}\right)\forall i\in \Xi (iter) \) and ∀j ∉ Ξ(iter).

If j ∈ Ξ(iter), set NTIX(j) = NTIX(j) + 1.

If j ∉ Ξ(iter), set NTIX(j) = 0.

Step-3 Find local maximum

For j = 1, … , Nsuch that NTIX(j) ≥ 2.

Set NTIX(j) = 0.

If NSP = 0or\( f\left({\varpi}_j^{iter}\right)\ge FBEST+{10}^{-4} \) then.

Starting from\( {\varpi}_j^{iter} \), perform a local optimization search, to obtain the local maximum of the point, \( {\varpi}_{j, local.\max}^{iter} \).

If \( f\left({\varpi}_{j, local.\max}^{iter}\right)> FBEST \) then.

Set \( NSP= NSP+1; NSWP=0; FBEST=f\left({\varpi}_{j, local.\max}^{iter}\right) \).

Else.

Set NSWP = NSWP + 1.

End

Else.

If \( \frac{NSWP}{NSP}\ge 3 \)then stop (success).

Step-4 Sample additional points

For j = 1, 2, … , N.

If NTIX(j) = 0then.

Generate \( {\varpi}_j^{iter+1} \)by the Sobol’s LDS technique.

Else.

Set \( {\varpi}_j^{iter+1}={\varpi}_j^{iter} \).

End

Set iter = iter + 1.

If the total number of function calls reached then stop (failure).

Go to Step-1.

Appendix 4

The algorithm to perform Bayesian Optimization

Assume that the upper confidence bound scheme is chosen, as for the acquisition function. The algorithm to perform Bayesian optimization follows the below procedures (Brochu et al. 2010):

Step-0 Initialize

Input the desired number of iterations to be done for BO search, Niter. Input the tunable parameter κbalance (Eq. 14).

Set the number of iterations, iter = 0.

Sample the (objective) function at point Ï–iter.

Form the data set, ℘ = {ϖiter, f(ϖiter)}.

Step-1 Repeat

Find the next point to sample,ϖiter + 1, by optimizing the acquisition function over GP.

$$ {\varpi}^{iter+1}=\arg {\max}_{\varpi }{f}_{acquisition}\left({\left.\varpi \right|}_{\wp_{1: iter}}\right) $$

Sample the (objective) function at point ϖiter + 1.

Augment the data set ℘.

Update the GP prior.

Set iter = iter + 1.

If the total number of desired iterations reached then stop.

Go to Step-1.

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Fazelabdolabadi, B. Uncertainty and energy-sector equity returns in Iran: a Bayesian and quasi-Monte Carlo time-varying analysis. Financ Innov 5, 12 (2019). https://doi.org/10.1186/s40854-019-0128-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s40854-019-0128-2

Keywords