From Transition Probabilities to Outgoing Edges
A communicating class is determined by mutual accessibility: every pair of its states can be reached from one another along positive-probability paths. Closedness asks a different question. It concerns whether the chain can move from that class to any state outside it. The distinction matters in a transition graph: internal paths establish communication, while even one positive-probability edge leaving the class prevents it from being closed.
Let \((X_n)_{n\ge0}\) be a discrete-time Markov chain on a finite or countable state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with transition matrix \(P=(p_{ij})\). The matrix is row-stochastic, so \(p_{ij}\ge0\) and \(\sum_{j\in S}p_{ij}=1\) for each \(i\in S\). A transition edge \(i\to j\) is present exactly when \(p_{ij}>0\). A communicating class \(C\subseteq S\) is an equivalence class under mutual accessibility. It is closed if, starting from any state in \(C\), the chain stays in \(C\) at the next step with probability one.
Proof. First suppose that \(C\) is closed. For each \(i\in C\), closedness means \(\mathbb{P}_i(X_1\in C)=1\). Since \(\mathbb{P}_i(X_1=j)=p_{ij}\), every \(j\notin C\) must have \(p_{ij}=0\). Thus there is no positive-probability transition edge from \(C\) to its complement. Conversely, suppose there is no such edge. For every \(i\in C\), \(p_{ij}=0\) for all \(j\notin C\), so \(\sum_{j\in C}p_{ij}=\sum_{j\in S}p_{ij}=1\). Hence \(\mathbb{P}_i(X_1\in C)=1\) for every \(i\in C\), which is exactly the definition of closedness. The argument also covers a singleton class and a class equal to all of \(S\): in the latter case there are no outside states to check. \(\square\)
The criterion is local: it only requires checking one-step transitions from states in \(C\). Its consequence is global in time. If no edge leaves \(C\), then a chain started in \(C\) remains there at every later time with probability one. Conversely, an edge leaving \(C\) is enough to disprove closedness, even if it is unlikely or the chain can also move back into \(C\).
Proof. If \(C\) has an outgoing edge \(i\to j\), then the one-step path from \(i\in C\) to \(j\notin C\) has probability \(p_{ij}>0\), so a positive-probability path leaves \(C\). In the other direction, consider any finite path \(i_0,i_1,\ldots,i_m\) that starts in \(C\) and ends outside \(C\), with positive probability. Its probability is \(\prod_{r=0}^{m-1}p_{i_r i_{r+1}}\), so every factor is positive. There is a first index \(r\) for which \(i_r\in C\) and \(i_{r+1}\notin C\); this gives an outgoing edge. Therefore, if there are no outgoing edges, no such path exists. Together with the theorem, this proves the equivalence. \(\square\)
Applying the Criterion to a Transition Graph
For a transition matrix, form the directed graph by drawing \(i\to j\) precisely for entries \(p_{ij}>0\). The communicating classes are the strongly connected components: within each such component, every state can reach every other state by a directed path. Once a class is identified, test only edges that start in that class and end outside it. Internal edges do not threaten closedness, and entries equal to zero do not represent edges.
Here “outgoing” is relative to a particular class, not to the whole graph. A vertex may have an outgoing edge from its class and still belong to a communicating class; the edge simply shows that this class is not closed. Also, the size of a transition probability does not change the test: any strictly positive value counts, while zero does not.
Worked Example: A Chain with Three Communicating Classes
Consider a discrete-time Markov chain on \(S=\{1,2,3,4\}\) with transition matrix
Before using the matrix, check its row sums: row 1 is \(\tfrac12+\tfrac12=1\); row 2 is \(\tfrac13+\tfrac13+\tfrac13=1\); row 3 is \(\tfrac12+\tfrac12=1\); and row 4 is \(1\). The positive-probability edges are \(1\to1\), \(1\to2\), \(2\to1\), \(2\to2\), \(2\to3\), \(3\to3\), \(3\to4\), and \(4\to4\).
States 1 and 2 communicate because each reaches the other in one step, so they form the class \(\{1,2\}\). State 3 cannot be reached back from 4, and neither 1 nor 2 is reachable from 3, so \(\{3\}\) is a class. State 4 forms the class \(\{4\}\). From \(\{1,2\}\), the edge \(2\to3\) leaves the class, since \(p_{23}=\tfrac13>0\); therefore \(\{1,2\}\) is not closed. From \(\{3\}\), the edge \(3\to4\) leaves the class, since \(p_{34}=\tfrac12>0\); therefore \(\{3\}\) is not closed. There is no edge from \(\{4\}\) to another state, so \(\{4\}\) is closed.
Check: the only positive-probability transition from state 4 is \(4\to4\), with probability \(1\). Thus the probability of remaining in \(\{4\}\) after one step is \(1\), as required by the definition of closedness.
Worked Example: A Small Exit Probability Still Counts
Let \(S=\{1,2,3\}\) and take
The row sums are \(0+1+0=1\), \(\tfrac67+0+\tfrac17=1\), and \(0+0+1=1\). States 1 and 2 communicate: \(1\to2\) has probability \(1\), and \(2\to1\) has probability \(\tfrac67>0\). State 3 is absorbing, and it cannot reach 1 or 2. Thus the classes are \(\{1,2\}\) and \(\{3\}\).
There is an outgoing edge from \(\{1,2\}\) to 3 because \(p_{23}=\tfrac17>0\). Hence \(\{1,2\}\) is not closed, even though the probability of taking that edge from state 2 is less than one. Starting from state 1, the path \(1\to2\to3\) has probability \(1\cdot\tfrac17=\tfrac17>0\), an explicit positive-probability path out of the class. In contrast, \(\{3\}\) has no outgoing edge and is closed.
Check: the probability of leaving \(\{1,2\}\) on the two-step path just calculated is \(\tfrac17\), not zero. A closed class requires the probability of leaving to be zero, so even this small exit probability rules out closedness.
Worked Example: Zero Entries Do Not Create Edges
Consider the matrix on \(S=\{1,2,3,4\}\)
Each row sums to one: row 1 gives \(\tfrac12+\tfrac12=1\); row 2 gives \(\tfrac14+\tfrac34=1\); row 3 gives \(\tfrac13+\tfrac23=1\); and row 4 gives \(1\). States 1 and 2 communicate, so \(\{1,2\}\) is a class. State 3 and state 4 each form their own class: 3 can move to 4, but 4 cannot return to 3.
For \(\{1,2\}\), the entries \(p_{13},p_{14},p_{23},p_{24}\) are all zero. Thus there is no edge from either state in the class to a state outside it, and the class is closed. The edge \(3\to4\) means \(\{3\}\) is not closed, while \(\{4\}\) is closed because its only positive transition is the self-loop \(4\to4\).
Check: for state 1, the total probability of moving within \(\{1,2\}\) is \(\tfrac12+\tfrac12=1\); for state 2, it is \(\tfrac14+\tfrac34=1\). These sums confirm directly that no probability mass leaves the class in one step.
Common Graph and Matrix Pitfalls
A frequent mistake is to treat a zero entry as an edge. In the last example, suppose someone reports that \(\{1,2\}\) is not closed because “there is a transition from 1 to 3.” The matrix entry used for that claim is \(p_{13}=0\). The corrected test is \(p_{13}>0\); since \(0\) is not strictly positive, there is no edge \(1\to3\). The same check must be made for every state in the class and every state outside it.
A different mistake is to require that a class have no outgoing edges in order to be a communicating class. That confuses two separate properties. Communication concerns whether states within the class can reach one another; closedness concerns whether transitions can leave. In the first example, \(\{1,2\}\) is a communicating class even though the edge \(2\to3\) makes it nonclosed.
Finally, do not replace “positive probability” with “large probability” or “likely.” In the second example, the edge with probability \(\tfrac17\) is decisive. If a class has even one outgoing edge of positive probability, it is not closed, regardless of the other transition probabilities. Conversely, a visual arrow drawn without a positive matrix entry cannot disqualify a class.
Check Your Understanding
For each question, distinguish the communicating-class structure from the outgoing-edge test.
- For the matrix in the first worked example, which edge makes \(\{1,2\}\) nonclosed, and what is its transition probability?
- If \(p_{ij}=0\) for \(i\in C\) and \(j\notin C\), what is \(\sum_{j\in C}p_{ij}\) for a fixed \(i\in C\)? Explain why.
- A communicating class has an outgoing edge with probability \(\tfrac1{100}\). Is it closed? Justify your answer using the criterion.
- Why does a positive-probability finite path from a class to its complement imply that at least one outgoing edge exists?
- In the third worked example, why does the transition \(3\to4\) not affect whether \(\{1,2\}\) is closed?