Irreducibility as an Exact Matrix Test
A transition matrix records all one-step possibilities of a finite Markov chain. To test irreducibility, the key question is not whether every pair of states is connected in one step, but whether a sequence of positive-probability transitions can take the chain from each state to every other state. With rational entries, this can be checked exactly: a transition is possible precisely when its entry is greater than zero. No numerical tolerance or approximation is needed.
Let \((X_n)_{n\ge0}\) be a discrete-time Markov chain on a finite state space \(S\), with transition matrix \(P=(p_{ij})\). The entries are nonnegative and each row sums to \(1\). The chain is defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). A path of length \(n\) from \(i\) to \(j\) is a sequence \(i=i_0,i_1,\ldots,i_n=j\) for which each one-step probability \(p_{i_{r-1}i_r}\) is positive. Its probability, conditional on starting at \(i\), is the product of those one-step probabilities.
The definition concerns possible paths, not their eventual frequency or the size of their probabilities. A path with probability \(1/1000\) is still a positive-probability path. The matrix gives a direct way to check for one-step paths: there is a transition from \(i\) to \(j\) exactly when \(p_{ij}>0\). For longer paths, matrix multiplication combines one-step possibilities.
Proof. For \(n=1\), the claim is the definition of a path of length one: such a path exists exactly when \(p_{ij}>0\). Suppose the claim holds for \(n\). Matrix multiplication gives \(p_{ij}^{(n+1)}=\sum_{k\in S}p_{ik}^{(n)}p_{kj}\). Every term is nonnegative, so this sum is positive exactly when at least one term is positive. Such a term exists exactly when, for some \(k\), there is a length-\(n\) path from \(i\) to \(k\) and a positive one-step transition from \(k\) to \(j\). Joining those paths gives a length-\((n+1)\) path. Conversely, the last step of any length-\((n+1)\) path comes from some \(k\), giving a positive term in the sum. This proves the claim by induction. At \(n=0\), \(P^0\) is the identity, whose \(ij\) entry is positive exactly when \(i=j\), corresponding to a path of length zero. \(\square\)
A Finite Bound and a Testing Procedure
It is not necessary to check paths of unlimited length. Write \(m=|S|\). If \(j\) is accessible from \(i\) and \(i\ne j\), choose a path of shortest length. No state can occur twice on this path: if it did, the segment between two occurrences could be removed, leaving a shorter path with the same endpoints. Thus the path visits at most \(m\) distinct states and has length at most \(m-1\). When \(i=j\), the length-zero path already suffices. Therefore it is enough to test paths of lengths at most \(m-1\).
For a fixed starting state \(i\), the test can be done by keeping a set of states reached so far. Begin with \(R_0=\{i\}\). At each round, add every state \(j\) for which some state \(k\) already in the set has \(p_{kj}>0\). This traces paths using only exact comparisons with zero; it does not require computing powers of \(P\).
Confirm that each entry is a nonnegative rational number and that each row sums exactly to \(1\).
Start with that state, then repeatedly add destinations of transitions whose exact entries are positive.
The chain is irreducible exactly when each starting state reaches all of \(S\) within at most \(m-1\) rounds.
Proof. For each \(r\ge0\), let \(R_r\) be the set produced after \(r\) rounds from a starting state \(i\). We show by induction that \(R_r\) consists exactly of states reachable from \(i\) by a path of length at most \(r\). At \(r=0\), \(R_0=\{i\}\), which is exactly the set reachable by a length-zero path. For the induction step, the procedure retains all states already in \(R_r\), and adds a state \(j\) if there is a \(k\in R_r\) with \(p_{kj}>0\). By the induction hypothesis, such a \(k\) has a path of length at most \(r\); appending the transition from \(k\) to \(j\) gives a path of length at most \(r+1\). Conversely, any path of length at most \(r+1\) either has length at most \(r\), or has a final positive transition from a state reached within \(r\) steps. In either case its endpoint belongs to \(R_{r+1}\). The induction is proved. By the finite path-length bound, every accessible state is reached within \(m-1\) steps. Thus the procedure includes all states from each starting state exactly when every state is accessible from every other state, which is the definition of irreducibility. \(\square\)
Worked Tests with Exact Entries
Worked Example: Every Distinct Pair Has a One-Step Path
Test the matrix on \(S=\{1,2,3\}\):
First check the rows: row \(1\) sums to \(0+\tfrac12+\tfrac12=1\); row \(2\) sums to \(\tfrac13+0+\tfrac23=1\); row \(3\) sums to \(\tfrac14+\tfrac34+0=1\). Every off-diagonal entry is positive: \(p_{12}=\tfrac12\), \(p_{13}=\tfrac12\), \(p_{21}=\tfrac13\), \(p_{23}=\tfrac23\), \(p_{31}=\tfrac14\), and \(p_{32}=\tfrac34\). Thus each distinct pair has a one-step path, while each state reaches itself by a length-zero path.
Check: From any starting state, the initial state and both other states are included by round \(1\). Since \(m=3\), this is within the permitted \(m-1=2\) rounds. The chain is irreducible.
Worked Example: The Reachable Sets Do Not All Cover the State Space
Consider \(S=\{1,2,3\}\) and
The row sums are \(\tfrac12+\tfrac12+0=1\), \(0+\tfrac13+\tfrac23=1\), and \(0+0+1=1\), so the matrix is a valid transition matrix. Starting from \(1\), the first round adds \(2\), since \(p_{12}=\tfrac12>0\). The next round adds \(3\), since \(p_{23}=\tfrac23>0\). Therefore \(R_0=\{1\}\), \(R_1=\{1,2\}\), and \(R_2=\{1,2,3\}\).
Starting from \(2\), the first round gives \(R_1=\{2,3\}\); state \(3\) transitions only to itself, so no later round adds \(1\). Starting from \(3\), the only reachable state is \(3\). Since the procedure does not reach every state from every starting state, the chain is not irreducible.
Check by a matrix power. Direct multiplication gives
For example, the \((1,2)\) entry is \(\tfrac12\cdot\tfrac12+\tfrac12\cdot\tfrac13=\tfrac14+\tfrac16=\tfrac{5}{12}\), and the \((1,3)\) entry is \(\tfrac12\cdot\tfrac23=\tfrac13\). The rows of \(P^2\) sum to \(\tfrac14+\tfrac{5}{12}+\tfrac13=1\), \(0+\tfrac19+\tfrac89=1\), and \(1\). Its zero entries in positions \((2,1)\), \((3,1)\), and \((3,2)\) agree with the reachable-set test.
Worked Example: Tracing a Four-State Chain
For \(S=\{1,2,3,4\}\), let
The row sums are \(0+\tfrac12+\tfrac12+0=1\), \(0+0+1+0=1\), \(\tfrac23+0+0+\tfrac13=1\), and \(\tfrac14+\tfrac34+0+0=1\). Apply the reachable-set procedure. From state \(1\), the sets are \(\{1\}\), then \(\{1,2,3\}\), then \(\{1,2,3,4\}\), because \(p_{34}=\tfrac13>0\). From state \(2\), the sets are \(\{2\}\), then \(\{2,3\}\), then \(\{1,2,3,4\}\), since \(p_{31}=\tfrac23>0\) and \(p_{34}=\tfrac13>0\).
From state \(3\), the first round gives \(\{1,3,4\}\), and the second gives all four states because \(p_{12}=\tfrac12>0\). From state \(4\), the first round gives \(\{1,2,4\}\), and the second gives all four states because \(p_{13}=\tfrac12>0\) and \(p_{23}=1\). Every starting state therefore reaches all states within \(m-1=3\) rounds.
Check with a path probability. From \(1\), the path \(1\to2\to3\to4\) has probability \(\tfrac12\cdot1\cdot\tfrac13=\tfrac16>0\), confirming that \(4\) is reachable from \(1\). The set computations show reachability for all other starting-state and destination pairs as well. The chain is irreducible.
Why Exactness Matters
Rational entries allow every test to be made without rounding: reduce or compare fractions exactly, and treat an entry as a possible transition if and only if its numerator is positive. The magnitude of a positive entry can make a path unlikely, but cannot make it impossible. This is especially important when a small transition is the only way to leave a state or to complete a route through the state space.
Common mistake: discarding a small positive entry. Consider the matrix on \(\{1,2,3\}\)
The row sums are \(\tfrac{999}{1000}+\tfrac1{1000}+0=1\), \(0+0+1=1\), and \(1+0+0=1\). The path \(1\to2\to3\to1\) has probability \(\tfrac1{1000}\cdot1\cdot1=\tfrac1{1000}>0\); following this cycle from each starting state reaches all three states. The chain is irreducible.
A mistaken numerical procedure might replace \(\tfrac1{1000}\) by zero because it is below a chosen tolerance. It would then conclude that state \(1\) has no transition to another state and classify the altered matrix as reducible. That conclusion is for a different matrix. For exact rational inputs, test \(p_{ij}>0\), not whether \(p_{ij}\) exceeds an arbitrary cutoff. Also, checking only the positive entries in \(P\) is insufficient: a path may require several steps, so trace transitions for all states until the reachable sets stop growing or the \(m-1\) bound is reached.
Check Your Understanding
For each question, use exact positivity and state the row sums or path calculations that justify your conclusion.
- For a finite chain with \(m\) states, why is it enough to search paths of length at most \(m-1\) between distinct states?
- If \(p_{ij}^{(3)}>0\), what does this imply about paths from \(i\) to \(j\)? What does the converse say?
- For the matrix in the second worked example, list the states reachable from \(2\), including \(2\) itself.
- Give the first-round reachable set from state \(4\) in the four-state example, and explain which positive entries determine it.
- Why can replacing a small positive rational entry by zero change the irreducibility test?