What a Cycle Test Compares
Detailed balance compares the probability flow across each pair of states. Kolmogorov’s cycle criterion gives a complementary test: instead of solving for a stationary distribution, compare the products of transition probabilities along a closed path in the two directions. A well-chosen path can rule out reversibility with one exact calculation.
Let \((X_n)_{n\ge0}\) be a discrete-time Markov chain on a finite state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with transition matrix \(P=(p_{ij})\). The matrix is row-stochastic: \(p_{ij}\ge0\) and \(\sum_{j\in S}p_{ij}=1\) for every \(i\). The natural filtration is \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\). The cycle calculations below depend only on \(P\), not on the initial distribution.
A finite chain is reversible if there is a probability distribution \(\pi\) satisfying detailed balance, \(\pi_i p_{ij}=\pi_j p_{ji}\) for all \(i,j\). For a finite irreducible chain, Kolmogorov’s cycle criterion says that the chain is reversible if and only if \(F(C)=R(C)\) for every closed path \(C\). This standard result, including its proof, is given in the earlier material on Kolmogorov’s cycle criterion. Here the emphasis is how to choose and compute useful tests.
When every transition in both directions along a pair is positive, detailed balance requires \(\pi_j/\pi_i=p_{ij}/p_{ji}\). Multiplying these ratios around a closed path cancels the \(\pi\)-terms, leaving the cycle-product equality. This explains why cycles are informative: a failed equality makes all detailed-balance equations impossible. If probabilities are zero, use the products themselves rather than dividing by a transition probability.
Which Cycles Need Checking?
Proof. We use induction on the length of a closed path. If it is simple, the required equality is the assumption. If it is not simple, some state occurs at two positions other than just the initial and final pair. The segment between those occurrences is a shorter closed path. Removing that segment leaves another shorter closed path (a segment of length zero is not removed). The original forward product is the product of the two shorter forward products. Its reverse product is likewise the product of the reverse products of those two paths, because multiplication of the transition probabilities is commutative. By induction, the forward and reverse products agree for each shorter path, so their products agree for the original path. Thus equality holds for every closed path. \(\square\)
This gives a practical reduction: repeated visits do not create fundamentally new tests. It is enough to seek simple cycles, especially short ones. If all transitions are positive, ratios can guide the search: choose a path of edges, infer the relative weights \(\pi_j/\pi_i\) along it, then check whether an alternative route gives the same relative weight. A mismatch is a cycle-product failure.
Proof. If the chain is reversible with distribution \(\pi\), then full support and detailed balance imply every \(\pi_i>0\): if \(\pi_i=0\), detailed balance gives \(\pi_jp_{ji}=0\) for every \(j\), hence \(\pi_j=0\) for every \(j\), contradicting \(\sum_j\pi_j=1\). Multiplying detailed-balance equations around any triangle cancels the three positive \(\pi\)-terms, giving equality of the forward and reverse products.
Conversely, first suppose there are at least three states and all triangle equalities hold. Fix a reference state \(1\), set \(w_1=1\), and for \(i\ne1\) set \(w_i=p_{1i}/p_{i1}\), which is defined and positive by full support. For distinct \(i,j\ne1\), the triangle \(1\to i\to j\to1\) gives \(p_{1i}p_{ij}p_{j1}=p_{1j}p_{ji}p_{i1}\). Dividing by \(p_{i1}p_{j1}>0\) yields \(w_i p_{ij}=w_j p_{ji}\). The same equality for a pair \(1,i\) follows directly from the definition of \(w_i\), and for \(i=j\) it is an identity. Thus all detailed-balance equations hold for the positive weights \(w_i\). Set \(\pi_i=w_i/\sum_k w_k\); these weights sum to one and satisfy detailed balance, so the chain is reversible. If there are two states, choose \(w_1=1\) and \(w_2=p_{12}/p_{21}\); the single off-diagonal detailed-balance equation holds, and the diagonal equations are identities. With one state, \(\pi_1=1\) works. This proves both directions, including the small state spaces. \(\square\)
The full-support hypothesis matters. In a sparse transition matrix, a triangle condition alone may not test a longer cycle, and a ratio such as \(p_{ij}/p_{ji}\) may not exist. In that setting, inspect the actual closed paths and retain zero products in the calculation.
Worked Cycle Checks
Worked Example: A Triangle Rules Out Reversibility
On \(S=\{1,2,3\}\), consider
The row sums are \(\tfrac12+\tfrac13+\tfrac16=1\), \(\tfrac14+\tfrac12+\tfrac14=1\), and \(\tfrac13+\tfrac13+\tfrac13=1\). All entries are positive, so the chain is irreducible and the triangle test applies. For \(1\to2\to3\to1\), the forward product is \(\tfrac13\cdot\tfrac14\cdot\tfrac13=\tfrac1{36}\). The reverse route \(1\to3\to2\to1\) has product \(\tfrac16\cdot\tfrac13\cdot\tfrac14=\tfrac1{72}\). Since \(\tfrac1{36}\ne\tfrac1{72}\), the chain is not reversible.
Check: The forward product is \(\tfrac3{108}\) and the reverse product is \(\tfrac{1.5}{108}\); equivalently, using a common denominator of \(72\), they are \(\tfrac2{72}\) and \(\tfrac1{72}\). Thus the inequality is exact. The failed cycle condition rules out every possible detailed-balance distribution, without requiring us to solve for a stationary distribution.
Worked Example: A Reversible Chain Passes the Cycle Check
Consider the row-stochastic matrix
The row sums are \(\tfrac12+\tfrac13+\tfrac16=1\), \(\tfrac13+\tfrac12+\tfrac16=1\), and \(\tfrac16+\tfrac16+\tfrac23=1\). The matrix is symmetric, so \(p_{ij}=p_{ji}\) for each pair. Thus the uniform distribution \(\pi=(\tfrac13,\tfrac13,\tfrac13)\) satisfies detailed balance: \(\pi_i p_{ij}=\pi_jp_{ji}\) follows by symmetry.
For a direct stationary check, \(\pi P\) has first coordinate \(\tfrac13(\tfrac12+\tfrac13+\tfrac16)=\tfrac13\), second coordinate \(\tfrac13(\tfrac13+\tfrac12+\tfrac16)=\tfrac13\), and third coordinate \(\tfrac13(\tfrac16+\tfrac16+\tfrac23)=\tfrac13\). Hence \(\pi P=\pi\), and the entries of \(\pi\) sum to \(1\). The triangle \(1\to2\to3\to1\) also passes: its forward product is \(\tfrac13\cdot\tfrac16\cdot\tfrac16=\tfrac1{108}\), and its reverse product is \(\tfrac16\cdot\tfrac16\cdot\tfrac13=\tfrac1{108}\). Symmetry verifies every cycle, not only this one.
Worked Example: A Four-State Cycle Detects Directional Bias
Let the states be \(1,2,3,4\), arranged in a cycle, and take
The row sums are \(\tfrac14+\tfrac12+0+\tfrac14=1\), \(\tfrac14+\tfrac14+\tfrac12+0=1\), \(0+\tfrac14+\tfrac14+\tfrac12=1\), and \(\tfrac12+0+\tfrac14+\tfrac14=1\). Each state can reach every other by moving around the cycle, so the chain is irreducible. The closed path \(1\to2\to3\to4\to1\) has forward product \((\tfrac12)^4=\tfrac1{16}\); its reverse path has product \((\tfrac14)^4=\tfrac1{256}\). These are unequal, so the chain is not reversible.
This matrix is doubly stochastic: each column sums to \(1\), as can be checked directly from its entries. Therefore \(\pi=(\tfrac14,\tfrac14,\tfrac14,\tfrac14)\) is stationary, since each coordinate of \(\pi P\) is one quarter of the corresponding column sum, namely \(\tfrac14\). The cycle failure shows that stationarity does not imply reversibility. The four-step cycle is informative because it follows the available ring transitions; several shorter paths use a zero transition in both directions and cannot expose the directional imbalance.
Zero Edges and a Common Miscalculation
Proof. Irreducibility means there is a positive-probability directed path from \(j\) back to \(i\). Prepend the edge \(i\to j\) to that path to form a closed path. Its forward product is positive because every edge in it has positive probability. The reverse product contains the factor \(p_{ji}=0\), which is the reverse transition for the initial edge, so the reverse product is zero. The cycle products differ, and Kolmogorov’s cycle criterion rules out reversibility. \(\square\)
There is a subtle point here: the two-step closed path \(i\to j\to i\) has forward product \(p_{ij}p_{ji}=0\), and its reverse product is also \(p_{ji}p_{ij}=0\). That two-step test does not detect the one-way edge. The informative path is the positive directed route that returns to the starting state, together with the one-way edge.
Worked Example: A One-Way Edge Needs a Returning Path
Consider the three-state chain
The row sums are \(\tfrac12+\tfrac12+0=1\), \(0+\tfrac12+\tfrac12=1\), and \(\tfrac12+0+\tfrac12=1\). The directed cycle \(1\to2\to3\to1\) has positive product \(\tfrac12\cdot\tfrac12\cdot\tfrac12=\tfrac18\). Its reverse product is \(p_{13}p_{32}p_{21}=0\cdot0\cdot0=0\), so the chain is not reversible. In particular, \(p_{12}=\tfrac12>0\) while \(p_{21}=0\). The two-step test for this edge gives \(p_{12}p_{21}=0\) forward and \(p_{21}p_{12}=0\) backward; only the longer returning cycle reveals the failure.
Common pitfall. Do not divide by a reverse transition that is zero, and do not claim that the two-step path detects a one-way edge. Both two-step products are zero in that case. Instead, use irreducibility to find a positive directed path returning from the destination to the origin, then compare the full cycle with its reverse. More generally, choose a cycle whose transitions can be written down exactly; a cycle with zero products in both directions provides no evidence either way.
Check Your Understanding
For each question, write the products explicitly before deciding what they imply.
- For a finite irreducible chain, what equality must hold between the two products around every closed path if the chain is reversible?
- Why do triangle checks suffice when every entry of a finite transition matrix is positive? State the role of the full-support assumption.
- If \(p_{ij}>0\) and \(p_{ji}=0\), what are the forward and reverse products for the two-step path \(i\to j\to i\)? Why is a different path needed?
- In the four-state worked example, calculate the reverse product for \(1\to2\to3\to4\to1\) and compare it with the forward product.
- Can a stationary distribution establish that a chain is reversible? Explain using the four-state example.