{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "P3A4EAA3RA"
    }
  ],
  "body": "\n## Summary\n\nLeast squares approximation replaces a function by the element of a given finite-dimensional family that is closest in a mean square sense.\nIt is the [[best approximation|7N4988HN3P]] in an [[inner product space|0QVNCJXRY3]], so it is the [[orthogonal projection|0B8KZRT28M]] onto the family.\nUnlike the uniform best approximation, it is found by solving a linear system, and an orthogonal basis makes it explicit.\nIt is the function version of the [[least squares|0BYTQ4X1HC]] method for linear systems.\n\n## Explanations\n\n### L1 human\n\nMeasure the error of an approximation by squaring the gap at each point and adding up, or integrating.\nThe least squares approximation is the choice with the smallest total squared error.\nLarge gaps count a lot, but a single bad point does not decide everything, as it does for the largest-error measure.\nFor example, the best constant approximation of $x^2$ on $[-1, 1]$ in this sense is its mean value $1/3$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "41A10",
      "65D10",
      "41A50"
    ],
    "name": "Least squares approximation",
    "same_as": {
      "wikidata": "Q6510405",
      "wikipedia": "Least-squares function approximation"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Least-squares_function_approximation"
      }
    ],
    "specializes": [
      "7N4988HN3P"
    ],
    "tag": "2QV28WYQTQ"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/2QV28WYQTQ/",
  "links": [
    {
      "field": "specializes",
      "target": "7N4988HN3P"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/2QV28WYQTQ.md",
  "msc": [
    "41A10",
    "65D10",
    "41A50"
  ],
  "name": "Least squares approximation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/2QV/2QV28WYQTQ.md",
  "status": null,
  "tag": "2QV28WYQTQ",
  "uri": "m2://2QV28WYQTQ",
  "url": "https://tamnd.github.io/math2/wiki/least-squares-approximation/",
  "writing": {
    "tag": "2QV28WYQTQ",
    "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
      }
    ]
  }
}
