Skip to content

Long-range memory stochastic model of return

trader action dice

From the practical point of view price is the most interesting observable of the financial markets. Though modeling and analysis of price fluctuations are hindered by the fact that price itself is non-stationary process – mean price and market volatility constantly change. While price changes, at least at short time scales, behave as stationary process – mean price change is equal, or at least approximately equal, to zero. Thus it is convenient to introduce variable related to the relative price changes, which is known as return

00e7b22e32cb07314ebbf84dca792638 T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

If the change of price, d590932b4e1a9e28e8b3707055edf1fc T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise , is small, then the above definition of return is analogous to relative price change, b635f1854115bd2db7ccf32b19c94088 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise .

There are few very common and general statistical properties of return. Those statistical properties, also called stylized facts, were established while analyzing return time series of different stocks from different markets all over the world.

One of those facts is fat tails, leptocurtic, of return distribution. Fatter than Gaussian empirical return distribution tails are most usually fitted using power law functions (powers fluctuate between 3 and 4). In this text we use q-Gaussians, which are known to fit return distributions in whole range of return values 1 – not only the tail region as simple power law functions do.

It is also known that autocorrelation of absolute return time series decays very slowly – as power law. While the spectral density of absolute return time series is known to be double power law – smaller frequencies are fitted with power 0.9, while larger can be fitted with power 0.2. In the figure bellow, Fig. 1, we have show aforementioned statistical properties of one minute absolute returns observed in New York (red line) and Vilnius (blue line) Stock Exchanges.

return stylized facts Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

Fig 1. Statistical properties of absolute one minute, Δt=60s, returns - probability density function of non-zero values (a) and power spectral density (b) - from two different financial markets. Red curves represent New York Stock Exchange, while blue correspond to statistical properties of return in Vilnius Stock Exchange. Black curves approximate empirical data - (a) q-Gaussian (q=1.55), (b) power law functions (powers 0.9 and 0.2).

Note that in Fig. 1 statistical properties of different financial markets slightly differ. This happens mainly due to the fact that time interval of return, 5a72f1304af0783657605aed0e38201a T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise , is significantly larger than mean inter-trade time in New York Stock Exchange (approximately 3 seconds), but in case of Vilnius Stock Exchange 5a72f1304af0783657605aed0e38201a T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise is smaller than mean inter-trade time (approximately 362 seconds). Thus most of one minute time intervals in New York Stock Exchange contain deals and price changes (75% of time intervals have non-zero return), while majority of one minute time intervals in Vilnius Stock Exchange are empty (92% of time intervals have zero return). That is why spectral densities of two stock exchanges slightly disagree, and the reason why we must compare probability density functions of non-zero values.

In the next sections of this text we will replicate derivation of long range memory stochastic model of return. Later in this work we will also present interactive Java applet. The model and related works are discussed in 2 reference.

Langevin equation with q-Gaussian stationary distribution

From the stochastic analysis (see for example 3) it is known that, if in general case Langevin equation can be written as

8fe1af7689cef264a9a0c3456aab790f T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

then stationary distribution of this equation is

bd529e5b29113404f3a5d31d2dd81d7b T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

The above relation can be re-expressed in differential terms with respect to one of the functions from Langevin equation, 48b0f5c24a2632c1a86302758836eca7 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise or c70b99041bcd92b227fd38b524a921f1 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise ,

88aeed8c98c0c89ad688e635e9d92733 T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

This differential relation is needed as we know that stationary distribution must be q-Gaussian (more transparent form is obtained in 2). c70b99041bcd92b227fd38b524a921f1 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise we can choose freely, thus in agreement with previous work 220c1e74660919ec07a1ff8a66d3dbab T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise is chosen. At this point we can already write Langevin equation for return. Though by making some substitutions, 53452baf32390a97a0c23bbf4380a756 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise , 83e7ad27a55a90282446e296739f2298 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise , we can obtain dimensionless stochastic differential equation

ab11dc9e5c96973fbc5a6d30f886ca00 T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

The equation above describes dynamics of momentary return, while we are interested in compounded return. Thus the solutions of the above equation must be integrated in chosen time intervals, a6f317b268ae825d94f832f970af607c T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise ,

fc02e48c6fdd633bea9ebafeae69610b T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

The above stochastic differential equation reproduces time series with q-Gaussian stationary distribution (power fitting the tail is e05a30d96800384dd38b22851322a6b5 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise ) and power law spectral density – in one region approximated by power law function with power 41eaa89134f9d12e50384a379a4978c0 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise (see 4). By manipulating with model parameter e05a30d96800384dd38b22851322a6b5 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise and 7174cbd6aeaaa56e37102b72386bb2b9 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise values one can obtain almost any spectra with 634888ef3a85553a275fbca1dc7f6cfa T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise region. As an example we provide 1/f spectral density (see Fig. 2b).

simple sde Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

