{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $x_1, \\ldots, x_n$ be data points and let $d(x_i, x_j) \\ge 0$ be a dissimilarity with $d(x_i, x_i) = 0$ and $d(x_i, x_j) = d(x_j, x_i)$.\nA (hard) *clustering* of the data into $K$ clusters is a [[partition|08QMKTWF9T]] of $\\set{1, \\ldots, n}$ into $K$ non-empty sets $C_1, \\ldots, C_K$.\n*Cluster analysis* is the task of choosing a clustering in which dissimilarities within clusters are small and dissimilarities between clusters are large.\nA method of cluster analysis makes this precise.\nIt may minimise an objective function over all clusterings, or follow a rule that merges or splits clusters.\nA *hierarchical clustering* is a nested sequence of clusterings, from $n$ singletons to one cluster.\n\n## Remarks\n\nExample: the points $0, 1, 10, 11$ on the real line with $d(x, y) = \\abs{x - y}$ have the natural clustering $\\set{0, 1}$, $\\set{10, 11}$: within-cluster distances are $1$ and between-cluster distances are at least $9$.\nNon-example: the sets $\\set{0, 1}$ and $\\set{1, 10, 11}$ are not a clustering, because the point $1$ lies in two sets, so they do not form a partition.\nSoft or fuzzy clusterings relax the partition to membership weights in $[0, 1]$ that add up to $1$ for each point.\nSingle linkage merges at each step the two clusters with the smallest minimum distance; complete linkage uses the maximum distance instead.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "D9Y3A9RH6J",
    "kind": "definition",
    "msc": [
      "62H30"
    ],
    "name": "Cluster analysis",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Cluster_analysis"
      }
    ],
    "tag": "MNY9YSTZAY",
    "uses": [
      "08QMKTWF9T",
      "0VR671PHE5"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/MNY9YSTZAY/",
  "links": [
    {
      "field": "defines",
      "target": "D9Y3A9RH6J"
    },
    {
      "field": "uses",
      "target": "08QMKTWF9T"
    },
    {
      "field": "uses",
      "target": "0VR671PHE5"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/MNY9YSTZAY.md",
  "msc": [
    "62H30"
  ],
  "name": "Cluster analysis",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/MNY/MNY9YSTZAY.md",
  "status": null,
  "tag": "MNY9YSTZAY",
  "uri": "m2://MNY9YSTZAY",
  "url": "https://tamnd.github.io/math2/wiki/cluster-analysis-definition/",
  "writing": {
    "tag": "MNY9YSTZAY",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
