Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

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-11 mode describes a stationary distribution.

As in diagonalisation, PP denotes a change-of-basis matrix. The bold p\mathbf p denotes a probability vector or stationary distribution, which is a different object even when a formula uses both.

Probability states and transitions

[DEFINITION]

Diagonalisation

An n×nn\times n matrix AA over a field FF is diagonalisable over FF if there are an invertible matrix P∈Mn(F)P\in M_n(F) and a diagonal matrix D∈Mn(F)D\in M_n(F) such that

P−1AP=D,equivalentlyA=PDP−1.P^{-1}AP=D, \qquad\text{equivalently}\qquad A=PDP^{-1}.

The columns of PP are the eigenvectors in the chosen eigenbasis and the corresponding eigenvalues appear on the diagonal of DD.

[DEFINITION]

Eigenvalue

Let T:V→VT:V\to V be a linear map over a field FF. A scalar λ∈F\lambda\in F is an eigenvalue of TT if there is a non-zero vector v∈Vv\in V such that

T(v)=λv.T(v)=\lambda v.
[METHOD]

Compute a matrix power by diagonalisation

To compute Akx0A^k x_0 for a non-negative integer kk when AA is diagonalisable:

  1. choose an eigenbasis and form PP from its eigenvectors;
  2. form the diagonal matrix DD from the corresponding eigenvalues;
  3. write A=PDP−1A=PDP^{-1};
  4. replace AkA^k by PDkP−1PD^kP^{-1}, so the powers are taken only on the diagonal;
  5. apply the result to x0x_0.
[DEFINITION]

Transition matrix

An n×nn\times n transition matrix for a Markov system has non-negative entries and each column sums to 11:

aij≥0,∑i=1naij=1(j=1,…,n).a_{ij}\geq0, \qquad \sum_{i=1}^n a_{ij}=1 \quad (j=1,\ldots,n).

Column jj records the probabilities of moving from state jj to each possible next state. Some texts use the transposed convention, with these probabilities in rows.

[DEFINITION]

Markov system

A Markov system is the discrete dynamical system

x(k+1)=Ax(k),k=0,1,2,…,\mathbf{x}(k+1)=A\mathbf{x}(k), \qquad k=0,1,2,\ldots,

where AA is a transition matrix and x(k)\mathbf{x}(k) is the state vector at time kk.

If x(0)\mathbf{x}(0) is a probability vector, then x(k)\mathbf{x}(k) records the state probabilities after kk transitions.

[PROPOSITION]

Probability vectors remain probability vectors

If x\mathbf{x} has non-negative entries summing to 11 and AA is a transition matrix, then AxA\mathbf{x} also has non-negative entries summing to 11.

[PROOF]

Non-negativity follows because each entry of AxA\mathbf{x} is a sum of products of non-negative numbers. Let 1\mathbf{1} be the all-ones vector. Since the columns of AA sum to 11,

1TA=1T.\mathbf{1}^{\mathsf T}A=\mathbf{1}^{\mathsf T}.

Therefore

1TAx=1Tx=1.\mathbf{1}^{\mathsf T}A\mathbf{x} =\mathbf{1}^{\mathsf T}\mathbf{x} =1.

Stationary distributions are eigenvalue-one modes

[DEFINITION]

Stationary distribution

A stationary distribution is a probability vector p\mathbf{p} satisfying

Ap=p.A\mathbf{p}=\mathbf{p}.

Thus a stationary distribution is an eigenvector for the eigenvalue 11, scaled so that its entries sum to 11. Equivalently, it is a non-negative eigenvector for eigenvalue 11 normalized to have component sum 11.

[THEOREM]

The eigenvalue one

Every transition matrix has 11 as an eigenvalue.

[PROOF]

The column-sum condition gives

AT1=1,A^{\mathsf T}\mathbf{1}=\mathbf{1},

so 11 is an eigenvalue of ATA^{\mathsf T}. Since

det⁡(AT−λI)=det⁡((A−λI)T)=det⁡(A−λI),\det(A^{\mathsf T}-\lambda I) =\det\bigl((A-\lambda I)^{\mathsf T}\bigr) =\det(A-\lambda I),

AA and ATA^{\mathsf T} have the same eigenvalues. Hence 11 is an eigenvalue of AA. The all-ones vector is generally an eigenvector of ATA^{\mathsf T}, not of AA.

The eigenvalue 11 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

[METHOD]

Evolve a Markov system by diagonalisation

For

x(k+1)=Ax(k),\mathbf{x}(k+1)=A\mathbf{x}(k),

repeated substitution gives

x(k)=Akx(0).\mathbf{x}(k)=A^k\mathbf{x}(0).

If A=PDP−1A=PDP^{-1}, compute this as

x(k)=PDkP−1x(0).\mathbf{x}(k)=PD^kP^{-1}\mathbf{x}(0).

In an eigenbasis, the eigenvalue-11 component is unchanged, while every mode with modulus less than 11 decays, as in stability of systems. This is the calculation from matrix powers with the state vector read as probabilities.

Long-term Markov behaviour

