Statistical properties of short term price trends in high frequency stock market data



Similar documents
Stock price fluctuations and the mimetic behaviors of traders

arxiv:physics/ v2 [physics.comp-ph] 9 Nov 2006

Simple model of a limit order-driven market

Truncated Levy walks applied to the study of the behavior of Market Indices

Trading activity as driven Poisson process: comparison with empirical data

New Results on Gain-Loss Asymmetry for Stock Markets Time Series

The Power (Law) of Indian Markets: Analysing NSE and BSE Trading Statistics

Greed, fear and stock market dynamics

An empirical investigation of Australian Stock Exchange Data.

Asymptotic behavior of the daily increment distribution of the IPC, the mexican stock market index

Hurst analysis of electricity price dynamics

CITY UNIVERSITY OF HONG KONG DEPARTMENT OF PHYSICS AND MATERIALS SCIENCE

Scaling in an Agent Based Model of an artificial stock market. Zhenji Lu

Property insurance loss distributions

An analysis of price impact function in order-driven markets

Dynamics ofprice and trading volume in a spin model ofstock markets with heterogeneous agents

There is a saying on Wall Street that it takes volume to move

A statistical analysis of product prices in online markets

Maximum entropy distribution of stock price fluctuations

arxiv: v1 [q-fin.tr] 29 May 2009

Correlations and clustering in the trading of members of the London Stock Exchange

Sign and Amplitude Representation of the Forex Networks

Parallel Computing for Option Pricing Based on the Backward Stochastic Differential Equation

Price fluctuations, market activity and trading volume

Modeling a Foreign Exchange Rate

Betting on Volatility: A Delta Hedging Approach. Liang Zhong

Merton-Black-Scholes model for option pricing. Peter Denteneer. 22 oktober 2009

Modeling and simulation of a double auction artificial financial market

The relation between the trading activity of financial agents and stock price dynamics

arxiv: v2 [q-fin.st] 17 Dec 2013

Complex Behavior of Stock Markets: Processes of Synchronization and Desynchronization during Crises

Measurable inhomogeneities in stock trading volume flow

arxiv:nlin/ v2 [nlin.ao] 7 May 2003

Impressum ( 5 TMG) Herausgeber: Fakultät für Wirtschaftswissenschaft Der Dekan. Verantwortlich für diese Ausgabe:

PUBLIC TRANSPORT SYSTEMS IN POLAND: FROM BIAŁYSTOK TO ZIELONA GÓRA BY BUS AND TRAM USING UNIVERSAL STATISTICS OF COMPLEX NETWORKS

Trading and Price Diffusion: Stock Market Modeling Using the Approach of Statistical Physics Ph.D. thesis statements. Supervisors: Dr.

arxiv: v2 [q-fin.tr] 23 Jun 2014

CROSS-CORRELATION BETWEEN STOCK PRICES IN FINANCIAL MARKETS. 1. Introduction

High-frequency trading in a limit order book

Biom indexes and Gaussian Regmentation

Modelling Emergence of Money

Statistical properties of trading activity in Chinese Stock Market

Assignment 2: Option Pricing and the Black-Scholes formula The University of British Columbia Science One CS Instructor: Michael Gelbart

NEURAL networks [5] are universal approximators [6]. It



Athens and Lisbon Stock Markets: A thermodynamic approach

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

High-frequency trading model for a complex trading hierarchy

Real-time Volatility Estimation Under Zero Intelligence. Jim Gatheral Celebrating Derivatives ING, Amsterdam June 1, 2006

MATH BOOK OF PROBLEMS SERIES. New from Pearson Custom Publishing!

Fluctuations in airport arrival and departure traffic: A network analysis

A FRACTAL MARKET THEORY REVISITED THROUGH CHART ANALYSIS FOR A BETTER RISK/REWARD MANAGEMENT STRATEGY

MODELING OF STOCK RETURNS AND TRADING VOLUME. Abstract

LOCAL SCALING PROPERTIES AND MARKET TURNING POINTS AT PRAGUE STOCK EXCHANGE

To discuss this topic fully, let us define some terms used in this and the following sets of supplemental notes.

Modelling of Short Term Interest Rate Based on Fractional Relaxation Equation

The non-random walk of stock prices: the long-term correlation between signs and sizes

arxiv: v2 [q-fin.st] 19 Aug 2011

There s more to volatility than volume

LOGNORMAL MODEL FOR STOCK PRICES

QUANTIZED INTEREST RATE AT THE MONEY FOR AMERICAN OPTIONS

