{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0V0778DCW9"
    }
  ],
  "body": "\n## Statement\n\nLet $X_1, \\dots, X_n$ be real random variables on one probability space with $E[X_i^2] \u003c \\infty$ for each $i$. Then\n$$\\operatorname{Var}\\left(\\sum_{i=1}^n X_i\\right) = \\sum_{i=1}^n \\operatorname{Var}(X_i) + 2 \\sum_{1 \\le i \u003c j \\le n} \\operatorname{Cov}(X_i, X_j).$$\nIn particular, $\\operatorname{Var}(X + Y) = \\operatorname{Var}(X) + \\operatorname{Var}(Y) + 2 \\operatorname{Cov}(X, Y)$.\n\n## Remarks\n\nProof: $\\operatorname{Var}(S) = \\operatorname{Cov}(S, S)$ for $S = \\sum_i X_i$. Expand by the bilinearity of the [[covariance|0DJ8W3HP2D]]: $\\operatorname{Cov}(S, S) = \\sum_{i, j} \\operatorname{Cov}(X_i, X_j)$.\nAlso $\\operatorname{Var}(X - Y) = \\operatorname{Var}(X) + \\operatorname{Var}(Y) - 2 \\operatorname{Cov}(X, Y)$.\nMore generally, $\\operatorname{Var}\\left(\\sum_i a_i X_i\\right) = \\sum_{i, j} a_i a_j \\operatorname{Cov}(X_i, X_j)$ for real $a_i$.\n\n## Explanations\n\n### L1 human\n\nThe spread of a sum is the sum of the spreads plus a correction for how the terms move together.\nIf the terms tend to move in the same direction, the sum spreads more. If they tend to compensate each other, it spreads less.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "60A05"
    ],
    "name": "Variance of a sum",
    "role": "proposition",
    "sources": [
      {
        "locator": "Sum of correlated variables",
        "url": "https://en.wikipedia.org/wiki/Variance"
      }
    ],
    "tag": "0D86GJEZ39",
    "uses": [
      "007QED3E0Y",
      "0DJ8W3HP2D",
      "0P7PTC8DDE"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0D86GJEZ39/",
  "links": [
    {
      "field": "uses",
      "target": "007QED3E0Y"
    },
    {
      "field": "uses",
      "target": "0DJ8W3HP2D"
    },
    {
      "field": "uses",
      "target": "0P7PTC8DDE"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0D86GJEZ39.md",
  "msc": [
    "60A05"
  ],
  "name": "Variance of a sum",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0D8/0D86GJEZ39.md",
  "status": null,
  "tag": "0D86GJEZ39",
  "uri": "m2://0D86GJEZ39",
  "url": "https://math2.tamnd.com/wiki/variance-of-a-sum/",
  "writing": {
    "tag": "0D86GJEZ39",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
