01 / 21

Markov Chains:
Steady State

Discover the long-run behavior of stochastic processes: how systems settle into equilibrium distributions regardless of where they start.

Finite Mathematics

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.

States
The possible conditions or positions the system can occupy (e.g., sunny, rainy).
Transitions
Probabilities of moving from one state to another at each time step.

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 \).

\(T =\) State A State B A B \(0.7\) \(0.3\) \(0.4\) \(0.6\) \(= 1.0\) \(= 1.0\) rows sum to 1

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.

A B \(0.3\) \(0.4\) \(0.7\) \(0.6\)

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.

Time step n Probability 0 0.5 1.0 0 2 4 6 8 10 \(\frac{4}{7}\) \(\frac{3}{7}\) State A State B

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:

1
Equilibrium equation: \( \mathbf{q} \cdot T = \mathbf{q} \). Multiplying by the transition matrix gives you back the same vector.
2
Probability constraint: \( q_1 + q_2 + \cdots + q_n = 1 \). The entries are non-negative and sum to 1.

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.

Regular
Some \( T^k \) has all entries > 0. Unique steady state is guaranteed to exist.
Not Regular
The chain may have absorbing states or periodic cycles. Steady state may not exist or may not be unique.

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

1
Write \( \mathbf{q} T = \mathbf{q} \): Let \( \mathbf{q} = [q_1, q_2] \) and expand the matrix multiplication into a system of equations.
2
Simplify: Rearrange each equation. You will find one equation is redundant (the equations are dependent).
3
Add the constraint: Replace the redundant equation with \( q_1 + q_2 = 1 \).
4
Solve: You now have a system with a unique solution. Solve for each \( q_i \).
5
Verify: Check that \( \mathbf{q} T = \mathbf{q} \) and all entries are non-negative.

Example 1: Weather Model

A city's weather follows a Markov chain with two states: Sunny (S) and Rainy (R). The transition matrix is:

\(T =\) S R S R \(0.7\) \(0.3\) \(0.4\) \(0.6\) Find \( \mathbf{q} \)

Example 1: Solving

1
Simplify equation 1: \( 0.7q_1 + 0.4q_2 = q_1 \) becomes \( -0.3q_1 + 0.4q_2 = 0 \), so \( q_2 = \frac{3}{4}q_1 \).
2
Check equation 2: \( 0.3q_1 + 0.6q_2 = q_2 \) gives \( 0.3q_1 = 0.4q_2 \), which is the same relation. (Redundant, as expected.)
3
Use the constraint: \( q_1 + q_2 = 1 \). Substitute: \( q_1 + \frac{3}{4}q_1 = 1 \), so \( \frac{7}{4}q_1 = 1 \).
4
Solve: \( q_1 = \frac{4}{7} \approx 0.571 \) and \( q_2 = \frac{3}{7} \approx 0.429 \).

Example 2: Three-State Chain

A brand loyalty model has three states: Brand X, Brand Y, Brand Z.

\(T =\) X Y Z X Y Z \(0.5\) \(0.3\) \(0.2\) \(0.2\) \(0.6\) \(0.2\) \(0.3\) \(0.1\) \(0.6\) Find \( \mathbf{q} \)

Example 2: Solution

1
Simplify: Eq. 1: \( -0.5q_1 + 0.2q_2 + 0.3q_3 = 0 \). Eq. 3: \( 0.2q_1 + 0.2q_2 - 0.4q_3 = 0 \).
2
From Eq. 3: \( q_1 + q_2 = 2q_3 \), so \( q_3 = \frac{q_1 + q_2}{2} \).
3
Substitute into Eq. 1: \( -0.5q_1 + 0.2q_2 + 0.15q_1 + 0.15q_2 = 0 \), giving \( -0.35q_1 + 0.35q_2 = 0 \), so \( q_2 = q_1 \).
4
Use constraint: With \( q_2 = q_1 \) and \( q_3 = q_1 \), the constraint \( q_1 + q_2 + q_3 = 1 \) becomes \( q_1 + q_1 + q_1 = 1 \). This gives \( 3q_1 = 1 \), so \( q_1 = q_2 = q_3 = \frac{1}{3} \).

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.

1
Equation: \( 0.9q_1 + 0.5q_2 = q_1 \) simplifies to \( -0.1q_1 + 0.5q_2 = 0 \), so \( q_2 = \frac{1}{5}q_1 \).
2
Check: \( 0.1q_1 + 0.5q_2 = q_2 \) gives \( 0.1q_1 = 0.5q_2 \), confirming \( q_2 = \frac{1}{5}q_1 \). (Redundant.)
3
Constraint: \( q_1 + \frac{1}{5}q_1 = 1 \) gives \( \frac{6}{5}q_1 = 1 \), so \( q_1 = \frac{5}{6} \).

Common Mistakes

✕ Forgetting the Constraint
Writing \( \mathbf{q}T = \mathbf{q} \) but never using \( q_1 + q_2 + \cdots = 1 \). The system is dependent without it, giving infinitely many solutions.
✕ Rows vs. Columns
Confusing row-stochastic (rows sum to 1) with column-stochastic matrices. The equation direction changes: \( \mathbf{q}T = \mathbf{q} \) vs. \( T\mathbf{q} = \mathbf{q} \).
✕ Assuming Any Chain Has One
Not all Markov chains have a unique steady state. A chain with absorbing states or periodic behavior may not converge.

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 \)?