7. DYNAMIC LIGHT SCATTERING 7.1 First order temporal autocorrelation function.

arxiv:cond-mat/ v2 [cond-mat.other] 4 Mar 2004

Large stock price changes: volume or liquidity?

AP CALCULUS AB 2007 SCORING GUIDELINES (Form B)

Hurst exponent and prediction based on weak-form efficient market hypothesis of stock markets. Abstract

Other variables as arguments besides S. Want those other variables to be observables.

Short-term market reaction after extreme price changes of liquid stocks

Physica A. Fluctuation scaling of quotation activities in the foreign exchange market

Math 120 Final Exam Practice Problems, Form: A

Charles University, Faculty of Mathematics and Physics, Prague, Czech Republic.

1 One Dimensional Horizontal Motion Position vs. time Velocity vs. time

European Call Option Pricing using the Adomian Decomposition Method

Market Risk Analysis. Quantitative Methods in Finance. Volume I. The Wiley Finance Series

Overview. Essential Questions. Precalculus, Quarter 4, Unit 4.5 Build Arithmetic and Geometric Sequences and Series

Binomial lattice model for stock prices

Quantitative Analysis of Foreign Exchange Rates

CS 522 Computational Tools and Methods in Finance Robert Jarrow Lecture 1: Equity Options

Understanding Options and Their Role in Hedging via the Greeks

arxiv: v1 [q-fin.st] 2 May 2012

Visualizing the Doppler Effect

Gambling on the Budapest stock exchange

JetBlue Airways Stock Price Analysis and Prediction

arxiv: v1 [q-fin.st] 8 Dec 2008

People have thought about, and defined, probability in different ways. important to note the consequences of the definition:

Algebra II End of Course Exam Answer Key Segment I. Scientific Calculator Only

8 Fractals: Cantor set, Sierpinski Triangle, Koch Snowflake, fractal dimension.

Cross-sectional (ensemble) analysis of asset return dynamics in generic and specialized stock portfolios

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

OPTIONS and FUTURES Lecture 2: Binomial Option Pricing and Call Options

7.6 Approximation Errors and Simpson's Rule

Lecture 2. Marginal Functions, Average Functions, Elasticity, the Marginal Principle, and Constrained Optimization

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

A Comparison of Option Pricing Models

Asset price dynamics in a financial market with heterogeneous trading strategies and time delays

Key Topics What will ALL students learn? What will the most able students learn?

A THEORY OF LIMITED LIQUIDITY AND LARGE INVESTORS CAUSING SPIKES IN STOCK MARKET VOLATILITY AND TRADING VOLUME

Physica A 415 (2014) Contents lists available at ScienceDirect. Physica A. journal homepage:

Transcription:

Physica A 387 (2008) 1218 1224 www.elsevier.com/locate/physa Statistical properties of short term price trends in high frequency stock market data Paweł Sieczka, Janusz A. Hołyst Faculty of Physics and Center of Excellence for Complex Systems Research, Warsaw University of Technology, Koszykowa 75, PL-00-662 Warsaw, Poland Received 2 April 2007; received in revised form 20 September 2007 Available online 25 October 2007 Abstract We investigated distributions of short term price trends for high frequency stock market data. A number of trends as a function of their lengths were measured. We found that such a distribution does not fit to the results following from an uncorrelated stochastic process. We proposed a simple model with a memory that gives a qualitative agreement with the real data. c 2007 Elsevier B.V. All rights reserved. PACS: 89.65.Gh Keywords: Econophysics; Financial markets; Price trends 1. Introduction Statistical analysis of stock prices is a rich source of information about the nature of financial markets. It was Louis Bachelier who used a stochastic approach to model financial time series for the first time [1]. Since that time the statistical analysis of stock prices has become a widely investigated area of interdisciplinary researches [2 5]. In 1973, Fischer Black and Myron Scholes published their famous work [6] where they presented a model for pricing European options. They assumed that a price of an asset can be described by a geometric Brownian motion. However, the behaviour of real markets differs from the Brownian property [7,8], since the price returns form a truncated Lévy distribution [9 11]. As a result of this observation many non-gaussian models were introduced [2 4]. Another divergence from the Gaussian behaviour is an autocorrelation in financial systems. Empirical studies show that the autocorrelation function of the stock market time series decays exponentially with a characteristic time of a few minutes, while the absolute values of the autocorrelation of prices decay more slowly, as a power law function, which leads to a volatility clustering [12 15]. The issue of market memory was also considered by many authors (see references in Refs. [2,3]). It was observed [16], that for certain time scales, a sequence of two positive price changes lead more frequently to a subsequent positive change than a sequence of mixed changes, i.e. the conditional probability P(+ \ ++) is larger than P(+ \ + ). In this paper we investigated this effect for high frequency stock market data. Corresponding author. Tel.: +48 22 234 71 33; fax: +48 22 234 58 08. E-mail address: jholyst@if.pw.edu.pl (J.A. Hołyst). 0378-4371/$ - see front matter c 2007 Elsevier B.V. All rights reserved. doi:10.1016/j.physa.2007.10.048

