This app is a simulation of the discrete-time Markov chain with state space . The transition matrix is
so that is the probability of a transition to state 1 when in state 0, and is the probability of a transition to state 0 when in state 1. The time and the sate are recorded at each update in the data table. The limiting distribution and the proportion of time that the chain is in each state are shown in the distribution graph and the distribution table.
The parameters and , and the initial state can be varied with the input controls.