Skip to content

Kelly's Lemma

Certify a continuous-time Markov chain's stationary law by matching each forward transition's weighted flow to a candidate reverse transition and matching their statewise exit rates.

Version
v1 · 2026-10-03 · History
Domain-specific #
13359
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Stochastic Processes, Queueing Theory → Mathematics

Core Idea

Kelly's Lemma certifies a stationary probability distribution of a continuous-time Markov chain by pairing its transitions with those of a candidate reversed chain. On a finite state space, start with valid rate matrices \(Q\) and \(\widetilde Q\) and a normalized candidate distribution \(\pi\). If the chains have the same total exit rate from each state and each forward weighted transition satisfies \(\pi_iq_{ij}=\pi_j\widetilde q_{ji}\), then the incoming and outgoing rates balance at every state, so \(\pi Q=0\) and \(\pi\) is stationary.[1]

The candidate reverse generator may differ from the forward generator, allowing nonreversible stationary chains. If the two generators are the same, the equations reduce to the stronger detailed-balance special case. Recognizing the candidate rates as those of the actual time-reversed process uses a separate result after stationarity is established on positive-probability states.[1]

How would you explain it like I'm…

 

No faithful explanation at this level. A child-level picture collapses into 'balanced because the backward movie matches the forward one' (detailed balance) or 'nothing moves', but the lemma certifies ongoing, possibly nonreversible steady states using a reverse process that can differ from the forward one.

The Rewind-Guess Check

Picture people hopping between rooms at random, each hop happening at some speed. We want to know if a certain spread of people across the rooms will stay the same over time. Kelly's Lemma says: invent a second, made-up set of hopping speeds as a guess for how things would look in rewind. If each room's total leaving speed is the same in both versions, and every flow from one room to another in the real version matches the opposite flow in the guessed version, then the spread stays steady. The rewind guess doesn't have to look like the original—the check still works.

Reversed-Chain Stationarity Certificate

A continuous-time Markov chain is a system that jumps between states at given rates. A stationary distribution is a set of probabilities for the states that stays the same over time. Kelly's Lemma gives a way to prove a guessed distribution π is stationary: propose a second set of rates, a candidate reversed chain. If each state's total exit rate is the same in both chains, and π_i times the forward rate from i to j equals π_j times the candidate rate from j back to i for every pair, then π is stationary. The candidate need not equal the original, so the method can certify steady behavior that isn't time-reversible. When the two chains are identical, it reduces to detailed balance.

 

Kelly's Lemma certifies stationarity of a CTMC on a finite state space. Let Q and Q̃ be rate generators on the same states and π a probability distribution, with total exit rates q_i = Σ_{j≠i} q_ij and q̃_i defined likewise (excluding diagonal entries). If q_i = q̃_i for every i and π_i q_ij = π_j q̃_ji for all i ≠ j, then πQ = 0. The proof is a summation: inflow at i is Σ_{j≠i} π_j q_ji = π_i Σ_{j≠i} q̃_ij = π_i q̃_i = π_i q_i, which equals outflow, so global balance holds. Q̃ need not equal Q, so the lemma can certify nonreversible stationary behavior; choosing Q̃ = Q recovers detailed balance as a special case. Concluding that Q̃ is the actual time-reversed process is a separate step using stationarity and q̃_ij = π_j q_ji / π_i on positive support. On countable state spaces one must also ensure normalizability and process regularity, since an unnormalizable positive measure is not a stationary distribution.

Scope of Application

The same test works in unlike CTMC models. In an explicitly constructed three-state one-way cycle, \(Q\) moves clockwise at rate \(a>0\), \(\widetilde Q\) moves counterclockwise at the same rate and \(\pi\) is uniform. Every exit rate is \(a\) and each positive weighted forward/reverse pair equals \(a/3\), certifying stationarity even though detailed balance within \(Q\) fails. This is a direct calculation from the theorem, not an historical example claimed for Walrand.[1]

Walrand applies the lemma to a three-component queue network: under stated load conditions, a proposed product-form distribution and guessed reversed-flow network satisfy the pair and exit tests. Product form is an additional property of that model, not a universal consequence of the lemma. The finite-state statement here must not be extended to countable models without normalization and well-defined, suitably regular processes.[1]

Clarity

The lemma distinguishes global balance, same-generator detailed balance and two-generator reverse pairing. A chain can be stationary while carrying directional flow; a separate reverse chain may cancel its weighted edges even when the forward chain does not cancel them internally. It also distinguishes an invariant formal measure from a normalized stationary probability distribution.[1]

Manages Complexity

Instead of solving all coupled global-balance equations directly, one can check a proposed \(\pi\), a valid \(\widetilde Q\), matched off-diagonal exit-rate sums and paired weighted rates. This can simplify a network with a recognizable reversal. It does not discover \(\pi\) or \(\widetilde Q\) automatically, and failure of one proposed pairing invalidates that proof certificate rather than proving that no stationary law exists.[1]

Abstract Reasoning

Check that both matrices are generators and that \(\pi\) sums to one. For each state, compare \(\sum_{j\ne i}q_{ij}\) with \(\sum_{j\ne i}\widetilde q_{ij}\)—not the full generator-row sums, which are always zero. Then verify \(\pi_iq_{ij}=\pi_j\widetilde q_{ji}\) for all distinct pairs and sum over incoming states. Only after the resulting stationary law is established should the actual reverse-rate interpretation be invoked where \(\pi_i>0\).[1]

Knowledge Transfer

The role structure—forward generator, candidate law, candidate reversed generator, exit equality and paired flows—transfers literally from the finite directed cycle to Walrand's queue network. Their state meanings, candidate-distribution shapes and stability requirements differ. The broader idea of proving a global invariant through local obligations may suggest future work on primes, but the named lemma remains a domain-specific CTMC theorem. Live Detailed Balance is its special case, not an asserted strict parent.[1]

Neighborhood in Abstraction Space

Kelly's Lemma sits in a sparse region of the domain-specific corpus (76th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Foundations of Probability & Inference (29 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Jean Walrand, “Networks—B”, in Probability in Electrical Engineering and Computer Science (Springer, 2021), original publisher chapter, §6.2.5 Theorems 6.2–6.3 and §6.3 Theorem 6.4 and proof, inspected 2026-10-01. The publisher HTML proof has an apparent \(p/\pi\) typography error; the finite-state algebra stated here has been checked independently. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h