P. Sieczka, J.A. Hołyst / Physica A 387 (2008) 1218 1224 1219 Fig. 1. Distribution N(l) for uptrends (a) and downtrends (b) for the WIG20 index between the 13th June 2003 and the 3rd November 2006. Data are sampled every 15 s (circles), and were compared to uncorrelated process (line) Eq. (1). 2. Empirical data Let us consider short term price trends for high frequency stock market data. By short term uptrend/downtrend we mean such a sequence of prices that a price is larger/smaller than the preceding one (see below for a more precise definition). First, having a time series Y t, which is in our case a history of a stock price or a market index, we build a series of variables s t in the following way: s t = 1 if Y t > Y t 1, s t = 1 if Y t < Y t 1, s t = s t 1 if Y t = Y t 1. A positive value of the variable s t means that at time t the price Y t did not decrease, and similarly a negative value means that the price did not increase. In a series s t we can distinguish subseries of identical values. For a < b and s a = s b = s, S(a, b, s) is such a subseries if and only if c (a,b) s c = s. Subseries S(a, b, s) can be identified with an uptrend lasting from t = a till t = b for s = 1, and with a downtrend for s = 1. The length l of such an uptrend/downtrend is equal to b a + 1. Let us mention that a subseries of a length l includes two subseries of length l 1, three subseries of length l 2 etc. Let N(l) be a number of subseries of a length l with a fixed s in a series s 1,..., s M. If s t were generated by an uncorrelated discrete stochastic process with a probability P(s t = 1) = p, then the expected value of N(l) would be equal to: N(l) = (M l + 1)p l, (1) where M is a number of all elements in the basic series. Similarly the expected value of downtrend series of length l is N(l) = (M l + 1)(1 p) l. We have measured the distribution N(l) for real market data and the same distribution for the corresponding uncorrelated process. Fig. 1 presents this distribution for the WIG20 index of Warsaw Stock Exchange (WSE) between the 13th June 2003 and the 3rd November 2006, and the distribution for the corresponding uncorrelated process. The results show a significant difference between the real data and the uncorrelated model. If variables s t were uncorrelated, there would not be subseries longer than 25 ticks. In fact, subseries even longer than 100 ticks are present. The trends last for about 30 minutes. There are far more such trends than it would be if the process were uncorrelated. The distribution N(l) was also calculated for particular stocks from WSE, NYSE and NASDAQ (Fig. 2). The stocks from WSE were: Bioton between the 31st March 2005 and the 3rd November 2006, and TPSA between the 17th November 2000 and the 3rd November 2006. The stock from NYSE was Apple, and the stock from NASDAQ was Intel, both between the 4th January 1999 and the 29th December 2000. For the index WIG20 trend periods were measured in real time, but for the stocks they were measured in a transaction time (see Section 4). The observed difference between the uncorrelated model and the real markets is due to the strong autocorrelations in the process s t. It is only seen in high frequency data. Choosing every nth element of the series s t weakens

1220 P. Sieczka, J.A. Hołyst / Physica A 387 (2008) 1218 1224 Fig. 2. Distribution N(l) for: (a) BIOTON between the 31st March 2005 and the 3rd November 2006 (WSE), (b) TPSA between the 17th November 2000 and the 3rd November 2006 (WSE), (c) APPLE between the 4th January 1999 and the 29th December 2000 (NYSE), (d) INTEL between the 4th January 1999 and the 29th December 2000 (NASDAQ). Uptrends are plotted with circles and downtrends are plotted with squares. All data are sampled tick by tick. Lines correspond to the uncorrelated process (1). Fig. 3. N(l) of WIG20 uptrends for every nth element of s t, n = 1 circles, n = 2 squares, n = 4 diamonds, n = 6 triangles. the autocorrelations, and makes the outcome approaching the uncorrelated model with growing n. It is shown in Fig. 3. 3. A phenomenological model of correlated market prices In real markets variables s t and s t+τ are correlated, although this correlations decay very fast. Let r(k) stand for a conditional probability P(s n+k+1 = 1 \ s n+k = 1,..., s n = 1, s n 1 = 1), which is independent of n. For processes

