Markov Chains
If we have a system with N states and for each state, a set of N probabilities from transitioning from that state to another state (including itself) we end up with an matrix where the entry represents the probability of transitioning from state to state .
Starting with some state, we can transition to another state, then another, with the probability of picking the next state dependent only on the existing state and the matrix We call this sequence of random events a Markov Chain.
More formally, the sequence is called a Markov Chain if
We write
and note that
and
for We call the values the transition probabilities of the Markov chain.
Referenced by (4 direct)
Note that is the probability of going from state to state in one step. We use the notation
to represent the probability of going from state to state in steps.
Due to the magic of linear algebra, if we have a row vector representing the probability of starting in each state, we can compute the probability of ending up in any given state after steps as
Ergodic Markov Chains
If for some positive integer we have that for all then the Markov chain is said to be ergodic.
Referenced by (2 direct)
When the markov chain is ergodic, the limit
exists and
Here, and the entries in it represent the long term probabilities of being in any given state, or equivalently, the portion of time spent in any given state.
Note that which when combined with the fact that the entries of sum to 1 lets us solve a linear system of equations to find the entries of
Referenced by (1 direct)
Direct references:
A stochastic matrix (actually, a right stochastic matrix) is a @square-matrix with nonnegative @entries whose rows each sum to one:
Equivalently, with entrywise, where is the all-ones vector.
Referenced by (2 direct)
Direct references:
A left stochastic matrix is a @square-matrix with nonnegative @entries whose columns each sum to one: Equivalently, with entrywise, where is the all-ones vector.
A stochastic matrix can be used to describe the transitions of a markov chain.
If a @matrix is both a row stochastic matrix and a column stochastic matrix, it is said to be a doubly stochastic matrix. That is, both its rows and its columns sum to 1.
Referenced by (2 direct)
Direct references:
A doubly stochastic matrix is a convex combination of @permutation-matrices.
A stochastic matrix maps a probability vector to another probability vector — but only for the matching multiplication convention. A row stochastic matrix preserves the sum acting on the right, ; a column stochastic matrix preserves it acting on the left, ; and a doubly stochastic matrix preserves it either way. The demo below lets you apply each type to a probability vector, build doubly-stochastic matrices as convex combinations of permutation matrices, and iterate the map toward its stationary distribution.