{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\varepsilon_1, \\dots, \\varepsilon_n$ be [[random variables|0PNRKMRC55]] with finite [[variances|0477R9PYAE]].\nThey are *homoscedastic* if $\\operatorname{Var}(\\varepsilon_1) = \\cdots = \\operatorname{Var}(\\varepsilon_n)$, and *heteroscedastic* otherwise.\n\nNow let $y_i = f(x_i) + \\varepsilon_i$ be a regression model with random regressors $x_i$.\nIts errors are *homoscedastic* if the [[conditional variance|0VGPX25NXQ]] $\\operatorname{Var}(\\varepsilon_i \\mid x_i)$ is a constant $\\sigma^2$, not depending on $x_i$.\nThey are *heteroscedastic* otherwise.\n\n## Remarks\n\nExample: let $x_i = i$ and $\\varepsilon_i \\sim N(0, \\sigma^2 x_i^2)$ for $i = 1, \\dots, n$ with $n \\ge 2$ and $\\sigma \u003e 0$.\nThen $\\operatorname{Var}(\\varepsilon_1) = \\sigma^2 \\ne 4 \\sigma^2 = \\operatorname{Var}(\\varepsilon_2)$, so the errors are heteroscedastic.\n\nNon-example: if $\\varepsilon_i = x_i u_i$ with $u_i \\sim N(0, 1)$ independent of $x_i$ and $x_i \\in \\set{-1, 1}$, then $\\operatorname{Var}(\\varepsilon_i \\mid x_i) = x_i^2 = 1$ for all $i$, so the errors are homoscedastic, although they depend on $x_i$.\n\nIn [[linear regression|41FVC4P5JB]] with heteroscedastic, uncorrelated errors, the covariance of the least squares estimator is $(X^T X)^{-1} X^T \\Omega X (X^T X)^{-1}$ with $\\Omega = \\operatorname{diag}(\\operatorname{Var}(\\varepsilon_i))$.\nThe heteroscedasticity-consistent estimator of White replaces $\\Omega$ by $\\operatorname{diag}(e_i^2)$, where $e_i$ are the residuals.\nThe spelling *heteroskedastic* is also used.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "D8VX6XQ3TT",
    "kind": "definition",
    "msc": [
      "62J05",
      "62J20"
    ],
    "name": "Heteroscedasticity",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Homoscedasticity_and_heteroscedasticity"
      }
    ],
    "tag": "3PS1JB7V95",
    "uses": [
      "0PNRKMRC55",
      "0477R9PYAE",
      "0VGPX25NXQ",
      "41FVC4P5JB"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/3PS1JB7V95/",
  "links": [
    {
      "field": "defines",
      "target": "D8VX6XQ3TT"
    },
    {
      "field": "uses",
      "target": "0PNRKMRC55"
    },
    {
      "field": "uses",
      "target": "0477R9PYAE"
    },
    {
      "field": "uses",
      "target": "0VGPX25NXQ"
    },
    {
      "field": "uses",
      "target": "41FVC4P5JB"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/3PS1JB7V95.md",
  "msc": [
    "62J05",
    "62J20"
  ],
  "name": "Heteroscedasticity",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/3PS/3PS1JB7V95.md",
  "status": null,
  "tag": "3PS1JB7V95",
  "uri": "m2://3PS1JB7V95",
  "url": "https://tamnd.github.io/math2/wiki/heteroscedasticity-definition/",
  "writing": {
    "tag": "3PS1JB7V95",
    "kind": "definition",
    "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
      }
    ]
  }
}
