{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "2H0J4P4NQF"
    },
    {
      "field": "uses",
      "target": "9HWTPQHHZK"
    },
    {
      "field": "defines",
      "target": "NA5X6JVK5J"
    }
  ],
  "body": "\n## Summary\n\nWeighted least squares fits a regression model by minimising a sum of squared residuals in which each observation has its own positive weight.\nIt is the case of [[generalized least squares|P142WXJCF3]] in which the errors are uncorrelated but [[heteroscedastic|D8VX6XQ3TT]].\nWith weights inversely proportional to the error variances, it gives the best linear unbiased estimator.\nIt is also the inner step of iteratively reweighted least squares, used to fit [[generalized linear models|K6C48KMRKC]] and robust regressions.\n\n## Explanations\n\n### L1 human\n\nSome data points are more precise than others.\nWeighted least squares lets the precise points pull harder on the fitted line.\nEach squared residual is multiplied by a weight, and a point with weight $2$ counts as much as two copies of the same point.\nFor a model that is just a constant, weighted least squares gives the weighted average $\\sum_i w_i y_i / \\sum_i w_i$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62J05"
    ],
    "name": "Weighted least squares",
    "same_as": {
      "wikidata": "Q20025290",
      "wikipedia": "Weighted least squares"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Weighted_least_squares"
      }
    ],
    "specializes": [
      "P142WXJCF3"
    ],
    "tag": "H5CGZHBR58"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/H5CGZHBR58/",
  "links": [
    {
      "field": "specializes",
      "target": "P142WXJCF3"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/H5CGZHBR58.md",
  "msc": [
    "62J05"
  ],
  "name": "Weighted least squares",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/H5C/H5CGZHBR58.md",
  "status": null,
  "tag": "H5CGZHBR58",
  "uri": "m2://H5CGZHBR58",
  "url": "https://tamnd.github.io/math2/wiki/weighted-least-squares/",
  "writing": {
    "tag": "H5CGZHBR58",
    "kind": "concept",
    "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
      }
    ]
  }
}
