Lecture: Lecture 11 - Clustering

DBSCAN

DBSCAN defines density using an Eps radius and a MinPts threshold. A core point has enough neighbours inside Eps. A border point has too few neighbours to be core but lies near a core point. A noise point is neither core nor border.

The algorithm connects nearby core points, turns each connected component into a cluster and assigns border points to neighbouring clusters. Isolated noise remains outside the clusters.

This is useful for irregular geographic hotspots and outlier detection. It struggles when clusters have very different densities or when many dimensions make distance less informative.

Validating clusters

Internal measures use only the data. Cohesion measures how close objects are within a cluster. Separation measures how distinct a cluster is from other clusters. SSE measures distance to centroids. External measures compare the clustering with known labels, using measures such as purity, entropy or Rand index. Relative measures compare two alternative clusterings.

Silhouette

For point i, a(i) is its average dissimilarity to its own cluster. b(i) is the smallest average dissimilarity to another cluster. The silhouette is:

s(i) = (b(i)-a(i)) / max(a(i), b(i))

Values near +1 indicate a good assignment. Values near 0 indicate a boundary point. Negative values suggest that the point may fit another cluster better.

Common confusion

Finding clusters in random data does not prove that meaningful structure exists. Validation helps compare methods and detect patterns that may be artefacts of noise.

Retrieval questions

What is the difference between a core and a border point? A core point has enough neighbours itself; a border point is near a core point but does not have enough neighbours to qualify.

Why can DBSCAN identify noise? It does not force every point into a cluster.

What does a negative silhouette suggest? The point may be closer to another cluster than to the cluster it was assigned to.