Research Article  Open Access
Loss Aversion, Adaptive Beliefs, and Asset Pricing Dynamics
Abstract
We study asset pricing dynamics in artificial financial markets model. The financial market is populated with agents following two heterogeneous trading beliefs, the technical and the fundamental prediction rules. Agents switch between trading rules with respect to their past performance. The agents are loss averse over asset price fluctuations. Loss aversion behaviour depends on the past performance of the trading strategies in terms of an evolutionary fitness measure. We propose a novel application of the prospect theory to agentbased modelling, and by simulation, the effect of evolutionary fitness measure on adaptive belief system is investigated. For comparison, we study pricing dynamics of a financial market populated with chartists perceive losses and gains symmetrically. One of our contributions is validating the agentbased models using real financial data of the Egyptian Stock Exchange. We find that our framework can explain important stylized facts in financial time series, such as random walk price behaviour, bubbles and crashes, fattailed return distributions, powerlaw tails in the distribution of returns, excess volatility, volatility clustering, the absence of autocorrelation in raw returns, and the powerlaw autocorrelations in absolute returns. In addition to this, we find that loss aversion improves market quality and market stability.
1. Introduction
In 1987, the Wall Street Stock Market faced a severe financial crisis. That crisis provoked economists to realize that traditional economic theories such as the theory of rational expectations and efficient market hypothesis cannot explain the emergent aggregate behaviour of real markets. In addition, classical economic theories suggest that financial markets are populated with rational agents and rationality is common knowledge to all agents. However, these assumptions lead to no trade theorems [1], which contradict the excessive trading volume observed in real financial markets. Moreover, the rational agent cannot survive in a heterogeneous world^{1}. This observation motivated the researchers to use more advanced computational technique to better understand the behaviour of financial markets.
Therefore, the high trading activities in financial markets present evidence for the presence of heterogeneous predictions for asset prices. Heterogeneous agent models aim to relax the classical hypothesis of a representative agent and the rational expectations towards heterogeneous bounded rational agents [3]. These models study the individualbased behaviour in markets populated with bounded rational, heterogeneous agents using simple heuristics and simple extrapolation methods. This approach seems to provide plausible results in generating a nearrealistic financial time series [4] and replicating the socalled stylized facts of financial markets [5–7]. Stylized facts represent a set of statistical properties common across many markets and time periods, such as bubbles and crashes, fattailed return distributions, uncorrelated returns, and volatility clustering.
Frankel and Froot [8], Taylor and Allen [9], and Menkhoff [10] conducted different questionnaire surveys to investigate the traders’ main heuristics in order to model their behaviours. The studies revealed that traders rely on two trading philosophies, the technical and the fundamental analysis, to determine their trading strategies. According to chartists, the ones who believe that price trend will continue and follow technical analysis will try to maximize their profits by taking advantages of asset price fluctuations [11]. Chartists compare the current price with the previous one; they buy (sell) when the asset price increases (decreases). On the other hand, fundamentalists, the ones who follow fundamental analysis, predict that the asset price will revert to its fundamental value [12]. Therefore, fundamentals buy (sell) when the asset price decreases (increases) as compared to its fundamental value.
Financial markets are comprised of many traders with heterogeneous beliefs, attributes, and level of rationality [13]. Traders face high uncertainty since they have to make expectations of future prices to submit their current orders. This uncertainty is due not only to the limited traders’ ability to collect and process information, but also to the algorithmic complexity of the problem they face. Consequently, traders are continuously enforced to learn and adapt to highly dynamic environments. This adaptation causes the whole financial system to coevolve. Studying financial markets as adaptive evolutionary systems of heterogeneous agents is a completely different approach from that used in the traditional economic models [14]. This encourages the use of agentbased modelling as the most suitable approach, as it provides more flexible tools to simulate the real world [15–18]. This approach implies new challenges and opportunities for making policy as well as managing economic crisis.
Artificial financial markets are models developed using the agentbased modelling approach. The main aim of artificial financial markets is to understand the endogenous variables that cause aggregate behaviours and patterns to emerge at the macro level [4, 19–23]. These artificial markets serve as testbeds for policy makers to explore the effect of different regulatory policies which improves the decision making process. Many of the market crashes can be limited by identifying the sensitive parameters that affect the financial market either directly or indirectly [24]. In this paper, we propose an artificial financial market which is capable of generating realistic stock market dynamics.
Meanwhile, behavioural finance is a relatively new paradigm seeking to link behavioural and cognitive psychological theories with finance to understand the bounded rational decisions of financial traders. Since 1979, Kahneman and Tversky provoked the idea of the choice under uncertainty. They spent many years to study this concept by conducting surveys and collecting data about the traders’ behaviour under uncertainty [25–28]. Kahneman and Tversky propose that the outcomes of risky prospects are estimated by a value function. This function is mainly characterized by loss aversion; that is, the function is steeper in the negative than in the positive domain. This characteristic describes asymmetric Sshaped value function, which is concave above a reference point and convex below it.
Although the prospect theory has been developed since 1979; yet there is no clear definition of gains and losses and how to measure them. Also, there is no clear identification of the reference point. Accordingly, its application into financial markets framework is very challenging. The model proposed in this paper provides a novel application of the prospect theory, where agents recognize their gains and losses in terms of an evolutionary fitness measure.
Many studies have been developed to model the switching dynamics between fundamental analysis and technical analysis, such as [4, 29, 30]. It is worth noting that deterministic agentbased financial market models, such as [31, 32], are able to explain boombust cycles while stochastic models, such as [4, 22, 33–35], can replicate more detailed stylized facts of financial markets. Unfortunately, few authors studied behavioural biases in their agentbased financial framework, such as [36–39].
In this paper, we explore the agentbased modelling as a tool for studying loss aversion behavioural bias introduced by the prospect theory. Our model contributes to behavioural finance research by linking the macro and the micro behaviours. This link is ignored in the classical models studied behavioural finance. To our knowledge, no research has been conducted to study the impact of loss aversion behavioural bias on the adaptive belief system and asset pricing dynamics, which is considered as our main contribution in the current work.
The rest of this paper is organized as follows. In Section 2, we introduce an agentbased financial market model in which the chartist traders are loss averse, along with the basic parameter settings and the model implementation. In Section 3, we investigate the extent to which our agentbased model is able to replicate the stylized facts of the Egyptian Stock Exchange. In addition, the results of a large Monte Carlo simulation we performed are presented. Finally, in Section 4, we summarize our main results and conclusions.
2. An AgentBased Model under Loss Aversion
In this section we introduce an agentbased financial model populated with heterogeneous agents with loss aversion behavioural bias. At the beginning we discuss the model definition and assumptions. In Section 2.2, the detailed model is provided. Finally, the parameter settings are depicted in Section 2.3.
2.1. Model Definition and Assumptions
The main assumptions of the proposed artificial financial market can be summarized as follows.(i)There is only one risky asset to be traded.(ii)There are two types of agents, the market maker and the traders.(iii)In each time step , each trader decides on taking one of two alternative actions, either to submit orders or to abstain from the market.(iv)If a trader chooses to submit an order, she/he can either follow technical or fundamental trading rule. It is assumed that, at time , the orders are submitted without knowing the asset price. It is also assumed that fundamental traders can calculate the fundamental values.(v)Beliefs adaptation rule: the agents are bounded rational as they tend to choose the strategy performed well in the recent past and therefore display some kind of learning behaviour. It is assumed that the fitness of each trading strategy is available and publicly known by all agents.(vi)The chartist agents are loss aversion so that they recognize losses more than twice recognizing their gains. Consequently, they consider a value function proposed by the prospect theory to evaluate the fitness of each trading strategy.(vii)The fraction of traders following each strategy is determined via a discrete choice model.(viii)The market maker correlates the orders and adjusts the asset price according to the net submitted orders. It is assumed that the market maker is a risk neutral and settles the asset prices without intervention.(ix)Agents in our market interact indirectly through their impact on price adjustment which affects the performance of the trading rules which in turn affects the agent decision to select trading strategy and so on.
2.2. Model Formulation
The behaviour of the market maker is described as in Farmer and Joshi [34], where the price settlement is formulated as a loglinear price impact function. This function measures the relation between the quantity ordered (demand/supply) and the price of the asset. Thus, the logprice of the asset in period is given bywhere is a positive price settlement parameter, and are the orders submitted by chartists and fundamentalists, respectively, at time , and and are the weights of technical strategy and fundamental strategy, respectively, at time . In order to make our assumptions close to the real market, the noise terms are added to catch any random factors affecting the price settlement process. It is assumed that are IID normally distributed random variables with mean zero and constant standard deviation .
The goal of the technical analysis used by the chartists is to exploit the price changes [40]. Orders exploiting technical trading rules at time can be written aswhere is a positive reaction parameter (also called extrapolating parameter) that capture the strength of agents’ sensitivity to the price signals. The first term at the righthand side of (2) represents the difference between current and last price, which indicates the exploitation of price changes. The second term captures additional random orders of technical trading rules. And are IID normally distributed random variables with mean zero and constant standard deviation .
Fundamental analysis assumes that prices will revert to their fundamental values in the short run [12]. Orders generated by fundamental trading rules at time can be formalized as where is a reaction parameter (also called a reverting parameter) for the sensitivity of fundamentalists’ excess demand to deviations of the price from the underlying fundamental value. ^{2} are logfundamental values (or simply fundamental values) [31]. is introduced to capture additional random orders of fundamental trading rules. are IID normally distributed random variables with mean zero and constant standard deviation .
The evolutionary part of the model, inspired by Brock and Hommes [32], depicts how beliefs are evolved over time. That is, how agents adapt their beliefs and switching between strategies. This part is mirrored in the fractions , where represents the fraction of inactive agents and are as indicated in (1), and the strategy weights add up to one. Fractions are updated according to evolutionary fitness measure (or attractiveness of the trading rules) which can be presented as follows:where , , and are the fitness measures of using chartist strategy, fundamental strategy, and notrade strategy, respectively. The inactive traders submit zero orders, so they got zero attractiveness of taking such an action. The fitness measure of the other two trading rules, the technical and the fundamental analysis, depends on two components. The first term of the righthand sides of (4) and (5) is the performance of the strategy rule in most recent time. Notice that orders submitted in period are executed at the price declared in period . The gains or losses depend on the price declared in period . The second term of the righthand sides of (4) and (5) represents agents’ memory, where is the memory parameter that measures the speed of recognizing current myopic profits. For , agent has no memory, while for they compute the fitness of the rule as a sum of all observed myopic profits.
While, in Westerhoff [22] model, agents symmetrically perceive gains and losses in terms of fitness, in our model we propose a realistic behavioural bias, so that chartists evaluate their strategy fitness in terms of a value function of gains and losses. The proposed value function implies that chartists recognize losses more than twice their recognition of gains. As our focus is to study loss aversion, we adopt the Tversky and Kahneman [27] and Benartzi and Thaler [41] piecewise linear value function proposed by the prospect theory. Accordingly, the value of the fitness of technical strategy is given bywhere is the parameter of loss aversion that measures the relative sensitivity to gains and losses. However, setting reduces the value function to ; we call this case lossneutral chartists.
Following Manski and McFadden [42], the market share of each strategy can be obtained by the discrete choice model^{3} as follows:
The higher attractive strategy will be chosen by the agents. The parameter , in (8), is called the intensity of choice and measures the sensitivity of mass of agents selecting the trading strategy with higher fitness measure. In such adaptive beliefs, financial market prices and fractions of trading strategies coevolve over time.
2.3. Basic Parameter Settings
Model parameter settings are determined following Tversky and Kahneman [27], Winker and Gilli [43], Farmer and Joshi [34], and Westerhoff [22]. The values of model parameters are chosen so that the model can mimic the dynamics of real financial markets.
The main idea behind choosing specific values of the parameters can be summarized as follows. The reaction parameters of technical and fundamental trading rules (multiplied by the price settlement parameter) are between zero and 0.1 for daily data.
To keep the autocorrelation^{4} of raw returns^{5} close to zero, parameters and are chosen as follows. The population of the chartists is matched with the population of the fundamentalists, so that the positive shortterm autocorrelations induced by the chartists are cancelled by the negative shortterm autocorrelation of the fundamentalists. Therefore, the reaction parameters of technical and fundamental trading rules are set to be the same.
The value of is assumed to be higher than to reflect the level of noise associated with technical trading rule. The value of is assumed to be near one, so the agents have good memory. Also, the value of reflects the bounded rationality in choosing the trading rule with highest fitness measure. Finally, many experiments estimate loss aversion parameter to be in the neighbourhood of 2; that is, the utility of losses is twice as great as the utility of gains [27, 41]. Experimental estimation of has been estimated by Tversky and Kahneman [28], such as . The values of model parameters are summarised in Table 1. In the following section we study the evolutionary dynamics of our proposed model.

