Tutorials › Stochastic Processes › Kolmogorov’s Cycle Criterion

Reversibility and Detailed Balance · Tutorial 264 of 994

Kolmogorov's Cycle Criterion

Learn how to test reversibility by comparing transition-probability products around a cycle and its reversal, including when some transitions have probability zero.

Advanced 10 min read

What You'll Learn

  • State the cycle-product criterion for a finite irreducible Markov chain.
  • Define a cycle so repeated states and zero-probability transitions are handled precisely.
  • Explain why detailed balance forces equality of forward and reversed cycle products.
  • Detect when an irreducible chain has an edge whose reverse transition has probability zero.
  • Apply the criterion to chains with full or sparse transition support.
  • Avoid incorrectly discarding a cycle because its reversed transitions include zeros.

Why Compare a Cycle With Its Reversal?

Reversibility asks whether the transition behavior of a chain in equilibrium is unchanged when time is run backward. Detailed balance expresses this as a pairwise equality: the stationary flow from state \(i\) to state \(j\) equals the flow from \(j\) to \(i\). Kolmogorov’s cycle criterion packages those pairwise balances into a test involving products of transition probabilities around closed paths. The test is useful because it can rule out reversibility without first solving for a stationary distribution.

Throughout, let \((X_n)_{n\ge0}\) be a time-homogeneous discrete-time Markov chain on a finite state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). Its transition matrix is \(P=(p_{ij})\), with \(p_{ij}=\mathbb{P}(X_{n+1}=j\mid X_n=i)\); each row sums to \(1\). The chain is irreducible if every state can be reached from every other state with positive probability in some finite number of steps. The initial distribution does not affect the criterion.

Definition: A cycle of length \(m\ge1\) is a finite sequence \(i_0,i_1,\ldots,i_m\) of states with \(i_m=i_0\). States may repeat, and transitions in the sequence are allowed to have probability zero. Its forward product is \(\prod_{r=0}^{m-1}p_{i_r i_{r+1}}\). The reversed cycle traverses the same sequence in the opposite direction, and its product is \(\prod_{r=0}^{m-1}p_{i_{r+1}i_r}\).

Thus a cycle is an ordered closed walk, not necessarily a loop with distinct intermediate states. Length one gives the loop \(i_0,i_0\), for which the two products agree automatically. For length two, the forward and reversed products also agree automatically. The informative tests usually involve cycles of length at least three.

Theorem (Kolmogorov’s cycle criterion): A finite irreducible Markov chain is reversible if and only if, for every cycle \(i_0,i_1,\ldots,i_m=i_0\), its forward and reversed products agree: $$ \prod_{r=0}^{m-1}p_{i_r i_{r+1}} = \prod_{r=0}^{m-1}p_{i_{r+1}i_r}. $$ The equality is an equality of nonnegative numbers and includes cycles containing zero-probability transitions. The necessity direction is proved below. The constructive proof of sufficiency is given in the subsequent proof of the criterion.

Here, a finite irreducible chain is called reversible if it has a stationary probability distribution \(\pi\) satisfying detailed balance, \(\pi_i p_{ij}=\pi_j p_{ji}\) for all \(i,j\). For such a chain, \(\pi_i>0\) for every state; positivity follows from irreducibility and stationarity. Reversibility is stronger than stationarity: a stationary distribution alone does not guarantee that the chain is reversible.

Why Detailed Balance Implies the Cycle Test

The necessity direction explains why the products arise. At each step around a cycle, detailed balance allows the stationary weight at the current state and the transition probability to be exchanged for the stationary weight and reverse transition at the next state. Around a closed cycle, all the stationary weights cancel.

Proposition. If a chain has a strictly positive probability distribution \(\pi\) satisfying detailed balance, then the cycle-product equality holds for every cycle.

Proof. Fix a cycle \(i_0,i_1,\ldots,i_m=i_0\). Detailed balance gives \(\pi_{i_r}p_{i_r i_{r+1}}=\pi_{i_{r+1}}p_{i_{r+1}i_r}\) for each \(r=0,\ldots,m-1\). Multiply these \(m\) equalities. The left side is \(\bigl(\prod_{r=0}^{m-1}\pi_{i_r}\bigr)\bigl(\prod_{r=0}^{m-1}p_{i_r i_{r+1}}\bigr)\). The right side is \(\bigl(\prod_{r=0}^{m-1}\pi_{i_{r+1}}\bigr)\bigl(\prod_{r=0}^{m-1}p_{i_{r+1}i_r}\bigr)\). Because \(i_m=i_0\), the two products of stationary probabilities contain the same factors, including repetitions. Each \(\pi_i\) is positive, so canceling their common product yields the cycle-product equality. No transition probability is divided out, so the argument also applies when some transitions have probability zero. \(\square\)

