{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $X$ be a set, let $T \\colon X \\to X$ be a map with [[iterates|AYVTR2ES5B]] $T^k$, and let $f \\colon X \\to \\R$ be a [[function|0EPAT51DXQ]].\nFor an integer $n \\ge 1$, the *Birkhoff sum* of $f$ is the function\n$$S_n f(x) = \\sum_{k=0}^{n-1} f(T^k(x)), \\qquad x \\in X,$$\nand the *Birkhoff average*, or ergodic average, of $f$ is\n$$A_n f(x) = \\frac{1}{n} S_n f(x).$$\n\n## Remarks\n\nThe same formulas make sense for $f$ with values in $\\C$ or in any real vector space.\nThe sums satisfy the cocycle relation $S_{m+n} f = S_m f + (S_n f) \\circ T^m$ for all $m, n \\ge 1$.\nIf $\\mu$ is a $T$-invariant probability measure and $f$ is integrable, then $\\int A_n f \\, d\\mu = \\int f \\, d\\mu$ for every $n$.\n\nExample: let $T(x) = x + 1/2 \\bmod 1$ on $[0, 1)$ and $f(x) = x$.\nFor $x \\in [0, 1/2)$ the orbit alternates between $x$ and $x + 1/2$, so $S_{2m} f(x) = m(2x + 1/2)$ and $A_{2m} f(x) = x + 1/4$.\n\nNon-example: the space average $\\int_0^1 f(x) \\, dx = 1/2$ is not a Birkhoff average, since it does not depend on a starting point; in this example $A_{2m} f(x) = x + 1/4$ differs from $1/2$ unless $x = 1/4$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "8TD2KCVH5N",
    "kind": "definition",
    "msc": [
      "37A30",
      "37A05"
    ],
    "name": "Birkhoff sum and average",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Ergodic_theory"
      }
    ],
    "tag": "S3YF52GRJM",
    "uses": [
      "0EPAT51DXQ",
      "AYVTR2ES5B"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/S3YF52GRJM/",
  "links": [
    {
      "field": "defines",
      "target": "8TD2KCVH5N"
    },
    {
      "field": "uses",
      "target": "0EPAT51DXQ"
    },
    {
      "field": "uses",
      "target": "AYVTR2ES5B"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/S3YF52GRJM.md",
  "msc": [
    "37A30",
    "37A05"
  ],
  "name": "Birkhoff sum and average",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/S3Y/S3YF52GRJM.md",
  "status": null,
  "tag": "S3YF52GRJM",
  "uri": "m2://S3YF52GRJM",
  "url": "https://tamnd.github.io/math2/wiki/birkhoff-sum-and-average-definition/",
  "writing": {
    "tag": "S3YF52GRJM",
    "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
      }
    ]
  }
}