3. Adaptive Beliefs and Asset Pricing Dynamics
In this section we discuss the dynamics of our model by simulation. In Section 3.1, we describe the simulation design. The extent to which our model is able to explain statistical properties of real financial markets is studied in Section 3.2. In addition to this, the results obtained from the Monte Carlo analysis we performed are illustrated. Finally, we study the effect of loss aversion on the adaptive belief system and market quality.
3.1. Simulation Design
To implement the proposed artificial financial market, we develop an agentbased simulation model using Netlogo platform. NetLogo provides an environment for simulating natural and social phenomena [45]. It is particularly well suited for modelling complex systems evolving over time. At initialization, all parameters of the model are equal to the values defined in Table 1, and values of all variables , , , , , , , , , , and are set to zero. To implement our simulation framework, we follow the steps listed in Algorithm 1. We investigate the performance of 5000 simulation runs, each containing 4120 daily observations. In the following section, simulation results are displayed.
3.2. Simulation Results and Analyses
Many researchers study the empirical behaviour of financial returns, and they find that most financial markets share the same statistical properties [5–7, 46], such as (i) price bubbles and market crashes, (ii) randomwalk price behaviour, (iii) fattailed return distributions, (iv) powerlaw tails, with a tail index somewhere in the regions 2–5, (v) excess volatility, (vi) volatility clustering, (vii) absence of autocorrelations in asset returns, and (viii) persistent longrange memory of volatility.
In the following, we explore the extent to which our model is capable to replicate these stylized facts. Also, to investigate the effect of loss aversion on the macro and micro dynamics of the artificial market, a benchmark case, where , is included in our analyses. To the rest of this section, the market populated with lossneutral chartists, where , and the market populated with loss averse chartists, where , will be named MARKET1 and MARKET2, respectively. Moreover, the time series generated by MARKET1 and MARKET2 will be referred to as MOD1 and MOD2, respectively.
In the following, our exposition mainly rests on the behaviour of the stock index of Egypt (EGX 30). Its time series covers the period from January 1, 1998, to November 16, 2014, and consists of 4123 daily observations. The data was downloaded from the Egyptian Stock Exchange website^{6}. We apply time series analysis and econometric measures using Excel and MatLab software. The main results were reported for both MARKET1 and MARKET2. Also, we perform large Monte Carlo simulations to check the robustness of our results.
Before we start a comprehensive Monte Carlo analysis, we will first explore a representative simulation run. The simulation run contains 4120 daily observations, mirroring a period of about 16 years. Figure 1 shows the evolution of (a) EGX 30 daily quotes along with the evolution of logprices of (b) MOD1 and (c) MOD2, respectively.
(a) EGX 30
(b) MOD1 ()
(c) MOD2 ()
Figure 1(a) illustrates the behaviour of EGX 30 daily quotes, which displays significant bubbles and crashes. For example, we observe strong price appreciations between May 2006 and March 2008. Over this period, the EGX 30 rose from 6000 to 11937 points, gaining about 61 percent of its value. After March 2008, however, the price started to drop sharply. In January 2009, the price of the EGX 30 fell below 4596 points, losing about 56 percent of its value^{7}. A detailed history of financial crises can be found in GriffithJones et al. [47].
From Figure 1(c), we observe that prices fluctuate around their fundamental values. Our model is able to generate substantial bubbles and crashes. Between periods 1800 and 1880, for instance, the price began to drop sharply. Also, for example, between periods 3650 and 3800, we observe sharp price appreciations with stock prices deviating more than 50 percent from their fundamental values. It should not be overlooked that loss aversion contributes to market quality^{8} by reducing distortion () [48]. In Figure 1(b), between periods 3650 and 3800, for instance, we observe the further amplifying price movements. Moreover, computing the distortion for the MOD2 (MOD1) reveals a value of 8.8 (11.4) percent.
Figure 2 displays daily returns of (a) the EGX 30, (b) the MOD1, and (c) the MOD2, respectively, over the same time horizon as in Figure 1. Note that Figure 2 shows another characteristic feature of stock market, which is excessive price volatility. Clearly, prices fluctuate strongly, and extreme returns of the EGX 30 reach up to percent. To measure volatility, we follow Guillaume et al. [46] and calculate the average absolute returns (), which produce a value of 1.23 percent per day. As stated by Shiller [49], such volatility value is too large to be explained by fundamental crashes alone. However, these values of EGX 30 are considered to be much higher than other developed stock markets^{9}; this is in good agreement with results obtained from empirical data of developed and emerging financial markets [50]. The distribution of emerging markets’ returns exhibits fatter tails than that of developed markets, in which case the volatility is infinite as found by Mandelbrot [5] in his famous study of cotton prices.
(a) EGX 30
(b) MOD1 ()
(c) MOD2 ()
Figures 2(b) and 2(c) show the daily returns of the MOD1 and MOD2, respectively. Extreme returns reach up to for both cases. However, computing the average absolute returns for the MOD1 (MOD2) reveals a value of 1.5 (1.7) percent. Therefore, loss aversion behavioural bias seems to improve market quality through reducing excessive price volatility [48]. Furthermore, Figure 2 displays another stylized fact of stock markets namely volatility clustering, where grey rectangles exemplify periods of high volatility. This fact is stated by Mandelbort [5] as both small and large fluctuations are clustered; that is, periods of high volatility alternate with periods of low volatility. This fact displays significant long memory effects in financial time series.
Another stylized fact concerns the distribution of returns and its fat tail feature. Figure 3 presents an evidence for this statistical property. The probability density functions of (a) empirical EGX 30, (b) MOD1, and (c) MOD2 returns, respectively, (solid lines) are compared with those of normally distributed returns with the same means and standard deviations (dashed lines). We observe that the distributions of empirical returns exhibit a higher concentration around the mean, thinner shoulders, and more probability mass in their tails.
(a) EGX 30
(b) MOD1 ()
(c) MOD2 ()
A power law may give a useful approximation to the tail behaviour of empirical data, but there is no reason to anticipate that it will appear in every market. One way to investigate the powerlaw behaviour is suggested by Clauset et al. [51]. Evidence for a powerlaw tails is presented in Figure 4. Here we plot, on a loglog scale, the complements of the cumulative distributions of normalized EGX 30, MOD1, and MOD2 returns, respectively. For comparison, the dashed lines give the complements of the cumulative distributions of the standard normal distributions.
(a) EGX 30
(b) MOD1 ()
(c) MOD2 ()
Now, the exponent α of the Pareto distribution for the tails is defined as . Regression in logarithmic coordinates reveals an estimate of 2.45 for the MOD1 and an estimate of 2.39 for the MOD2; these figures are quite close to the estimate for the EGX 30 (2.37) and conclude that the tails decay at an exponential rate. Note that lower values for imply fatter tails. Therefore, distribution of returns under loss aversion exhibits fatter tails than that under loss neutrality. This implies that our model is able to accurately replicate the real return time series.
To reduce computational efforts, we use the socalled Hill tail index estimator^{10} [53] , to estimate the tail index. Figure 5 displays the estimated values of , for the smallest and largest percent of the observations for (a) the EGX 30, (b) the MOD1, and (c) the MOD2, respectively. Regressions on the smallest (largest) 10 percent of the observations yield an estimate of 3.47 (3.92) for the EGX 30, an estimate of 2.86 (3.51) for the MOD1, and an estimate of 3.26 (2.89) for the MOD2. All results are in good overall agreement with a universal cubic law () as proposed in the relevant literature [54].
(a) EGX 30
(b) MOD1 ()
(c) MOD2 ()
Figure 6 depicts the autocorrelation functions for raw and absolute returns for the first 100 lags, for (a) the EGX 30, (b) the MOD1, and (b) the MOD2, respectively. The dashed lines present 95 percent confidence bands according to the assumption of a white noise process. The EGX 30 raw returns show autocorrelation coefficients that are not significant for almost all lags except for the first lag. It is difficult to predict future trend of the EGX 30 returns. However, persistence in volatility can be observed from the autocorrelation functions of absolute returns, where autocorrelation coefficients are significant over 100 lags.
(a) EGX 30
(b) MOD1 ()
(c) MOD2 ()
Note that Figures 6(b) and 6(c) illustrate the autocorrelation functions of raw and absolute returns for the MOD1 and the MOD2, respectively. The raw returns for both series display autocorrelation coefficients that are not significant over 100 lags. On the other hand, absolute returns show significant long memory effects for more than 60 lags. The significant positive autocorrelations in absolute returns provide a quantitative sign of the clustered volatility, where periods of high volatility are more likely to be followed by periods of high volatility. The price dynamics of our market closely resembles a random walk; this result is in good agreement with the stylized facts stated by Mandelbrot [5], Fama [6], and Cont [7].
Another astonishing fact of the stock markets is the selfsimilarity in the sense of Mandelbrot [55]. A nonstationary stochastic process^{11} is said to be a selfsimilar if there exists such that the processes and have the same distribution [56]. Therefore, the distribution of for any can be fully determined by the distribution of ; . Clearly, if the tail of decays as a power law of , then decays in the same manner. One way to quantify the selfsimilarity property is to estimate the socalled scaling exponent (also called selfsimilarity parameter).
Following Peng et al. [57], scaling exponents that quantify powerlaw autocorrelations are computed using detrended fluctuation analysis (DFA)^{12}. Figure 7 displays the estimation of the scaling exponent for raw and absolute returns for (a) the EGX 30, (b) the MOD1, and (c) the MOD2, respectively. Note linear relationship on a loglog scale between the average fluctuation and the time scale, where indicates the presence of scaling in all the time series at hand. A value of corresponds to a whitenoise process, while indicates longrange powerlaw autocorrelations. Finally, indicates that large and small changes of the time series are more likely to alternate.
(a) EGX 30
(b) MOD1 ()
(c) MOD2 ()
The yields a value of 0.49 for the MOD1 and a value of 0.43 for the MOD2, which are close to that of 0.57 for the EGX 30, which indicate whitenoise processes. The scaling exponent reveals a value of 0.88 for the MOD1 and a value of 0.84 for the MOD2, which are in line with that of 0.81 for the EGX 30, showing longrange powerlaw autocorrelations in absolute returns for the three time series under investigation.
Finally, Figure 8 depicts the dynamics of the adaptive belief system for (a) the MOD and (b) the MOD2, respectively. We observe the swings between the trading strategies, technical analysis (black region), fundamental analysis (grey region), and notrade (white region); there is no particular strategy that dominates the others. The average weight of each strategy for the MOD2 (MOD1) is (33) percent, (37) percent, and (30) percent; these results indicate that loss aversion behavioural bias reduces fraction of agents in the chartist group.
(a) MOD1 ()
(b) MOD2 ()
Note the price appreciations between periods 3650 and 3800 in Figures 1(b) and 1(c) correspond to the same periods in Figures 8(a) and 8(b), respectively. We observe that chartist fractions in MARKET1 are much higher than that of MARKET2 which explain the further amplifying price movements. However, the ensuing destabilization is only temporary, as large deviations from the fundamental value are recognized as gain opportunities by fundamentalists whose actions then tend to stabilize the market.
To check the robustness of the MOD2 dynamics to different parameter settings, Figure 9 shows repetitions of simulation MOD2 with different parameter settings, using the same seeds of the random variables as in Figure 1. The four simulation runs are characterized by significant bubbles and crashes, volatility clustering, and endogenous competition between various trading strategies. We also observe periods of high volatility corresponding to the periods of large fractions of chartists in the market.
(a)
(b)
(c)
(d)
Summing up, features of the simulation run displayed in Figures 1–7 resemble the behaviour of the real data presented in the same figures remarkably well. Next, we check the robustness of these results by performing a comprehensive Monte Carlo analysis. Our analysis rests on 5000 simulation runs, each containing 4120 observations for the MOD1 and the MOD2. All simulation runs are based on the same parameter settings (presented in Table 1, except for ) with different seeds of the random variables.
Table 2 reports the mean, maximum, minimum, standard deviation, skewness, kurtosis, and JarqueBera (JB)^{13} of the EGX 30 and estimates of the mean and the 5 percent, 25 percent, 50 percent, 75 percent, and 95 percent quantiles of these statistics for the MOD1 and the MOD2, respectively. Table 2 reveals, for instance, that estimates, for the MOD2, of the standard deviation hover between 0.020 percent and 0.026 percent in 90 percent of the cases. The reported standard deviation for the EGX 30 is quite close to these figures. However, estimates, for the MOD1, of the standard deviation hover between 0.021 percent and 0.027 percent in 90 percent of the cases, indicating larger degree of risk when the market is populated with lossneutral chartists.

