Cluster analysis organizes data into groups based on similarities between the data points. Sometimes the data contains natural divisions that indicate the appropriate number of clusters. Other times, the data does not contain natural divisions, or the natural divisions are unknown. In such a case, you determine the optimal number of clusters to group your data.
To determine how well the data fits into a particular number of clusters, compute index values using different evaluation criteria, such as gap or silhouette. Visualize clusters by creating a dendrogram plot to display a hierarchical binary cluster tree. Optimize the leaf order to maximize the sum of the similarities between adjacent leaves. For grouped data with multiple measurements for each group, create a dendrogram plot based on the group means computed using a multivariate analysis of variance (MANOVA).
This example shows how to identify clusters by using