Professional Documents
Culture Documents
University of Calgary
2500 University Dr. NW
Calgary, Alberta, T2N 1N4, Canada
§ davidshow1@gmail.com
Abstract
The Hurst exponent derived by the R/S analysis method of Shanghai stock market’s logarith-
mic return series is about 0.6298. This shows that the Shanghai stock market exhibits fractal
features, and a long memory cycle of about one-and-a-half years. With the reconstruction of
phase space, the Shanghai Stock attractor dimension converges to 1.335, which means that the
Shanghai stock market has chaotic features, and constructing a dynamic system of the Shanghai
stock market needs at least two variables. The findings from the principal component analy-
sis support the conclusion of the existence of chaotic features of the Shanghai stock market.
§
Corresponding author.
133
June 29, 2012 11:16 0218-348X 1250012
The fractal and chaotic features of the Shanghai stock market reveal the nonlinear properties
of the Chinese stock market, and the nonlinearity perspective will be more conducive to the
formulation of countermeasures for the development of the Chinese stock market.
0 0
-0.01
-50
200 400 600 800 1000 80 100 120 140 160 180
There have been many attempts to study the chaotic features.19 Gao et al. pointed out that Chi-
fractal features of the financial markets: Wang and nese securities market operates in a chaotic state,
Wei believes that there exist multi-fractal features with the empirical evidence for the Lyapunov expo-
in the price volatility of the Shanghai Composite nent and the fractional dimension of the attractor.20
Index and the S&P 5006 ; Chen et al. used Rescaled Fractal and Chaos are the inherent properties of
R/S analysis to analyze the fractal features of the the nonlinear dynamical system; a universal phe-
Shanghai stock market and the Shenzhen stock nomenon existed in nonlinear system. The Frac-
market7 ; Huang also believes that there exist frac- tal theory explores the nature and the inherent
tal features in China’s stock market; Fan and Wei relationship in complex matters in the real world,
employed R/S analysis to provide empirical evi- and the Chaos theory is a science concerning the
dences for the fractal features of the Shanghai stock process (not the state) and its evolution (not the
market and the Shenzhen stock market8 ; Yoon and existence), which is applied to capture the com-
Kang believes that there exist long-term memory plexity of a system. The Fractal and the Chaos
and non-periodic cycle for the Korean stock index9 ; are the important contents of the nonlinear science,
Ashok Razdan thinks that the BSE index is frac- and both are closely related yet independent the-
tal10 ; Barkoulas and others pointed out that there oretic systems. The concept of Fractal originates
is striking long-term memory in some small emerg- from the space fractal, which provides new concep-
ing stock markets.11 tual and methodological framework completely dif-
ferent from the conventional Geometry. The strange
(chaotic) attractor of a chaotic system has fractal
2.2. Literature Review on Research features and can be characterized by the Fractal
on Chaos theory. By representing the fractal dimension of the
Chaos refers to a kind of initial values depen- strange attractor, we could know how many vari-
dent recurrent non-periodic motion generated by ables are needed to construct a dynamical model
a deterministic system, or the seemingly random for the system.
irregular motion of a deterministic system. Li and
Yorke (1975)12 proposed this concept in their paper, 3. INVESTIGATION OF THE
mathematically defined it and summarized three CHINESE STOCK MARKETS’
properties: the dependence on initial value, non- FRACTAL AND CHAOTIC
periodicity, and boundedness. In applications, the
FEATURES
determination of a chaotic system is conducted in
terms of the value of an attractor. If the attractor of 3.1. Data Source and Treatment
the phase space of the system has fractional dimen- Our data are taken from the Shanghai Component
sion character (correlation dimension), and if the Index, the closing prices during Dec. 19, 1990 to
system is sensitive to the initial state, the attractor July 1, 2010, including 4788 closing price data which
can be determined as a strange (chaotic) attrac- means 4786 log return data. The data treatment is:
tor.13 Crutchfield proposed the reconstruction of assuming the Shanghai Composite Index price is Pt
phase space to study the features of the chaotic at time t, and the time duration is one day, so the
attractor, and Takens laid a reliable mathematic daily log return is. ln Pt − ln Pt−1 . The log return is
foundation for the study.14 Grassberger and Procac- more suitable for R/S analysis than the percentage
cia reviewed the various algorithms for the attractor return rate, as the range for the R/S analysis is
of the chaotic system.15 Peters studied the chaotic the cumulative deviation from the mean: the sum
features of the S&P 500, and derived the correlation of the log return is just the cumulative return, but
dimension, 2.33, which implied that the stock mar- the percentage change hasn’t this characteristic.
ket has the properties of nonlinearity.16 Lim and
Liew investigated the Asian stock market indices,
and believed that the return series have striking 3.2. Tests of the Fractal Features
nonlinearity.17 Huang et al. believes that there exist Conventional statistics emphasizes on a great num-
fractal and chaotic features in the Shanghai and ber of incremental changes, thus often averaging out
Shenzhen stock markets.18 Fan and Wei thinks that the differences in the process of the change in a
there is chaotic features in Chinese stock markets.14 matter, and neglecting the phenomenon of the sin-
Li et al. believes that Chinese stock markets exhibit gular points of the system. But actually there exist
June 29, 2012 11:16 0218-348X 1250012
some singular points in a sustainable system, which 10-day separate increment data, and then the 10-
appear as local broken shock and fluctuations. Only day ranges can be calculated. We used the 10-day
when the incremental changes are treated in terms standard deviation to rescale each of the ranges
of the Fractal Statistics, can the nonlinear relation- and got 478 separate R/S observations. Averaging
ship between the local change and the global change the 478 R/S observations, we got the correspond-
be comprehensively and scientifically explained.21 ing R/S estimate for n = 10. We repeated the
There are several computing methods for the above procedure by setting n = 10, 11, 12, . . . , 2212,
fractal dimension of the time series, and the R/S the corresponding scatter plot for 2203 groups of
analysis is the most widely used one. In order to log(n) − log(R/S). It can be seen from Fig. 2, that
study the statistical features of the time series,
there is an obvious turning point first appeared at
Hust22 proposed the R/S analysis, which was later
(2.551, 1.43) in the curve. After this point, log(n) −
introduced by Mandelbrot,23 and May24 into the
log(R/S) does not hold the linear relationship. The
fractal analysis. Peters,16 and Qian and Rasheed25
theoretic analysis indicates that this point is the
summarized and applied the computing methods for
the Hurst Exponent. The idea of the R/S analysis corresponding mean cycle period corresponding for
for the testing for the fractal features is quite differ- the system, with the cycle period being 102.551 ≈
ent from the conventional statistical approach, with 355. In order to accurately investigate the point,
the former abandoning estimation and the distribu- we can study the scatter plot Fig. 3 for the statis-
tion assumption. For details of the R/S analysis, tic: Vn = (R/S)
√ n . In Fig. 3, the first turning point
n
please refer to Huang,4 and Fan and Wei.14 is (2.55, 1.657), then the corresponding period is
According to the R/S analysis, we started treat- 102.55 ≈ 355, that is, the mean cycle period for
ing the data by setting n = 10. The return series the Shanghai Stock Market is 355 trading days.
can be divided into 478 parts and every part is That cycle period implies that, on average, the stock
2
1.8
1.6 X: 2.551
Y: 1.43
1.4
log(R/S)
1.2
0.8
0.6
0.4
1 1.5 2 2.5 3 3.5
log(n)
Fig. 2 R/S analysis diagram for the Shanghai composite index daily return series.
2.5
X: 2.55
2 Y: 1.657
1.5
V
0.5
-0.5
-1
1 1.5 2 2.5 3 3.5
log(n)
Fig. 3 The V-statistic diagram for the R/S analysis for the Shanghai composite index daily return series.
June 29, 2012 11:16 0218-348X 1250012
market will lose the memory of the initial condition any variable of the system is decided by its inter-
after 355 trading days, or, the effect of an event will acting variables, so information of relevant vari-
last on the system for 355 trading days on average. ables is concealed in the development process of
Then we regressed on the 355 data points with any variable. In this way, we can extract and recon-
LSM, and derived the slope of the scatter plot, struct the original law of the system from a batch of
0.6298, that is to say, the Hurst Exponent estimate time series of a certain variable, which is a trajec-
H = 0.6298. The fractal dimension for the log return tory of a high dimensional phase space. When the
series of the Shanghai Composite Index D = 2−H = number of the delay coordinate m (which is also
1.37. The Correlation Degree is the measurement of the dimension of the reconstructed phase space)
the effect of an observation on the ensuing obser- is equal to or greater than 2d + 1 (d refers to the
vations of a time series. In our study, the correla- dimension of original dynamic system), a phase
tion Degree C = 22H−1 − 1 is 0.1971. The fractal space equivalent to the original system can be con-
dimension 1.37 and the Correlation Degree 0.1971 structed through an embedding method, in which
for the Shanghai stock market return series indicate the original dynamic system can be restored and
that the daily return series of the Shanghai Com- nature of the attractor of the original system can
posite Index is a persistent series, the observations be studied.26 Ruelle27 proposed the use the time
are positively correlated, and the return series curve sequence {Xi } and its successive delays motion
is smoother than a random walk. These properties [Xi , Xi+τ , . . . , Xi+(m−1)τ ] as coordinates of a new
also show that the price rise or fall continue its trend vector time series Yi = [Xi , Xi+τ , . . . , Xi+(m−1)τ ],
for some time, thus exhibiting volatility clustering. where τ is referred to as the delay time, and for a
digitized time series is a multiple of the sampling
interval used, while m is termed the embedding
3.3. Tests for Chaotic Features
dimension. Both τ and m reconstruction param-
3.3.1. Correlation dimension eters must be determined from the original data.
There are five basic determination methods for The embedding theorem tells us that the dynamic
chaotic time series commonly used at home and character of the new phase space is similar to the
abroad: power wave spectral method, the Poincaré original one. In this way, we could study dynamic
section, the Lyapunov Exponent, the principal com- character of the original time series by the new
ponent analysis, and the correlation dimension. phase space.26
Due to computational complexity of the first three Wolf 28 pointed out that time delay should meet
methods, we mainly adopt the last two methods fre- the following requirement — m×τ = Q (in which m
quently used in the previous literature. After sum- is the embedding dimension, τ is the time delay, and
marizing concrete steps of the correlation dimension Q is average orbital periods). The time delay is the
of times series put forward by literature, we test for proportion of the periodic orbit distributed to each
the chaotic features of China’s stock market. We dimension, which maintain the invariability of the
employ the principal component analysis finally to periodic orbit in a high dimensional phase space.
function as a useful proof. The periodic orbit refers to the time represented
by the point where the observations are indepen-
(1) Detrend the Data As for non-linear dynam- dent from each other in the R/S analysis method. In
ical system, it is not appropriate to analyze the the previous analysis we obtained the average cycle
original return time series. According to the fol- period of Shanghai stock market to be around 355
lowing formula, we detrend the price time series. trading days, and then we can calculate time delay
St = ln(Pt ) − ln(CPIt ), where, St is the detrended with different embedding dimensions. Analyze the
log price series; Pt is the original price series, namely obtained phase space dimension ranging from 4 to
the original series of Shanghai Composite Index; t 16. We learn that when m is 4, t is 88, and so in
refers to observation time. The value of CPI is the this way we can get different time delays of different
continuous Consumer Price Index in China with dimensions.
the year 1990 as its base period. Failing to get the
specific values of CPI on a daily basis, we use the
(3) Correlation Integral of the Reconstruc-
method of interpolation to estimate CPI value.
tion Phase Space Grassberger and Procaccia15
(2) Phase Space Reconstruction Phase space proposed using correlation integral to approxi-
reconstruction theory holds that the evolution of mate the fractal dimension. The correlation integral
June 29, 2012 11:16 0218-348X 1250012
Cm (R) is the probability of the distance between value of approximately 1.335. That implies that at
each pair of these points in an attractor is under R least two variables are needed to characterize the
(the distance between every two points in the space, dynamical features of the Shanghai stock market as
which can has different values; usually it is calcu- there is a chaotic feature in the time series of the
lated from the shortest to the longest distance). We Shanghai Composite Index.
can use the calculating methods summarized in Wei
to compute the fractal dimension of all the phase 3.3.2. Result of principal
spaces.14 The longer the time series for the calcula-
component analysis
tion of the fractal dimension, or the more the points
in the phase space, the more storage space it needs, According to the principal component analysis
which the performance of many ordinary comput- method introduced by Gong and Xu.29 For the
ers cannot satisfy. So we only set the time horizon time series {Xn }, n = 1, 2, . . . , N , when time dis-
as from Jan. 5, 1998 to June 30, 2010, with 3018 tance is τ and dimension is d, we could get a
pieces of data. First we calculate the Cm (R) for dif- new matrix Xl×d (l = N − d + 1); the relationship
ferent embedding dimension m, and then plot these between τ and d like what has stated in Phase Space
points in the coordinate of log(R) and log(Cm (R)), Reconstruction,
as shown in Fig. 4 of the correlation diagram for
x1 x2 L xd
the Shanghai stock market. For each embedding
dimension, we calculate the slope for the corre- 1
x2 x3 L xd+1
.
Xl×d = 1
sponding curve and thus get the estimate of the l 2 M M O M
corresponding fractal dimension for each embedding
xl xl+1 L xN
dimension. Table 1 lists the number of the fractal
dimension derived with LSM using the correlation Then we need to calculate the covariance matrix-A
integral. It can be seen from the data in Fig. 4 and of X to get A eigenvector-λ
d i , i = 1, 2, . . . , d. Finally,
Table 1, as the embedding dimension m increases, we get ri = ln λi − ln i=1 λi , and insert all i into
the curves for the correlation integral get increas- the X-axis and ri into the Y-axis, we get the spectral
ingly closer. Also, the number of dimensions in the graph for the principal component analysis. Theo-
correlation integral graph fluctuates when m = 15, retically, the spectral graph of noise is a horizontal
that is to the effect that the fractal dimension of the line, but the spectral graph of a chaotic signal has
phase space converges continuously, with the final a negative slope. We can get the 4 to 15 trajectory
-1 4 5 6 7 8 9 10 11 12 13 14 15 16
-2
log(Cm(R))
-3
-4
-5
-6
-7
-3 -2.5 -2 -1.5 -1 -0.5 0 0.5
log(R)
Fig. 4 The correlation integral graph for the Shanghai stock market daily log return series.
Table 1 The Regression Results for the Correlation Dimension Slope for the Shanghai Stock
Market.
m 4 6 8 9 10 11 12 13 14 15 16
Dm 1.2914 1.3125 1.3240 1.3253 1.3301 1.3315 1.3329 1.3341 1.3361 1.3367 1.3352
June 29, 2012 11:16 0218-348X 1250012
0
-0.5
-1
-1.5
-2
ri
-2.5
-3
-3.5
-4
-4.50 5 10 15
i
Fig. 5 Spectral graph for the principal component for the daily log return.
matrix (which means d is from 4 to 15) for the cor- stock market, reflecting the fluctuant cluster-
responding return series; then solve for the covari- ing. Maybe because the information presents
ance matrix; finally we get the spectral graph for the itself in a nonlinear way, and people’s response
principal component for the daily log return of the to information also is nonlinear, the fluctua-
Shanghai stock market (see Fig. 5). From lower left tion of Chinese stock market index exhibits
to upper right, the figures show that the spectral in a nonlinear way; all the above-mentioned
graph for the principal component for trajectory factors produce an effect on the stock index
matrix with the dimension ranging from 4 to 15 suc- through market transaction, and eventually,
cessively. Their slope is −1.1438, −0.8313, −0.6429, the stock index series present a nonlinear
−0.5191, −0.4327, −0.3693, −0.3211, −0.2834, character.
−0.2532, −0.2285, −0.2080, −0.1907 respectively. It (2) Generally speaking, there are over 240 trading
can be clearly seen that those dots suggest a straight days every year, and the average cycle period
line skewing to the bottom right. The characteristic of Shanghai stock market is around 355 trad-
of the graph (all these lines have a negative ing days, which is about one and a half years.
slope) indicates the existence of chaotic features The cycle is not for price; instead, it shows the
of the log return series of the Shanghai stock average memory span of the system to initial
market. conditions, that is to say, the system will no
longer depend on its initial conditions after one
and a half years, or an exogenous variable will
4. SUMMARY have no effects on the system after about a year
(1) Based on that Hurst exponent is 0.6298 and and a half.
fractal dimension is 1.335, we believe that the (3) As embedding dimension increases, the esti-
chaotic features exist in the Shanghai stock mated fractal dimension converges to 1.335,
market. Considering these results, the stock which means that the Shanghai stock mar-
market in China does not follow the Gaussian ket is neither of point equilibrium nor line
distributions but fractal distributions, and so equilibrium as in the conventional economics.
the variance cannot be used as a benchmark Instead, a strange attractor exists. Since the
of market risk. Different from assumed con- system has chaotic features, establishing the
ditions of EMH, the stock market in China dynamic model of the Shanghai stock market
whose Hurst exponent is 0.6298 does not show needs at least two independent variables. How-
the feature of random walk, nor it is an inde- ever, due to the complexity of stock market,
pendent process. Instead, it runs in a mutu- the selection of those two variables is not easily
ally dependent manner, because its correlation recognizable. From the spectral graph for the
dimension is not 0. H is greater than 0.5, which principal component of the stock return series,
also reveals that an incident of the Shanghai different verification methods come to the same
stock market may exert lasting impact. Con- conclusion: there are chaotic characteristics in
tinuous ups and downs exist in the Shanghai Shanghai stock market.
June 29, 2012 11:16 0218-348X 1250012