Classification of States
Why Classify States?
Not all states in a Markov chain behave the same way. Some states are visited infinitely often; others are visited only finitely many times and then abandoned forever. Some states can reach every other state; others are trapped in subsets. Understanding this structural decomposition is essential before asking questions about long-run behavior: convergence theorems apply only to chains with the right structural properties.
Definition: Accessible and Communicating States
Accessible and Communicating States
State is accessible from state (written ) if there exists such that .
States and communicate (written ) if and .
Communication is an equivalence relation on : it is reflexive ( since ), symmetric (by definition), and transitive (by Chapman-Kolmogorov).
The equivalence classes under are called communicating classes. If there is only one communicating class (every state communicates with every other), the chain is irreducible.
Definition: Irreducible Markov Chain
Irreducible Markov Chain
A DTMC is irreducible if for every pair of states , we have . Equivalently, the state space consists of a single communicating class.
If the chain is not irreducible, the state space decomposes into communicating classes , and the long-run behavior can be analyzed class by class.
Irreducible
A Markov chain is irreducible if every state can be reached from every other state with positive probability in some finite number of steps.
Related: Irreducible Markov Chain, Accessible and Communicating States
Definition: Recurrent and Transient States
Recurrent and Transient States
Define the return probability of state :
State is:
- Recurrent if (the chain returns to with certainty).
- Transient if (there is positive probability of never returning).
Equivalently, is recurrent if and only if , and transient if and only if .
A recurrent state is visited infinitely often (with probability 1). A transient state is visited only finitely many times. The expected number of visits to a transient state , starting from , is .
Recurrent state
A state is recurrent if a chain starting at returns to with probability 1. Equivalently, .
Related: Recurrent and Transient States
Theorem: Recurrence and Transience Criterion
Let be an irreducible DTMC. Then either all states are recurrent or all states are transient. That is, recurrence and transience are class properties of an irreducible chain.
If is recurrent and , then the chain must visit on its way between visits to , so is also visited infinitely often.
Setup
Suppose is recurrent and . We must show is recurrent. Since , there exists with . Since , there exists with .
Bound the return sum for $j$
By Chapman-Kolmogorov:
Summing over :
since is recurrent () and the constants .
Conclude
Since , state is recurrent. The same argument with reversed roles shows: if is transient, then so is .
Definition: Period of a State
Period of a State
The period of state is
If , the state is aperiodic. If , it is periodic with period .
An irreducible chain has a common period for all states (periodicity is a class property). If an irreducible chain is aperiodic, we call the entire chain aperiodic.
A sufficient condition for aperiodicity: if for some state in an irreducible chain, then the entire chain is aperiodic (since forces ).
Aperiodic
A state (or an irreducible chain) is aperiodic if . Aperiodicity ensures the chain does not cycle deterministically among subsets of states.
Related: Period of a State
Example: Gambler's Ruin
A gambler starts with and bets on each round of a fair game (). The gambler stops when reaching (ruin) or (goal). Model this as a DTMC on and classify the states.
Identify the transition probabilities
For : and . States 0 and are absorbing: and .
Identify communicating classes
States form one communicating class (each can reach its neighbors). State is a communicating class by itself, as is . The chain is not irreducible.
Classify recurrence and transience
The absorbing states and are recurrent (once entered, never left). The interior states are transient: starting from any interior state, the gambler eventually reaches 0 or with probability 1 and never returns to the interior.
Ruin probability
For a fair game (), the probability of ruin starting from state is:
This is derived by solving the system with .
Example: Simple Random Walk on
Consider the simple symmetric random walk on : at each step, move right with probability and left with probability . Is this chain irreducible? Is it recurrent or transient?
Check irreducibility
From any state , we can reach any state in steps (with positive probability). So the chain is irreducible.
Check recurrence
We need . Note and (the walk has period 2, but we check the sum regardless).
By Stirling's approximation, , so
Since , the series diverges.
Conclusion
The simple symmetric random walk on is recurrent. Despite wandering to arbitrarily large values, it returns to the origin infinitely often.
Remark: The same walk in is recurrent for (Polya, 1921) and transient for . This is one of the most celebrated results in probability theory.
Gambler's Ruin: Sample Path Simulation
Simulate sample paths of the gambler's ruin problem. Observe how the gambler's fortune evolves and how the ruin probability depends on the initial fortune , the target , and the win probability .
Parameters
Communicating Classes and Periodicity
Explore how the structure of the transition matrix determines communicating classes and periodicity. Select from several example chains to see their class decomposition, or enter a custom matrix.
Parameters
Select a pre-built example or choose custom
Common Mistake: Finite Irreducible Chains Are Always Recurrent
Mistake:
Trying to check recurrence for a finite irreducible chain by summing . This is unnecessary work.
Correction:
Every finite irreducible Markov chain is automatically recurrent. Transience is only possible for chains on infinite state spaces (like the random walk on ). For finite chains, focus on periodicity and the stationary distribution.
Common Mistake: Reading Period from the Transition Diagram
Mistake:
Concluding that a chain has period 2 because "it looks like it alternates" in the transition diagram, without computing .
Correction:
Always compute the period formally. A single self-loop () anywhere in an irreducible chain makes the entire chain aperiodic, regardless of how the rest of the diagram looks.
Recurrent vs Transient States
| Property | Recurrent | Transient |
|---|---|---|
| Return probability | ||
| Number of visits | Infinite (a.s.) | Finite (a.s.) |
| Finite irreducible chain? | Always recurrent | Impossible |
| Random walk on | : recurrent | : transient |
Quick Check
Consider a DTMC on with transition matrix . What is the period of this chain?
1 (aperiodic)
2
3
6
The chain cycles deterministically , returning to each state every 3 steps. .
Key Takeaway
States decompose into communicating classes. Within an irreducible chain, all states share the same recurrence/transience and the same period. For finite irreducible chains, all states are recurrent β transience requires an infinite state space. Aperiodicity () and irreducibility together guarantee convergence to a unique stationary distribution (Section 3).