P. Sieczka, J.A. Hołyst / Physica A 387 (2008) 1218 1224 1221 Fig. 4. The distribution N(l) with fitted curve (2) (a) WIG20 (WSE) uptrends with fitted parameters: a = 0.000098, x 1 = 48.28, x 2 = 153.31, (b) TP S.A. company (WSE) uptrends with fitted parameters: a = 0.000057, x 1 = 73.42, x 2 = 184.35. where autocorrelations are present we can write a generalization of Eq. (1): N(l + 1) = (M l)p l r(i), i=1 for l > 0 and N(1) = Mp. Let us see that the result (2) is equivalent to (1) if for any x there is r(x) = p. A key issue is to model r(x) in order to describe the characteristics of a given market. The results presented in Figs. 1 and 2 show that the model of the uncorrelated process (1), is a poor simplification. To get a better consistency with real data the function r(x) can be modelled as: (2) r(x) = a(x x 1 )(x x 2 ), (3) with fitted parameters a, x 1 and x 2. A binomial function was chosen because we are looking for a simple concave function with a maximum, and a binomial function matches our requirements for proper parameters a, x 1, x 2. We expect that for small x, the probability value r(x) increases with x. It means that when the trend starts forming, investors follow it and, as a result, they amplify the trend. Thus, the probability of a continuation of the price movement grows. As time goes by, some of them may want to withdraw to take profits, and those who are out of the market believe that it is too late to get in. This causes a decrease of r(x) for a longer trend. One can choose various functions to model the probability r(x). All such functions should be concave functions with a maximum for a positive argument smaller than the maximal length of all subseries. The Fig. 4 presents the distribution N(l) with a fitted curve based on (3). Putting (3) into (2) we get after some algebra an approximated form of the function N(l) as: ( ) l 1 x1 ( ) N(l) (M l + 1)pe 2(l 1) [a(l x 1 )(l x 2 )] l 1 x1 l 1 x2 x2. (4) 1 x 1 1 x 2 The Fig. 5 presents functions (2) and (4) and a relative difference between them. For a given set of parameters a + = 0.000098, x + 1 = 48.28, x+ 2 = 153.31, a = 0.000101, x 1 = 47.32, x 2 = 150.69, obtained for uptrends and downtrends in the WIG20 index respectively, one can simulate the stochastic process according to Eqs. (2) and (3). The autocorrelation function C(τ) = s i+τ s i, (5) calculated for such a process, decrease similarly to the autocorrelation function received from the empirical data (see Fig. 6). The model reflects the short range correlations of the sign.

1222 P. Sieczka, J.A. Hołyst / Physica A 387 (2008) 1218 1224 Fig. 5. Graph (a) presents the distribution N 1 (l) obtained from the Eq. (2) and N 2 (l) from the approximation (4) for the WIG20 index (WSE). Graph (b) presents the relative difference between them: d = (N 2 (l) N 1 (l))/n 2 (l). Fig. 6. The autocorrelation function obtained from Eq. (5) for parameters a + = 0.000098, x 1 + = 48.28, x+ 2 = 153.31, a = 0.000101, x1 = 47.32, x 2 = 150.69 (line) and the index WIG20 itself (circles). 4. Measuring trends in volume and volatility times In previous chapters we presented an analysis of price trends measured in real and transaction times. The WIG20 index is published every 15 s, and for this index the 15 s data are the most frequent possible. Investigating these data we naturally used the real time with a 15 s interval, in which the sequence +1, +1, +1, +1 means that the index did not decrease for one minute. For the stocks of companies tick-by-tick data are accessible, thus a transaction time is a natural measure of a time length. Transaction time can be defined as: τ t (t i ) = τ t (t i 1 ) + 1, (6) where t i is the real time of the transaction i. We used times τ t for data analysis of single stocks. In this case the sequence +1, +1, +1, +1 means that the price did not decrease during four subsequent transactions. Other time definitions are also possible. One of them is the volume time [17] defined in a standard way as: τ v (t i ) = τ v (t i 1 ) + V i, (7) where V i is the volume of transaction i. We repeated our analysis, measuring lengths of trend periods, using the volume time instead of the transaction time. In Fig. 7 we presented distributions of the trend periods of exact length τ v (L(τ v )) for stocks PKN Orlen and TPSA of Warsaw Stock Exchange, both from the period between the 17th November 2000 and the 3rd November

