{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "02CBHV4ZZQ"
    },
    {
      "field": "uses",
      "target": "03PGHKAJG3"
    },
    {
      "field": "uses",
      "target": "04CTY6XYWN"
    },
    {
      "field": "uses",
      "target": "077GN9HDR6"
    },
    {
      "field": "uses",
      "target": "0C6J8BQXVR"
    },
    {
      "field": "uses",
      "target": "0D86GJEZ39"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ and $Y$ be real random variables on one probability space with $E[X^2] \u003c \\infty$ and $E[Y^2] \u003c \\infty$.\nThe covariance of $X$ and $Y$ is\n$$\\operatorname{Cov}(X, Y) = E\\left[(X - E[X]) \\, (Y - E[Y])\\right].$$\n$X$ and $Y$ are uncorrelated if $\\operatorname{Cov}(X, Y) = 0$.\n\n## Remarks\n\nAn equivalent formula is $\\operatorname{Cov}(X, Y) = E[XY] - E[X] \\, E[Y]$.\nThe covariance of $X$ with itself is the [[variance|007QED3E0Y]]: $\\operatorname{Cov}(X, X) = \\operatorname{Var}(X)$.\nThe covariance is symmetric and bilinear: $\\operatorname{Cov}(aX + bY, Z) = a \\operatorname{Cov}(X, Z) + b \\operatorname{Cov}(Y, Z)$. It does not change when one adds constants to $X$ or $Y$.\nThe Cauchy–Schwarz inequality gives $|\\operatorname{Cov}(X, Y)| \\le \\sigma_X \\sigma_Y$.\n\n## Explanations\n\n### L1 human\n\nCovariance says whether two quantities tend to move in the same direction.\nHeight and weight of people have positive covariance. The size of a covariance depends on the units, so one often uses the correlation coefficient to compare.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0KBFAWYRTE",
    "kind": "definition",
    "msc": [
      "60A05"
    ],
    "name": "Covariance",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Covariance"
      }
    ],
    "tag": "0DJ8W3HP2D",
    "uses": [
      "0DCT0QZVQ1",
      "007QED3E0Y"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0DJ8W3HP2D/",
  "links": [
    {
      "field": "defines",
      "target": "0KBFAWYRTE"
    },
    {
      "field": "uses",
      "target": "0DCT0QZVQ1"
    },
    {
      "field": "uses",
      "target": "007QED3E0Y"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0DJ8W3HP2D.md",
  "msc": [
    "60A05"
  ],
  "name": "Covariance",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0DJ/0DJ8W3HP2D.md",
  "status": null,
  "tag": "0DJ8W3HP2D",
  "uri": "m2://0DJ8W3HP2D",
  "url": "https://math2.tamnd.com/wiki/covariance-definition/",
  "writing": {
    "tag": "0DJ8W3HP2D",
    "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
      }
    ]
  }
}
