Skip to content

Agent based herding model of financial markets

ants_finance

Kirman’s ant colony model, previously presented on our website as agent based (based on 1) and stochastic (based on 2, 3) model, has become classical example of herding modeling. Application of this model towards economic, financial or other social scenarios might seem doubtful as human society is far more complex than ant colony, but methodologically it is more useful to start from very simple and stylized model and later add complexity on top of it. Furthermore we have already shown that Kirman’s herding dynamics could be applicable in agent based marketing (see comparison of Kirman’s and Bass diffusion model). In this text we will consider financial market scenario and obtain stochastic differential equations similar to the existing stochastic models considered in 4, 5.

Discussion and model presented in this text is the main topic of our paper on Microscopic reasoning for the non-linear stochastic models of long-range memory 6.

Introduction of variable event time scale

Original Kirman’s model assumes constant agent meeting rate. In financial market scenario one could draw analogy between these events and trades, as trade is pair-wise interaction of traders, or agents in modelic case, and also a great opportunity to reconsider available options. Thus we rewrite original one-step transition probabilities as

ffa01c3b4dd7d0525b3d96679adcbc69 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise 229efc26ada6bb5e212bf1c8b1ca5ad5 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

where 9f9f049fc9996e9b9feab17e54909f76 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is characteristic inter-event time, which now depends on system state. Note that in the above transition probabilities we have already assumed that one group of agent is rational, c898d40c1751611253725ba6bf45ebda T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise , while another is not, 02129bb861061d1a052c592e2dc6b383 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise . For this reason transition rate, 5ff63147c5116e9cd9c01709485c5551 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise , of c898d40c1751611253725ba6bf45ebda T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise has remained constant.

In this, more general, case derivation of stochastic differential equation in the manner it was done in 2 (also discussed on our website) is rather troublesome. Though alternatively we can use one-step process formalism 3, 7. In such case we compactly express Master equation using one-step operators, 977c972281e25188865ab27e860b58e8 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise and 1e6358a921ee6ee3dee1c62bbb3b4e10 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise :

d738cae6f29158c372cbbb78795d6b48 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (1)

where fc140c9039fd72576541d519eaf98d6a T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise are probability fluxes related to the transitions probabilities as b0e37617cad96d7ac0c3ea9a4eb84ba2 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise . Evidently 9dd4e461268c8034f5c8564e155c67a6 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is continuous system state variable, defined as 1cb43a7c80debd6803668700f5ad940a T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (large 8d9c307cb7f3c4a32822a51922d1ceaa T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise values can be assumed to secure continuity of the new system state variable).

As one-step operators act on continuous functions they can be expanded using Taylor series up to the second order terms:

fa0d0926a32e2abf72fc66c1cb79e9d5 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise 818177e668088033c46b7d0c895b59dd T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

where b56546a86ab832a9b2a5b15f96519319 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is smallest possible increment of the continuous system state variable, 4761211cbda7f82fc281aa7b73439102 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise . After this expansion Master equation, Eq. 1, becomes Fokker-Planck equation:

cc7fef916c772bbf511ebe02c016b845 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (2)

where 7852db5d43d5ab2b22775d9f2131b869 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise and 15444eb27adfc21cf2a51f356dc5fa78 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise are custom functions:

75cd9a539a2651424f0d69498668a87b T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise 7e14b1e2e069085b463426b70782c03f T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

The above Fokker-Planck equation, 2, can be rewritten as Langevin equation:

6f8e7bc2a25a8b27958adc7510b088ca T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

To simplify model we can introduce dimensionless time, a3f3c98c96e68fafc75ac1c9251ff95e T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise :

044e073a95ea7e5e533e437fb19c6811 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (3)

where 3ac22ebe353c690d089056a1a61e884d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise are accordingly rescaled original model parameters, 8e2dec28db7a7db4e8d1a31295ebfb35 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise .

Introducing price and return

