Metraipolis › archive › dc_84166e723753
K-means clustering — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/K-means_clustering
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-07T13:49:06.237Z
- SHA-256 of the archived text
95a6083391f9e4409c8f619e7f4b9dd41648618c55141aacf7a1572320f38e88- Stable URL of this page
https://metraipolis.com/documento/dc_84166e723753
How to cite
K-means clustering — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/K-means_clustering (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_84166e723753 (Metraipolis archive dc_84166e723753, sha256 95a6083391f9e4409c8f619e7f4b9dd41648618c55141aacf7a1572320f38e88)
BibTeX
@misc{dc84166e723753,
title = {K-means clustering — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/K-means_clustering},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_84166e723753; sha256 95a6083391f9e4409c8f619e7f4b9dd41648618c55141aacf7a1572320f38e88},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/K-means_clustering. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
k-means clustering is a method of vector quantization, originally from signal processing, that aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean (cluster centers or cluster centroid). This results in a partitioning of the data space into Voronoi cells. k-means clustering minimizes within-cluster variances (squared Euclidean distances), but not regular Euclidean distances, which would be the more difficult Weber problem: the mean optimizes squared errors, whereas only the geometric median minimizes Euclidean distances. For instance, better Euclidean solutions can be found using k-medians and k-medoids. The problem is computationally difficult (NP-hard); however, efficient heuristic algorithms converge quickly to a local optimum. These are usually similar to the expectation–maximization algorithm for mixtures of Gaussian distributions via an iterative refinement approach employed by both k-means and Gaussian mixture modeling. They both use cluster centers to model the data; however, k-means clustering tends to find clusters of comparable spatial extent, while the Gaussian mixture model allows clusters to have different shapes. The unsupervised k-means algorithm has a loose relationship to the k-nearest neighbor classifier, a popular supervised machine learning technique for classification that is often confused with k-means due to the name. Applying the 1-nearest neighbor classifier to the cluster centers obtained by k-means classifies new data into the existing clusters. This is known as nearest centroid classifier or Rocchio algorithm. Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»). Fonte: Wikipedia in inglese, voce «K-means clustering» — https://en.wikipedia.org/wiki/K-means_clustering Wikidata Q310401 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q310401 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/K-means_clustering?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1373673623, consultata il 2026-10-07T13:20:46.346Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 2cf2587b270db7aa89eef7e3ba78478e48996682fc175d00332a0673727241c6