September 22, 2004 16:35 WSPC/140-IJMPB

02593

International Journal of Modern Physics B Vol. 18, Nos. 17–19 (2004) 2697–2702 c World Scientific Publishing Company

MODELING STOCK MARKET BASED ON GENETIC CELLULAR AUTOMATA

TAO ZHOU∗,† , PEI-LING ZHOU∗ , BING-HONG WANG† , ZI-NAN TANG∗ and JUN LIU∗ ∗Department

of Electronic Science and Technology, University of Science and Technology of China, Heifei Anhui, 230026, P. R. China

†Department

of Modern Physics and The Nonlinear Science Center, University of Science and Technology of China, Heifei Anhui, 230026 P. R. China Received 31 August 2003

An artificial stock market is established with the modeling method and ideas of cellular automata. Cells are used to represent stockholders, who have the capability of self-teaching and are affected by the investing history of the neighboring ones. The neighborhood relationship among the stockholders is the expanded Von Neumann relationship, and the interaction among them is realized through selection operator and crossover operator. Experiment shows that the large events are frequent in the fluctuations of the stock price generated by the artificial stock market when compared with a normal process and the price returns distribution is a L´ evy distribution in the central part followed by an approximately exponential truncation. Keywords: Complex systems; artificial stock market; cellular automate; genetic operator; multi-agent.

Financial markets are typical complex systems in which the large-scale dynamical properties depend on the evolution of a large number of nonlinear-coupled subsystems. The efficient market hypothesis (EMH) based on rational expectation assumption considers the price of financial markets a random walk, thus the variety of price is unpredictable. In the recent years, the EMH suffers the impugnation on rational expectation assumption and the challenge of actual financial data,1 and some financial markets models are established, including behavior-mind model,2,3 dynamic-games model,4 multi-agent model,5 – 9 and so on. Cellular automata (CA) model is a special multi-agent model in which the topological structure is fixed. It is widely applied in both natural science and social science.10,11 In this paper, an artificial stock market based on genetic cellular automata is established. Cells are used to represent stockholders, who has the capability of self-teaching and are affected by the investing history of the neighboring ones. The topological structure of CA in this paper is a two-dimensional square lattice with periodic boundary conditions, which can be considered as the expanded Von 2697

September 22, 2004 16:35 WSPC/140-IJMPB

2698

02593

T. Zhou et al.

