by creed0r · 10y ago · 0 comments
So in the example, if a "sunny day" state has a chance of 0.9 to stay in that state and a 0.1 chance of transitioning to rainy day and I already had 5 sunny days, the 6th day would still have a 0.1 chance to be a rainy day?
As detaro says:
"A Markov chain with memory for the last m steps is sometimes called a "Markov chain of order m""
So if you wanted it to depend on the last 5 timesteps, you'd create a 5th order Markov chain, and so on.
But weather is not driven by probability so history might matter.
sunny1 -> sunny2 -> sunny3 -> sunny4 -> sunny5.
But as with regular expressions, you can't go to arbitrary depth.