This was discussed in a previous thread. http://www.elitetrader.com/vb/showthread.php?s=&postid=108473#post108473
In response to the comments and criticisms(mostly valid) of my original post I have done a more thorough analysis. I have calculated the mean for the differences in share or index prices given below, and then grouped the results into 2 sets N1 and N2 according to whether they were above or below the mean. I then performed the Wald-Wolfowitz runs test. Each run is a sequence of either N1 or N2.
Indexes
OEX between 28/8/02 and 2/8/82
OEX for 1 day interval
Runs: 2580 N1: 2530 N2:2535
Expected Number of Runs: 2533.5; sd: 35.5809
z-value= 1.30695; approx. probability: 0.90439
z-val= 1.3210(continuity correct.); p: 0.90675
OEX for 20 days interval
Runs: 131 N1::124 N2:126
Expected Number of Runs: 126; sd: 7.8893
z-value= 0.63478; approx. probability: 0.73722
z-val= 0.6981(continuity correct.); p: 0.75746
OEX for 200 days interval
Runs:12 N1:10 N2:12
Expected Number of Runs: 11.9; sd: 2.2688
z-value= 0.04006; approx. probability: 0.51598
z-val= 0.2604(continuity correct.); p: 0.60274
exact probability of 12 or fewer runs= 0.60503
DJIA yearly interval between 02/1/53 and 13/12/91
Runs:20 N1:20 N2:16
Expected Number of Runs: 18.8; sd: 2.9193
z-value= 0.41867; approx. probability: 0.66227
z-val= 0.5899(continuity correct.); p: 0.72239
exact probability of 20 or fewer runs= 0.72244
Shares (suggested by jperl)
tmpw between 16/12/96 and 8/10/02
Runs:716 N1:793 N2:659
Expected Number of Runs: 720.8; sd: 18.8837
z-value= -0.2550; approx. probability: 0.39933
z-val= -0.228(continuity correct.); p: 0.40959
aapl between 9/9/84 and 8/10/02
Runs:2258 N1:2430 N2:2131
Expected Number of Runs: 2271.7; sd: 33.6188
z-value= -0.4074; approx. probability: 0.34182
z-val= -0.392(continuity correct.); p: 0.3473
Conclusion: we cannot reject the hypothesis that the movements of the shares and indexes in these tests are random.
Some of the other points raised:
How is it that there are successful traders e.g. those described in The New Market Wizards by Jack Schwager?
The Goddess of Chance will allow some players in a game based on luck to be profitable. On average you will be profitable 50% of the time. Schwager does not provide many figures on his wizardsâ results but I cannot resist this one observation. One trader he interviews, Paul Tudor Jones, was long on S&P futures the first time Schwager interviews him. He makes a $1 million loss. The second time he interviews him he is short and this time profitable. Thus in a sample of 2, Jones is right 50% of the time: exactly what one would predict if markets are random
Are shares chaotic?
No, because the number of runs in a chaotic series is higher than in a random one.
www.yabz.com/random.php
In response to the comments and criticisms(mostly valid) of my original post I have done a more thorough analysis. I have calculated the mean for the differences in share or index prices given below, and then grouped the results into 2 sets N1 and N2 according to whether they were above or below the mean. I then performed the Wald-Wolfowitz runs test. Each run is a sequence of either N1 or N2.
Indexes
OEX between 28/8/02 and 2/8/82
OEX for 1 day interval
Runs: 2580 N1: 2530 N2:2535
Expected Number of Runs: 2533.5; sd: 35.5809
z-value= 1.30695; approx. probability: 0.90439
z-val= 1.3210(continuity correct.); p: 0.90675
OEX for 20 days interval
Runs: 131 N1::124 N2:126
Expected Number of Runs: 126; sd: 7.8893
z-value= 0.63478; approx. probability: 0.73722
z-val= 0.6981(continuity correct.); p: 0.75746
OEX for 200 days interval
Runs:12 N1:10 N2:12
Expected Number of Runs: 11.9; sd: 2.2688
z-value= 0.04006; approx. probability: 0.51598
z-val= 0.2604(continuity correct.); p: 0.60274
exact probability of 12 or fewer runs= 0.60503
DJIA yearly interval between 02/1/53 and 13/12/91
Runs:20 N1:20 N2:16
Expected Number of Runs: 18.8; sd: 2.9193
z-value= 0.41867; approx. probability: 0.66227
z-val= 0.5899(continuity correct.); p: 0.72239
exact probability of 20 or fewer runs= 0.72244
Shares (suggested by jperl)
tmpw between 16/12/96 and 8/10/02
Runs:716 N1:793 N2:659
Expected Number of Runs: 720.8; sd: 18.8837
z-value= -0.2550; approx. probability: 0.39933
z-val= -0.228(continuity correct.); p: 0.40959
aapl between 9/9/84 and 8/10/02
Runs:2258 N1:2430 N2:2131
Expected Number of Runs: 2271.7; sd: 33.6188
z-value= -0.4074; approx. probability: 0.34182
z-val= -0.392(continuity correct.); p: 0.3473
Conclusion: we cannot reject the hypothesis that the movements of the shares and indexes in these tests are random.
Some of the other points raised:
How is it that there are successful traders e.g. those described in The New Market Wizards by Jack Schwager?
The Goddess of Chance will allow some players in a game based on luck to be profitable. On average you will be profitable 50% of the time. Schwager does not provide many figures on his wizardsâ results but I cannot resist this one observation. One trader he interviews, Paul Tudor Jones, was long on S&P futures the first time Schwager interviews him. He makes a $1 million loss. The second time he interviews him he is short and this time profitable. Thus in a sample of 2, Jones is right 50% of the time: exactly what one would predict if markets are random
Are shares chaotic?
No, because the number of runs in a chaotic series is higher than in a random one.
www.yabz.com/random.php