Many processes repeat the same linear step: populations from year to year, money in accounts, customers switching brands. After $k$ steps the state is $A^{k}\mathbf{x}_0$. Diagonalization makes $A^{k}$ easy to compute and, better, easy to understand.
Key idea
Why it works
Worked example: A third power
- $P^{-1}$ $= \frac{1}{-3}\begin{bmatrix} -2 & -1 \\ -1 & 1 \end{bmatrix}$ $= \begin{bmatrix} \frac{2}{3} & \frac{1}{3} \\ \frac{1}{3} & -\frac{1}{3} \end{bmatrix}$.
- $D^{3} = \begin{bmatrix} 125 & 0 \\ 0 & 8 \end{bmatrix}$.
- $PD^{3} = \begin{bmatrix} 125 & 8 \\ 125 & -16 \end{bmatrix}$, and $PD^{3}P^{-1} = \begin{bmatrix} 86 & 39 \\ 78 & 47 \end{bmatrix}$.
- Check one entry the slow way: $A^{2} = \begin{bmatrix} 18 & 7 \\ 14 & 11 \end{bmatrix}$, and row 1 of $A^{2}$ times column 1 of $A$ is $(18)(4) + (7)(2) = 86$. ✓
Answer: $A^{3} = \begin{bmatrix} 86 & 39 \\ 78 & 47 \end{bmatrix}$
Markov chains
A Markov matrix (stochastic matrix) has nonnegative entries and columns that add up to $1$. Entry $(i, j)$ is the probability of moving from state $j$ to state $i$ in one step. A probability vector $\mathbf{x}_k$ lists the chances (or shares) of each state, and $\mathbf{x}_{k+1} = P\mathbf{x}_k$. A steady state is a probability vector $\mathbf{q}$ with $P\mathbf{q} = \mathbf{q}$: an eigenvector for $\lambda = 1$.
Worked example: A two-state chain
- Order the states (downtown, suburbs). Column 1 is where downtown people go: $0.9$ stay, $0.1$ leave. So $P = \begin{bmatrix} 0.9 & 0.2 \\ 0.1 & 0.8 \end{bmatrix}$.
- Steady state: $(P - I)\mathbf{q} = \mathbf{0}$ with $P - I = \begin{bmatrix} -0.1 & 0.2 \\ 0.1 & -0.2 \end{bmatrix}$. Both rows say $q_1 = 2q_2$.
- So $\mathbf{q}$ is a multiple of $(2, 1)$; make the entries add to $1$: $\mathbf{q} = \left(\frac{2}{3}, \frac{1}{3}\right)$.
- Check: $P\mathbf{q}$ $= (0.9 \cdot \frac{2}{3} + 0.2 \cdot \frac{1}{3},\ 0.1 \cdot \frac{2}{3} + 0.8 \cdot \frac{1}{3})$ $= \left(\frac{2}{3}, \frac{1}{3}\right)$. ✓
Answer: Two thirds downtown, one third in the suburbs.
Why it works