Abstract
Using an Ising-based model extended to simulate multiple stock time series, we perform a large-scale simulation for a financial system with 100 stocks. We find that the financial system shows fat-tailed return distributions and the system volatility level measured as an average of absolute-returns changes over time. We investigate the dynamical properties of cross-correlation matrices among stocks and find that the eigenvalue distributions of the cross-correlation matrices deviate from those of the random matrix theory. It is found that the cumulative risk fraction (CRF) constructed from the largest eigenvalues changes at periods where the volatility level is high. The inverse participation ratio (IPR) and its higher-power version, IPR6, also exhibit the changes at the same high volatility periods. Therefore, the CRF, IPR, and IPR6 are expected to be useful measurements to identify abnormal states such as high-volatility periods.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Asset price returns are known to exhibit some universal properties that are now classified as the “stylized facts,” see, for example, Cont (2001). The notable properties included in the stylized facts are the fat-tailed distributions of returns and volatility clustering, which are not explained by the standard Gaussian process. A promising explanation on the asset price dynamics is the mixture of distribution hypothesis by Clark (1973), that is, the price return \(R_t\) is described by a Gaussian process with time-varying volatility, \(R_t=\sigma _t \epsilon _t\), where \(\sigma ^2_t\) and \(\epsilon _t\) are the volatility and standard normal random variable at time t, respectively. Under the mixture of distribution hypothesis, the volatility changes according to the rate of information arrival. Since the rate of information arrival is latent in the real markets, Clark uses volume as a proxy of it. Empirically, the price return dynamics is examined by checking whether \(R_t/\sigma _t\) recovers the standard normal random variable, and studies using the realized volatility claim that the price return dynamics is consistent with the Gaussian process with time-varying volatility (Andersen and Bollerslev 1998; Andersen et al. 2000, 2001a, b, 2007, 2010; Takaishi 2012; Takaishi et al. 2012).
To simulate a financial market, Bornholdt proposed an Ising-based model by including Ising spins that have either of the two states, namely “buy” state and “sell” state (Bornholdt 2001). It is shown that the model successfully captures major stylized facts such as fat-tailed distributions and volatility clustering (Bornholdt 2001; Yamano 2002; Kaizoji et al. 2002; Krause and Bornholdt 2013). The model was extended to a Potts-like model where three spin states are considered, and it is confirmed that the Potts-like model also exhibits the stylized facts (Takaishi 2005). Further, the return dynamics of the Ising-based models were checked by testing whether \(R_t/\sigma _t\) recovers the standard normal random variable, and it is verified that the return dynamics is consistent with the Gaussian process with time-varying volatility same as the real financial markets (Takaishi 2013a, 2014).
The real financial market is a complex system that includes many stocks correlated with each other. Measuring correlations among stocks is of great importance to investigate the stability of financial markets, and a considerable number of studies are devoted to unveil properties of correlations among stocks (Plerou et al. 1999; Laloux et al. 1999; Plerou et al. 2000, 2002; Utsugi et al. 2004; Kim and Jeong 2005; Wang et al. 2011). While the original Bornholdt model simulates only one stock, the model was extended to simulate multiple stock time series in Takaishi (2015a, b), and simulations including up to three stocks were done. In this study, we make a large-scale simulation that includes 100 stocks and investigate the dynamical properties of cross-correlations among stocks. Further, we apply the principal component analysis and measure the cumulative risk fraction to monitor the states of the financial system. Finally, we calculate the inverse partition function (IPR) and its higher power version and claim that they are also useful to investigate states of the system.
2 Multiple time series Ising model
The multiple time series Ising model has been introduced in Takaishi (2015a, b) to simulate a financial system that includes many correlated stocks. Let us consider, a financial market, where N stocks are traded. We assume that agents locate on sites of an \(L \times L\) square lattice and the number of agents is \(P=L \times L\). Each agent has a spin \(s_i\) that takes two states, either \(+1\) or \(-1\), where i stands for the i-th agent. We assign “\(+1\)” to the “buy” state and “\(-1\)” to the “sell” state. The agents flip their spin states probabilistically according to a local field. The local field of the i-th spin \(h_i^{(k)}(t)\) at time t for the k-th stock is defined by
where \(\langle i,j\rangle\) stands for a summation over the nearest neighbor pairs, J is the nearest neighbor coupling, and in this study, we set \(J=1\). The first term on the right-hand side of Eq. (1) with \(J>0\) introduces the ferromagnetic effect that tends to align the nearest neighbor spins with the same sign. This effect corresponds to the herd behavior in financial markets, that is, the majority effect. \(M^{(k)}(t)\) is the magnetization that measures an imbalance between “buy” and “sell” states, given by \(M^{(k)}(t)=\frac{1}{P}\sum _{l=1}^P s_l^{(k)}(t)\) and the absolute value of \(M^{(k)}(t)\), that is, \(|M^{(k)}(t)|\) corresponds to the magnitude of the market bubble. The second term proportional to \(|M^{(k)}(t)|\) introduces the effect that promotes a spin-flip, which corresponds to the minority effect. The third term describes the interaction with other stocks. More precisely, this interaction couples to the magnetization of other stocks and introduces an effect of imitating the states of other stocks. The magnitude of the interaction is given by the interaction parameters that form a matrix \(\gamma _{lm}\) having zero diagonal elements, that is, \(\gamma _{ll}=0\). Although the parameter \(\alpha ^{(k)}\) can vary depending on the stock, in this study, we assume that all \(\alpha ^{(k)}\) have the same value, that is, \(\alpha ^{(k)} \equiv \alpha\). As in the Bornholdt model, the states of spins are updated according to the following probability p:
3 Simulation study
In previous studies (Takaishi 2015a, b), the model for a financial system with up to 3 stocks was simulated. In this study, we make a large-scale simulation for the model. Specifically, we consider a financial system trading 100 stocks. Each stock is traded by 14400 agents on a \(120\times 120\) lattice. Thus, in total, 1440000 agents are introduced in a simulation.
We perform simulations for two parameter sets. One is set to \((\beta ,\alpha )=(2.0,35)\) and all elements of the interaction matrix \(\gamma\) are set to zero, that is, in this case, all 100 stocks are simulated independently and no correlation is introduced among stocks. This parameter set is denoted by “Set A.” The other is set to \((\beta ,\alpha )=(2.0,55)\) and twenty percent of off-diagonal elements in \(\gamma\) are set to non-zero values drawn from Gaussian random numbers with an average 0.05 and variance 0.1. The remaining elements are set to zero. Then, the other parameter set is denoted by “Set B.”
Here, note that for the 2-dimensional Ising model, the critical temperature \(T_c=1/\beta\) is 2.269. Thus, the temperature \(T=1/\beta =0.5\) for our simulations is below \(T_c\) and our model with \(\alpha =0\) is in the ferromagnetic (ordered) phase. However, the \(\alpha\)-term introduces the effect that destroys the ferromagnetic phase and causes the paramagnetic (disordered) phase. Our model with \(\alpha > 0\) results in a non-equilibrium where both the ferromagnetic and paramagnetic phases appear (Bornholdt 2001; Takaishi 2013a).
The states of spin are updated according to Eq. (2) in random order and the periodic boundary condition is employed. After discarding the first \(5\times 10^3\) updates as thermalization, we collect data from \(3\times 10^4\) updates for analysis.
Following Kaizoji et al. (2002), the return of the k-th stock is defined by the difference of the magnetization, \(R_k(t)=(M^{(k)}(t+1)-M^{(k)}(t))/2\), where t is incremented in units of one update. Since the simulation generates 100 return time series, which are too many to show, we only show a representative return time series for Sets A and B in Fig. 1. It is found that the magnitude of returns for both Sets A and B changes over time, and we observe volatility clustering (Mandelbrot 1963; Fama 1970), which is one of the stylized facts often seen in the real financial markets (Mantegna and Stanley 1997; Gopikrishnana et al. 1999). To measure volatility persistency, we apply the exponential GARCH (EGARCH) model (Nelson 1991) for each representative return time series. The EGARCH model is described as follows:
where \(z_{t-1}=R_{t-1}/\sigma _{t-1}\), and \(\omega ,\rho ,\theta\) and \(\gamma\) are EGARCH parameters. We perform the parameter estimation of the EGARCH model by the Markov chain Monte Carlo method with the adaptive proposal density (Takaishi 2009a, b, c, 2010, 2013b; Takaishi and Chen 2012). Table 1 lists the results of the EGARCH parameters. Parameter \(\rho\) measures the volatility persistency and we find that \(\rho\) is very close to one for both Sets A and B, which means that volatility is very persistent, that is, the volatility is long-correlated.
Figure 2 shows the return distributions of Sets A and B. The return distributions are constructed from the normalized returns, that is, each return time series is normalized as \(\bar{R}_k(t)=(R_k(t)-\mathrm{ave}_k)/\sigma _k\), where \(\mathrm{ave}_k\) is the average value of \(R_k(t)\) and \(\sigma _k\) is the standard deviation of \(R_k(t)\). We find that both the return distributions exhibit the fat-tailed property. The fat-tailed nature of return distributions in real financial markets has been investigated in literature, such as in Lux (1996) and Gopikrishnana et al. (1998, 1999), and the power law behavior for the return distributions is documented. Our results in Fig. 2 show an exponential behavior for the return distributions rather than the power law behavior. Appearance of the exponential behavior is not surprising, because the form of the return distributions may depend on the financial market we consider, and the exponential behavior for the return distributions has been found in the Indian stock market (Matia et al. 2004).
To quantify the volatility level of the system, we use \(|R_k(t)|\) as a proxy of the volatility and define a volatility index by an average of \(|R_k(t)|\):
Figure 3 shows the volatility index I(t) for Sets A and B. While the volatility index of Set A is stable over time, that of Set B varies considerably through time. The average volatility is high in several periods. We denote such periods by E1–E4 as in Fig. 3.
4 Properties of cross-correlation
Let \(R_k(t)\) be a return for stock k \((k=1,\ldots ,N)\) at time t \((t=1,\ldots ,T)\), where \(N=100\) and \(T=30000\). Further, we define the normalized return \(m_k(t)\) as
where \(\langle \ldots \rangle\) indicates the time-series average and \(\sigma _k\) is the standard deviation of \(R_k(t)\). Using the normalized return \(m_k(t)\), an equal-time cross-correlation matrix is calculated as \(c_{kj} =\langle m_k m_j \rangle\). To study the dynamical properties of cross-correlation, the average \(\langle \ldots \rangle\) is taken over a period of the rolling window and we consider a window size of 200. By definition, the elements of the cross-correlation matrix are restricted to \(-1 \le c_{kj} \le 1\). Further, we do the same analysis for the absolute-return time series of \(|R_k(t)|\).
Figure 4 shows the dynamical evolution of the average off-diagonal matrix element \(\langle c \rangle\) given by
for returns. It seems that the average off-diagonal matrix elements of Set A and those of B fluctuate around zero. The time-series average of off-diagonal matrix element for Set A is \(-3.9 \ (70)\times 10^{-5}\) and consistent with zero within the error range. On the other hand, that for Set B is found to be \(7.4 \ (11)\times 10^{-4}\) and, thus, non-zero.
Figure 5 shows the same figure as in Fig. 4 but for absolute returns. Although the average off-diagonal matrix elements fluctuate around zero for Set A, those of Set B deviate from zero and have an upward tendency.
5 Cumulative risk fraction
To further investigate the dynamical properties of cross-correlation matrices, the principal component analysis (PCA) is applied. Billio et al. (2012) suggested to use the PCA to quantify the systemic risk and introduced the cumulative risk fraction (CRF) as a risk measure. The CRF has also been studied in Kritzman et al. (2011), Zheng et al. (2012) and Ren and Zhou (2014). To calculate the CRF, we first compute the eigenvalues of the cross-correlation matrix, denoted as \(\lambda _1,\lambda _2,\dots ,\lambda _N\), where all eigenvalues are sorted as \(\lambda _1>\lambda _2>\cdots >\lambda _N\). Then, we calculate the CRF defined by Billio et al. (2012):
where \(\Omega\) is the total variance of the system given by \(\Omega = \sum _{j=1}^N \lambda _j\) and \(\omega _m\) is the risk associated with the first m principal components, given by \(\omega _m= \sum _{j=1}^m \lambda _j\). The CRF quantifies the portion of the system variance explained by the first m principal components (Kritzman et al. 2011). Usually, the first few principal components explain most of the system variance. In the periods of financial crisis, many stocks are highly interconnected and their prices easily move together. Therefore, the volatility of stocks also increases. In such financial crisis periods, the CRF is expected to increase considerably because the system variance also increases.
Figure 6a shows the CRF1 to CRF5 from the cross-correlation matrices of returns for Set B. We find that there are four bulges that correspond to E1–E4 as in Fig. 3. Figure 6b shows the CRF1 to CRF5 of absolute returns for Set B. We also find that considerable decreases exist in the CRF corresponding to E1–E4. These findings may suggest that for changes in the CRF, it is more important to locate the places where the potential risk is high and an empirical study on changes of the CRF has been already done in Zheng et al. (2012).
6 Comparison with random matrix theory
Let \(y_k(t)\) be an independent, identically distributed random variable with \(k=1,\ldots ,N\) at time \(t=1,\ldots ,T\). The normalized variable is defined by
where \(\sigma _{y_k}\) is the standard deviation of \(y_k\). The equal-time cross-correlation between variables \(y_k(t)\) is given by \(W_{kj}=\langle w_k w_j \rangle\). The matrix W is called the Wishart matrix. For \(N\rightarrow \infty\) and \(T\rightarrow \infty\) with \(Q=T/N>1\), an eigenvalue distribution of the random matrix W is theoretically given by Edelman (1988) and Sengupta and Mitra (1999):
Figure 7 shows the eigenvalue distribution of the random matrix W with \(Q=200/100=2\) and that of the cross-correlation matrix for Set B. The eigenvalue distributions for Set B deviate from the random matrix theory (RMT), especially at large eigenvalues. The largest eigenvalue calculated from return (absolute return) data is 3.46 (10.71), which is beyond the largest eigenvalue, 2.91 from the RMT. It is known that in the real financial markets, the largest eigenvalue is far beyond that from the RMT (Plerou et al. 1999; Laloux et al. 1999). Although we find a similar deviation for Set A, the deviation from the RMT for Set B is more sizeable than that for Set A.
Next, we dynamically calculate the IPR that characterizes the eigenvectors, defined by
where \(v_l^j\) is the j-th component of the eigenvector for the l-th eigenvalue. In the RMT, the eigenvector components are de-localized and distributed as a Gaussian distribution \(\sim \sqrt{\frac{N}{2\pi }}\exp \left( -\frac{N}{2}(v_l^j)^2\right)\). In such a case, the expectation of the IPR is 3/N. On the other hand, when the eigenvector components are localized, for example, only one component has a non-zero value, the expectation of the IPR would be 1. Further, one can also extend the IPR to the higher power version such as IPR6 defined by
The expectation of the IPR6 in the RMT is calculated to be \(15/N^2\).
Figure 8 shows the IPR(1) and IPR6(1) from the return cross-correlation for Set B, that is, those for the largest eigenvalue. Although both the IPR(1) and IPR6(1) deviate from the RMT indicated by the lines of 3/N and \(15/N^2\), no structural change corresponding to E1–E4 is seen. Thus, in this model, the IPR and IPR6 from the return cross-correlation are found to be insensitive to the volatility level.
Figure 9 shows the IPR(1) and IPR6(1) from the absolute-return cross-correlation for Set B. We find that the IPR(1) and IPR6(1) deviate largely from the RMT and that large increases exist at locations corresponding to E1–E4. Although we also calculated the IPR(l) and IPR6(l) for \(l>1\), that is, for lower eigenvalues, no structural change corresponding to E1–E4 was seen. Therefore, it seems that only the IPR and IPR6 for the largest eigenvalue are sensitive to the volatility (risk) level of the system.
7 Conclusions
Using the multiple time series Ising model, we performed a large-scale simulation with 100 stocks on a \(120\times 120\) lattice and investigated the dynamical properties of cross-correlation between stock returns. The simulation with a non-zero interaction matrix shows that there exist several periods where the volatility is especially high.
Further, we investigated the cumulative risk fraction (CRF) that is expected to measure the system risk and found that the CRF changes considerably at the high-volatility phases. The inverse partition ratio (IPR) and its higher power version, IPR6, were also investigated, and we found that the IPR and IPR6 from absolute-returns change at the same periods where the volatility is high. Our findings suggest that the CRF, the IPR, and IPR6 are useful measurements to identify abnormal states such as high-volatility periods.
Our model successfully reproduced major stylized facts such as the volatility clustering and fat-tailed return distribution. However, there exist some differences between our model and the real financial markets. For instance, the largest eigenvalue for the return cross-correlation matrix is only slightly beyond that for the random matrix theory and not far beyond that in the real financial markets. Moreover, the IPR and IPR6 from returns seem to have no sensitivity on the market status, as shown in Fig. 8. Therefore, further studies are needed to clarify the difference between both and to obtain some insights to improve our model.
References
Andersen TG, Bollerslev T (1998) Answering the skeptics: yes, standard volatility models do provide accurate forecasts. Int Econ Rev 39:885–905
Andersen TG, Bollerslev T, Diebold FX, Labys P (2000) Exchange rate returns standardized by realized volatility are (nearly) Gaussian. Multinatl Financ J 4:159–179
Andersen TG, Bollerslev T, Diebold FX, Labys P (2001a) The distribution of realized exchange rate volatility. J Am Stat Assoc 96:42–55
Andersen TG, Bollerslev T, Diebold FX, Ebens H (2001b) The distribution of realized stock return volatility. J Financ Econ 61:43–76
Andersen TG, Bollerslev T, Dobrev D (2007) No-arbitrage semi-martingale restrictions for continuous-time volatility models subject to leverage effects, jumps and i.i.d. noise. J Econom 138:125–180
Andersen TG, Bollerslev T, Frederiksen P, Nielsen M (2010) Continuous-time models, realized volatilities, and testable distributional implications for daily stock returns. J Appl Econom 25:233–261
Billio M, Getmansky M, Lo AW, Pelizzon L (2012) Econometric measures of connectedness and systemic risk in the finance and insurance sectors. J Financ Econ 104:535
Bornholdt S (2001) Expectation bubbles in a spin model of markets: intermittency from frustration across scales. Int J Mod Phys C 12:667–674
Clark PK (1973) A subordinated stochastic process model with finite variance for speculative prices. Econometrica 41:135–155
Cont R (2001) Empirical properties of asset returns: stylized facts and statistical issues. Quant Financ 1:223–236
Edelman A (1988) Eigenvalues and condition numbers of random matrices. SIAM J Matrix Anal Appl 9:543–560
Fama EF (1970) The behaviour of stock market prices. J Bus 38:34–105
Gopikrishnana P, Meyer M, Amaral LAN, Stanley HE (1998) Inverse cubic law for the distribution of stock price variations. Eur Phys J B 3:139–140
Gopikrishnan P, Plerou V, Amaral LAN, Meyer M, Stanley HE (1999) Scaling of the distribution of fluctuations of financial market indices. Phys Rev E 60(5):5305
Kaizoji T, Bornholdt S, Fujiwara Y (2002) Dynamics of price and trading volume in a spin model of stock markets with heterogeneous agents. Physica A 316:441–452
Kim D, Jeong H (2005) Systematic analysis of group identification in stock markets. Phys Rev E 72:046133
Krause SM, Bornholdt S (2013) Spin models as microfoundation of macroscopic financial market models. Physica A 392:4048–4054
Kritzman M, Li YZ, Page S, Rigobon R (2011) Principal components as a measure of systemic risk. J Portf Manag 37:112
Laloux L, Cizeau P, Bouchaud J, Potters M (1999) Noise dressing of financial correlation matrices. Phys Rev Lett 83:1467–1470
Lux T (1996) The stable Paretian hypothesis and the frequency of large returns: an examination of major German stocks. Appl Financ Econ 6(6):463–475
Mandelbrot B (1963) The variation of certain speculative prices. J Bus 36:394–419
Mantegna RN, Stanley HE (1997) Stock market dynamics and turbulence: parallel analysis of fluctuation phenomena. Physica A 239:255–266
Matia K, Pal M, Salunkay H, Stanley HE (2004) Scale-dependent price fluctuations for the Indian stock market. Europhys Lett 66(6):909–914
Nelson DB (1991) Conditional heteroskedasticity in asset returns: a new approach. Econometrica 59:347–370
Plerou V, Gopikrishnan P, Rosenow B, Amaral LAN, Stanley HE (1999) Universal and non-universal properties of cross-correlations in financial time series. Phys Rev Lett 83:1471–1474
Plerou V, Gopikrishnan P, Rosenow B, Amaral LAN, Stanley HE (2000) A random matrix theory approach to financial cross-correlations. Physica A 287:374–382
Plerou V, Gopikrishnan P, Rosenow B, Amaral LAN, Guhr T, Stanley HE (2002) Random matrix approach to cross correlations in financial data. Phys Rev E 65:066126
Ren F, Zhou WZ (2014) Dynamic evolution of cross-correlations in the Chinese stock market. PLoS One 9(5):e97711
Sengupta AM, Mitra PP (1999) Distributions of singular values for some random matrices. Phys Rev E 60:3389
Takaishi T (2005) Simulations of financial markets in a Potts-like model. Int J Mod Phys C 16:1311–1317
Takaishi T (2009a) An adaptive Markov chain Monte Carlo method for GARCH model. In: Lecture notes of the Institute for Computer Sciences, social informatics and telecommunications engineering. Complex science, vol 5, pp 1424–1434
Takaishi T (2009b) Bayesian estimation of garch model with an adaptive proposal density. In: New advances in intelligent decision technologies, studies in computational intelligence, vol 199, pp 635–643
Takaishi T (2009c) Bayesian inference on QGARCH model using the adaptive construction scheme. In: Proceedings of 8th IEEE/ACIS international conference on computer and information science, vol 525. doi:10.1109/ICIS.2009.173
Takaishi T (2010) Bayesian inference with an adaptive proposal density for GARCH models. J Phys: Conf Ser 221:012011
Takaishi T (2012) Finite-sample effects on the standardized returns of the Tokyo stock exchange. Proc Soc Behav Sci 65:968–973
Takaishi T (2013a) Analysis of spin financial market by GARCH model. J Phys: Conf Ser 454:012041
Takaishi T (2013b) Markov chain Monte Carlo versus importance sampling in Bayesian inference of the GARCH model. Proc Comput Sci 22:1056–1064
Takaishi T (2014) Realized volatility analysis in a spin model of financial markets. In: JPS conference Proceedings, p 019007
Takaishi T (2015a) Multiple time series Ising model for financial market simulations. J Phys Conf Ser 574:012149
Takaishi T (2015b) Some properties of multiple time series Ising model in financial market simulations. In: 2015 IEEE international conference on cyber technology in automation, control, and intelligent systems (CYBER), pp 104–108. doi:10.1109/CYBER.2015.7287918
Takaishi T, Chen TT (2012) Bayesian inference of the GARCH model with rational errors. IPEDR 29:303–307
Takaishi T, Chen TT, Zheng Z (2012) Analysis of realized volatility in two trading sessions of the Japanese stock market. Prog Theor Phys Suppl 194:43–54
Utsugi A, Ino K, Oshikawa M (2004) Random matrix theory analysis of cross correlations in financial markets. Phys Rev E 70:026110
Wang D, Podobnik B, Horvatić D, Stanley HE (2011) Quantifying and modeling long-range cross correlations in multiple time series with applications to world stock indices. Phys Rev E 83:046121
Yamano Y (2002) Bornholdt’s spin model of a market dynamics in high dimensions. Int J Mod Phys C 13:89–96
Zheng Z, Podobnik B, Feng L, Li B (2012) Changes in cross-correlations as an indicator for systemic risk. Sci Rep 2:888
Acknowledgments
Numerical calculations in this work were carried out at the Yukawa Institute Computer Facility and the facilities of the Institute of Statistical Mathematics. Discussions during the YITP workshop YITP-W-15-15 on ``Econophysics 2015'' were useful to complete this work.
Author information
Authors and Affiliations
Corresponding author
About this article
Cite this article
Takaishi, T. Dynamical cross-correlation of multiple time series Ising model. Evolut Inst Econ Rev 13, 455–468 (2016). https://doi.org/10.1007/s40844-016-0051-4
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40844-016-0051-4