Markov Chains & Steady States
00 · Symbol Glossary
A stochastic matrix whose rows sum to 1: each row gives the probability distribution of the next state given the current state. Entry is the probability of moving from state to state in one step. Powers give -step transition probabilities.
A row vector satisfying and . Read aloud as "pi." The chain is in steady state when the state distribution equals — the distribution does not change from one step to the next.
The random state of the Markov chain at time . The Markov property: — only the current state matters for predicting the future.
The -th power of the transition matrix. Entry is the probability of being in state after steps, starting from state . Computed via matrix multiplication — the same machinery from Chapter 2.
01 · Stochastic Matrices
A credit rating, a trading regime, or a customer's account status tomorrow depends only on today's state — not the full history. Markov chains encode this memoryless structure as matrix algebra.
A square matrix is stochastic (or a transition matrix) if:
— probability of transitioning from state to state in one step.
Each row is a probability distribution over the states. Entries are nonnegative; rows sum to exactly 1.
A simplified 3-state credit model: states AAA, BBB, Default.
Row 1 (AAA): stay AAA, downgrade to BBB, default. Row 3 (Default): remain in default — an absorbing state. Each row sums to ✓.
. Row 1 sums to ; row 2 sums to .
Why it breaks: are supposed to be probabilities. If row sums to , there is a probability of transitioning to no state — undefined. Stochastic matrices require for every row.
Consequence: no longer represents valid -step probabilities. Normalise each row before any Markov analysis.
02 · Markov Chains and the Markov Property
A sequence of random variables taking values in is a Markov chain with transition matrix if:
The future depends on the past only through the present state — the Markov property.
If the initial distribution is (row vector), the distribution after steps is:
One-step from state 1: .
The in position 1 comes from ; the in position 2 from .
Compute : .
.
.
.
.
Two-step from state 1: .
Alternatively: ✓.
03 · Stationary Distribution
A probability row vector is a stationary distribution of if:
— fixed point of under left-multiplication. If , then for all .
Equivalently, is an eigenvector of (or if is symmetric) with eigenvalue .
Set up : let .
.
.
Both equations must hold.
Solve the first equation: .
The comes from .
Normalise: . Substitute : .
. .
Verify:
✓.
For (deterministic alternation), is stationary: ✓.
But starting from : , — the chain oscillates, never converging to .
Consequence: is necessary but not sufficient for convergence. A regular chain (some power has all positive entries) guarantees from any start.
04 · Eigenvector Characterisation and
is equivalent to:
is an eigenvector of with eigenvalue 1. Finding reduces to solving with the normalisation — a linear algebra problem from Chapters 3 and 6.
If is regular ( entrywise positive for some ), then:
— column vector of ones. Every row of converges to . The initial state is forgotten in the long run.
A 2-state market: Bull (B) and Bear (b). .
: solve and . Get , .
Long-run: of time in Bull, in Bear — regardless of today's regime. Option pricing models (Hamilton regime-switching) use this structure to blend bull and bear volatility parameters.
05 · Absorbing States and Credit Risk
State is absorbing if (equivalently, for all ). Once entered, the chain never leaves.
For the credit matrix above, Default is absorbing: . The probability of eventual default from state is the -to-3 entry of the fundamental matrix applied to the default column, where is the submatrix of transient states.
With , transient states are AAA, BBB, , default column .
. gives default probabilities from AAA and BBB — standard in credit portfolio risk (CreditMetrics, Basel IRB).
06 · Practice Exercises
Check each row sums to 1 and all entries . If both hold, is stochastic.
.
Row 1: ✓. Row 2: ✓. All entries ✓.
is stochastic.
Verify that is a stochastic matrix. Check both row sums and nonnegativity.
Compute by matrix multiplication. Entry is the two-step transition probability from to .
.
. .
. .
Starting from state 1: .
For , compute and the state distribution after 2 steps starting from state 1 with certainty.
Solve with . Use one equation from plus the normalisation.
.
.
.
. Verify: ✓.
Find the stationary distribution for . Show the normalisation step and verify .
Stationary satisfies — eigenvalue 1. Solve and normalise.
. .
Row 1: .
Normalise: , .
. Eigenvalue check: ✓.
For , find by solving the eigenvector equation . Interpret as the long-run fraction of time in state 1.
State 3 is absorbing (). No stationary distribution exists over all three states with positive mass on the absorbing state — mass flows into default and stays.
.
For : — always satisfied.
But must also satisfy and .
From first: , so . Second: gives — contradiction unless .
The only stationary distribution with support on transient states is — all mass in default. The chain eventually absorbs: has third column .
For the 3-state credit matrix : identify the absorbing state. Explain why no stationary distribution with exists, and describe .
One-step default from AAA: . Two-step: sum paths AAAjDefault for . Compare to one-step default from BBB ().
.
One-step default from AAA: .
Two-step default from AAA: .
.
The is AAAAAADefault; is AAABBBDefault; is AAADefaultDefault.
One-step default from BBB: — eight times higher than AAA's one-step rate.
BBB is riskier at every horizon in this matrix — consistent with credit rating ordering.
Using , compute the probability of default within 1 step and within 2 steps starting from AAA. Compare to the one-step default probability from BBB.
07 · Summary
| Term | Definition |
|---|---|
| Stochastic matrix | ; each row sums to 1 |
| Markov property | |
| -step distribution | |
| Stationary | , |
| Eigenvector form | — eigenvalue 1 |
| Regular chain | entrywise; |
| Absorbing state | ; never left once entered |
| Credit application | Transition matrices for rating migration and default |
Next: Numerical Stability & Conditioning — why LU, QR, and SVD behave differently in floating-point arithmetic, and how condition numbers quantify sensitivity in portfolio and risk computations.