{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "J6NMBX3E55"
    }
  ],
  "body": "\n## Statement\n\nLet $(X, \\mathcal{A}, \\mu)$ be a [[probability space|0NFPJVJJHX]], let $T \\colon X \\to X$ be a [[measure-preserving transformation|556WBDAHNP]], and let $f \\colon X \\to \\R$ be [[integrable|X7GTF3D98F]].\nFor $n \\ge 1$ let $S_n f = \\sum_{k=0}^{n-1} f \\circ T^k$ be the [[Birkhoff sums|8TD2KCVH5N]] of $f$, and let\n$$E = \\set{x \\in X : \\sup_{n \\ge 1} S_n f(x) \u003e 0}.$$\nThen\n$$\\int_E f \\, d\\mu \\ge 0.$$\n\n## Remarks\n\nProof idea, after Garsia: let $F_N = \\max(0, S_1 f, \\dots, S_N f)$.\nFor $1 \\le n \\le N$ one has $S_n f \\le f + F_N \\circ T$, so $F_N \\le f + F_N \\circ T$ on the set $E_N = \\set{F_N \u003e 0}$.\nIntegrating over $E_N$ and using $F_N \\ge 0$ and the invariance of $\\mu$ gives $\\int_{E_N} f \\, d\\mu \\ge \\int_X F_N \\, d\\mu - \\int_X F_N \\circ T \\, d\\mu = 0$.\nThe sets $E_N$ increase to $E$, and dominated convergence finishes the proof.\n\nApplied to $f - \\lambda$ for a real number $\\lambda \u003e 0$, it gives the maximal inequality\n$$\\lambda \\, \\mu\\left(\\set{x : \\sup_{n \\ge 1} \\tfrac{1}{n} S_n f(x) \u003e \\lambda}\\right) \\le \\int_X \\abs{f} \\, d\\mu.$$\nThe inequality $\\int_E f \\, d\\mu \\ge 0$ holds, with the same proof, for a measure-preserving map of any measure space and any integrable $f$.\n\nExample: if $f \\ge 0$ is not almost everywhere $0$, then $E = \\set{x : f(T^k(x)) \u003e 0 \\text{ for some } k \\ge 0}$, and the conclusion $\\int_E f \\, d\\mu \\ge 0$ is clear; the content of the theorem lies in functions of both signs.\n\n## Explanations\n\n### L1 human\n\nConsider the points from which the running total of $f$ along the orbit becomes positive at some time.\nThe theorem says that, on this set, the function $f$ has a nonnegative integral.\nIn other words, the points where the running sum ever gets ahead cannot, on average, be points where $f$ is negative.\n\n### L2 human\n\nThis is the key lemma in the standard proof of Birkhoff's pointwise ergodic theorem.\nThrough the maximal inequality, it controls the supremum of all Birkhoff averages at once.\nThis control is what is needed to pass from a dense class of functions to all integrable functions.\nIt plays the same role as the Hardy–Littlewood maximal inequality in the proof of the Lebesgue differentiation theorem.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "8TD2KCVH5N",
      "556WBDAHNP"
    ],
    "kind": "statement",
    "msc": [
      "37A30",
      "28D05"
    ],
    "name": "Maximal ergodic theorem",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q6795637",
      "wikipedia": "Maximal ergodic theorem"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Maximal_ergodic_theorem"
      }
    ],
    "tag": "V7PA1V3N0K",
    "uses": [
      "556WBDAHNP",
      "0NFPJVJJHX",
      "X7GTF3D98F",
      "8TD2KCVH5N"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/V7PA1V3N0K/",
  "links": [
    {
      "field": "about",
      "target": "8TD2KCVH5N"
    },
    {
      "field": "about",
      "target": "556WBDAHNP"
    },
    {
      "field": "uses",
      "target": "556WBDAHNP"
    },
    {
      "field": "uses",
      "target": "0NFPJVJJHX"
    },
    {
      "field": "uses",
      "target": "X7GTF3D98F"
    },
    {
      "field": "uses",
      "target": "8TD2KCVH5N"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/V7PA1V3N0K.md",
  "msc": [
    "37A30",
    "28D05"
  ],
  "name": "Maximal ergodic theorem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/V7P/V7PA1V3N0K.md",
  "status": null,
  "tag": "V7PA1V3N0K",
  "uri": "m2://V7PA1V3N0K",
  "url": "https://tamnd.github.io/math2/wiki/maximal-ergodic-theorem/",
  "writing": {
    "tag": "V7PA1V3N0K",
    "kind": "statement",
    "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
      }
    ]
  }
}
