Presentation is loading. Please wait.

Presentation is loading. Please wait.

股市可以預測嗎 ?— 碎形觀點 Markets are unpredictable, but some exploitable 廖思善 Sy-Sang Liaw Department of Physics National Chung-Hsing Univ, Taiwan October, 2009.

Similar presentations


Presentation on theme: "股市可以預測嗎 ?— 碎形觀點 Markets are unpredictable, but some exploitable 廖思善 Sy-Sang Liaw Department of Physics National Chung-Hsing Univ, Taiwan October, 2009."— Presentation transcript:

1 股市可以預測嗎 ?— 碎形觀點 Markets are unpredictable, but some exploitable 廖思善 Sy-Sang Liaw Department of Physics National Chung-Hsing Univ, Taiwan October, 2009

2 Taiwan Stock Index (1971-2005)

3 Dow Jones Industrial Average (DJIA index 1900-2007)

4 An example of time series

5 Fourier Transform

6 Fourier Transform on the flashing of fireflies Analysis method for regular sequences

7 FFT on chaotic time series External frequency produces no useful information.

8 A typical Random walk

9 Gaussian distributions Central Limit Theorem

10 Louis Bachelier (1870 – 1946) PhD thesis: The Theory of Speculation, (published 1900). Bachelier's work on random walks predated Einstein's celebrated study of Brownian motion by five years. Black-Scholes model (1997 Nobel prize) assumes the price follows a Brownian motion.

11 Fractals http://www.fourmilab.ch/images/Romanesco/ Benoit B. Mandelbrot (1975)

12 How long is the coast?

13 Infinite structures

14 D = 1.1 Fractal time series D = 1.3 D = 1.5 Random walk D = 1.7D = 1.9

15 Multifractals B.B. Mandelbrot

16 Distribution of returns Returns: R.N. Mantegna and H.E. Stanley, Nature 376, 46 (1995) This can not be explained by the Central limit theorem. Normal distribution Normal Markets

17 Log-periodic oscillation N. Vandewalle, M. Ausloos, et al, Eur. Phys. J. B4, 139 (1998)

18 Detrended Fluctuation Analysis(DFA) (1) Time sequence of length N is divided into non- overlapping intervals of length L (2) For each interval the linear trend is subtracted from the signal (3) Calculate the rms fluctuation F(L) of the detrended signal and F(L) is averaged over all intervals (4) The procedure is repeated for intervals of all length L<N (5) One expects where H stands for the Hurst exponent C.K. Peng, et al, Phys. Rev. E49, 1685 (1994)

19 Use of DFA on Polish stock index L. Czarnecki, D. Grech, and G. Pamula, Physica A387, 6801 (2008) Crush at March 1994 Crush at January 2008

20 Stochastic multi-agent model T. Lux and M. Marchesi, Nature 397, 498 (1999)

21 Empirical Mode Decomposition N.E. Huang and Z. Wu, Review of Geophysics 46, RG2006 (2008)

22 Fractal dimensions of Time series

23 Examples of fractal functions White noise D = 2.0 Riemann function D=1.226 Fractal Brownian motions D = 1.4 Weierstrass function D=1.8 Random walk D = 1.5

24 Calculations of the Fractal dimensions Hausdorff dimension Box-counting dimension (Shannon) Information dimension Correlation dimension Fractal dimension = 2.315 Fractal dimension = 2.731 None is geometrically intuitive.

25 Calculate fractal dimensions from turning angles Physica A388, 3100 (2009), Sy-Sang Liaw and Feng-Yuan Chiu

26 Fractal dimension of DJIA index Dow Jones 1900 - 2007 Red: points Blue: points Black: points

27 mIRMD (modified inverse random midpoint displacement) : S=2 S=4 S=6 Midpoint displacement scale Calculate fractal dimensions from Midpoint displacements

28 Calculating fractal dimension using mIRMD White noise Weierstrass function D=1.8 summing 30, 15, 10, terms D = 2 - slope sin(100t)

29 Calculating fractal dimension using mIRMD Weierstrass function D=1.8 White noise sin(100t) Random walk D = 2 – slope for fractals

30 Fractal dimension of Taiwan stock index Red: IRMD Blue: mIRMD log(s)

31 S&P500 – 1986, 4/4 mIRMD log(s)

32 Mono-fractals Weierstrass function has single fractal dimension at every scale everywhere

33 Fractal dimension of S&P500 — at one minute intervals SP500—minutes (1987) D = 1.05 D = 1.40 Bi-fractal! 20 minutes Crossover at

34 Fractal dimension of S&P500-- minutes SP500—minutes (1992) D = 1.38 D = 1.09 Bi-fractal! 20 minutes

35 Fractal dimension of S&P500— minutes (September 1987) mIRMD DFA

