{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "03BY5XTNA4"
    },
    {
      "field": "uses",
      "target": "04RRB6HM00"
    },
    {
      "field": "uses",
      "target": "0CDVK9RQBH"
    },
    {
      "field": "uses",
      "target": "0F1SN93KXE"
    },
    {
      "field": "uses",
      "target": "0HB8SXHPFA"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ be an integrable real random variable on a probability space $(\\Omega, \\mathcal{F}, P)$, and let $\\mathcal{G} \\subseteq \\mathcal{F}$ be a [[σ-algebra|04WSW8T3SY]].\nA conditional expectation of $X$ given $\\mathcal{G}$ is an integrable random variable $Z$ with these two properties:\n1. $Z$ is $\\mathcal{G}$-measurable.\n2. $E[Z \\, 1_G] = E[X \\, 1_G]$ for each $G \\in \\mathcal{G}$.\nSuch a $Z$ exists, and two such random variables are equal almost surely. One writes $Z = E[X \\mid \\mathcal{G}]$.\nFor a random variable $Y$, $E[X \\mid Y] = E[X \\mid \\sigma(Y)]$, where $\\sigma(Y)$ is the σ-algebra generated by $Y$.\n\n## Remarks\n\nThe existence follows from the Radon–Nikodym theorem. For $E[X^2] \u003c \\infty$, $E[X \\mid \\mathcal{G}]$ is the orthogonal projection of $X$ onto $L^2(\\mathcal{G})$.\nFor a discrete $Y$, $E[X \\mid Y] = g(Y)$ with $g(y) = E[X \\, 1_{\\{Y = y\\}}] / P(Y = y)$ when $P(Y = y) \u003e 0$. This $g(y)$ is the expectation of $X$ under the [[conditional probability|0FJB06AD2P]] $P(\\cdot \\mid Y = y)$.\nThe conditional expectation is linear and monotone. If $W$ is $\\mathcal{G}$-measurable and $WX$ is integrable, then $E[WX \\mid \\mathcal{G}] = W \\, E[X \\mid \\mathcal{G}]$.\nIf $X$ is independent of $\\mathcal{G}$, then $E[X \\mid \\mathcal{G}] = E[X]$.\n\n## Explanations\n\n### L1 human\n\n$E[X \\mid Y]$ is the average value of $X$ when you know $Y$. It changes with $Y$, so it is a random variable.\nFor two dice with results $D_1$ and $D_2$, $E[D_1 + D_2 \\mid D_1] = D_1 + 3.5$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0TTDGTEFMN",
    "kind": "definition",
    "msc": [
      "60A10"
    ],
    "name": "Conditional expectation",
    "sources": [
      {
        "locator": "Conditional expectation with respect to a sub-σ-algebra",
        "url": "https://en.wikipedia.org/wiki/Conditional_expectation"
      }
    ],
    "tag": "0YAMJRK04E",
    "uses": [
      "0DCT0QZVQ1",
      "04WSW8T3SY",
      "0DKRR22AEQ",
      "0FJB06AD2P"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0YAMJRK04E/",
  "links": [
    {
      "field": "defines",
      "target": "0TTDGTEFMN"
    },
    {
      "field": "uses",
      "target": "0DCT0QZVQ1"
    },
    {
      "field": "uses",
      "target": "04WSW8T3SY"
    },
    {
      "field": "uses",
      "target": "0DKRR22AEQ"
    },
    {
      "field": "uses",
      "target": "0FJB06AD2P"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0YAMJRK04E.md",
  "msc": [
    "60A10"
  ],
  "name": "Conditional expectation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0YA/0YAMJRK04E.md",
  "status": null,
  "tag": "0YAMJRK04E",
  "uri": "m2://0YAMJRK04E",
  "url": "https://math2.tamnd.com/wiki/conditional-expectation-definition/",
  "writing": {
    "tag": "0YAMJRK04E",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
