Enrichment · STEM Explorations · Probability
A Markov chain moves between states by fixed chances: tomorrow depends only on today. Type the chance of leaving each of two states, where it starts and how many steps to take. The page works out the probability of each state after those steps and the long-run shares it settles to.
The worked example is a weather chain starting sunny, with a 20 percent chance of rain after a sunny day and a 40 percent chance of sun after a rainy one. Nothing you type leaves this browser.
Loading the calculator. If nothing appears, turn on JavaScript.
Chances in percent per step. The example is made up.
Enrichment · STEM ExplorationsOpen to everyone · no sign-in
A fixed fraction of the gap to the long-run share closes at each step.
In a Markov chain the next state depends only on the present one, not on how it got there. That is a simplification, but it is enough to model many things, from a day's weather to which page a reader visits next.
For most chains the shares settle to a fixed pair of numbers whatever the starting state. How quickly depends on how often the chain switches: the closer the two chances add to one, the faster it settles.
A model with fixed chances. It is a lesson, not a forecast. The worked example is made up. Your entries stay in this browser. Support: team@caveatacademic.com.