Fig 2. 1/f noise obtained from the above SDE. Red curves correspond to model statical properties (probability density function (a), spectral density (b)), while black curves fit modelic statistical properties (q-Gaussian, q=1.66, (a), power law function, β=1, (b)). Used model parameters: λ=3, η=1.5, τ=0.02. Model statistical properties averaged over 100 realizations containing 4096 points.

Langevin equation with double power law spectral density

Though results presented in Fig. 2 are already astonishing, but as we saw in Fig. 1b power spectral density of absolute return is fractured (containing two different power law regions). To reproduce the fracture one must to divide space of 9dd4e461268c8034f5c8564e155c67a6 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise diffusion into two different multiplicativity regions. Improved stochastic differential equation, with two powers of multiplicativy, can be written as

878241180e206c9ef72fddd1aa17578b T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

here c50b9e82e318d4c163e4b1b060f7daf5 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise parameter controls division of 9dd4e461268c8034f5c8564e155c67a6 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise diffusion space. One can introduce into the above equation new terms, which would restrict diffusion of 9dd4e461268c8034f5c8564e155c67a6 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise . If those terms are not introduced one would need to limit numerical solutions using min and max functions available in most programing languages. We propose to introduce 0d078bf291f305fd55f259917551a07f T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise (this is default variation used in the most recent articles) or f58d112ec5d0ebb887bf35e616f1955c T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise (this is non-default variation, which was used in our first article concerned with return modeling).

Introduction of q-Gaussian noise

Yet still solutions of the above equation appear to be smoother than empirical time series 2 – difference between power laws approximating modelic spectra are minor, while in the time domain modelic return fluctuates as slow continuous function. Similar behavior is demonstrated by the moving average of actual return. Thus this encourages us to proposed to decompose return into two very different processes – slow long-range memory process (described by Langevin equation) and fast large fluctuation process (noise).

Empirical analysis 2 shows that fast fluctuations is also q-Gaussian, aed6525b4fa148a5caab332796fb2824 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise . Power, 2130a440dabafae348d24ae867142b67 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise of the distribution tail appears to be constant and equal to 5. While d494fff4bb742eda9807f33385293eba T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise , responsible for variance in time series, appears to be linearly related to the moving average of return, 2b81694cf7127ecd0968e3dc7233eaf3 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise ,

3fd5a4b1c769b7429827a365cda32387 T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

As 2b81694cf7127ecd0968e3dc7233eaf3 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise seems to behave similarly to cb3faf3c6de6d49b6ea8600e73418ae7 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise we can rewrite above relation as

cada9346adf1d297e7790ccc2b22ea89 T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

here 183a65c19fbe3044a51a0754b4ccd2cc T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise is model parameter bearing the meaning of mean return per unit time interval.

Thus now we first solve stochastic differential equation, then we integrate it’s solutions in some intervals and then modulate those solutions with q-Gaussian noise. Results obtained in this way is in great agreement with empirical data (see Fig. 3).

return model vs nyse vvpb comparison Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

Fig 3. Comparison of return model (black curve) and empirical (New York Stock Exchange - red curve, Vilnius - blue) statistical properties, non-zero value probability density function ((a) ir (c)) and power spectral density ((b) ir (d)), in different time scales (1 min - (a) and (b), 30 min - (c) and (d)). Model parameters: τs=2 10-4 (1 min) and τs=6 10-3 (30 min), λ2=5, r̄0=0.4, λ=3.6, ε=0.017, η=2.5, xmax=1000.

Applet

Java applet bellow solves differential equations above using Euler-Maruyama method 5. We also use variable time step. In such case stochastic differential equations becomes a set of difference equations for time and return. In case of the last stochastic differential above

aa0a8e72900f58200ba1c2ba4035d807 T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise 3d677bfed360d34184293934b0d75dd1 T 000000 0 ordinary Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise

here 003d803802da6265f03c056a078f315a T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise is Gaussian noise (zero mean, unit variance) and c78f6d0f108bd13554e62804d0790f42 T 000000 0 inline Long range memory stochastic model of return stochastic interactive models econometrics econophysics  old models Ruseckas Kononovicius Gontis financial markets CEV process 1/f noise is numerical precision parameter.

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.

You can download full java program with GUI in Lithuanian or English language. Note that only GUI was localized – meaning that console is English in both cases.

References

  • Cf. M. Gell-Mann, C. Tsallis. Nonextensive Entropy - Interdesciplinary Applications. Oxford University Press, New York, 2004.
  • 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.
  • C. W. Gardiner. Handbook of stochastic methods. Springer, Berlin, 2009.
  • B. Kaulakys, M. Alaburda. Modeling scaled processes and $1/f^\beta$ noise using non-linear stochastic differential equations. Journal of Statistical Mechanics, 2009, pp. P02051. arXiv: 1003.1155 [nlin.AO].
  • 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