{
  "id": "detailed-balance",
  "title": "Detailed Balance",
  "lang": "en",
  "source_lang": "en",
  "summary": "Detailed balance is the condition that every transition between two states is exactly balanced by its reverse under a specified stationary distribution.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "Detailed balance condition",
    "Principle of detailed balance"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/detailed-balance/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/detailed-balance/",
      "json": "https://aiwiki.page/zh/detailed-balance.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Detailed balance is a pairwise balance condition for transitions in a stochastic process or for forward and reverse reactions in a kinetic system. For a Markov chain, it requires that the probability flow from each state to another equal the reverse flow under a specified probability distribution. It implies stationarity and characterizes reversibility of the stationary chain. In chemical kinetics, the corresponding condition requires each elementary reaction to be individually balanced by its reverse at equilibrium, rather than merely requiring unchanged concentrations. (stat.berkeley.edu)"
    },
    {
      "heading": "Mathematical definition",
      "text": "Consider a discrete-time Markov chain on a finite or countable state space \\(S\\), with transition matrix \\(P\\). Write\n\n\\[P_{ij}=\\Pr(X_{n+1}=j\\mid X_n=i).\\]\n\nA normalized distribution \\(\\pi=(\\pi_i)_{i\\in S}\\) satisfies detailed balance with \\(P\\) if\n\n\\[\\boxed{\\pi_iP_{ij}=\\pi_jP_{ji} \\qquad\\text{for every }i,j\\in S.}\\]\n\nThe quantity \\(\\pi_iP_{ij}\\) is the joint probability of occupying \\(i\\) and then moving to \\(j\\) when the current distribution is \\(\\pi\\). Detailed balance therefore concerns probability-weighted transitions, not equality of the transition probabilities themselves. (stat.berkeley.edu)\n\nFor a continuous-time Markov chain with transition rates \\(q_{ij}\\), the condition is\n\n\\[\\pi_iq_{ij}=\\pi_jq_{ji}.\\]\n\nFor a general-state-space transition kernel \\(K\\), its measure-theoretic form is\n\n\\[\\pi(dx)K(x,dy)=\\pi(dy)K(y,dx),\\]\n\nmeaning that the joint measure of successive states is symmetric under their interchange. This formulation includes continuous distributions without requiring a probability density function. (stat.berkeley.edu)"
    },
    {
      "heading": "Detailed balance and stationarity",
      "text": "A stationary distribution satisfies the global balance equations\n\n\\[\\pi_j=\\sum_i\\pi_iP_{ij}.\\]\n\nDetailed balance implies these equations: summing the pairwise equalities gives\n\n\\[\\sum_i\\pi_iP_{ij} =\\pi_j\\sum_iP_{ji} =\\pi_j,\\]\n\nbecause the entries in row \\(j\\) sum to one. The distinction is that global balance constrains total incoming probability, whereas detailed balance constrains each individual pair of flows. (stat.berkeley.edu)\n\nThe converse fails. As an illustrative calculation, consider three states arranged in a ring. From each state, let the chain move clockwise with probability \\(a\\), counterclockwise with probability \\(b\\), and remain in place with probability \\(1-a-b\\), where \\(a,b>0\\) and \\(a+b<1\\). The uniform distribution is stationary, since every state has the same total incoming probability. Yet the clockwise current across each edge is\n\n\\[J=\\frac{a-b}{3}.\\]\n\nUnless \\(a=b\\), the stationary chain has a persistent circulation and does not satisfy detailed balance. This example illustrates how unchanged state probabilities can coexist with unbalanced transitions. (stat.berkeley.edu)\n\nDetailed balance alone also does not guarantee convergence from every initial distribution. For finite chains, irreducibility guarantees uniqueness of the stationary distribution, while aperiodicity is additionally needed for ordinary discrete-time convergence. A chain that alternates deterministically between two states satisfies detailed balance with the uniform distribution but remains periodic. (dpmms.cam.ac.uk)"
    },
    {
      "heading": "Reversibility and time reversal",
      "text": "For a stationary Markov chain with \\(\\pi_i>0\\), define the reversed transition matrix by\n\n\\[P^{\\mathrm{rev}}_{ij} =\\frac{\\pi_jP_{ji}}{\\pi_i}.\\]\n\nDetailed balance is precisely the condition \\(P^{\\mathrm{rev}}=P\\): the stationary process obeys the same transition law when observed backward in time. (stat.berkeley.edu)\n\nThe consequence extends beyond one-step transitions. Under detailed balance, a stationary trajectory and its reversed trajectory have equal probabilities:\n\n\\[\\pi_{i_0}\\prod_{r=0}^{n-1}P_{i_ri_{r+1}} = \\pi_{i_n}\\prod_{r=0}^{n-1}P_{i_{r+1}i_r}.\\]\n\nThus\n\n\\[(X_0,X_1,\\ldots,X_n) \\overset{d}{=} (X_n,X_{n-1},\\ldots,X_0).\\]\n\nThis is statistical reversibility of trajectories, not the thermodynamic definition of a quasistatic reversible process. The stationarity assumption matters: initializing a reversible transition mechanism away from its invariant distribution does not make its transient trajectory law time-reversal invariant. (dpmms.cam.ac.uk)"
    },
    {
      "heading": "Kolmogorov’s cycle criterion",
      "text": "Kolmogorov’s cycle criterion tests reversibility directly from transition probabilities. For a finite irreducible chain, detailed balance holds with its stationary distribution if and only if, for every closed sequence \\(i_0,i_1,\\ldots,i_m=i_0\\),\n\n\\[\\prod_{r=0}^{m-1}P_{i_ri_{r+1}} = \\prod_{r=0}^{m-1}P_{i_{r+1}i_r}.\\]\n\nIn words, the product of transition probabilities around every cycle must equal the product around the reversed cycle. The continuous-time version uses transition rates instead. (statslab.cam.ac.uk)\n\nNecessity follows by multiplying detailed-balance equations around the cycle: all factors of \\(\\pi\\) cancel. Conversely, cycle consistency permits stationary-weight ratios to be reconstructed along paths. For example, where both transition probabilities are positive,\n\n\\[\\frac{\\pi_j}{\\pi_i}=\\frac{P_{ij}}{P_{ji}}.\\]\n\nThe cycle condition ensures that different paths produce consistent ratios. On infinite state spaces, however, a reversible invariant measure obtained this way need not have finite total mass, so it need not be normalizable into a stationary probability distribution. (statslab.cam.ac.uk)"
    },
    {
      "heading": "Linear-algebraic consequences",
      "text": "Detailed balance connects Markov-chain analysis with linear algebra. For a finite chain with strictly positive \\(\\pi\\), let\n\n\\[D=\\operatorname{diag}(\\pi_1,\\ldots,\\pi_N).\\]\n\nThe balance equations can be written\n\n\\[DP=P^{\\mathsf T}D.\\]\n\nConsequently, the similar matrix\n\n\\[S=D^{1/2}PD^{-1/2}\\]\n\nis real and symmetric. Its entries satisfy\n\n\\[S_{ij}=\\sqrt{\\frac{\\pi_i}{\\pi_j}}P_{ij}=S_{ji}.\\]\n\nBy the spectral theorem, \\(P\\) has real eigenvalues and is diagonalizable. This simplifies spectral descriptions of convergence and relaxation. (stat.berkeley.edu)\n\nEquivalently, the Markov operator is self-adjoint in the weighted inner product\n\n\\[\\langle f,g\\rangle_\\pi=\\sum_i\\pi_i f_i g_i.\\]\n\nIts associated quadratic form is\n\n\\[\\langle f,(I-P)f\\rangle_\\pi = \\frac12\\sum_{i,j}\\pi_iP_{ij}(f_i-f_j)^2.\\]\n\nThe expression measures variation of \\(f\\) across transitions and underlies variational estimates for eigenvalues and convergence rates. Reversibility does not make all eigenvalues nonnegative: negative eigenvalues can produce alternating discrete-time behavior. (stat.berkeley.edu)"
    },
    {
      "heading": "Equilibrium physics and chemical kinetics",
      "text": "In statistical mechanics, detailed balance provides a kinetic expression of equilibrium for many stochastic models. Suppose states have energies \\(E_i\\) and equilibrium weights given by the Boltzmann distribution,\n\n\\[\\pi_i=Z^{-1}e^{-\\beta E_i}, \\qquad \\beta=\\frac{1}{k_{\\mathrm B}T},\\]\n\nwhere \\(Z\\) is the partition function, \\(k_{\\mathrm B}\\) the Boltzmann constant, and \\(T\\) the temperature. Detailed balance then requires\n\n\\[\\frac{q_{ij}}{q_{ji}} =e^{-\\beta(E_j-E_i)}.\\]\n\nThis relation fixes rate ratios, not absolute rates: different dynamics can share the same equilibrium distribution while relaxing at different speeds. (arxiv.org)\n\nFor a reversible chemical reaction obeying mass-action kinetics,\n\n\\[\\sum_s\\alpha_{rs}A_s \\rightleftharpoons \\sum_s\\beta_{rs}A_s,\\]\n\ndetailed balance requires a positive equilibrium concentration vector \\(c^*\\) such that\n\n\\[k_r^+\\prod_s(c_s^*)^{\\alpha_{rs}} = k_r^-\\prod_s(c_s^*)^{\\beta_{rs}}\\]\n\nfor every reaction \\(r\\). This is stronger than merely requiring zero net concentration change. It also constrains rate constants through Wegscheider identities associated with dependencies among reaction stoichiometric vectors. For a simple cycle of first-order reactions, the product of forward rate constants must equal the product of reverse rate constants. (link.springer.com)\n\nThe chemical formulation dates to Rudolf Wegscheider’s work in 1901. Detailed balance is closely associated with microscopic reversibility, although deriving it for a coarse-grained kinetic model requires appropriate assumptions about equilibrium and how transitions are represented. (sites.math.duke.edu)"
    },
    {
      "heading": "Monte Carlo sampling",
      "text": "Detailed balance is a standard construction principle in Markov chain Monte Carlo: choose transitions satisfying balance with a desired target distribution, thereby ensuring that the target is invariant. It is sufficient for invariance, but not necessary. (stats.ox.ac.uk)\n\nIn the Metropolis–Hastings algorithm, a candidate \\(y\\) is proposed from \\(q(y\\mid x)\\) and accepted with probability\n\n\\[\\alpha(x,y) = \\min\\left\\{ 1,\\frac{\\pi(y)q(x\\mid y)} {\\pi(x)q(y\\mid x)} \\right\\},\\]\n\non the relevant positive support. For distinct states,\n\n\\[\\pi(x)q(y\\mid x)\\alpha(x,y) = \\min\\{\\pi(x)q(y\\mid x),\\,\\pi(y)q(x\\mid y)\\},\\]\n\nwhich is symmetric in \\(x\\) and \\(y\\). Rejected proposals leave the state unchanged and complete the transition kernel. (stats.ox.ac.uk)\n\nAn unknown multiplicative normalization constant in \\(\\pi\\) cancels from the acceptance ratio. This makes the method useful for sampling complicated posterior distributions and equilibrium models. Nevertheless, detailed balance does not ensure efficient exploration: proposal design and correlations between samples remain important. Nonreversible samplers can preserve the same target distribution and, in some settings, converge faster than reversible alternatives. (arxiv.org)"
    },
    {
      "heading": "Limits and related notions",
      "text": "Local detailed balance is distinct from stationary detailed balance. In stochastic thermodynamic models, local detailed balance relates the logarithm of a forward-to-reverse transition-rate ratio to entropy transferred to the environment:\n\n\\[\\log\\frac{q_{ij}}{q_{ji}} = \\frac{\\Delta s_{\\mathrm{env}}(i\\to j)}{k_{\\mathrm B}},\\]\n\nwith suitable definitions of the transition channel and reversal. Systems coupled to multiple reservoirs can satisfy such relations while sustaining currents and failing stationary detailed balance. Thus “local” does not mean that all stationary pairwise currents vanish. (arxiv.org)\n\nPhysical time reversal also requires care when states contain quantities that change sign, such as momentum. Reversing such a trajectory involves transforming the state variables as well as reversing their temporal order. Applying the ordinary unchanged-state balance test indiscriminately to these systems can misidentify equilibrium dynamics as irreversible. Generalized balance conditions must incorporate the appropriate time-reversal transformation. (doi.org)"
    }
  ],
  "links": [
    "stochastic-process",
    "markov-chain",
    "probability-distribution",
    "chemical-kinetics",
    "transition-matrix",
    "continuous-time-markov-chain",
    "probability-density-function",
    "stationary-distribution",
    "reversible-process",
    "linear-algebra",
    "spectral-theorem",
    "eigenvalues-and-eigenvectors",
    "inner-product",
    "statistical-mechanics",
    "boltzmann-distribution",
    "partition-function",
    "boltzmann-constant",
    "temperature",
    "chemical-reaction",
    "stoichiometry",
    "markov-chain-monte-carlo",
    "metropolis-hastings-algorithm",
    "posterior-distribution",
    "momentum"
  ],
  "sources": [
    {
      "title": "1 Introduction — Reversible Markov Chains and Random Walks on Graphs",
      "url": "https://www.stat.berkeley.edu/users/aldous/RWG/Book_Ralph/Ch3.S1.html"
    },
    {
      "title": "Mathematical Aspects of Mixing Times in Markov Chains",
      "url": "https://www.stat.berkeley.edu/~aldous/260-FMIE/Papers/montenegro_tetali.pdf"
    },
    {
      "title": "Modeling of Chemical Reaction Systems with Detailed Balance Using Gradient Structures",
      "url": "https://link.springer.com/article/10.1007/s10955-020-02663-4"
    },
    {
      "title": "Revisit of Macroscopic Dynamics for Some Non-equilibrium Chemical Reactions from a Hamiltonian Viewpoint",
      "url": "https://sites.math.duke.edu/~jliu/pdf/Gao_Liu_JSP22.pdf"
    },
    {
      "title": "How to Impose Microscopic Reversibility in Complex Reaction Mechanisms",
      "url": "https://pmc.ncbi.nlm.nih.gov/articles/PMC1304255/"
    },
    {
      "title": "The Metropolis-Hastings algorithm",
      "url": "https://arxiv.org/abs/1504.01896"
    },
    {
      "title": "Acceleration of Convergence to Equilibrium in Markov Chains by Breaking Detailed Balance",
      "url": "https://link.springer.com/article/10.1007/s10955-017-1805-z"
    },
    {
      "title": "Local detailed balance",
      "url": "https://arxiv.org/abs/2011.09200"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}