While introducing variable time scale we assumed that there are at least two types of traders – some are rational, while some are not so. In recent agent based modeling 8 it is also very common to assume that there are two types of traders in the market – fundamentalists and noise traders. By definition fundamentalists are assumed to be rational investors aiming for the long term profits, while noise traders rely on technical trading strategies aiming for short term profits.

Fundamentalists base their decision on information about the stock’s value in the market. This information is quantified via so-called fundamental price, 835e85560d0144d8ce2f66b52423d0ed T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise . Fundamentalists expect that in long-run market will tend towards correct estimate of the stock’s value. If dfc30bf0f35e4dbe2a5293e94b81a4b6 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise fundamentalists will expect growth of prices, thus placing buying orders. In the opposite case they’ll attempt to sell stock, as they will expect decrease of price. These ideas are mathematical put down as 2:

04ad7fbce074c7e0c7a65e531d0baa0d T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

where 46f70fbbeb14d7b0827dd49f5d8d950e T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is fundamentalists’, a75707024f355a0ae7b07970a62388a9 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise entities, excess demand at a given time.

Contrary noise traders attempt to forecast future prices based on previous price movements. As they are using price charts to make forecast, they are also called chartists. As very is a wide selection of very different chartist trading strategies, chartists are likely to make very different forecasts. Difference in forecasts would lead to difference in bids. This intrinsic disagreement might be macroscopically seen as irrational mood of noise traders. Thus theirs’ excess demand can mathematical be expressed as 2:

43bc2e86fe6efe5fb6a206cc55d8d552 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

where ce7f9a8ec4c2b62f9c35a0d4ab5698d6 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is an average noise traders’ mood, d494fff4bb742eda9807f33385293eba T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is scaling term, which might also be seen as relative impact of chartists’ trades on the market.

Now one can use Walras law in order to obtain definition of price and, later, return. Original Walras law 9 assumes that trading in the market occurs trough the market maker, who stabilizes the market. Market is consider to be stable if all agents’ excess demands equal zero:

3c94ca389a7a3c8a49eb30246ec9f10d T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise
0747072942f8dd265672f25f8d113db8 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

here one can assume that fundamental price remains constant (i.e. it is not a function of time). As we have definition of price, now we can obtain definition of return:

0733ec190f62d6126ede0dc8e2f8f282 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (4)

Note that in the above we have expressed 7bdb6715ea940fbc821cd8a61119008b T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise and 1988e4dcf3c53f2a666d072969edc750 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise using fd5f9e2ee180a439aaec015692916a1c T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise , which we have defined previously as a systems state variable of Kirman’s model. As fundamentalists are rational we have set that 3a975ee7a0a8ce821901c2883336d161 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise , while chartists are thus directly related to fd5f9e2ee180a439aaec015692916a1c T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise .

In 2 definition of return, 4, is simplified by using adiabatic approximation. Namely it is assumed that noise traders’ change their mood very quickly, if compared with fd5f9e2ee180a439aaec015692916a1c T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise . This gives simpler definition of return:

a5f075976e8311d7df1dd3faa52ba022 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (5)

where fbbb761bea84280d527b0460846a39ea T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is a change of noise traders’ mood, bb0ce47675f66ec0f58de688c6a9727a T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise . This change can be modeled in different ways, in 2 it is modeled using spin noise. In such case e5267866cfef975cf7e556a05f0bde24 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise can be seen as absolute return, for which we will derive stochastic model in the next section of this text.

Derivation of stochastic model for absolute return, y

Eqs. 3 and 5 were derived in 2 (stochastic model was derived in a bit different way), but Alfarano et al. stopped there and did not derive stochastic differential equation for absolute return. In order to obtain stochastic model for absolute return we use Ito variable substitution formula 10:

48886be96d82453044b6b53702b10fc0 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

to obtain stochastic model for 415290769594460e2e485922904f345d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise :

5d3ffc941930040b9bf3064007c33b7d T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (6)