Note the estimates of the standardized third moment^{14}, the skewness, for the MOD1 and the MOD2 indicate that only 25 percent of the cases are negatively skewed and this may due to the fatness of the return distribution. In addition, estimates of the mean and the quantiles of the kurtosis, the standardized fourth moment, are all greater than 3, which are higher than that of the normal distribution. However, the kurtosis of MOD2 is much higher than that for the MOD1, indicating fatter tail distributions of the returns under loss aversion than that under loss neutrality.
Table 3 contains the Hill tail index estimators for percent of the smallest (lefttail) and largest (righttail) returns for the EGX 30 along with estimates of the mean, the 5 percent, 25 percent, 50 percent, 75 percent, and 95 percent quantiles of these statistics for the MOD1 and the MOD2, respectively. For the MOD2, average Hill tailindex estimates of the largest and smallest 10 percent observations are in line with those for the EGX 30. For instance, considering the smallest 5 percent of observations, estimates of the tail indices reveal values of 3.28 and 3.74 for the lower and upper quantile. These are in accordance with the reported value for the EGX 30 (3.32). In addition, taking the largest 5 percent of observations into account estimates of the tail indices equal 3.28 and 3.74 for the lower and upper quantile. The reported value for the EGX 30 (3.72) lies within this range. For the MOD1, however, the Hill tail index estimates are higher than those of the MOD2. For instance, taking the largest 5 percent of observations into account, we obtain tail indices equal to 3.31 and 3.80 for the lower and upper quantile. As stated before, lower values of the tail indices imply fatter tail. Therefore, we conclude that MOD2 generates realistic distribution of returns.

