{
  "aliases": [
    "expectation-is-linear"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "04CYN5G6RY"
    },
    {
      "field": "uses",
      "target": "0D86GJEZ39"
    },
    {
      "field": "uses",
      "target": "0KVQ9D86BM"
    },
    {
      "field": "uses",
      "target": "0MXCP7MXWJ"
    },
    {
      "field": "uses",
      "target": "0NMF95YK8W"
    },
    {
      "field": "uses",
      "target": "0PVCTCKD3C"
    },
    {
      "field": "uses",
      "target": "0QNRBHWV35"
    }
  ],
  "body": "\n## Statement\n\nLet $X$ and $Y$ be integrable real random variables on one probability space, and let $a, b \\in \\mathbb{R}$.\nThen $aX + bY$ is integrable and\n$$E[aX + bY] = a \\, E[X] + b \\, E[Y].$$\n\n## Remarks\n\nThe statement is the linearity of the Lebesgue integral. It holds for all integrable $X$ and $Y$, also when they are not independent.\nBy induction, $E[X_1 + \\dots + X_n] = E[X_1] + \\dots + E[X_n]$.\nA standard use is the method of indicators. If $N$ counts how many of the events $A_1, \\dots, A_n$ occur, then $N = \\sum_i 1_{A_i}$ and $E[N] = \\sum_i P(A_i)$.\nFor nonnegative random variables, additivity $E[X + Y] = E[X] + E[Y]$ holds without integrability, in $[0, \\infty]$.\n\n## Explanations\n\n### L1 human\n\nThe average of a sum is the sum of the averages, always.\nIf a random permutation of $n$ letters goes into $n$ envelopes, each letter is in its own envelope with probability $1/n$. So the expected number of correct letters is $n \\cdot 1/n = 1$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "expectation-is-linear"
    ],
    "kind": "statement",
    "msc": [
      "60A05"
    ],
    "name": "Linearity of expectation",
    "role": "theorem",
    "sources": [
      {
        "locator": "Properties",
        "url": "https://en.wikipedia.org/wiki/Expected_value"
      }
    ],
    "tag": "0P7PTC8DDE",
    "uses": [
      "0DCT0QZVQ1"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0P7PTC8DDE/",
  "links": [
    {
      "field": "uses",
      "target": "0DCT0QZVQ1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0P7PTC8DDE.md",
  "msc": [
    "60A05"
  ],
  "name": "Linearity of expectation",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0P7/0P7PTC8DDE.md",
  "status": null,
  "tag": "0P7PTC8DDE",
  "uri": "m2://0P7PTC8DDE",
  "url": "https://math2.tamnd.com/wiki/linearity-of-expectation/",
  "writing": {
    "tag": "0P7PTC8DDE",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