For irreducible finite chains, this proposition proves the necessary direction of the criterion. The other direction is more constructive: cycle equalities allow consistent relative weights to be assigned to states, from which a detailed-balance distribution can be obtained. That construction requires checking that the assigned weights do not depend on the chosen path; it is the subject of the proof that follows this criterion.

How Zero Transition Probabilities Enter

The criterion must be applied as written, including cycles whose product is zero. If the forward product is positive while the reversed product is zero, the equality fails, so the chain is not reversible. Conversely, if both products are zero, that cycle satisfies the equality; a zero on one side is not by itself a failure.

Irreducibility does not mean every one-step transition is possible. It means that paths of some finite length connect every pair of states. It is therefore possible for a chain to be irreducible while having a transition \(i\to j\) with positive probability and a reverse transition \(j\to i\) with probability zero. The cycle condition detects this asymmetry.

Proposition. If an irreducible chain satisfies the cycle-product equality for every cycle, then its one-step support is symmetric: \(p_{ij}>0\) if and only if \(p_{ji}>0\).

Proof. Suppose \(p_{ij}>0\). Irreducibility gives a path from \(j\) back to \(i\) whose transitions all have positive probability. Append that path to the edge \(i\to j\) to form a cycle. Its forward product is positive, since every factor is positive. By the cycle-product equality, the reversed product is also positive. The reversed product includes the factor \(p_{ji}\), so \(p_{ji}>0\). Interchanging \(i\) and \(j\) proves the converse implication. If \(i=j\), the assertion is immediate because it compares \(p_{ii}\) with itself. \(\square\)

This gives a practical preliminary check: in an irreducible chain, a single positive one-way edge rules out reversibility if its reverse edge has probability zero. Once support symmetry has been established, any cycle containing a zero-probability edge has a zero-probability reverse edge at the corresponding place. Both full products are then zero. Cycles consisting entirely of positive transitions remain the nontrivial product comparisons.

Applying the Criterion

Worked Example: A Positive Three-State Chain That Fails the Test

Consider a chain on \(S=\{1,2,3\}\) with transition matrix $$ P= \begin{bmatrix} \tfrac12&\tfrac13&\tfrac16\\ \tfrac14&\tfrac12&\tfrac14\\ \tfrac13&\tfrac13&\tfrac13 \end{bmatrix}. $$ Each row sums to \(1\): the sums are \(\tfrac12+\tfrac13+\tfrac16=1\), \(\tfrac14+\tfrac12+\tfrac14=1\), and \(\tfrac13+\tfrac13+\tfrac13=1\). Every entry is positive, so the chain is irreducible. Test the cycle \(1,2,3,1\).

The forward product, for \(1\to2\to3\to1\), is $$ p_{12}p_{23}p_{31} =\tfrac13\cdot\tfrac14\cdot\tfrac13 =\tfrac1{36}. $$ The reversed product, for \(1\to3\to2\to1\), is $$ p_{13}p_{32}p_{21} =\tfrac16\cdot\tfrac13\cdot\tfrac14 =\tfrac1{72}. $$ Since \(\tfrac1{36}=\tfrac2{72}\ne\tfrac1{72}\), the cycle equality fails. By the necessary direction, the chain is not reversible.

Check: The ratio of the forward product to the reversed product is \((1/36)/(1/72)=2\), not \(1\). The discrepancy confirms that the two products are unequal.

Worked Example: An Irreducible Chain With a One-Way Edge

Let \(S=\{1,2,3\}\) and $$ P= \begin{bmatrix} 0&1&0\\ 0&0&1\\ 1&0&0 \end{bmatrix}. $$ The row sums are \(0+1+0=1\), \(0+0+1=1\), and \(1+0+0=1\). The chain is irreducible: starting from any state, repeated transitions visit the other two states. Consider the cycle \(1,2,3,1\).

Its forward product is \(p_{12}p_{23}p_{31}=1\cdot1\cdot1=1\). The reversed product is \(p_{13}p_{32}p_{21}=0\cdot0\cdot0=0\). Thus the cycle equality fails, and the chain is not reversible. In particular, \(p_{12}=1\) but \(p_{21}=0\), which already contradicts the support-symmetry consequence of the criterion.

Check: Substituting the six matrix entries gives \(1\ne0\), not an indeterminate comparison. The fact that the reverse traversal includes impossible transitions is exactly why its product is zero.

Worked Example: A Sparse Reversible Chain With a Zero-Product Cycle

