# K-means

You can use the k-means clustering algorithm to cluster data points into k different groups based on similarities between the data points.

You can use the *k-means* clustering algorithm to cluster data points into *k* different groups based on similarities between the data points.

k-means partitions *n* observations into *k* clusters. Through this partitioning, k-means assigns each observation to the cluster with the nearest mean, or *cluster center*.

For a complete example of how to use k-means on a table in Vertica, see Clustering data using k-means .