[THEOREM]

A sufficient condition for long-term Markov behaviour

Suppose that a transition matrix AA satisfies:

  1. 11 is an eigenvalue with algebraic multiplicity 11;
  2. every other eigenvalue λj\lambda_j has ∣λj∣<1|\lambda_j|<1;
  3. there is a basis of eigenvectors for Rn\mathbb R^n.

Then x(k+1)=Ax(k)\mathbf{x}(k+1)=A\mathbf{x}(k) has a limit p\mathbf{p} in the eigenspace for λ=1\lambda=1. It is the unique vector in that eigenspace whose component sum equals the component sum of x(0)\mathbf{x}(0); it may be zero when that sum is zero. If x(0)\mathbf{x}(0) is a probability vector, then p\mathbf{p} is the stationary distribution and does not depend on the initial probabilities.

[PROOF]

Let v1,…,vnv_1,\ldots,v_n be an eigenbasis with Av1=v1Av_1=v_1 and Avj=λjvjAv_j=\lambda_jv_j for j≥2j\ge2. Expand the initial state as

x(0)=α1v1+⋯+αnvn.\mathbf{x}(0)=\alpha_1v_1+\cdots+\alpha_nv_n.

Repeated application of AA gives

x(k)=Akx(0)=α1v1+∑j=2nαjλjkvj.\mathbf{x}(k)=A^k\mathbf{x}(0) =\alpha_1v_1+\sum_{j=2}^n\alpha_j\lambda_j^kv_j.

Since ∣λj∣<1|\lambda_j|<1 for j≥2j\ge2, the sum tends to zero. Thus x(k)→α1v1\mathbf{x}(k)\to\alpha_1v_1. For j≥2j\ge2, the column-sum identity 1TA=1T\mathbf1^{\mathsf T}A=\mathbf1^{\mathsf T} gives 1Tvj=λj1Tvj\mathbf1^{\mathsf T}v_j=\lambda_j\mathbf1^{\mathsf T}v_j, hence 1Tvj=0\mathbf1^{\mathsf T}v_j=0. Since the eigenvectors form a basis, v1v_1 must have non-zero component sum. The preserved initial sum therefore determines α1v1\alpha_1v_1 uniquely. If the initial state is a probability vector, every x(k)\mathbf{x}(k) is one too, so its limit is non-negative and sums to 11.

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 11.

[EXAMPLE]

A three-state stock market

Order the states as bull, bear and stagnant. The transition matrix is

A=(0.650.600.350.100.050.400.250.350.25).A= \begin{pmatrix} 0.65&0.60&0.35\\ 0.10&0.05&0.40\\ 0.25&0.35&0.25 \end{pmatrix}.

For example, the first column says that a bull market is followed by a bull market with probability 0.650.65, a bear market with probability 0.100.10 and a stagnant market with probability 0.250.25. Each column sums to 11 and every entry is non-negative, so this is a transition matrix.

If the market starts in the bear state, then

x(0)=(010),x(k+1)=Ax(k).\mathbf{x}(0)= \begin{pmatrix} 0\\1\\0 \end{pmatrix}, \qquad \mathbf{x}(k+1)=A\mathbf{x}(k).
[EXAMPLE]

The stock market in the long run

For this transition matrix, the eigenvalues and corresponding eigenvectors are

λ1=1,v1=(22970109);λ2=−0.2,v2=(1−21);λ3=0.15,v3=(−532).\lambda_1=1,\quad v_1= \begin{pmatrix}229\\70\\109\end{pmatrix}; \qquad \lambda_2=-0.2,\quad v_2= \begin{pmatrix}1\\-2\\1\end{pmatrix}; \qquad \lambda_3=0.15,\quad v_3= \begin{pmatrix}-5\\3\\2\end{pmatrix}.

These eigenvectors form a basis, 11 has multiplicity 11 and

∣−0.2∣<1,∣0.15∣<1.|-0.2|<1, \qquad |0.15|<1.

For the initial bear state,

x(k)=P(1000(−0.2)k000(0.15)k)P−1(010),P=(v1v2v3).\mathbf{x}(k) =P \begin{pmatrix} 1&0&0\\ 0&(-0.2)^k&0\\ 0&0&(0.15)^k \end{pmatrix} P^{-1} \begin{pmatrix}0\\1\\0\end{pmatrix}, \qquad P=\begin{pmatrix}v_1&v_2&v_3\end{pmatrix}.

The last two modes vanish as k→∞k\to\infty, leaving a multiple of v1v_1. Its entries sum to 229+70+109=408229+70+109=408, so the limiting probability vector is

p=1408(22970109)≈(0.56130.17160.2672).\mathbf{p} =\frac1{408} \begin{pmatrix}229\\70\\109\end{pmatrix} \approx \begin{pmatrix} 0.5613\\ 0.1716\\ 0.2672 \end{pmatrix}.

The entries are non-negative and sum to 11 and Ap=pA\mathbf{p}=\mathbf{p} because Av1=v1Av_1=v_1. Thus p\mathbf{p} 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.

On this page