If we consider a5469bebb00d4bf2e7232689003ef8b2 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise , this selection might be backed by the positive correlation between trading activity and absolute return and also by the similarity of statistical properties, and a limit of large 415290769594460e2e485922904f345d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise values Eq. 6 becomes:

c448e2c27aac7862815109a3d7ca2c1c T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (7)

We find that Eq. 7 is very similar to stochastic differential equation consider in 5:

056511c9b1978402e184331e355748e8 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (8)

which is known to give power law statistics:

80b7b9563d5a1020b630198f15aced98 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise 8e5da8f25af889851804786ab0427dd8 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

As relations between different model parameters are 07edcfa455c5fd3d5ed1d602169107c5 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise , a79ea42045207b8c651ec6f9efd2990e T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (obtained by directly comparing stochastic differential equations 7 and 8), we expect that 415290769594460e2e485922904f345d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise defined by Eq. 6 will also have power law statistics:

d13f91aabce66474e446b0b509347031 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise f44c11fa46d0328063fa3a041f34dabc T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

Using these predictions we have reproduced 84d2f3bf60636d49e0540dd1a342d883 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise noise in three distinct cases (see Fig 1., this figure is featured in 6).

kirmanour Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

Fig 1. Numerically calculated PDF (a) and power spectral density (b) in three distinct cases, α=0 (red squares), α=1 (blue circles) and α=2 (magenta triangles), of considered stochastic model, Eq. (6). Other model parameters were set as follows: ε1=0, ε2=2-α. Solid curves are inverse power law fits: (a) λ=3 (all three cases), (b) β=1 (all three cases).

The above comparison is very important as stochastic differential equation 8 is a more general case of our stochastic model of return 11. Working on this approach further we might be able to create agent based model providing more sophisticated statistical features reproduced by the model consider in 11.

There is another stochastic model whose stochastic differential equation resembles Eq. 6. It is so-called generalized CEV process, which was consider in 4:

82ace804ad8c1ad6449ebfd024458858 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise (9)

Eq. 9 is noted to be a special case of Eq. 8, when exponential diffusion restriction is applied 4. Though comparison with generalized CEV process is important on its own, as generalized CEV process encompass many stochastic models used in risk management. In order to obtain similar stochastic differential equation we have to linearize drift function of Eq. 6 (i.e. set 794589fa4ad723884b25059fceefd19f T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise ). Similarity is once again obtained in the limit of large 415290769594460e2e485922904f345d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise values:

3e8aa293a2b1aff552caa12dce9c83a3 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

Due to the similarity between Eqs. 8 and 9, theoretical predictions of statistical properties remain the same. Though now they have a bit simpler mathematical expression:

c88e90707927a3dbc0b907f890691484 T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise 4886cea92faa4a1c55aba978122cecdb T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

In case of generalized CEV process we can’t reproduce 84d2f3bf60636d49e0540dd1a342d883 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise noise in three distinct cases, but we can still obtain three different power law spectral densities in three distinct cases (in each cases giving precise prediction). In Fig 2., this figure is featured in 6, we have shown that theoretical predictions for CEV process are also valid for 415290769594460e2e485922904f345d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise defined by Eq. 6.

kirmancev Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

Fig 2. Numerically calculated PDF (a) and power spectral density (b) of considered stochastic model, Eq. (6), with linearized drift function in three distinct cases, α=0 (red squares), α=1 (blue circles) and α=0 (magenta triangles). Other model parameters were set as follows: ε12=2. Solid curves provide inverse power law fits for modelic data: (a) λ=3 (red squares), λ=4 (blue circles), λ=5 (magenta triangles), (b) β=1 (red squares), β=1.5 (blue circles), β=1.66 (magenta triangles).

Applet

This applet numerically solves Eq. 6 using Euler-Maruyama method 12. In such case Eq. 6 becomes a set of difference equations:

3cb2c3ca9d928a8c4d20b8aaddf3cece T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise fdb4c43142d5c703ad413f6cacba20fd T 000000 0 ordinary Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise

where 269cb4a8704d5fb203ad10436efe52d1 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is numerical precision parameter (numerical solution tends to improve with smaller values of the parameter), while 0e832acc0def352e6dc02e82f8863719 T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is normally distributed (zero mean, unit variance) random variable. Precision and quality of numerical results are also influenced by the enforced restrictions (in applet one must define range of possible 415290769594460e2e485922904f345d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise values).

Model time series is formed from the numerical solutions of the above difference equations. These time series are used to obtain power spectral density and probabilistic distribution of values (both are ploted on logarithmic scales). Obtained time series mark 415290769594460e2e485922904f345d T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise values each 5a72f1304af0783657605aed0e38201a T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise time units (this 5a72f1304af0783657605aed0e38201a T 000000 0 inline Agent based herding model of financial markets stochastic interactive models econophysics agents  Kononovicius Kirman model Kirman Gontis financial markets CEV process Alfarano agent based reasoning 1/f noise is not to be confused with the one in transition probabilities).

Applet allows to calculate number of time series (or alternatively realizations). Generally speaking the more realizations, the better, as noisy fluctuations are removed through averaging over all calculated realizations. If your computer’s processor has multiple cores you can easily increase number of realizations being obtained without significant slowing down – you just have to tell applet to use more cores for numerical calculations. In such case numerical calculations will be distributed over selected number of cores.

Above you should see Java applet. If you do not see it, then please make sure that you have JRE installed and that your browser has Java enabled. Also make sure that you are running newest available JRE version. Newest JRE version can be downloaded from http://java.com/getjava.

References

  • A. P. Kirman. Ants, rationality and recruitment. Quarterly Journal of Economics 108, 1993, pp. 137-156.
  • S. Alfarano, T. Lux, F. Wagner. Estimation of Agent-Based Models: The Case of an Asymmetric Herding Model. Computational Economics 26 (1), 2005, pp. 19-49.
  • S. Alfarano, T. Lux, F. Wagner. Time variation of higher moments in a financial market with heterogeneous agents: An analytical approach. Journal of Economic Dynamics and Control 32, 2008, pp. 101-136.
  • S. Reimann, V. Gontis, M. Alaburda. Interplay between positive feedback in the generalized CEV process. Physica A 390 (8), 2011, pp. 1393-1401. arXiv: 1008.0568 [physics.data-an]. Download.
  • J. Ruseckas, B. Kaulakys. 1/f noise from nonlinear stochastic differential equations. Physical Review E 81, 2010, pp. 031105. arXiv: 1002.4316 [nlin.AO].
  • A. Kononovicius, V. Gontis. Agent based reasoning for the non-linear stochastic models of long-range memory. Physica A 391 (4), 2012, pp. 1309-1314. doi: 10.1016/j.physa.2011.08.061. arXiv: 1106.2685 [q-fin.ST]. Download.
  • N. G. van Kampen. Stochastic process in Physics and Chemistry. North Holland, Amsterdam, 2007.
  • M. Cristelli, L. Pietronero, A. Zaccaria. Critical Overview of Agent-Based Models for Economics. Proceedings of the School of Physics "E. Fermi", Course CLXXVI, ed. F. Mallnace, H. E. Stanley, pp. 235 - 282. SIF-IOS, Bologna-Amsterdam, 2012. doi: 10.3254/978-1-61499-071-0-235.
  • A. Jolink. The evolutionist economics of Lean Walras. Routledge, London and New York, 1996.
  • C. W. Gardiner. Handbook of stochastic methods. Springer, Berlin, 2009.
  • V. Gontis, J. Ruseckas, A. Kononovicius. A Non-linear Stochastic Model of Return in Financial Markets. In: Stochastic Control, ed. C. Myers. InTech, 2010. doi: 10.5772/9748.
  • P. E. Kloeden, E. Platen. Numerical Solution of Stochastic Differential Equations. Springer, Berlin, 1999.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Image with challenge