P. Sieczka, J.A. Hołyst / Physica A 387 (2008) 1218 1224 1223 Fig. 7. The distribution L(τ v ) of numbers of trend periods of a length τ v measured in a volume time, for: (a) PKN Orlen (WSE), (b) TPSA (WSE). Data were binned with a bin of the width 100. Fig. 8. The distribution N(τ v ) for: (a) PKN Orlen (WSE), (b) TPSA (WSE). 2006. Let us stress that contrary to the distribution N(l) which was, in a sense, cumulative, L(τ v ) is non-cumulative, because it shows only trends of the exact length τ v. The distribution N(τ v ) was presented in Fig. 8. One can see that there is an inflection point within the range of the variable v. It resembles the shape of the function N(l) from the Figs. 1 and 2, which also possesses an inflection point. By analogy to the volume time (7) we can define the volatility time: τ σ (t i ) = τ σ (t i 1 ) + σ (t i ), where σ (t i ) is the local volatility at the time t i. The volatility at time t i was defined as an absolute value of a log-return for a transaction at time t i, it is σ (t i ) = log(p(t i )/P(t i 1 )), where P(t i ) is the price of a stock at time t i. For such a defined volatility we measured trend lengths and presented the distribution of the lengths L(σ ) in Fig. 9. 5. Conclusions We have investigated the short term price trends for high frequency stock market data. It turned out that the statistics for real markets is significantly different from the statistics of uncorrelated processes. Longer trends (of the order of several minutes) are much more frequent than they should be, if one used an uncorrelated model. The investigations have been repeated for trends measured in volume and volatility time. The distribution of trends in volume time N(τ v ) has similar behaviour to the function N(l). (8) (9)

1224 P. Sieczka, J.A. Hołyst / Physica A 387 (2008) 1218 1224 Fig. 9. The binned distribution L(τ σ ), it is a number of trend periods of a length τ σ measured in a volatility time, for: (a) PKN Orlen (WSE), (b) TPSA (WSE). We proposed a simple model that qualitatively captures the behaviour of the market. The model leads to a distribution of trend series N(l) that is similar to the distribution observed in market data. Our model produces also short range correlations. This behaviour is caused by the conditional probability of trend continuation that changes non-monotonically with a trend length. At the beginning of the trend, the probability of the trend continuation grows, then it hits the maximum and finally decreases. As a result, trends posses limited lengths. Acknowledgments This work as a project of the COST Action P10 Physics of Risk was partially supported by the Polish Ministry of Science and Higher Education, Grant No. 134/E-365/SPB/COST/KN/DWM 105/2005-2007. References [1] L. Bachelier, Theorie de la speculation, Ann. Sci. Ec. Norm. Super. 111117 (1890) 2186. [2] R.N. Mantegna, H.E. Stanley, An Introduction to Econophysics: Correlations and Complexity in Finance, Cambridge University Press, Cambridge, 1999. [3] J.-P. Bouchaud, M. Potters, Theory of Financial Risk and Derivative Pricing: From Statistical Physics to Risk Management, Cambridge University Press, Cambridge, 2003. [4] Proceedings from the 4-th International Conference APFA4, Physica A 344 (1 2) (2004). [5] Trends in econophysics, Eur. Phys. J. B 55 (2007) 121 217. [6] F. Black, M. Scholes, J. Political Econ. 81 (1973) 637 654. [7] B. Mandelbrot, J. Business 36 (1963) 394419. [8] E.F. Fama, J. Business 38 (1965) 34105. [9] R.N. Mantegna, H.E. Stanley, Phys. Rev. Lett. 73 (1994) 2946. [10] R.N. Mantegna, H.E. Stanley, Physica A 254 (1998) 77 84. [11] L. Kullmann, J. Töyli, J. Kertesz, A. Kanto, K. Kaski, Physica A 269 (1999) 98 110. [12] Y. Liu, P. Cizeau, M. Meyer, C.-K. Peng, H.E. Stanley, Physica A 245 (1997) 437 440. [13] Y. Liu, P. Gopikrishnan, P. Cizeau, M. Meyer, C.-K. Peng, H.E. Stanley, Phys. Rev. E 60 (1999) 1390. [14] P. Gopikrishnan, V. Plerou, L.A.N. Amaral, M. Meyer, H.E. Stanley, Phys. Rev. E 60 (1999) 5305. [15] A. Krawiecki, J.A. Hołyst, D. Helbing, Phys. Rev. Lett. 89 (2002) 158701. [16] E.F. Fama, J. Fin. 25 (1970) 383. [17] L. Gillemot, J.D. Farmer, F. Lillo, Quant. Finance 6 (2006) 371 384.