Hello there !
I am trying to write a program that predicts the next combination in a 6/49 lottery game, using Markov chains. The problem is I can't figure out how to define the state space.
If you consider a state as one of the C(49,6) possible combinations, then you get a C(49,6) by C(49,6) transition matrix which is impossible to store in memory. That is, if you use the lexicographical order of combinations.
Another possibility would be to have 2 Markov chains as follows :
P1(i,j) = P( j will be extracted at combination n+1, given that i was extracted at combination n)
and
P2(i,j) = P( j will be extracted at combination n, given that i was extract at the same combination, n)
So you have two transition matrixes with 49x49 elements each which is small enough. Now the question is how can I relate the two stochastic matrixes in order to find out what the next combination would be ?
Hope to hear from you soon !

Lucas
I am trying to write a program that predicts the next combination in a 6/49 lottery game, using Markov chains. The problem is I can't figure out how to define the state space.
If you consider a state as one of the C(49,6) possible combinations, then you get a C(49,6) by C(49,6) transition matrix which is impossible to store in memory. That is, if you use the lexicographical order of combinations.
Another possibility would be to have 2 Markov chains as follows :
P1(i,j) = P( j will be extracted at combination n+1, given that i was extracted at combination n)
and
P2(i,j) = P( j will be extracted at combination n, given that i was extract at the same combination, n)
So you have two transition matrixes with 49x49 elements each which is small enough. Now the question is how can I relate the two stochastic matrixes in order to find out what the next combination would be ?
Hope to hear from you soon !

Lucas