To continue investigating the robustness of our results, Table 4 reports the autocorrelation function of raw returns for lags , and the autocorrelation function of absolute returns for lags for the EGX 30 along with estimates of the mean, the 5 percent, 25 percent, 50 percent, 75 percent, and 95 percent quantiles of these statistics for the MOD1 and the MOD2, respectively. For the EGX 30, the correlation coefficient exhibits a high value on lag 1 of about 0.18, though the autocorrelation coefficients are not significant for the rest 100 lags. For the MOD1 and the MOD2, estimates of the autocorrelation coefficients reveal that price increments are mainly uncorrelated. This is in accordance with most real financial markets, as future prices cannot be predicted [7]. On the other hand, for the MOD2 (MOD1), autocorrelation coefficients show a median value of 0.28 (0.25) for the first lag, which is quite close to that of the EGX 30 (0.29). No significant difference between the autocorrelation coefficients for the MOD1 or the MOD2 has been detected.

Now, we check the robustness of the scaling power law. Table 5 reports the scaling exponent of raw returns and the scaling exponent of absolute returns for the EGX 30 along with estimates of the mean, the 5 percent, 25 percent, 50 percent, 75 percent, and 95 percent quantiles of these statistics for the MOD1 and the MOD2, respectively. For the MOD2 (MOD1) is equal to 0.44 (0.44) and 0.51 (0.51) for the lower and upper quantile, which are close to that for the EGX 30 (0.57). This is in good agreement with absence of long memory in empirical financial returns and implies a small degree for predicting price changes. In addition, for the MOD2 (MOD1), estimates of , for instance, hover between 0.80 (0.79) and 0.93 (0.92) in 90 percent of the cases, which are close to the value reported for the EGX 30 (0.81). These values show persistent longrange autocorrelation in absolute return series. Also, no significant difference between the scaling exponents for the MOD1 or the MOD2 has been detected.

