{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0BYTQ4X1HC"
    }
  ],
  "body": "\n## Statement\n\nLet $V$ be an inner product space over $\\R$ or $\\C$, let $W$ be a finite-dimensional subspace of $V$, and let $v \\in V$.\nLet $P_W$ be the [[orthogonal projection|0B8KZRT28M]] onto $W$.\nThen, for all $w \\in W$,\n$$\\norm{v - P_W(v)} \\le \\norm{v - w},$$\nwith equality only for $w = P_W(v)$.\n\n## Remarks\n\nThe proof: $v - w = (v - P_W(v)) + (P_W(v) - w)$ is a sum of orthogonal vectors, so the Pythagorean theorem applies.\nThe number $\\norm{v - P_W(v)}$ is the distance from $v$ to $W$.\nThe Hilbert projection theorem gives the same result for closed convex sets in Hilbert spaces.\nThis is the basis of the method of [[least squares|0BYTQ4X1HC]].\n\n## Explanations\n\n### L1 human\n\nThe nearest point of a subspace to a given vector is the foot of the perpendicular.\nEvery other point of the subspace is farther away, by the Pythagorean theorem.\nThis turns problems of best approximation into problems of projection.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "46C05",
      "65F20"
    ],
    "name": "Orthogonal projection is the closest point",
    "role": "theorem",
    "sources": [
      {
        "locator": "Finite dimensional case",
        "url": "https://en.wikipedia.org/wiki/Hilbert_projection_theorem"
      }
    ],
    "tag": "0MCDDSCB9Z",
    "uses": [
      "0Q8HZTJC7G",
      "0KG4D8AP6G"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0MCDDSCB9Z/",
  "links": [
    {
      "field": "uses",
      "target": "0Q8HZTJC7G"
    },
    {
      "field": "uses",
      "target": "0KG4D8AP6G"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0MCDDSCB9Z.md",
  "msc": [
    "46C05",
    "65F20"
  ],
  "name": "Orthogonal projection is the closest point",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0MC/0MCDDSCB9Z.md",
  "status": null,
  "tag": "0MCDDSCB9Z",
  "uri": "m2://0MCDDSCB9Z",
  "url": "https://math2.tamnd.com/wiki/orthogonal-projection-is-the-closest-point/",
  "writing": {
    "tag": "0MCDDSCB9Z",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
