Markov Chains:
Steady State
Discover the long-run behavior of stochastic processes: how systems settle into equilibrium distributions regardless of where they start.
What Is a Markov Chain?
A Markov chain is a system that moves between a finite set of states over discrete time steps. At each step, the probability of moving to any state depends only on the current state, not on past history.
The Transition Matrix \( T \)
We organize all transition probabilities into a square matrix \( T \), where entry \( t_{ij} \) is the probability of moving from state \( i \) to state \( j \).
Visualizing with a State Diagram
A state diagram shows each state as a node and each transition as a directed arrow labeled with its probability.
What Does Long-Run Behavior Mean?
If we run a Markov chain for many, many steps, the distribution over states often settles down to a fixed pattern. No matter where you started, the fraction of time spent in each state converges to the same values.
Defining the Steady-State Vector
A steady-state vector (or stationary distribution) is a probability vector \( \mathbf{q} = [q_1, q_2, \ldots, q_n] \) that satisfies two conditions simultaneously:
Regular Markov Chains
A Markov chain is called regular if some power \( T^k \) has all positive entries (no zeros). This guarantees a unique steady-state vector exists.
Initial vs. Steady-State Distribution
| Initial Distribution | Steady-State Distribution | |
|---|---|---|
| Symbol | \( \mathbf{s}_0 \) | \( \mathbf{q} \) |
| Depends on | Where you start | Only the matrix \( T \) |
| Changes over time? | Yes: \( \mathbf{s}_n = \mathbf{s}_0 T^n \) | No: remains \( \mathbf{q} \) |
| Uniqueness | Any valid probability vector | Unique (for regular chains) |
| Equation | \( \mathbf{s}_1 = \mathbf{s}_0 \cdot T \) | \( \mathbf{q} \cdot T = \mathbf{q} \) |
How to Find the Steady State
Example 1: Weather Model
A city's weather follows a Markov chain with two states: Sunny (S) and Rainy (R). The transition matrix is:
Example 1: Solving
Example 2: Three-State Chain
A brand loyalty model has three states: Brand X, Brand Y, Brand Z.
Example 2: Solution
Example 3: Asymmetric 2-State
A machine is either Working (W) or Broken (B). The transition matrix is: $$ T = \begin{bmatrix} 0.9 & 0.1 \\ 0.5 & 0.5 \end{bmatrix} $$ Find the long-run fraction of time the machine works.
Common Mistakes
Summary of Key Ideas
| Concept | What It Means | Key Formula |
|---|---|---|
| Transition Matrix | Probabilities of state changes | Rows sum to 1 |
| Steady-State Vector | Long-run distribution | \( \mathbf{q}T = \mathbf{q} \) |
| Regular Chain | Some \( T^k \) is all positive | Unique \( \mathbf{q} \) exists |
| Probability Constraint | Entries sum to 1 | \( \sum q_i = 1 \) |
| Long-Run Convergence | All rows of \( T^n \to \mathbf{q} \) | Independent of \( \mathbf{s}_0 \) |
Question 1 of 5
What is the defining equation for a steady-state vector \( \mathbf{q} \) of a transition matrix \( T \)?
Question 2 of 5
A Markov chain has transition matrix: $$ T = \begin{bmatrix} 0.6 & 0.4 \\ 0.2 & 0.8 \end{bmatrix} $$ What is the steady-state vector \( \mathbf{q} \)?
Question 3 of 5
Why must every row of a transition matrix sum to 1?
Question 4 of 5
A Markov chain is called regular if:
Question 5 of 5
When solving \( \mathbf{q}T = \mathbf{q} \) for the steady state, why must you add the equation \( q_1 + q_2 + \cdots + q_n = 1 \)?