Two dimensional internal cluster quality calculator
Compute internal clustering indices from two-dimensional points and their assigned integer cluster labels.
How to use this calculator
Compute internal clustering indices from two-dimensional points and their assigned integer cluster labels.
- Enter Point x coordinates, Point y coordinates, Integer cluster labels. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How the Two dimensional internal cluster quality calculator works
Compute internal clustering indices from two-dimensional points and their assigned integer cluster labels.
Inputs and units
- Point x coordinates: Comma-separated x coordinates, paired position-by-position with y values and labels.
- Point y coordinates: Comma-separated y coordinates paired with each x coordinate.
- Integer cluster labels: Integer cluster assignment paired with each point; at least two nonempty groups are needed.
Formula and method
Davies–Bouldin: mean worst cluster scatter/separation; Calinski–Harabasz: between-cluster dispersion per degree of freedom divided by within-cluster dispersion; silhouette: mean (b−a)/max(a,b)
Worked example
For points (0,0),(2,0),(8,0),(10,0) assigned to clusters 1,1,2,2, within-cluster scatter is 1 and centroid separation is 8, giving Davies–Bouldin=0.25; the CH index is 32 and mean silhouette is 0.746.
Interpreting the result
Lower Davies–Bouldin and higher Calinski–Harabasz or silhouette generally indicate more separated, compact clusters, but scores are not comparable across arbitrary datasets without context.
Assumptions and limits
Requires paired coordinate lists and at least two nonempty clusters. Internal indices favor geometric structure and can mislead for nonconvex clusters, unequal densities, or high-dimensional data.
Sources and method
- Documents internal clustering metrics and explains that their interpretation depends on the geometry and intended task. scikit-learn: clustering performance evaluation
Frequently asked questions
Which index should I maximize?
Higher Calinski–Harabasz and silhouette, and lower Davies–Bouldin, are often preferred, but choose based on the data geometry and modeling objective.
Can these scores prove that the labels are correct?
No. They evaluate geometric separation under their definitions; they do not establish domain validity or causal meaning.
How do I use the Two dimensional internal cluster quality calculator?
Enter Point x coordinates, Point y coordinates, Integer cluster labels. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Two dimensional internal cluster quality?
For points (0,0),(2,0),(8,0),(10,0) assigned to clusters 1,1,2,2, within-cluster scatter is 1 and centroid separation is 8, giving Davies–Bouldin=0.25; the CH index is 32 and mean silhouette is 0.746.
What does the Two dimensional internal cluster quality calculator calculate?
Compute internal clustering indices from two-dimensional points and their assigned integer cluster labels.
See the calculation methodology.