{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\hat{\\theta}$ be an [[estimator|0TTNRP5PFQ]] of a real parameter $\\theta$, with $E_\\theta[\\hat{\\theta}^2] \u003c \\infty$, where $E_\\theta$ is the expectation when $\\theta$ is the true parameter.\nThe mean squared error of $\\hat{\\theta}$ at $\\theta$ is\n$$\\operatorname{MSE}_\\theta(\\hat{\\theta}) = E_\\theta\\left[(\\hat{\\theta} - \\theta)^2\\right].$$\n\n## Remarks\n\nIt decomposes as $\\operatorname{MSE}_\\theta(\\hat{\\theta}) = \\operatorname{Var}_\\theta(\\hat{\\theta}) + \\operatorname{Bias}_\\theta(\\hat{\\theta})^2$, with the [[bias|01BD2TFFP4]] $\\operatorname{Bias}_\\theta(\\hat{\\theta}) = E_\\theta[\\hat{\\theta}] - \\theta$.\nFor an unbiased estimator, the mean squared error is the [[variance|007QED3E0Y]].\nFor the sample mean of $n$ i.i.d. variables with variance $\\sigma^2$, the mean squared error is $\\sigma^2/n$.\nFor $n$ predictions $\\hat{y}_i$ of observed values $y_i$, one also calls $\\frac{1}{n}\\sum_i (y_i - \\hat{y}_i)^2$ the mean squared error.\n\n## Explanations\n\n### L1 human\n\nThe mean squared error measures how far, on average, an estimator is from the truth.\nIt is large if the estimator spreads widely, or if it is systematically off, or both.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "05NZ1HHQMV",
    "kind": "definition",
    "msc": [
      "62F10"
    ],
    "name": "Mean squared error",
    "sources": [
      {
        "locator": "Estimator",
        "url": "https://en.wikipedia.org/wiki/Mean_squared_error"
      }
    ],
    "tag": "0V4VSCBXP3",
    "uses": [
      "0TTNRP5PFQ",
      "01BD2TFFP4",
      "007QED3E0Y",
      "0DCT0QZVQ1"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0V4VSCBXP3/",
  "links": [
    {
      "field": "defines",
      "target": "05NZ1HHQMV"
    },
    {
      "field": "uses",
      "target": "0TTNRP5PFQ"
    },
    {
      "field": "uses",
      "target": "01BD2TFFP4"
    },
    {
      "field": "uses",
      "target": "007QED3E0Y"
    },
    {
      "field": "uses",
      "target": "0DCT0QZVQ1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0V4VSCBXP3.md",
  "msc": [
    "62F10"
  ],
  "name": "Mean squared error",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0V4/0V4VSCBXP3.md",
  "status": null,
  "tag": "0V4VSCBXP3",
  "uri": "m2://0V4VSCBXP3",
  "url": "https://math2.tamnd.com/wiki/mean-squared-error-definition/",
  "writing": {
    "tag": "0V4VSCBXP3",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
