{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "2H0J4P4NQF"
    }
  ],
  "body": "\n## Summary\n\nLocal regression estimates a regression function $m(x) = E[Y \\mid X = x]$ by fitting a low-degree polynomial near each point $x$.\nThe fit at $x$ is a [[weighted least squares|H5CGZHBR58]] fit.\nData points close to $x$ get large weights, and distant points get small or zero weights.\nIt needs no global formula for $m$, so it is a basic tool of [[nonparametric statistics|VFAJ1EG3X5]].\nThe methods LOESS and LOWESS are popular versions of it.\n\n## Explanations\n\n### L1 human\n\nImagine a cloud of points that follows a curved trend.\nA single straight line cannot follow the curve, but over a short window the curve looks almost straight.\nSo at each point $x$ one draws a line through the nearby data only, and keeps the height of that line at $x$.\nSliding the window along the axis traces a smooth curve through the cloud.\nFor example, with a window of width $1$ around $x = 3$, only data with $X$ between $2$ and $4$ matter for the estimate at $3$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62G08",
      "62J02"
    ],
    "name": "Local regression",
    "same_as": {
      "wikidata": "Q6664520",
      "wikipedia": "Local regression"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Local_regression"
      }
    ],
    "tag": "TQFFFSH0BQ"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/TQFFFSH0BQ/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/TQFFFSH0BQ.md",
  "msc": [
    "62G08",
    "62J02"
  ],
  "name": "Local regression",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/TQF/TQFFFSH0BQ.md",
  "status": null,
  "tag": "TQFFFSH0BQ",
  "uri": "m2://TQFFFSH0BQ",
  "url": "https://tamnd.github.io/math2/wiki/local-regression/",
  "writing": {
    "tag": "TQFFFSH0BQ",
    "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
      }
    ]
  }
}
