DM 352 Syllabus | DM 552 Syllabus
last updated 23-Jun-2021
For supervised classification we have a variety of measures to evaluate how good our model is
For cluster analysis, the analogous question is how to evaluate the “goodness” of the resulting clusters?
But “clusters are in the eye of the beholder”!
Then why do we want to evaluate them?
For 2, 3, and 4, we can further distinguish whether we want to evaluate the entire clustering or just individual clusters.
Numerical measures that are applied to judge various aspects of cluster validity, are classified into the following three types.
External Index: Used to measure the extent to which cluster labels match externally supplied class labels.
Internal Index: Used to measure the goodness of a clustering structure without respect to external information.
Sum of Squared Error (SSE)
Relative Index: Used to compare two different clusterings or clusters.
Often an external or internal index is used for this function, e.g., SSE or entropy
Sometimes these are referred to as criteria instead of indices
Most common measure is Sum of Squared Error (SSE)
For each point, the error is the distance to the nearest cluster
To get SSE, we square these errors and sum them.
x is a data point in cluster Ci and mi is the representative point for cluster Ci
- can show that mi corresponds to the center (mean) of the cluster
Given two sets of clusters, we prefer the one with the smallest error
One easy way to reduce SSE is to increase K, the number of clusters
- A good clustering with smaller K can have a lower SSE than a poor clustering with higher K
Compute the correlation between the two matrices
High correlation indicates that points that belong to the same cluster are close to each other.
Not a good measure for some density or contiguity based clusters.
Correlation of ideal similarity and proximity matrices for the K-means clusterings of the following two data sets.
Order the similarity matrix with respect to cluster labels and inspect visually
Cluster with random data not so crisp.
Clusters in more complicated figures aren’t well separated.
Internal Index: Used to measure the goodness of a clustering structure without respect to external information -- SSE
SSE is good for comparing two clusterings or two clusters (average SSE).
SSE can also be used to estimate the number of clusters
Look for the knee bend to determine what might be the "best" number of clusters.
Cluster Cohesion: Measures how closely related are objects in a cluster
Cluster Separation: Measure how distinct or well-separated a cluster is from other clusters
Cohesion is measured by the within-cluster sum of squares =
Separation is measured by the between-cluster sum of squares =
Where |Ci| is the size of cluster i and m is the mean of the means.
Note that BSS+ WSS = constant
A proximity graph based approach can also be used for cohesion and separation.