The elbow method is a heuristic in determining the number of clusters in a data set. We plot the K-mean score (% of variance explained) against the number of clusters and picking the “elbow of the curve” as the number to use.

Pick the that maximises where is the cost of clustering with clusters. are ruled out as they result in trivial clusters.