Consider $$ P= \begin{bmatrix} \tfrac12&\tfrac12&0\\ \tfrac14&\tfrac12&\tfrac14\\ 0&\tfrac13&\tfrac23 \end{bmatrix} $$ on \(S=\{1,2,3\}\). The row sums are \(\tfrac12+\tfrac12+0=1\), \(\tfrac14+\tfrac12+\tfrac14=1\), and \(0+\tfrac13+\tfrac23=1\). The positive transitions \(1\leftrightarrow2\) and \(2\leftrightarrow3\) connect all states, so the chain is irreducible.

For the cycle \(1,2,3,1\), the forward product is \(p_{12}p_{23}p_{31}=\tfrac12\cdot\tfrac14\cdot0=0\). The reversed product is \(p_{13}p_{32}p_{21}=0\cdot\tfrac13\cdot\tfrac14=0\). This cycle satisfies the criterion because both products are zero.

To verify reversibility directly, set \(\pi=(\tfrac29,\tfrac49,\tfrac13)\). Its entries are nonnegative and sum to \(\tfrac29+\tfrac49+\tfrac13=\tfrac69+\tfrac39=1\). The nontrivial detailed-balance checks are $$ \pi_1p_{12}=\tfrac29\cdot\tfrac12=\tfrac19 =\tfrac49\cdot\tfrac14=\pi_2p_{21}, \qquad \pi_2p_{23}=\tfrac49\cdot\tfrac14=\tfrac19 =\tfrac13\cdot\tfrac13=\pi_3p_{32}. $$ For states \(1\) and \(3\), both flows are zero: \(\pi_1p_{13}=0=\pi_3p_{31}\). For each state paired with itself, detailed balance is the same quantity on both sides.

Stationarity can also be checked by multiplication: $$ \pi P= \left( \tfrac29\cdot\tfrac12+\tfrac49\cdot\tfrac14+\tfrac13\cdot0,\ \tfrac29\cdot\tfrac12+\tfrac49\cdot\tfrac12+\tfrac13\cdot\tfrac13,\ \tfrac29\cdot0+\tfrac49\cdot\tfrac14+\tfrac13\cdot\tfrac23 \right) = \left(\tfrac29,\tfrac49,\tfrac13\right) =\pi. $$ The chain is reversible, and the zero-product cycle is consistent with that conclusion.

A Reliable Testing Procedure

For a finite irreducible chain, organize the test so that zero transitions are not lost:

1
Check the transition data.
Verify every row sums to \(1\), and establish irreducibility before applying the criterion as stated.
2
Inspect the one-step support.
If \(p_{ij}>0\) but \(p_{ji}=0\), reversibility is impossible. If support is symmetric, cycles containing a zero edge have zero products in both directions.
3
Compare cycle products.
For a cycle with positive transitions, multiply the forward probabilities and the probabilities along the reversed cycle. Any unequal pair disproves reversibility.
4
Interpret the result correctly.
Failure of even one cycle is decisive. Passing selected cycles is not by itself a proof unless the full cycle criterion has been established or a separate detailed-balance distribution has been verified.

Common mistake. A tempting but incorrect rule is to test only cycles for which both traversals have positive probability, silently discarding a cycle if its reverse contains a zero. In the deterministic three-state example, that rule would discard \(1,2,3,1\) and miss the decisive comparison. The correction is to include every cycle and compare the products as ordinary nonnegative numbers: here they are \(1\) and \(0\), so the criterion fails. In contrast, in the sparse reversible example the products are \(0\) and \(0\), so that cycle passes. Never divide by a transition probability unless its positivity has first been verified.

The cycle condition is a test of consistency around closed paths, not a substitute for the definition of stationarity. A stationary chain can have a net circulation around a cycle and fail reversibility; the cycle products expose this obstruction. For a reversible chain, detailed balance guarantees equality around every cycle, including cycles with repeated states and zero transitions. The criterion’s sufficiency direction explains why, in a finite irreducible chain, those cycle equalities also permit a consistent stationary weighting of the states.

Check Your Understanding

Use exact products, and include zero-probability transitions whenever they occur in the stated cycle.

  1. For a cycle \(a,b,c,a\), write its forward product and its reversed product using \(p_{ij}\).
  2. An irreducible chain has \(p_{ij}>0\) and \(p_{ji}=0\). What does the cycle criterion imply about reversibility?
  3. In the sparse three-state example, why does the cycle \(1,2,3,1\) satisfy the product equality even though some transitions are impossible?
  4. Explain why detailed balance implies equality of the cycle products without requiring every transition probability to be positive.
  5. Why is checking a single cycle with unequal products enough to rule out reversibility?