9.2 Discrete-Time Markov Chains: Transition Matrices and Steady-State Probabilities
Key Takeaways
- The Markov property (memoryless property) dictates that the future state probability distribution of a stochastic process depends strictly upon its current state and is conditionally independent of all past historical states: P(X_{n+1} = j | X_n = i, ..., X_0 = i_0) = P(X_{n+1} = j | X_n = i).
- A transition probability matrix P = [p_ij] is row-stochastic, meaning all entries are non-negative (p_ij ≥ 0) and each row sums to unity (Σ_j p_ij = 1), representing complete conditional distributions over next-step states.
- The Chapman-Kolmogorov equations establish that n-step transition probabilities are computed via matrix multiplication: P^(n) = P^n, allowing projection of state distributions over time via π^(n) = π^(0) * P^n.
- States in a Markov chain are classified by accessibility, communication, recurrence (positive recurrent vs transient), absorbing nature (p_ii = 1), and periodicity; an irreducible, aperiodic, positive-recurrent chain is ergodic.
- The steady-state (stationary) distribution π represents the long-run proportion of time the process spends in each state, determined by solving the linear system π * P = π subject to the normalization constraint Σ π_i = 1.
Discrete-time Markov chains (DTMCs) model dynamic stochastic systems that transition between countable operational states over sequential discrete time steps. In industrial and systems engineering, Markov chains are indispensable tools for modeling machine wear and degradation, predicting preventative maintenance intervals, analyzing warranty claims, evaluating inventory replenishment policies, and forecasting customer brand-switching market shares. The NCEES FE Reference Handbook outlines core Markovian definitions under its Industrial and Systems Engineering section. Mastery of transition matrices, Chapman-Kolmogorov equations, state classification, and steady-state vector solutions is essential for solving stochastic process problems on the FE exam.
1. The Markov Property and Stochastic Processes
A stochastic process is a mathematical collection of random variables ${X_n, n \in T}$ indexed by time or step parameter $n$. In a discrete-time stochastic process with discrete state space $S = {0, 1, 2, \dots, M}$, $X_n$ represents the state of the system at step $n$.
The Markov Property (Memoryless Property)
A discrete-time stochastic process possesses the Markov property if the conditional probability distribution of the future state $X_{n+1}$ depends solely upon the present state $X_n$ and is completely conditionally independent of the past states $X_{n-1}, X_{n-2}, \dots, X_0$:
Informally: Given the present, the future is conditionally independent of the past. Historical trajectories that led the system to its current state provide no additional predictive power regarding its next transition.
Time-Homogeneity
A Markov chain is time-homogeneous (or stationary) if the transition probabilities between states remain constant across all time steps $n$:
All standard FE exam Markov problems assume time-homogeneous chains unless explicitly noted otherwise.
2. State Space, Transition Matrices, and Transition Diagrams
The Transition Probability Matrix ($P$)
For a Markov chain with $M$ discrete states $S = {1, 2, \dots, M}$, the transition probabilities $p_{ij}$ are arranged into a square $M \times M$ transition probability matrix $P$:
Where $p_{ij}$ represents the conditional probability of transitioning from current state $i$ to next state $j$ in one step:
Fundamental Properties of Matrix $P$
- Non-negativity: Every element is a valid probability: $p_{ij} \ge 0$ for all $i, j$.
- Row-Stochastic Condition: Each row $i$ represents a complete conditional probability distribution over all mutually exclusive and collectively exhaustive destination states. Therefore, each row must sum to exactly 1.0: (Note: Columns do not need to sum to 1.0; a matrix where both rows and columns sum to 1.0 is doubly stochastic).
State Transition Diagrams
A Markov chain can be visualized as a directed graph where:
- Nodes represent the distinct physical states ${1, 2, \dots, M}$.
- Directed Arcs from node $i$ to node $j$ represent permissible transitions with non-zero probability $p_{ij} > 0$.
- Self-Loops from node $i$ back to node $i$ represent the probability $p_{ii}$ of remaining in the current state.
┌──────────── p12 ────────────┐
│ ▼
┌───────────┐ ┌───────────┐
p11 ↺ ─── │ State 1 │ ◄─────────────── │ State 2 │ ─── ↻ p22
└───────────┘ p21 └───────────┘
│ ▲
│ p23 │
└──────────────┬──────────────┘
▼
┌───────────┐
p33 ↺ ──── │ State 3 │ ───> p31 (to State 1)
└───────────┘
3. Multi-Step Transitions and Chapman-Kolmogorov Equations
To predict the state of the system multiple steps into the future, we evaluate the $n$-step transition probability, denoted $p_{ij}^{(n)}$:
Chapman-Kolmogorov Equations
The probability of transitioning from state $i$ to state $j$ in $n + m$ steps equals the sum of probabilities across all possible intermediate states $k$ occupied after $n$ steps:
In matrix notation, this relationship reduces to ordinary matrix multiplication:
By induction, the matrix of $n$-step transition probabilities is simply the transition matrix $P$ raised to the $n$-th power:
Unconditional State Probability Propagation
Let $\pi^{(0)} = [\pi_1^{(0)}, \pi_2^{(0)}, \dots, \pi_M^{(0)}]$ be a row vector representing the initial probability distribution over states at time $n = 0$. The probability distribution across states at time step $n$ is given by:
Where $\pi_j^{(n)} = P(X_n = j)$ is the unconditional probability that the system occupies state $j$ at step $n$.
4. Classification of States in Markov Chains
Understanding the structural classification of states is necessary to determine whether a Markov chain reaches a unique steady-state equilibrium.
| State Property | Mathematical Definition | Physical Interpretation |
|---|---|---|
| Accessible ($i \to j$) | $p_{ij}^{(n)} > 0$ for some $n \ge 0$ | State $j$ can eventually be reached from state $i$ |
| Communicating ($i \leftrightarrow j$) | $i \to j$ and $j \to i$ | States can reach each other mutually (equivalence relation) |
| Irreducible | All states communicate with each other | System consists of a single communicating class; no traps |
| Absorbing | $p_{ii} = 1$ and $p_{ij} = 0$ for all $j \neq i$ | Once entered, the state can never be left (e.g., catastrophic scrap/failure) |
| Transient | Probability of return $f_{ii} < 1$ | System will eventually exit the state forever (finite number of visits) |
| Recurrent (Persistent) | Probability of return $f_{ii} = 1$ | System is guaranteed to return to the state infinitely often |
| Periodic (Period $d > 1$) | $d(i) = \gcd{n \ge 1 : p_{ii}^{(n)} > 0} > 1$ | Return to state $i$ is only possible in multiples of $d$ steps |
| Aperiodic ($d = 1$) | $\gcd{n \ge 1 : p_{ii}^{(n)} > 0} = 1$ | Return timing is not locked into fixed integer cycles |
| Ergodic | Recurrent, aperiodic, and finite mean recurrence time | Possesses a unique stationary steady-state distribution |
Exam Key: If any diagonal entry $p_{ii} > 0$ (a state has a self-loop), that state is automatically aperiodic ($d = 1$). Furthermore, if an irreducible Markov chain has at least one aperiodic state, the entire chain is aperiodic.
5. Stationary and Steady-State Probability Distributions
In long-run industrial operations, engineers are rarely interested in transient fluctuations from a specific starting state; they require the long-run proportion of time the process spends in each state.
Mathematical Definition of Stationary Distribution
A row vector $\pi = [\pi_1, \pi_2, \dots, \pi_M]$ is called a stationary (steady-state) distribution if it satisfies:
In expanded linear system form:
Physical and Long-Run Interpretation
For an irreducible, aperiodic, finite Markov chain (an ergodic chain):
Every row of $P^n$ converges to the exact same steady-state vector $\pi$. This implies:
- $\lim_{n \to \infty} P(X_n = j \mid X_0 = i) = \pi_j$, completely independent of the starting state $i$.
- $\pi_j$ represents the long-run fraction of time the system spends in state $j$.
- The mean recurrence time (expected number of steps between consecutive visits to state $j$) is:
Systematic Solution Procedure for the FE Exam
The matrix equation $\pi P = \pi$ can be rewritten as the homogeneous linear system $\pi(P - I) = 0$. Because the rows of $P$ sum to $1.0$, the matrix $(P - I)$ is singular (its determinant is zero), meaning the system $\pi(P - I) = 0$ has infinitely many dependent solutions. To find the unique solution:
- Write out the $M$ linear equations from $\pi P = \pi$.
- Discard any one redundant equation from the set.
- Replace the discarded equation with the normalization equation: $\sum_{i=1}^M \pi_i = 1$.
- Solve the resulting system of $M$ independent linear equations for $\pi_1, \pi_2, \dots, \pi_M$.
6. Industrial Applications of Markov Chains
Machine Reliability and Preventative Maintenance
Equipment condition degrades stochastically over time. A common model discretizes machine health into:
- State 1: Operational / Excellent (new tool, tight tolerances)
- State 2: Degraded / Acceptable (surface finish drifting, minor chatter)
- State 3: Failed / Out of Specification (broken tool, machine halted)
By evaluating the steady-state probability vector $\pi$, reliability engineers compute:
- Long-run machine availability: $A = \pi_1 + \pi_2$
- Long-run machine downtime: $D = \pi_3$
- Average hourly maintenance cost: $\text{Cost} = \sum_{i} \pi_i C_i$
Customer Brand Switching
Marketing and operations teams model consumer brand loyalty using Markov chains. If state $1$ represents purchasing Company A's product and state $2$ represents purchasing Competitor B's product, the steady-state probabilities $\pi_1$ and $\pi_2$ dictate long-run equilibrium market shares.
Inventory Replenishment Policies
In $(s, S)$ inventory control, when inventory drops to reorder point $s$, an order is triggered to restore stock to target $S$. Modeling stock levels as a Markov chain allows exact calculation of stockout probabilities $\pi_0$ and average holding costs.
7. Step-by-Step Worked Engineering Examples
Worked Example 9.2.1: Three-State CNC Degradation and Availability Analysis
Problem: An automated CNC mill is inspected at the start of each 8-hour shift and categorized into one of three states:
- State 1: Optimal operating condition
- State 2: Minor tool wear (operates with acceptable tolerances)
- State 3: Failed (shut down; requires emergency maintenance)
The one-shift transition probability matrix is:
- Verify that $P$ is a valid transition probability matrix.
- Formulate the steady-state equations and determine the long-run probability distribution $\pi = [\pi_1, \pi_2, \pi_3]$.
- What is the long-run availability of the CNC mill (percentage of shifts it can operate)?
- What is the mean time between failures (MTBF in shifts)?
Solution:
- Verify Matrix Properties:
- All entries $p_{ij} \ge 0$.
- Row 1: $0.80 + 0.15 + 0.05 = 1.00$
- Row 2: $0.00 + 0.70 + 0.30 = 1.00$
- Row 3: $0.90 + 0.00 + 0.10 = 1.00$
- All rows sum to $1.00$. $P$ is a valid row-stochastic matrix.
- Formulate and Solve Steady-State Equations:
- Set up $\pi P = \pi$:
- Multiply components:
- Express all variables in terms of $\pi_1$:
- From equation (2):
- From equation (1):
- Substitute into the normalization equation (4):
- Compute $\pi_2$ and $\pi_3$:
- Verification: $18/31 + 9/31 + 4/31 = 31/31 = 1.0000$.
- Compute Long-Run Machine Availability:
- The mill operates when it is in State 1 or State 2:
- Compute Mean Recurrence Time for Failure (MTBF):
Worked Example 9.2.2: Two-Step Transition and State Propagation
Problem: An automated assembly tool exhibits two operational states: State 1 (Calibrated) and State 2 (Out of Calibration). The transition matrix between production batches is:
- If the tool is known to be Calibrated at batch 0 ($\pi^{(0)} = [1.0, 0.0]$), find the probability that the tool is Out of Calibration at batch 2 ($p_{12}^{(2)}$).
- Find the long-run steady-state probability distribution $\pi$.
Solution:
- Compute Two-Step Transition Matrix $P^2$:
- The probability that the tool is in State 2 after 2 batches given it started in State 1 is:
- Compute Steady-State Probabilities:
- $\pi P = \pi \implies [\pi_1, \pi_2] \begin{bmatrix} 0.90 & 0.10 \ 0.40 & 0.60 \end{bmatrix} = [\pi_1, \pi_2]$
- Equation 1: $\pi_1 = 0.90 \pi_1 + 0.40 \pi_2 \implies 0.10 \pi_1 = 0.40 \pi_2 \implies \pi_1 = 4 \pi_2$
- Normalization: $\pi_1 + \pi_2 = 1 \implies 4 \pi_2 + \pi_2 = 1 \implies 5 \pi_2 = 1$
- In the long run, the tool is calibrated $80%$ of the time and out of calibration $20%$ of the time.
8. NCEES Reference Handbook Tips & Realistic Exam Traps
- Row Vector vs. Column Vector Trap: The steady-state system is $\pi P = \pi$, where $\pi$ is a row vector multiplying $P$ from the left. Do not write $P \pi = \pi$; that formulation treats $\pi$ as a column vector and will multiply columns incorrectly unless you transpose $P$ ($P^T \pi^T = \pi^T$).
- Omitting the Normalization Equation: Attempting to solve $\pi(P - I) = 0$ directly using matrix inversion ($[P - I]^{-1}$) will result in a divide-by-zero error on your calculator because $(P - I)$ is singular. You must manually replace one of the dependent rows with the normalization equation $\sum \pi_i = 1$.
- Row Sum Verification: Before doing any Markov calculations, always sum the elements of each row in the given matrix. If a row does not sum to $1.0$, you may have transcribed a column as a row, or the problem statement defines transitions differently.
- Absorbing State Distractor: A state with $p_{ii} = 1.0$ is absorbing: probability that reaches it never leaves. If a chain has exactly one absorbing state reachable from every transient state, its long-run probability is $1.0$. If the chain has two or more absorbing states (as in the 4-state chain earlier in this section), the long-run distribution splits among them according to the starting state and requires absorption-probability analysis, not the ergodic $\pi P = \pi$ method.
A chemical reaction vessel can be in one of two operational states at the start of each batch cycle: State 1 (Optimal Purity) or State 2 (Sub-optimal / Cleaning Required). The transition matrix between consecutive cycles is: P = [[0.85, 0.15], [0.60, 0.40]]. In the long run, what percentage of batch cycles operate in State 1 (Optimal Purity)?
Consider a 4-state discrete-time Markov chain with the following transition probability matrix: P = [[1.0, 0.0, 0.0, 0.0], [0.3, 0.4, 0.3, 0.0], [0.0, 0.2, 0.5, 0.3], [0.0, 0.0, 0.0, 1.0]]. Which of the following statements correctly classifies the states of this Markov chain?
An automated parts feeder on an assembly line transitions between State 1 (Normal feed rate) and State 2 (Jammed / Clearing cycle) according to the transition matrix: P = [[0.70, 0.30], [0.50, 0.50]]. If the feeder is currently operating in State 1 at step 0, what is the two-step transition probability that the feeder will be in State 2 at step 2 (i.e., p_12^(2))?