To summarize our results so far, the illustrated figures and the performed Monte Carlo analysis show that MARKET2 is able to generate return time series possessing detailed stylized facts of real financial data. These properties include fattailed return distributions, absence of autocorrelation in raw returns, persistent long memory of volatility, excess volatility, volatility clustering, and powerlaw tails.
We perform a Monte Carlo analysis to check the robustness of the MOD1 and the MOD2 evolutionary dynamics. Table 6 reports estimates of the mean and the 5 percent, 25 percent, 50 percent, 75 percent, and 95 percent quantiles of the volatility, the distortion, and strategy weights: , , and for the MOD1 and the MOD2, respectively. For the MOD2, the average volatility is equal to 1.60 percent, which is slightly higher than that of the EGX 30 (1.23 percent). Moreover, estimates of the distortion hover between 8.02 percent and 16.44 percent in 90 percent of the cases. These values indicate a substantial boombust cycles in almost all simulation runs. Generally speaking, all estimates of the mean and quantiles reveal that agents prefer to follow the fundamental analysis the most, then the notrade strategy, and the technical analysis the least.

Now, the impact of loss aversion on the fractions of agents within each strategy block deserves greater attention. Is the technical analysis least appealing due to the loss aversion behavioural bias? What is the effect of loss aversion on the adaptive belief system and on the pricing dynamics? To answer these questions we consider the benchmark case, , where chartists perceive losses and gains symmetrically. Table 6 reveals that the average volatility is equal to 1.70 percent, which is higher than that of the MOD2. Also, estimates of the distortion hover between 8.80 percent and 17.80 percent in 90 percent of the cases. The median of the market shares are percent, percent, and percent. Therefore, on average, no trading strategy is preferred over the others. This implies that the agents in MARKET2 prefer to follow fundamental analysis more than technical analysis due to the loss aversion behavioural bias. In addition to this, the distortion and volatility in MARKET1 seem to be higher than MARKET2 due to the higher fractions of the chartists. Obviously, the market populated with lossaverse chartists is more stable and resembles real markets behaviour.
4. Conclusions
In 1979, Kahneman and Tversky proposed their famous psychological theory, the prospect theory, in order to understand the psychological motivations for traders’ behaviours. The prospect theory considers loss aversion as one of the main behavioural biases that affect traders’ decisions under uncertainty. The theory states that traders recognize their losses more than twice their recognition of gains.
To increase our understanding of traders’ behaviour and their adaptive beliefs, we develop an agentbased financial market model. Agentbased modelling provides the link between macro and micro dynamics. In our model, agents can trade following either stochastic technical or stochastic fundamental trading rules. While technical analysis builds decisions upon past price trends, fundamental analysis advises betting on mean reversion. Since chartists are loss averse, any losses following technical analysis cause a rapid switching to other groups. Price is adjusted by the market maker according to the net submitted orders without any intervention from her/him.
Simulations reveal that our model is capable of explaining a number of important stylized facts of stock markets, such as random walk price behaviour, bubbles and crashes, fattailed return distributions, excess volatility, and volatility clustering. In addition to these, we investigate the presence of powerlaw tails. The observed estimates of the exponent of the Pareto distribution for the tails reveal that all results are in good overall agreement with a universal cubic law as proposed in the relevant literature [54]. Another striking fact is the scaling power law (selfsimilarity) of the stock markets in the sense of Mandelbrot [55]. To estimate scaling exponents that quantify powerlaw autocorrelations, we use detrended fluctuation analysis following Peng et al. [57]. The observed scaling exponents indicate the presence of longrange powerlaw autocorrelations in the underlying dynamics. We propose that alternation between the periods of high and low volatility due to continuous belief adaptation yield the powerlaw autocorrelations in absolute returns and powerlaw tails in the distribution of returns.
The dynamics of our model can be summarized as follows. The farther the asset prices deviate from their fundamental values, the more aggressive the chartists will become. The increase in market shares of the chartists will increase the volatility causing a bubble or a crash to emerge. However, the loss aversion behavioural bias improve the market by minimizing its volatility and distortion. As the distortion reaches its maximum value the fundamental analysis becomes more appealing for traders to follow. The increase in switching to the fundamental analysis will pull asset prices to their fundamentals and the volatility diminishes. Due to the market dynamics, no trading strategy dominates the others. This causes substantial long memory effects in returns volatility.
To sum up, loss aversion directly affects the adaptive belief system as recognized losses stimulate chartists to adopt fundamental trading or stay inactive. This adaptation works for the market stability and prices efficiency. The simulation results proposed the agentbased model to successfully replicate the macro behaviour of real financial markets and, consequently, to enhance our understanding of asset pricing dynamics. Therefore, our model serves as a good testbed for policy makers to explore the effect of different regulatory policies which improves the decision making process.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgment
The authors are grateful to the respected reviewers for their comments and valuable suggestions.
Endnotes
 This result was observed by Arthur [2], as in heterogeneous world the rational agent has to know perfectly the beliefs of other agents, which is not possible in reality.
 The fundamental value is assumed to be constant, such that . This assumption enables us to refer market crashes to price dynamics and to eliminate the possibility of fundamental crashes.
 A discrete choice model specifies probabilities for each set of alternatives among which the decision maker can choose. The exogenous variables describe observable attributes and characteristics of the decision maker and available alternatives to her/him. The parameters are to be estimated from the observed choices of a sample of decision makers. The choice probabilities are determined by the multinomial logit model as follows: where is the number of available alternatives. And is a summary statistic measuring the attractiveness of alternative . It has the linear form of , for [42].
 Autocorrelation function (ACF) studies the linear dependence between and its past values ; the correlation coefficient between and is named lag autocorrelation of and it is denoted by , which can be found by = , where the property of weak stationarity is used; from the definition, , and [44].
 The returns are defined as , where [44].
 http://www.egx.com.eg/english/indexData.aspx?type=1&Nav=1.
 This data was extracted from the EGX annual reports from 2006 to 2009.
 Distortion and volatility are considered to be important determinants of market quality [48].
 Such as a value of 0.86 percent for FTSE 100, 0.86 percent for S&P 500, and 1.09 percent for DAX; these statistics are our own calculations of data collected for the FTSE 100, the S&P 500, and the DAX from http://www. Finance.Yahoo.com for the same period of the EGX 30.
 Hill tailindex estimator is defined as, , where is the percentage of observations located in the tail and against . To estimate tail index, the data elements are required to be ordered from largest to smallest such that . This process is applied to the right tail and can be reversed to obtain the lefttail exponent by using absolute returns. However, the value of tail exponent is very sensitive to the choice of [18]. Thus, Huisman et al. [52] recommend calculating for different values of then regressing these on such as . The tail index estimate would be given by , the intercept, with standard error .
 To put it simply, a nonstationary stochastic process is said to be selfsimilar in a statistical sense, if a rescaled version of a small part of its time series has the same statistical distribution as the larger part.
 To estimate the selfsimilarity parameter we follow Peng et al. [57] and perform a detrended fluctuation analysis (DFA). To perform a DFA algorithm, the return time series of total size is first integrated, , where is the average return interval. The integrated time series is divided into boxes of equal time scale, . In each box of scale , a leastsquare line is fitted to the data, where represents the trend in the box. Next, we detrend the integrated series by subtracting the local trend , in each box. Then, the root meansquare fluctuations of this integrated and detrended series is computed by . This computation is repeated over all the time scale to picture the relation between the average fluctuation and the time scale, . A linear relationship on a loglog scale plot indicates the presence of scaling. The slope of the line relating to is the estimated scaling exponent.
 The JarqueBera (JB) test statistic for normality is defined as follows [44]: , where is the skewness, and is the kurtosis. JB is asymptotically distributed as .
 For fattail distributions the first and second moments are not enough to describe the data [44]. In large samples of normally distributed data, estimators of skewness and kurtosis are asymptotically converging to normally distribution with means 0 and 3 and variances 6/T and 24/T, respectively, for large samples, where represents the daily data sample size.
