Three 1-D clusters are , and . Using the Euclidean distance, compute the Davies–Bouldin index. Is a larger or smaller value better?
Unsupervised learning, Cluster evaluation
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can compute scatter and separation and combine them using the worst-case neighbour of each cluster.
Key idea
with , where is the average distance of points in cluster to its centroid and is the distance between the centroids. Smaller is better.
Steps
- Centroids: , , .
- Scatters: , , .
- Centroid distances: , , .
- Ratios: , , .
- Worst neighbour per cluster: , , .
- . Smaller is better, since it means compact clusters that are far apart.
Common mistakes
- Using the maximum over in the wrong place, for example averaging all instead of taking the worst neighbour.
- Reading a larger value as better. That is the direction for the silhouette, not for Davies–Bouldin.
- Using the total instead of the average distance to the centroid for (some textbooks use the root mean square, so state which scatter you use).
How long your answer should be
Half a page; 3–4 minutes.
Last checked on 4 December 2026.
Read this
- scikit-learn user guide: clustering: The Davies–Bouldin index subsection of "Clustering performance evaluation" gives the scatter, centroid separation and ratio formulas, and says a lower value is better.
Previous in Unsupervised learning: Six points have true classes (points 1–6) and a clustering puts points in cluster 1 and in cluster 2. Compute the Rand index and the purity. Why is the Rand index alone not enough?
Next in Unsupervised learning: Run DBSCAN with and (counting the point itself) on the 1-D points . Label each point as core, border or noise. What happens to the point 5?