Distribution of Random TICKs
Let's start with a definition of a single tick value... we'll make a randum integer between -1 and 1. Obviously, -1 will represent a downtick, 1 will represent an uptick, and 0 will represent a zero-tick.
In[50]:=
Now, we need a way to generate a market full of single ticks, of any size we want....
In[51]:=
Ok, now let's generate the TICK for a market, which is just the sum of the single ticks (Total[] in Mathematica parlance)...
In[52]:=
Alright, now let's compute 1 million ticks for random markets with 3000 stocks....
In[53]:=
Alright, what were the maximum and minimum TICK values in our million markets?
In[54]:=
Out[54]=
In[55]:=
Out[55]=
How did the ticks end up distributed? Let's plot them raw...
In[56]:=
Out[56]=
It's obvious that the majority of the values fell between -150 and 150. If we sort the values prior to plotting, this will become more clear....
In[57]:=
Out[57]=
We can draw a histogram, to see the distribution:
In[58]:=
In[59]:=
Out[59]=
| Created by Mathematica (January 24, 2007) |