References
 P. Milgrom and N. Stokey, “Information, trade and common knowledge,” Journal of Economic Theory, vol. 26, no. 1, pp. 17–27, 1982. View at: Publisher Site  Google Scholar
 W. B. Arthur, “Complexity in economics and financial markets,” Complexity, vol. 1, no. 1, pp. 20–25, 1995. View at: Publisher Site  Google Scholar
 H. A. Simon, “A behavioral model of rational choice,” The Quarterly Journal of Economics, vol. 69, no. 1, pp. 99–118, 1955. View at: Publisher Site  Google Scholar
 T. Lux, “Stochastic behavioral asset pricing models and stylized facts,” in Handbook of Financial Markets Dynamics and Evolution, T. Hens and K. SchenkHoppe, Eds., pp. 161–216, NorthHolland, Elsevier, 2009. View at: Google Scholar
 B. Mandelbrot, “The variation of certain speculative prices,” The Journal of Business, vol. 36, no. 4, pp. 394–413, 1963. View at: Publisher Site  Google Scholar
 E. F. Fama, “Efficient capital markets: a review of theory and empirical work,” The Journal of Finance, vol. 25, no. 2, pp. 383–417, 1970. View at: Google Scholar
 R. Cont, “Empirical properties of asset returns: stylized facts and statistical issues,” Quantitative Finance, vol. 1, no. 2, pp. 223–236, 2001. View at: Publisher Site  Google Scholar
 J. Frankel and K. Froot, “Understanding the US dollar inthe eighties: the expectations of chartists and fundamentalists,” Economic Record, vol. 62, pp. 24–38, 1986. View at: Google Scholar
 M. P. Taylor and H. Allen, “The use of technical analysis in the foreign exchange market,” Journal of International Money and Finance, vol. 11, no. 3, pp. 304–314, 1992. View at: Publisher Site  Google Scholar
 L. Menkhoff, “Examining the use of technical currency analysis,” International Journal of Finance and Economics, vol. 2, no. 4, pp. 307–318, 1997. View at: Publisher Site  Google Scholar
 J. Murphy, Technical Analysis of the Financial Markets: A Comprehensive Guide to Trading Methods and Applications, Prentice Hall, New York, NY, USA, 1999.
 B. Graham and D. Dodd, Security Analysis, McGrawHill, New York, NY, USA, 6th edition, 2009.
 C. H. Hommes, “Heterogeneous agent models in economics and finance,” in Handbook of Computational Economics, vol. 2, pp. 1109–1186, Elsevier, 2006. View at: Google Scholar
 J. D. Farmer, M. Gallegati, C. Hommes et al., “A complex systems approach to constructing better models for managing financial markets and the economy,” The European Physical Journal, vol. 214, no. 1, pp. 295–324, 2012. View at: Publisher Site  Google Scholar
 C. G. Langton, “Studying artificial life with cellular automata,” Physica D. Nonlinear Phenomena, vol. 22, no. 1–3, pp. 120–149, 1986. View at: Publisher Site  Google Scholar  MathSciNet
 J. Arifovic, “The behavior of the exchange rate in the genetic algorithm and experimental economies,” Journal of Political Economy, vol. 104, no. 3, pp. 510–541, 1996. View at: Publisher Site  Google Scholar
 J. Derveeuw, “Market dynamics and agent behaviors: a computational approach,” MPRA Paper, 2005, http://mpra.ub.unimuenchen.de/4916/. View at: Google Scholar
 B. LeBaron and L. Tesfatsion, “Modeling macroeconomies as openended dynamic systems of interacting agents,” The American Economic Review, vol. 98, no. 2, pp. 246–250, 2008. View at: Publisher Site  Google Scholar
 J. M. Epstein, “Agentbased computational models and generative social science,” Complexity, vol. 4, no. 5, pp. 41–60, 1999. View at: Publisher Site  Google Scholar  MathSciNet
 E. Bonabeau, “Agentbased modeling: methods and techniques for simulating human systems,” Proceedings of the National Academy of Sciences of the United States of America, vol. 99, no. 3, pp. 7280–7287, 2002. View at: Publisher Site  Google Scholar
 S.H. Chen and C.C. Liao, “Agentbased computational modeling of the stock pricevolume relation,” Information Sciences, vol. 170, no. 1, pp. 75–100, 2005. View at: Publisher Site  Google Scholar
 F. Westerhoff, “The use of agentbased financial market models to test the effectiveness of regulatory policies,” Jahrbücher für Nationalökonomie und Statistik, vol. 228, no. 23, pp. 195–227, 2008. View at: Google Scholar
 L. Feng, B. Li, B. Podobnik, T. Preis, and H. E. Stanley, “Linking agentbased models and stochastic models of financial markets,” Proceedings of the National Academy of Sciences of the United States of America, vol. 109, no. 22, pp. 8388–8393, 2012. View at: Publisher Site  Google Scholar
 Z. Guessoum, “Adaptive agents and multiagent systems,” IEEE Distributed Systems Online, vol. 5, no. 7, 2004. View at: Google Scholar
 D. Kahneman and A. Tversky, “Prospect theory: an analysis of decision under risk,” Econometrica, vol. 47, no. 2, pp. 263–292, 1979. View at: Publisher Site  Google Scholar
 D. Kahneman and A. Tversky, “Choices, values, and frames,” American Psychologist, vol. 39, no. 4, pp. 341–350, 1984. View at: Publisher Site  Google Scholar
 A. Tversky and D. Kahneman, “Loss aversion in riskless choice: a referencedependent model,” The Quarterly Journal of Economics, vol. 107, no. 4, pp. 1039–1061, 1991. View at: Publisher Site  Google Scholar
 A. Tversky and D. Kahneman, “Advances in prospect theory: cumulative representation of uncertainty,” Journal of Risk and Uncertainty, vol. 5, no. 4, pp. 297–323, 1992. View at: Publisher Site  Google Scholar
 C. Chiarella, “The dynamics of speculative behaviour,” Annals of Operations Research, vol. 37, no. 1, pp. 101–123, 1992. View at: Publisher Site  Google Scholar  MathSciNet
 W. A. Brock, C. H. Hommes, and F. O. Wagener, “Evolutionary dynamics in markets with many trader types,” Journal of Mathematical Economics, vol. 41, no. 12, pp. 7–42, 2005. View at: Publisher Site  Google Scholar  MathSciNet
 R. H. Day and W. Huang, “Bulls, bears and market sheep,” Journal of Economic Behavior and Organization, vol. 14, no. 3, pp. 299–329, 1990. View at: Publisher Site  Google Scholar
 W. A. Brock and C. H. Hommes, “Heterogeneous beliefs and routes to chaos in a simple asset pricing model,” Journal of Economic Dynamics & Control, vol. 22, no. 89, pp. 1235–1274, 1998. View at: Publisher Site  Google Scholar  MathSciNet
 T. Lux and M. Marchesi, “Scaling and criticality in a stochastic multiagent model of a financial market,” Nature, vol. 397, no. 6719, pp. 498–500, 1999. View at: Publisher Site  Google Scholar
 J. D. Farmer and S. Joshi, “The price dynamics of common trading strategies,” Journal of Economic Behavior & Organization, vol. 49, no. 2, pp. 149–171, 2002. View at: Publisher Site  Google Scholar
 F. Westerhoff, “A simple agentbased financial market model: direct interactions and comparisons of trading profits,” in Nonlinear Dynamics in Economics, Finance and Social Sciences, G. Bischi, C. Chiarella, and L. Gardini, Eds., pp. 313–332, Springer, Berlin, Germany, 2010. View at: Publisher Site  Google Scholar
 H. Takahashi and T. Terano, “Agentbased approach to investors' behavior and asset price fluctuation in financial markets,” Journal of Artificial Societies and Social Simulation, vol. 6, no. 3, 2003. View at: Google Scholar
 M. Lovric, U. Kaymak, and J. Spronk, “Modeling investor sentiment and overconfidence in an agentbased stock market,” Human Systems Management, vol. 29, no. 2, pp. 89–101, 2010. View at: Publisher Site  Google Scholar
 J. Kukacka and J. Barunik, “Behavioural breaks in the heterogeneous agent model: the impact of herding, overconfidence, and market sentiment,” Physica A: Statistical Mechanics and its Applications, vol. 392, no. 23, pp. 5920–5938, 2013. View at: Publisher Site  Google Scholar  MathSciNet
 B. Li, W. Shang, H. Li, L. Huo, and S. Xu, “Disposition effect in an agentbased financial market model,” Procedia Computer Science, vol. 31, pp. 680–690, 2014. View at: Publisher Site  Google Scholar
 J. J. Murphy, Technical Analysis of the Financial Markets: A Comprehensive Guide to Trading and Application, New York Institute of Finance, New York, NY, USA, 1999.
 S. Benartzi and R. Thaler, “Myopic loss aversion and the equity premium puzzle,” Working Paper 4369, NBER Working Paper Series, 1993. View at: Google Scholar
 C. Manski and D. McFadden, Structural Analysis of Discrete Data with Econometric Applications, MIT Press, Cambridge, Mass, USA, 1981. View at: MathSciNet
 P. Winker and M. Gilli, Indirect Estimation of the Parameters of AgentBased Models of Financial Markets, Society for Computational Economics, New Haven, Conn, USA, 2001.
 R. S. Tsay, Analysis of Financial Time Series, Financial Econometrics, John Wiley & Sons, Hoboken, NJ, USA, 2nd edition, 2005. View at: Publisher Site  MathSciNet
 U. Wilensky, NetLogo, Center for Connected Learning and ComputerBased, Northwestern University, Evanston, Ill, USA, 1999, http://ccl.northwestern.edu/netlogo/.
 D. M. Guillaume, M. M. Dacorogna, R. R. Davé, U. A. Müller, R. B. Olsen, and O. V. Pictet, “From the bird's eye to the microscope: a survey of new stylized facts of the intradaily foreign exchange markets,” Finance and Stochastics, vol. 1, no. 2, pp. 95–129, 1997. View at: Publisher Site  Google Scholar
 S. GriffithJones, J. Ocampo, and J. Stiglitz, Time for a Visible Hand: Lessons from the 2008 World Financial Crisis, Oxford University Press, New York, NY, USA, 2010.
 L. Harris, Trading and Exchanges: Market Microstructure for Practitioners, Oxford University Press, 2003.
 R. Shiller, “Do stock prices move too much to be justified by subsequent changes in dividends?” The American Economic Review, vol. 71, no. 3, pp. 421–436, 1981. View at: Google Scholar
 L. Borland, J.P. Bouchaud, J.F. Muzy, and G. Zumbach, “The dynamics of financial markets—mandelbrot's multifractal cascades, and beyond,” Willmot Magazine, pp. 86–96, 2005. View at: Google Scholar
 A. Clauset, C. R. Shalizi, and M. E. Newman, “Powerlaw distributions in empirical data,” SIAM Review, vol. 51, no. 4, pp. 661–703, 2009. View at: Publisher Site  Google Scholar  MathSciNet
 R. Huisman, K. G. Koedijk, C. J. M. Kool, and F. Palm, “Tailindex estimates in small samples,” Journal of Business & Economic Statistics, vol. 19, no. 2, pp. 208–216, 2001. View at: Publisher Site  Google Scholar
 B. M. Hill, “A simple general approach to inference about the tail of a distribution,” The Annals of Statistics, vol. 3, no. 5, pp. 1163–1174, 1975. View at: Publisher Site  Google Scholar  MathSciNet
 X. Gabaix, P. Gopikrishnan, V. Plerou, and H. E. Stanley, “A theory of powerlaw distributions in financial market fluctuations,” Nature, vol. 423, no. 6937, pp. 267–270, 2003. View at: Publisher Site  Google Scholar
 B. B. Mandelbrot, The Fractal Geometry of Nature, W. H. Freeman, New York, NY, USA, 1983. View at: MathSciNet
 R. Cont, “Long range dependence in financial markets: new trends in theory and applications,” in Fractals in Engineering, J. LévyVéhel and E. Lutton, Eds., pp. 159–179, Springer, London, UK, 2005. View at: Google Scholar
 C.K. Peng, S. V. Buldyrev, S. Havlin, M. Simons, H. E. Stanley, and A. L. Goldberger, “Mosaic organization of DNA nucleotides,” Physical Review E, vol. 49, no. 2, pp. 1685–1689, 1994. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2015 Kamal Samy Selim et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.