{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $K$ be a field and let $A$ be an [[affine space|09XNAPTJQ7]] over a vector space $V$ over $K$.\nLet $p_1, \\dots, p_k$ be points of $A$, and let $w_1, \\dots, w_k$ be elements of $K$ with $w_1 + \\dots + w_k = 1$.\nThe affine combination of the points $p_i$ with the weights $w_i$ is the point\n$$\\sum_{i=1}^{k} w_i p_i = o + \\sum_{i=1}^{k} w_i (p_i - o),$$\nwhere $o$ is a point of $A$. The result does not depend on the choice of $o$, because the weights add up to 1.\n\n## Remarks\n\nIn a vector space with $o = 0$, the affine combination is the linear combination $w_1 p_1 + \\dots + w_k p_k$.\nThe [[midpoint|0S706JBZBG]] of $p$ and $q$ is the affine combination with the weights $\\frac{1}{2}$ and $\\frac{1}{2}$.\nAffine maps keep affine combinations: $f\\left(\\sum_i w_i p_i\\right) = \\sum_i w_i f(p_i)$.\nAn affine combination with all weights $w_i \\geq 0$, over the real numbers, is a convex combination.\n\n## Explanations\n\n### L1 human\n\nYou cannot add two points of the plane in a sensible way without an origin. But a weighted average of points, with weights that sum to 1, gives the same point for each choice of origin. For example, $\\frac{1}{3}A + \\frac{1}{3}B + \\frac{1}{3}C$ is the centroid of the triangle $ABC$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0KJH6SRFZK",
    "kind": "definition",
    "msc": [
      "51N10"
    ],
    "name": "Affine combination",
    "sources": [
      {
        "locator": "Affine combinations and barycenter",
        "url": "https://en.wikipedia.org/wiki/Affine_space"
      }
    ],
    "tag": "06HYY6DK6X",
    "uses": [
      "09XNAPTJQ7"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/06HYY6DK6X/",
  "links": [
    {
      "field": "defines",
      "target": "0KJH6SRFZK"
    },
    {
      "field": "uses",
      "target": "09XNAPTJQ7"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/06HYY6DK6X.md",
  "msc": [
    "51N10"
  ],
  "name": "Affine combination",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/06H/06HYY6DK6X.md",
  "status": null,
  "tag": "06HYY6DK6X",
  "uri": "m2://06HYY6DK6X",
  "url": "https://math2.tamnd.com/wiki/affine-combination-definition/",
  "writing": {
    "tag": "06HYY6DK6X",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