Neumann relationship. The information flow will not be cut off by the array-edge in this network, and since the network is vertex-transitive,12 each individual has complete symmetrical position in the corresponding network. Before a trade, each stockholder should choose the trading strategies: to buy, to sell or to ride the fence. The stockholder’s decision includes two steps: first, each stockholder works out a preparatory decision according to the history of its investment and the stock price. The stockholders of different risk-properties have different decision methods. The risk-neutral individuals directly inherit the last decision. The risk-aversed individuals’ investing strategy is to buy at a low price and to sell at a high price. For an arbitrary risk-aversed individual A, if the average price of A’s shares in hand is hpi (if A have not any shares in hand, we let hpi be the mean price of the stock) and the present stock price is s(t), then A’s decision is to depend on the parameter x = (s(t) − p)/p ∈ (−1, +∞). She will chose to p 1 − (x + 1)2 when x ≤ 0 and to sell at the probability buy at the probability √ 2 3)x when x > 0, otherwise, she will hold shares. The risk-taking π arctan 2(2 + individuals tend to buy at a up-going price and to sell when the price is down-going. According to the present up-going range of stock price c = (s(t) − s(t −√1))/s(t − 2 1) ∈ (−1, +∞), they will chose to buy at the probability π arctan 10 3x when √ 2 x ≥ 0, and to sell at the probability π arctan(−10 3x) when x < 0, otherwise, they will do nothing. The individuals’ risk-properties are given randomly in initializing process, and can change along with the evolvement of the stock market. If an individual chose to buy or to sell, she should determine the price and amount of the trading-application. The buying-price and selling-price will be chosen completely randomly in the interval [s(t), 1.1s(t)] and [0.9s(t), s(t)] respectively. The tradingamount is proportional to the quantity of capital owned by swapper. After that, each stockholder starts to investigate its neighbors and change its decision (even its risk-property) at a certain probability. That is, the next risk-property and the final decision of an individual is obtained by choosing neighboring individual to carry on genetic operation. Considering that stockholders are always inclined to listen to the winners, the individual beneficial coefficient κ is set as the ratio of current capitalization to initial capitalization. Then the individual’s fitness is F = κh (h ≥ 0), where h is called the influence factor. The gap between winners’ and losers’ influence will grow larger if h grows bigger. Among the four neighbors, the central individual will select one to run the crossover operation at the probability, between whom and the individual’s fitness there is a direct proportion. The riskproperty and the decision of each individual are naturally divided into four types of genes logically, including risk-property, deal-decision, price-decision and amountdecision. In this paper, the four genes’ crossing over operation is independent from each other. The offspring draws its final decision or changes its risk-property by selecting the genes of the central individual at the probability of λ, and of the neighboring individual at the probability of 1 − λ. The parameter λ ∈ [0, 1] is called individual independence degree, which describes the affection of neighboring ones upon the individual. It should be emphasized that the stockholder’s risk-property

September 22, 2004 16:35 WSPC/140-IJMPB

02593

Modeling Stock Market Based on Genetic Cellular Automata

2699

and final decision may be changed at a very small mutation probability. The buyer with higher price and the seller with lower price will trade preferentially, and the trading-price is the average of seller’s and buyer’s price. The stock price is the weighted average of trading-price according to the trading-amount. When proper initial condition and parameters have been chosen, the artificial stock market can generate its stock price whose trend and fluctuations are rather similar to that of real stock market. Figure 1 gives a simulating experimental result. In the experiment we set the market size as 40 × 40 (i.e. 1600 stockholders), the initial stock price as 2.30, the total quantity of shares as 5 million units and the total quantity of fund as 10 million. The initial quantity of fund and shares owned follows normal distribution, and the mutation probability is 0.02. The initial risk-properties of individuals are drawn randomly. Let P (t) denote the stock price time series, the price returns Z(t) are defined as the difference between two successive logarithms of the price: P (t) : Z(t) = log P (t + ∆t) − log P (t) . The corresponding price returns as ∆t = 1 are shown in Fig. 2. Mandelbrot proposed that the distribution of returns is consistent with a L´evy stable distribution.13 In 1995, Mantegna and Stanley analyzed a large set of data 30

25

Price

20

15

10

5

0 0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5 4

Time

Fig. 1.

x 10

Time series of the typical evolution of the stock price, where h = 1 and λ = 0.4.

September 22, 2004 16:35 WSPC/140-IJMPB

2700

02593

T. Zhou et al. 0.8

0.6

Returns

0.4

0.2

0

−0.2

−0.4

−0.6 0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5 4

Time

Fig. 2.

x 10

The corresponding price returns as ∆t = 1.

of the S&P500 index. It has been reported that the central part of the distribution of S&P500 returns appears to be well fitted by a L´evy distribution, but the asymptotic behavior of the distribution shows faster decay than that predicted by a L´evy distribution.14,15 The similar characteristic of the distribution of returns is also found in Heng Seng index.16 Figure 3 shows the probability distributions of price returns for ∆t = 1, 2, 4, 8, 16, 32, 64. In Figs. 2 and 3, it can be seen that large events are frequent in the fluctuations of the stock price generated by the artificial stock market when compared with a normal process. We also studied the peak values at the center of the distributions, Fig. 4 shows the central peak value versus ∆t in a log–log plot. It can be seen that all the data can be well fitted by a straight line with a slope −0.5632. This observation agrees with theoretical model leading to a L´evy distribution. In this article, a stock market model is established based on genetic cellular automata, who has some key characteristics according with the real-life stock market. Some other experiments (not include in this paper) indicate that the interaction among individuals will give rise to clusters and herd behaviors, which may be the possible mechanism that lead to the existence of large events in our model. In addition, the mutation is very important too. Further researches can reveal the multilevel of this system, the process of the forming and damaging of the self-similar

September 22, 2004 16:35 WSPC/140-IJMPB

02593

Modeling Stock Market Based on Genetic Cellular Automata

dt=1 dt=2 dt=4 dt=8 dt=16 dt=32 dt=64

−1

−2

log[Probability(Z)]

−3

−4

−5

−6

−7

−8

−9 −1

−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

Returns(Z)

Fig. 3.

The probability distributions of price returns for ∆t = 1, 2, 4, 8, 16, 32, 64.

−0.5

log[the central peak value]

−1

−1.5

−2

−2.5

−3

−3.5

0

0.5

1

1.5

2

2.5

3

3.5

log[¡÷t]

Fig. 4.

The central peak value as a function of ∆t.

4

4.5

2701

September 22, 2004 16:35 WSPC/140-IJMPB

2702

02593

T. Zhou et al.

structure in cellula space, etc. Since the main goal of this article is to establish and describe the model itself, we won’t give detailed experiment results and analyzing, which will be given elsewhere. Acknowledgments Supported by the State Key Development Program of Basic Research of China (973 Project), the National Natural Science Foundation of China under Grant No. 70171053 and 70271070, the China-Canada University Industry Partnership Program (CCUIPP-NSFC No. 70142005), and the Doctoral Fund from the Ministry of Education of China. References 1. A. Lo and C. Mackinlay, A Non-Random Walk Down Wall Street (Princeton, Princeton University Press, 1999). 2. R. Thaler, Advances in Behavioral Finance (Russell Sage Foundation, New York, 1993). 3. A. Lo, Financial Analysis Journal 55, 13 (1999). 4. D. Friedman, Econometrica 59, 637 (1991). 5. W. B. Arthur, J. Holland, B. LeBaron et al., Asset Pricing Under Endogenous Expectations in an Artificial Stock Market in W. B. Arthur, S. Durlauf, D. Lane eds. The Economy as an Evolving Complex System I (Addison-Wesley, Boston, 1997), pp. 15–44. 6. S. Grossman and F. Stiglitz, American Economic Review 70, 393 (1980). 7. M. Bray, Journal of Economic Theory 26, 318 (1982). 8. S.-H. Chen and C.-H. Yeh, Journal of Economic Dynamics & Control, 25, 363 (2001). 9. M. Lettau, Journal of Economic Dynamics & Control 21, 1117 (1997). 10. S. Wolfram, Theory and Applications of Cellular Automata (World Scientific, Singapore, 1986). 11. M. E. Epstein and R. Axtell, Growing Artificial Societies (The MIT Press, 1996). 12. C.-Y. Chao et al., J. Combin. Theory B14, 246 (1973). 13. B. B. Mandelbrot, J. Business, 36, 294 (1963). 14. R. N. Mantegna and H. E. Stanley, Nature, 376, 46 (1995). 15. R. N. Mantegna and H. E. Stanley, Physica A239, 255 (1997). 16. B.-H. Wang and P.-M. Hui, European Physical Journal B21, 573 (2001).

September 22, 2004 16:35 WSPC/140-IJMPB 02593 ...

The risk-aversed individuals' investing strategy is to buy at a low price and to sell at a high ... and final decision may be changed at a very small mutation probability. The buyer with higher .... B. B. Mandelbrot, J. Business, 36, 294 (1963). 14.

213KB Sizes 1 Downloads 98 Views

Recommend Documents

#mwlibchat - September 22 2015.pdf
Thank you so much for all those of you who joined us for tonight #mwlibchat! So thankful for. all your ideas. Together we do amazing things! Cynthia Stogdill @CynthiaStogdill 4m. Great job this evening @THLibrariZen - Questions were thought provoking

Saturday, September 22 & Sunday, September 23 10 ... -
Saturday, September 22 &. Sunday, September 23. 10 am to 2 pm each day. Locations in & around Chicago. Free fun for all (no dogs, please!) chicagochickens.

Sumner Evans September 22, 2016 - GitHub
https://www.git-tower.com/blog/8-reasons-for-switching-to-git. Sumner Evans. Git ... remote, a version of the repository hosted externally from your local machine. ... Play around with a bunch of them and see which one you like best. Here are a few t

Minutes September 14-15, 2004.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Minutes ...

Decreto 1635 1999.pdf
Sign in. Page. 1. /. 3. Loading… Page 1 of 3. Page 1 of 3. Page 2 of 3. Page 2 of 3. Page 3 of 3. Page 3 of 3. Decreto 1635 1999.pdf. Decreto 1635 1999.pdf.

NSE/CML/33244 Date : September 22, 2016 Circular
Sep 22, 2016 - (India) Private Limited, SBI Funds Management Private Limited. In pursuance of Regulation 3.1.2 of the National Stock Exchange (Capital ...

September 22, 2016 OT School Council Minutes Ann ...
Approval May 2016 minutes Rob Best, Seconded by Wendy Soanes. • RDC – Victoria ... and secure) and a grade 12 assembly on PINs required for University.

NSE/CML/35890 Date : September 22, 2017 Circula
Sep 22, 2017 - Members of the Exchange are hereby informed that the name of (ETF) schemes of Birla Sun Life Asset. Management Company Limited shall be ...

Board Summary September 22 2014.pdf
courses in Family Consumer Education, Health, &. Technology Education as well as the following. electives: Agriculture, Computer Applications,. Ecology, and ...

NSE/CML/35890 Date : September 22, 2017 Circula
Sep 22, 2017 - Management Company Limited shall be changed w.e.f. September 28, 2017. ... Manager. Telephone No. Fax No. Email id. 022-26598235/36.

NSE/CML/33241 Date : September 22, 2016 Circula
Sep 22, 2016 - In pursuance of Regulation 3.1.1 of the National Stock Exchange (Capital Market) Trading. Regulations Part A, it is hereby notified that the list of ...

NSE/CML/33247 Date : September 22, 2016 Circular R
Sep 22, 2016 - Name of the Company. Adani Power Limited. Series. EQ. ISIN* ... Satin Creditcare Network Limited. Symbol. SATIN. Name of the Company.

September
Sep 1, 2017 - September. 2017. Badminton Open Gym. Sunday. Monday. Tuesday. Wednesday. Thursday. Friday. Saturday. 1. 2. 3. 4. 5. 6. 7. 8. 9. Lindbergh.

2004 COM.pdf
May 8, 2004 - OX1 3SR, United Kingdom. Ãe-mail: [email protected] ... cells in uncontaminated rhizosphere soil than bulk soil, indicating the presence of ... 'field application vector' approach reported by Lajoie et al. [23], who engineered a ...

April 22, 2004 10:41 WSPC/130-JCA 00223 ON THE ...
The exploitation of the signal in the time domain was the basis of the traditional Ocean. Acoustic Tomography, which is concerned with the problem of estimating ...

September 25, 2003 3:22 WSPC/140-IJMPB 02210 ...
at the same time, a wide range of strong eddies (of high intensity). ... scales leading to the generation of a wide range of small eddies as in a high Reynolds ...

2004 Higginson & Barnard 2004 (Ecol Ent).pdf
... lifetime flight effort is. limited by energy supply because the enzyme mechanism. of carbohydrate metabolism is exhausted after a certain. flight performance ...

2004-GARMISCH.pdf
Zbynek Janour, Klara Bezpalcova, Hana Sedenkova. 5.14 COMPUTATIONAL MODELLING OF AIRFLOW IN URBAN STREET CANYON AND. COMPARISON ...

FY 2004
Based on an Audit of Financial Statements Performed in Accordance with Government Auditing Standards... Report on Compliance with Requirements Applicable to. Each Major Program and Internal Control Over Compliance. In Accordance with OMB Circular A-1

Adds from September 11 - September 20, 2016.pdf
Sep 20, 2016 - Page 3 of 3. Adds from September 11 - September 20, 2016.pdf. Adds from September 11 - September 20, 2016.pdf. Open. Extract. Open with.

Week 3 Monday, September 12 - Friday September 16.pdf ...
The purpose of an Ed-Op Program is to provide a chance for high school students, particularly juniors and seniors, to be exposed to many different. educational ...

Adds from September 11 - September 20, 2016.pdf
Page 1 of 3. New Voter Registrants. from September 11 - September 20, 2016. HAGATNA 1 INARAJAN cont'd. 1 MENDIOLA, MARK D.G. 14 PANGELINAN, JEANESSA D. ASAN/MAINA 2, 2A 15 PANGELINAN, JESSICA J. 1 ALMAZAN, ARMIE S. 16 SAN NICOLAS, CHLOE JERMAIN HOP.