36 Bi-fractals A special kind of scale-dependent fractal has one fractal dimension for small scales and the other fractal dimension for scales larger than a certain value. We will call these fractals, bi- fractals. Mono-fractals Mono-fractals such as the Weierstrass function and the trajectory of a random walk have single fractal dimension at every scale everywhere

37 Bi-fractals have been observed in many real data, including heart rate signals[1,2]; fluctuations of fatigue crack growth[3]; wind speed data[4]; precipitation and river runoff records[5]; stock indexes at one minute intervals[6] [1] T. Penzel, J.W. Kantelhardt, H.F. Becker, J.H. Peter, and A. Bunde, Comput. Cardiol., 30, 307 (2003). [2] S. Havlin, L.A.N. Amaral, Y. Ashkenazy, A.L. Goldberger, P.Ch. Ivanov, C.-K. Peng, and H.E. Stanley, and, Physica A274, 99 (1999). [3] N. Scafetta, A. Ray, and B.J. West, Physica A359, 1 (2006). [4] R.G. Kavasseri and R. Nagarajan, IEEE Trans. Circuits Syst., Part I: Fundamental Theory and Applications 51, 2255 (2004). [5] J.W. Kantelhardt, E. Koscielny-Bunde, D. Rybski, P. Braum, A. Bunde, and S. Havlin, J. Geophys. Res. 111, D01106 (2008). [6] Y. Liu, P. Cizeau, M. Meyer, C.-K. Peng, and H.E. Stanley, Physica A245, 437 (1997).

38 log( ) log(s) Stock index at one minute intervals S&P500 (1987) Taiwan stock index (2009 Jan-May) log(s)

39 Stock indexes are intrinsically Bi-fractals

40 Oct. 17 USA: S&P 500 (1987)

41 Artificial S&P 500 (1987) Replace every return by 0, +1, or, -1 according to its sign in real data

42 Bi-fractal property is preserved.

43 Sp1987 realSp1987 constant return

44

45 Generate bi-fractals dynamically Weakly persistent random walk model: up – up -- probability p > 0.5 up down – down – probability p > 0.5 down up – down – probability q up down – up – probability q down

46 Trajectories generated using the weakly persistent random model ( step length = 1 ) Black: p = 0.9, q = 0.5 Red: p = 0.8, q = 0.5 Blue: p = 0.7, q = 0.5 Brown: p = 0.6, q = 0.5 Log(S) Log( )

47 Trajectories built using the weakly persistent random model ( step length = random ) p = 0.8, q = 0.5p = 0.7, q = 0.5

48 S&P500 minutes 1987 before collapse S&P500 minutes 1987 after collapse Taiwan index minutes 2009 May Taiwan index minutes 2009 April

49 Taiwan

50 US sp500

51

52

53

54

55

56

57 Financial market is a weakly persistent random walk ! As a consequence, the financial market is intrinsically more unpredictable than random walks. The distribution of the returns, and accordingly, the general trend of the market, are mainly determined by external effects.

58 On the other hand … Short-range prediction is possible Because the stock market is weakly persistent, for many moments, one knows when the market will be up or down with more than 50% chance (probability p > 0.5), so that one can always profit in the stock market (if transaction cost is neglected.)

59 Profits gained based on the weakly persistent random walk model S&P500 1987 Net gain at selling Net gain at buying 0 Average time interval between transactions is 10 minutes.

60 S&P500 1987-1992 1986 198719881989199219901991 Net gain at selling Net gain at buying

61 Profits gained based on the weakly persistent random walk model Taiwan stock index 2009 Jan-May Net gain at selling Net gain at buying 0

62 Profits gained based on the weakly persistent random walk model Random walk Net gain at selling Net gain at buying 0

63 Is the bi-fractal property universal for all stock indexes around the world? Australia_AORD 2008,9—2009,6 Brazil_BVSP 2008,9—2009,6 China_SSEC 2008,9—2009,6 France_CAC40 2008,9—2009,6 Germany_XDAX 2008,9—2009,6 India_SENSEX 2008,9—2009,6 Japan_NIKKEI225 2008,9—2009,6 Portugal_PSI20 2008,9—2009,6 Taiwan_TAIEX 2008,9—2009,6 US_S&P500 1986,1—1992,12

64 China

65 Brazil

66 India

67 Japan

68 Australia

69 France

70 Germany

71 Portugal

72 Is the bi-fractal property found in every single stock?

73

74

75

76

77

78

79

80

81 Combination of a few stocks

82

83

84

85

86

87

88

89

90

91 A category of stocks

92

93

94

95

96

97

98

99 Conclusions Markets are intrinsically unpredictable, but some are exploitable. WPRW does not work for single stocks. For a portfolio consisting of a few selected stocks, the WPRW is still a good model.

100 Thank you for your attention!


Download ppt "股市可以預測嗎 ?— 碎形觀點 Markets are unpredictable, but some exploitable 廖思善 Sy-Sang Liaw Department of Physics National Chung-Hsing Univ, Taiwan October, 2009."

Similar presentations


Ads by Google