1. Introduction
Among the important topics of financial economics are the modeling of volatility, the interdependence of volatility in financial markets, and forecasting. Volatility in financial markets occurs when these markets are at risk [
1]. With the spread of information in financial markets, the correlation between markets and their volatility has increased. Investors predict price changes based on the price changes of other markets. In other words, an increase in the return of a market may change the return of the other markets at the same time. This change is called the “Spillover Effect”. Therefore, besides accurate modeling and forecasting of financial market volatility, examining their dependence can help investors, risk managers, and traders to create sustainable profits [
2].
The exchange rate is determined by the trade balance or current account balance of countries. Since the exchange-rate changes affect international competition and trade balance, these changes affect real incomes and input prices. An increase in the input cost leads to a decrease in profit firms and a decline in stock price [
3]. On the other hand, the exchange rate is determined by the supply and demand of financial assets such as equities and bonds, since expectations of relative changes in domestic currency have a significant effect on the price of financial assets. Bodnar and Gentry [
4] show that the relationship between firm profitability and exchange-rate changes depends on the nature and type of industrial activity. An increase in the exchange rate leads to a decline in the price of exported goods in the importing country, and if demand is high in the importing country, the export rate will increase and the exporting company will benefit. Conversely, an increase in the exchange rate will make imported goods more expensive and reduce the value of the importing company (Unless the importer’s firms can transfer the price increase to the end consumer). The empirical literature provides conflicting findings of the dynamic relationship between the exchange rate and the stock market. Aggarwal [
5], Kim [
6], Doong et al. [
7], and Dahir et al. [
3] showed a positive relationship between the exchange rate and the stock market index. Erdogan et al. [
8] showed that there were significant volatility spillover effects on the Islamic stock market to the foreign exchange market. According to Gavins [
9] and Zhao [
10], there is no relationship between exchange rates and stock prices. Hashim et al. [
11] showed a negative relationship between the exchange rate and the stock market.
Since individuals hold their financial assets in a combination of cash, gold, currency, bonds, and equities, changes in each market can affect individuals’ investment portfolios. Rising inflation, exchange-rate fluctuations, or political instability can lead to some form of market excitement and increase demand for gold. Various studies have been conducted on the relationship between gold prices and stock indices, some of which are as follows: Gilmore et al. [
12] showed that there is a cointegration between the gold price, the stock-market price of gold, and the US stock index. Mishra et al. [
13] showed that there is no correlation between the gold price and stock index in India. Srinivasan [
14] investigated the causal nexus between gold price, stock price, and exchange rate in India using ARDL. He showed that there exists no causality from gold price to stock price or vice versa in the short run. Arouri et al. [
15] examine the relationship between the global price of gold and the Chinese stock market over the period of 22 March 2004 through to 31 March 2011 in China. For this purpose, they used VAR-GARCH and other multivariate GARCH models such as DCC and CCC. Their research results show that past gold returns play an important role in explaining the dynamics of conditional returns and stock-market volatility. Jain and Biswal [
16], using a DCC-GARCH model, showed that falling gold and crude oil prices were causing the Indian stock market to decline. Yousaf and Ali [
17] showed that there are return and volatility spillovers between the gold and emerging Asian stock markets during the global financial crisis. Moreover, several studies in the literature exist about the relationship between gold and the exchange rate. Sjaastad [
18] found that since the dissolution of the Bretton Woods international monetary system, floating exchange rates among the major currencies have been a major source of price instability in the world gold market. Qureshi et al. [
19] using a wavelet approach showed that gold acts as a consistent short-run hedge against the exchange rate. Wang et al. [
20] argued that gold can partly hedge against the depreciation of the currency in the long run.
The purpose of this paper is to investigate the correlation between the volatility of gold, foreign exchange, and stock markets in Iran, using weekly average data from 27 September 2013 to 3 December 2021. For this purpose, this study compares two approaches, VAR-DCC-GARCH and DCC-GARCH, using out-of-sample evaluation by the wavelet-based random forest (WRF) model. Then, the co-movement of the volatility is analyzed using a continuous wavelet (CWT) in the timescale. Iran had been subjected to sanctions, a sharp increase in liquidity, and structural problems that caused inflation. Therefore, investors generally turned to invest in stocks, buying foreign currency, and gold. Given the increasing volatility in the underlying markets, this paper contributes to the literature on the Iranian financial market in the following ways:
It shows whether a conditional correlation exists in the weekly exchange rate, gold, and stock market returns by using DCC-GARCH and VAR-DCC-GARCH.
It reveals that performance of VAR-DCC-GARCH model is better than that of DCC-GARCH model using out-of-sample prediction by WRF.
It identifies the time-varying nature of the correlation among the Iranian financial market’s volatilities indexes using CWT.
This study helps investors identify the optimal portfolio by identifying asset-return volatility and portfolio diversification.
3. Discussion
The study employs weekly data on the Tehran Price Index, gold price, and Unofficial Free Exchange Rate (US Dollar) in the period from 27 September 2013 to 3 December 2021. The weekly return of the above variables can be defined as follows:
where
pt represents each variable under study. The descriptive statistics for the return series are shown in
Table 1. Accordingly, the mean returns on TEPIX, USD, and gold are 0.87, 0.55, and 0.636, respectively. All of the returns series exhibit positive skewness and asymmetry. According to the Jarque–Bera test, the null of normality is strongly rejected for all returns series.
The results of Pearson’s correlation coefficient are shown in
Table 2. Accordingly, the unconditional correlation between the returns on TEPIX–USD, TEPIX–gold and USD– gold returns are positive. Since this analysis is straightforward and does not consider the effect of time on the correlation between the series of returns, the conditional correlation method is used.
This study employs the VAR-DCC-GARCH and DCC-GARCH method to calculate the volatility of all returns. In order to estimate VAR-DCC-GARCH, it is necessary to determine the optimal lag. In this research, it is chosen a VAR(1) for the mean equation using Akaike and Schwartz Bayesian criteria. The results of this estimation model are reported in
Table 3.
The results of estimating the mean equation are presented in
Table 4.
,
,
are the coefficients of own-mean spillover.
and
are significantly positive. In other words, the lag of the return of the time series has a direct effect on the current indicators of the returns of the total stock index TEPIX and gold.
is significantly positive. This is not unexpected, because the exchange rate is controlled by the Iranian government. The coefficient of
and
indicate unidirectional and positive return spillover from USD and gold to TEPIX. In other words, when the prices of USD and gold rise, investors tend to increase their investment in the stock market. Moreover, the gold–USD return results
;
) indicate unidirectional and positive return spillover from USD to gold. This indicates that when the returns of USD increase, investors tend to increase their investment in gold as well.
In the following, the variance equations of the VAR-DCC-GARCH and DCC-GARCH are estimated.
Table 5 present the results of the variance equations of the VAR-DCC-GARCH and DCC-GARCH model. In this study,
,
, and
indicate intercept of TEPIX, USD, and gold, respectively. GARCH parameters (α and β) in two models are statically significant, and the α and β coefficients in the estimated equations are non-negative and satisfy the condition α + β < 1. The sum of coefficients in two models are in close unity, implying that shocks are strongly persistent. In other words, this condition guarantees that the volatility of the previous period affects the volatility of the current period.
For conditional correlation analyses, we use VAR-DCC-GARCH model. The estimated conditional correlation graphs in VAR-DCC-GARCH between the returns of variables are used in this paper. Therefore,
Figure 1,
Figure 2 and
Figure 3 show the dynamic conditional correlation trend between USD–TEPIX, gold–TEPIX, and USD-gold, respectively.
The dynamic conditional correlation volatility between USD–TEPIX in the range of −0.2657 and 0.7558. The mean correlation coefficient of volatility is 0.1068. These volatilities are positive for most years.
Figure 2 shows the dynamic conditional correlation between the returns of gold and TEPIX. The mean correlation coefficient volatility in the period under study is 0.12098. The highest and lowest correlation coefficients between gold–TEPIX are 0.7458 and −0.3338, respectively.
Figure 3 shows the dynamic conditional correlation of the returns of USD and gold. The mean correlation coefficient is 0.67409. The highest and the lowest correlation coefficients are 0.8626 and 0.3924, respectively.
The results show that the correlations between gold–TEPIX, USD–TEPIX, and gold–USD are positive. In addition, the correlation between gold–USD is the biggest than the others. It means that investing in the stock market can be considered as an appropriate investment against gold and USD and vice versa. Moreover, these figures show that co-movement between conditional correlations variables exist from early 2018 to December 2021.
3.1. Forecasting Performance
In this section, the wavelet-based random forest is used to select the best model for forecasting. In fact, we compare out-of-sample forecasting of two approaches, VAR-DCC-GARCH and DCC-GARCH, using the wavelet-based random forest (WRF). For this purpose, the time series of volatilities are calculated using the VAR-DCC-GARCH and DCC-GARCH methods, then these volatilities in the financial markets are predicted using the wavelet-based random forest.
Table 6 shows the performance metrics of the WRF modeling approach employed in this study. Comparing the RMSE, MSE, R-squared, and MAE, it indicates that the VAR-DCC-GARCH model outperforms the DCC-GARCH model.
3.2. Results of Wavelet Coherence Estimation
Applying volatilities extracted from VAR-DCC-GARCH model, the wavelet approach is used to examine the interconnected relationships between markets. The results of the coherence estimation are shown in
Figure 4,
Figure 5 and
Figure 6. The color of the graph shows the strength of coherency, ranging from blue (low coherency) to red (high coherency). Therefore, the more the color spectrum trends to red, the higher the correlation. The horizontal axis represents the time scale and the vertical axis represents the frequency. The graphs also show the frequency of the period (short, medium, and long term). In this way, the shortest period is 4 days and the longest is 256 days.
Figure 4 shows the correlation wavelet of volatilities in USD–TEPIX. According to the Figure, the color blue dominates for the most part in the short run, so there is no high correlation in the short run between volatilities in USD–TEPIX. However, in the medium term, despite the orange and red color spectrum between 2014 and 2015, it can be said that the correlation between USD–TEPIX volatilities has increased in the medium term. In the long run, there is correlation from 2016 to 2021.
The wavelet correlation analysis in gold–TEPIX volatilities is presented below in
Figure 5. In the short run, given that the blue color spectrum is predominant in most of the periods, there is a low correlation between volatilities in the pairs of gold and TEPIX. In the medium term, given the dominance of the orange and yellow spectrum, especially in the period between 2017, there is a correlation between the volatility of the two markets. In the long run, there is correlation between the volatility of these two markets.
Finally,
Figure 6 shows the correlation wavelet analysis on USD–gold volatilities. According to this figure, in the short and medium term from early 2016 to January 2020, given the dominant red color spectrum, a high correlation is observed in the volatilities of the returns of gold–USD. In the long run, the correlation trend in the volatilities of gold–USD has been increasing.
4. Conclusions
This study investigated the time-varying co-movement between the volatility of gold, exchange rate, and stock market returns in Iran. To do so, we first modelled the conditional correlations of financial markets using VAR-DCC-GARCH and DCC-GARCH models. Then, we compared the out-of-sample forecasting of these models. Finally, the CWT was used to study the co-movement between financial markets’ volatilities. The results of the wavelet-based random forest model showed that the forecasting performance of VAR-DCC-GARCH model is better than that of DCC-GARCH model. Furthermore, there are positive correlations between the returns of gold–TEPIX and USD–TEPIX, as well as the returns of USD–gold. On the other hand, the correlation between the returns of USD–gold is higher than the other paired markets. This result implies that investors can use stocks as a suitable investment against gold and USD to increase profitability and reduce risk in their portfolio, and vice versa. In addition, the existence of gold and USD in their portfolio can significantly eliminate the benefits of portfolio diversification and increase their portfolio risk. The results of the wavelet analysis showed that the correlation process of the volatilities in the returns of gold–USD is increasing in the medium and long term. This result helps investors to maximize profitability in the short, medium, and long terms by choosing different assets in their portfolios.