{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $k$ be a positive integer, and let $K$ be a field in which $k \\neq 0$. Let $A$ be an [[affine space|09XNAPTJQ7]] over a $K$-vector space, and let $p_1, \\dots, p_k$ be points of $A$.\nThe centroid of $p_1, \\dots, p_k$ is the [[affine combination|0KJH6SRFZK]] with all weights equal to $\\frac{1}{k}$:\n$$G = \\frac{1}{k} p_1 + \\frac{1}{k} p_2 + \\dots + \\frac{1}{k} p_k.$$\nThe centroid of a triangle $ABC$ is the centroid $G = \\frac{1}{3}(A + B + C)$ of its vertices.\n\n## Remarks\n\nIn $\\mathbb{R}^n$, the coordinates of the centroid are the means of the coordinates of the points.\nIn $\\mathbb{R}^n$, the centroid is the point $x$ that makes the sum $\\sum_i \\|x - p_i\\|^2$ smallest.\nThe centroid of two points is their [[midpoint|0S706JBZBG]].\nThe centroid of a triangle is also the centre of mass of a uniform triangular plate.\n\n## Explanations\n\n### L1 human\n\nThe centroid is the average of the points. For the triangle with the vertices $(0, 0)$, $(6, 0)$ and $(0, 3)$, the centroid is $\\left(\\frac{0 + 6 + 0}{3}, \\frac{0 + 0 + 3}{3}\\right) = (2, 1)$. A cardboard triangle balances on a pin at this point.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "defines": "0X7EEWES5G",
    "kind": "definition",
    "msc": [
      "51M04"
    ],
    "name": "Centroid",
    "sources": [
      {
        "locator": "Of a finite set of points",
        "url": "https://en.wikipedia.org/wiki/Centroid"
      }
    ],
    "tag": "0Y5RHNRKJZ",
    "uses": [
      "0KJH6SRFZK"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0Y5RHNRKJZ/",
  "links": [
    {
      "field": "defines",
      "target": "0X7EEWES5G"
    },
    {
      "field": "uses",
      "target": "0KJH6SRFZK"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0Y5RHNRKJZ.md",
  "msc": [
    "51M04"
  ],
  "name": "Centroid",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0Y5/0Y5RHNRKJZ.md",
  "status": null,
  "tag": "0Y5RHNRKJZ",
  "uri": "m2://0Y5RHNRKJZ",
  "url": "https://math2.tamnd.com/wiki/centroid-definition/",
  "writing": {
    "tag": "0Y5RHNRKJZ",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
