The Davies-Bouldin index rates a clustering by how compact clusters are relative to how far apart they are. Lower is better.
For each cluster : is the mean distance of its points to its centroid. For each pair, . The index is the mean over clusters of .
Implement davies_bouldin(X, labels) (Euclidean distances, at least 2 clusters).