Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Davies-Bouldin index

scikit-learn and back-of-envelop calculations

Example #1

DB score calculated using scikit-learn: 1.0
DB score calculated semi-automatically: 1.0

Manual back-of-envelop calculation

si = average distance between each point of cluster i and cluster centroid

dij = distance between cluster centroids i and j

Rij = (si + sj) / dij

s0, s1 = 1, 1

dij = 2

Rij = 1

DB = (1 + 1)/2 = 1

Example #2

DB score calculated using scikit-learn: 1.2835089469531387
DB score calculated semi-automatically: 1.2835089469531387

Two concentric circles

<Figure size 1080x1080 with 9 Axes>
<Figure size 720x720 with 4 Axes>