-
Markov Distributions
Hi guys...
I really need some help here...
I have a code :
"A 0.25, C 0.125, B 0.25, A 0.25, C 0.125, B 0.25, A 0.25, N 0.0625, N 0.0625, B 0.25, A 0.25, C 0.125, J 0.0625, B 0.25, A 0.25, C 0.125, B 0.25, A 0.25, C 0.125, B 0.25, E 0.0625, A 0.25, B 0.25, E 0.0625, A 0.25, B 0.25, A 0.25, B 0.25, D 0.125, D 0.125, D 0.125, D 0.125, A 0.25, B 0.25, A 0.25, B 0.25, A 0.25, C 0.125, B 0.25, A 0.25, C 0.125, B 0.25, D 0.125, A 0.25, B 0.25, D 0.125, Y 0.0625, A 0.25, J 0.0625, C 0.125, B 0.25, E 0.0625, D 0.125, Y 0.0625, A 0.25, C 0.125, B 0.25, D 0.125, D 0.125, A 0.25, B 0.25, A 0.25, B 0.25, A 0.25, J 0.0625, C 0.125, C 0.125, B 0.25, A 0.25, C 0.125, C 0.125, B 0.25, A 0.25, B 0.25, A 0.25, C 0.125, B 0.25, Y 0.0625, A 0.25, C 0.125, J 0.0625, B 0.25, D 0.125, E 0.0625, E 0.0625, A 0.25, B 0.25, D 0.125, A 0.25, B 0.25, D 0.125, D 0.125, D 0.125, E 0.0625, A 0.25, B 0.25, A 0.25, C 0.125, C 0.125, B 0.25, "
Now, I need to compute the next 30 numbers. I know I need to use markov distributions but I am not quite sure how to apply it. Specifically, I'm confused about these things :
- What would I use for the distribution vector ?
- what would I use for the transition matrix ?
- How many steps of the transition matrix is required ? I suspect 130 is that right ?
I have found got these following statistics :
0.25 ---> 0.25 : 27
0.25 ---> 0.125 : 19
0.25 ---> 0.0625 : 7
0.125 ---> 0.25 : 16
0.125 ---> 0.125 : 9
0.125 ---> 0.0625 : 6
0.0625 ---> 0.25 : 10
0.0625 ---> 0.125 : 3
0.0625 ---> 0.0625 : 2
=======================================
Number of 0.25 elements : 53
Number of 0.125 elements : 32
Number of 0.0625 elements : 15
=======================================
Number of A elements : 27
Number of B elements : 26
Number of C elements : 14
Number of D elements : 18
Number of E elements : 6
Number of J elements : 4
Number of N elements : 2
Number of Y elements : 3
Any help would be really appreciated !!
Thanks in advance !