{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $P = (p_{ij})_{i, j \\in S}$ be the [[transition matrix|0F462493EA]] of a time-homogeneous [[Markov chain|033TJBZDG0]] on a countable set $S$.\nA probability distribution $\\pi = (\\pi_i)_{i \\in S}$ on $S$ satisfies *detailed balance* for $P$ if\n$$\\pi_i \\, p_{ij} = \\pi_j \\, p_{ji} \\quad \\text{for all } i, j \\in S.$$\nThe chain is then called *reversible* with respect to $\\pi$.\n\n## Remarks\n\nDetailed balance implies that $\\pi$ is [[stationary|0KRH5157WP]]: $\\sum_i \\pi_i p_{ij} = \\sum_i \\pi_j p_{ji} = \\pi_j$.\nIf $X_0$ has law $\\pi$, then $(X_0, \\ldots, X_n)$ and $(X_n, \\ldots, X_0)$ have the same law.\nExample: on a finite connected [[graph|00C0BR7D7H]] with edge set $E$, let $p_{ij} = 1/\\deg(i)$ when $j$ is a neighbour of $i$.\nWith $\\pi_i = \\deg(i) / (2\\abs{E})$, both sides equal $1/(2\\abs{E})$ for neighbours, and both vanish otherwise.\nNon-example: on $S = \\set{1, 2, 3}$ let the chain move deterministically $1 \\to 2 \\to 3 \\to 1$.\nThe uniform law is stationary, but $\\pi_1 p_{12} = 1/3$ while $\\pi_2 p_{21} = 0$, so detailed balance fails.\nKolmogorov's criterion says that an irreducible chain with a stationary distribution is reversible if and only if $p_{i_1 i_2} p_{i_2 i_3} \\cdots p_{i_n i_1} = p_{i_1 i_n} p_{i_n i_{n-1}} \\cdots p_{i_2 i_1}$ for every finite cycle of states.\n",
  "commit": "5fc425f97f1f6b11da5892c2948ef8c5d8805665",
  "front": {
    "defines": "CTGN6CK1ZS",
    "kind": "definition",
    "msc": [
      "60J10",
      "82C05"
    ],
    "name": "Detailed balance",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Detailed_balance"
      }
    ],
    "tag": "C9EDBYCRAY",
    "uses": [
      "033TJBZDG0",
      "0F462493EA",
      "0KRH5157WP",
      "00C0BR7D7H"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/C9EDBYCRAY/",
  "links": [
    {
      "field": "defines",
      "target": "CTGN6CK1ZS"
    },
    {
      "field": "uses",
      "target": "033TJBZDG0"
    },
    {
      "field": "uses",
      "target": "0F462493EA"
    },
    {
      "field": "uses",
      "target": "0KRH5157WP"
    },
    {
      "field": "uses",
      "target": "00C0BR7D7H"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/C9EDBYCRAY.md",
  "msc": [
    "60J10",
    "82C05"
  ],
  "name": "Detailed balance",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/C9E/C9EDBYCRAY.md",
  "status": null,
  "tag": "C9EDBYCRAY",
  "uri": "m2://C9EDBYCRAY",
  "url": "https://math2.tamnd.com/wiki/detailed-balance-definition/",
  "writing": {
    "tag": "C9EDBYCRAY",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
