Markov systems
Transition matrices, stationary distributions and long-term behaviour.
This page applies the matrix-power method to a discrete-time system whose state is a probability vector. A transition matrix moves probability between states, its powers give the distribution after any number of steps and its eigenvalue- mode describes a stationary distribution.
As in diagonalisation, denotes a change-of-basis matrix. The bold denotes a probability vector or stationary distribution, which is a different object even when a formula uses both.
Probability states and transitions
Diagonalisation
An matrix over a field is diagonalisable over if there are an invertible matrix and a diagonal matrix such that
The columns of are the eigenvectors in the chosen eigenbasis and the corresponding eigenvalues appear on the diagonal of .
Eigenvalue
Let be a linear map over a field . A scalar is an eigenvalue of if there is a non-zero vector such that
Compute a matrix power by diagonalisation
To compute for a non-negative integer when is diagonalisable:
- choose an eigenbasis and form from its eigenvectors;
- form the diagonal matrix from the corresponding eigenvalues;
- write ;
- replace by , so the powers are taken only on the diagonal;
- apply the result to .
Transition matrix
An transition matrix for a Markov system has non-negative entries and each column sums to :
Column records the probabilities of moving from state to each possible next state. Some texts use the transposed convention, with these probabilities in rows.
Markov system
A Markov system is the discrete dynamical system
where is a transition matrix and is the state vector at time .
If is a probability vector, then records the state probabilities after transitions.
Probability vectors remain probability vectors
If has non-negative entries summing to and is a transition matrix, then also has non-negative entries summing to .
- [1]:Transition matrix
- [2]:Markov system
- [3]:Proof
- [4]:A three-state stock market
Non-negativity follows because each entry of is a sum of products of non-negative numbers. Let be the all-ones vector. Since the columns of sum to ,
Therefore
Stationary distributions are eigenvalue-one modes
Stationary distribution
A stationary distribution is a probability vector satisfying
Thus a stationary distribution is an eigenvector for the eigenvalue , scaled so that its entries sum to . Equivalently, it is a non-negative eigenvector for eigenvalue normalized to have component sum .
The eigenvalue one
Every transition matrix has as an eigenvalue.
- [1]:Transition matrix
- [2]:Eigenvalue
- [3]:Proof
The column-sum condition gives
so is an eigenvalue of . Since
and have the same eigenvalues. Hence is an eigenvalue of . The all-ones vector is generally an eigenvector of , not of .
The eigenvalue is necessary for a stationary distribution, but this computation alone does not produce a non-negative, normalised eigenvector or show that the system converges to a unique limit. Those conclusions need extra hypotheses and the theorem below gives one convenient set.
Evolving a Markov system
Evolve a Markov system by diagonalisation
For
repeated substitution gives
If , compute this as
In an eigenbasis, the eigenvalue- component is unchanged, while every mode with modulus less than decays, as in stability of systems. This is the calculation from matrix powers with the state vector read as probabilities.
Long-term Markov behaviour
A sufficient condition for long-term Markov behaviour
Suppose that a transition matrix satisfies:
- is an eigenvalue with algebraic multiplicity ;
- every other eigenvalue has ;
- there is a basis of eigenvectors for .
Then has a limit in the eigenspace for . It is the unique vector in that eigenspace whose component sum equals the component sum of ; it may be zero when that sum is zero. If is a probability vector, then is the stationary distribution and does not depend on the initial probabilities.
Let be an eigenbasis with and for . Expand the initial state as
Repeated application of gives
Since for , the sum tends to zero. Thus . For , the column-sum identity gives , hence . Since the eigenvectors form a basis, must have non-zero component sum. The preserved initial sum therefore determines uniquely. If the initial state is a probability vector, every is one too, so its limit is non-negative and sums to .
These hypotheses are sufficient rather than necessary. The real eigenbasis keeps the proof in diagonal form. Convergence can also be analysed with complex eigenvectors or Jordan blocks, provided the other modes still have modulus less than .
A three-state stock market
Order the states as bull, bear and stagnant. The transition matrix is
For example, the first column says that a bull market is followed by a bull market with probability , a bear market with probability and a stagnant market with probability . Each column sums to and every entry is non-negative, so this is a transition matrix.
If the market starts in the bear state, then
The stock market in the long run
For this transition matrix, the eigenvalues and corresponding eigenvectors are
These eigenvectors form a basis, has multiplicity and
For the initial bear state,
The last two modes vanish as , leaving a multiple of . Its entries sum to , so the limiting probability vector is
The entries are non-negative and sum to and because . Thus is the stationary distribution: the long-run probabilities of bull, bear and stagnant states.
The other two eigenmodes are temporary departures from this distribution. Both shrink and the negative eigenvalue makes its departure alternate in sign. The initial bear state therefore affects the short run but is forgotten in the long run.