Davies-Bouldin Index Calculator

Evaluate cluster compactness and separation using flexible metrics, scaling methods, detailed diagnostics, visual charts, model comparisons, and exportable machine learning reports instantly online today.

Input Mode

Paste data, enter rows manually, or upload a CSV file.
Use: cluster label | scatter value | centroid coordinates.
Leave blank to calculate distances from centroid coordinates.

Calculation Options

Use original feature units. Format each line as cluster label | coordinates. Calculated and used representatives will be compared.
Leave blank to use equal weights.

Model Comparison

Rank Model Clusters DB Index Average Scatter Minimum Separation Configuration Action
No models saved.

Formula Used

Si = (1 / ni) Σ d(x, Ai)
Rij = (Si + Sj) / Mij
DB = (1 / k) Σ maxj ≠ i(Rij)

The index compares cluster scatter against cluster separation. Each cluster uses its worst pairwise similarity. The final score averages those worst similarities.

How to Use

  1. Paste a labelled dataset or upload a CSV file.
  2. Inspect columns and select the cluster label.
  3. Select every numeric feature used for distance calculations.
  4. Choose scaling, distance, scatter, and missing-value settings.
  5. Calculate and review diagnostics, matrices, charts, and warnings.
  6. Save results when comparing alternative clustering solutions.
  7. Export the report, tables, or processed dataset.

Example Data

ClusterFeature 1Feature 2
A1.01.1
A1.30.9
B5.25.0
B4.85.4
C8.01.8
C8.41.4

Advantages and Limitations

Lower scores generally represent compact and separated clusters. The measure supports fast comparisons across matching datasets. It remains easy to calculate and explain.

The result depends on scaling and distance choices. Outliers can increase scatter and distort comparisons. Irregular cluster shapes may receive misleading scores.

No universal score guarantees a correct clustering solution. Compare models under identical preprocessing and feature selections. Review silhouette and Calinski-Harabasz scores alongside it.

Frequently Asked Questions

What does a lower score mean?

A lower score usually indicates compact, separated clusters. It reflects smaller scatter relative to centroid separation. Always compare scores under identical data preparation.

Is zero the best possible value?

Zero is the theoretical lower bound. It requires clusters with no internal scatter. Real datasets usually produce positive values.

Is there a universal good threshold?

No universal threshold fits every dataset. Feature scales and geometry strongly affect results. Relative model comparison is usually more reliable.

Should features be standardised?

Standardisation helps when feature ranges differ greatly. Otherwise large-scale features dominate calculated distances. Use domain knowledge before transforming meaningful scales.

Can the calculator use medoids?

Yes, medoids are available for robust representatives. They are actual observations inside each cluster. Standard Davies-Bouldin calculations normally use arithmetic centroids.

Why can the result become infinite?

Different clusters can share identical representatives. Their separation then equals zero. The pairwise similarity becomes infinite or undefined.

Can I compare different cluster counts?

Yes, save each completed calculation as a model. The comparison table ranks lower finite scores first. Keep preprocessing and features consistent during comparison.

Does cosine distance work with centroids?

Yes, the calculator supports cosine distance. Zero vectors require careful handling. Euclidean distance remains the conventional default choice.

Should this index be used alone?

No single internal metric captures every cluster property. Inspect visualisations and alternative validation measures too. Domain usefulness remains the final evaluation standard.

Related Calculators

K-Means Clustering CalculatorEuclidean Distance CalculatorManhattan Distance CalculatorCosine Similarity CalculatorSilhouette Score CalculatorCalinski-Harabasz Score CalculatorCluster Centroid CalculatorWithin-Cluster Sum of Squares CalculatorElbow Method CalculatorDBSCAN Neighbourhood Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.