2.5 Markov Chains: Transition Matrices, Steady-State Probabilities & Absorbing States
Key Takeaways
A Markov chain's next state depends only on its current state, and each row of the transition matrix P sums to 1.
The state distribution after n periods is the starting distribution times P raised to the n-th power.
Steady-state probabilities solve π = πP with the probabilities summing to 1; the mean time between visits to state i is 1 ÷ π_i.
For an absorbing chain, the fundamental matrix N = (I − Q)^-1 gives expected visits to transient states, and B = NR gives absorption probabilities.
Markov models support maintenance policy, quality yield, brand switching, and inventory decisions by attaching costs to long-run state probabilities.
2.5 Markov Chains
Markov chains model systems that move among a set of states at regular time steps, such as a machine that is good, degraded, or failed each shift. The specification lists Markov chains as a modeling technique, and they also support maintenance and reliability decisions.
1. The Markov Property and the Transition Matrix
A discrete-time Markov chain satisfies the Markov property: the probability of the next state depends only on the current state, not on how the system got there.
The probabilities form the transition matrix . Row lists where the system goes from state , so every row sums to 1.
Machine-condition example. A packaging machine is inspected each shift and classified as Good (G), Degraded (D), or Failed (F). A failed machine is repaired during the next shift and returns to Good.
| From \ To | G | D | F |
|---|---|---|---|
| G | 0.80 | 0.15 | 0.05 |
| D | 0 | 0.70 | 0.30 |
| F | 1.00 | 0 | 0 |
2. n-Step Probabilities
If is the row vector of starting probabilities, the distribution after steps is:
Starting from a newly repaired machine, :
- After one shift: .
- After two shifts:
The three values sum to 1, which is a quick check on the arithmetic. On the exam, multiply row vector by matrix one step at a time rather than computing .
3. Steady-State (Long-Run) Probabilities
For a chain in which every state can reach every other state and the chain is not periodic, the distribution settles to a unique steady state regardless of the starting state:
Write one balance equation per state, drop any one of them (they are redundant), and add the normalization equation.
Machine example:
- From the D column: , so and .
- From the F column: .
- Normalize: , so , , and .
Check with the G column: . ✓
Using the result.
- The machine is failed about 11.8% of shifts, and the mean recurrence time of the failed state is shifts between failures.
- With costs of $1,000 per degraded shift (scrap) and $5,000 per failed shift (repair and lost output), the long-run expected cost is per shift.
- A preventive policy, such as repairing whenever the machine is found degraded, changes the matrix. Compare policies by recomputing and the expected cost.
4. Absorbing Markov Chains
A state is absorbing if the chain can never leave it (). Arrange the matrix with transient states first:
where holds transitions among transient states and holds transitions from transient to absorbing states.
- Fundamental matrix: . Entry is the expected number of visits to transient state when starting in transient state .
- Expected steps before absorption: (row sums of ).
- Absorption probabilities: .
Rework loop example. Parts leave machining (state P) and go to Good stock 85% of the time, to Rework (state W) 10%, or to Scrap 5%. Reworked parts become Good 70% of the time, are scrapped 20%, and need rework again 10%.
For a part starting in machining:
- Expected rework operations per part
For 10,000 parts started, expect about 9,278 good parts, 722 scrapped, and 1,111 rework operations. That rework load is what the capacity plan must cover.
5. Common Applications and Exam Traps
| Application | States | Decision supported |
|---|---|---|
| Machine maintenance | Condition levels | Repair or replace policy |
| Brand switching | Product a customer buys | Long-run market share |
| Inventory | Stock on hand at review | Ordering policy cost |
| Quality yield | Process, rework, good, scrap | Yield and rework capacity |
| Accounts receivable | Age of account, paid, bad debt | Expected collections |
Traps:
- Columns, not rows, are used when writing balance equations for , because sums down column .
- Probabilities must be per time step; convert rates to per-shift or per-period probabilities first.
- Steady-state results do not apply to absorbing chains, because those chains end in an absorbing state.
A two-state Markov chain models whether a production line is Running (R) or Down (D) at the start of each hour. The transition probabilities are P(R→R) = 0.90, P(R→D) = 0.10, P(D→R) = 0.40, and P(D→D) = 0.60. What is the long-run fraction of hours the line is running?
0.60
0.75
0.80
0.90
Using the machine-condition matrix in this section, a machine is Good now. What is the probability that it is Degraded two shifts from now?
0.150
0.225
0.105
0.290
For an absorbing Markov chain, an analyst computes the fundamental matrix N = (I − Q)^-1. What does the entry n_ij represent?
The probability of being absorbed in state j when starting in state i
The long-run steady-state probability of being in state j
The one-step transition probability from transient state i to state j
The expected visits to transient state j before absorption, starting in state i
Sections you finish are checked off in the contents.