HDBSCAN Clustering on Customer Segments

HDBSCAN Clustering on Customer Segments produced 2 clusters and 0 noise rows (silhouette 0.608, adjusted Rand 0.330 against held-out segment).

Results of this run

HDBSCAN stability on Customer Segments extracts clusters at minClusterSize 5. Stability silhouette is 0.608, stability Calinski-Harabasz is 441.9, stability Davies-Bouldin is 0.495. Held-out segment versus stable clusters: adjusted Rand 0.330. 0 noise rows out of 200 fell out of every stable branch. Stable cluster 0 on Customer Segments holds 50 rows (annual_income 78401.2 / avg_spend 2953.6). Stable cluster 1 on Customer Segments holds 150 rows (annual_income 43633.2 / avg_spend 990.8). min_cluster_size sweep: min_cluster_size 5 extracts 0.608 with 2 groups on Customer Segments; min_cluster_size 8 extracts 0.608 with 2 groups on Customer Segments; min_cluster_size 15 extracts 0.609 with 2 groups on Customer Segments. Stability plot keeps 90.5% of variance.

HDBSCAN Clustering on Customer Segments: PCA plot of 2 clusters and 0 noise rows
Each point is one row. Gray points are noise. Computed 2026-11-02 with scikit-learn 1.4.2.
min_cluster_sizeSilhouetteClusters
50.6082
80.6082
150.6092
# Product HDBSCAN: min_cluster_size=5, min_samples=5, metric=euclidean.
# Features are StandardScaler-transformed before the fit.

Who, how, and why

Method: StandardScaler, drop constant columns. Code version 3e4afc4b4352 (scripts/seo/build_explore_artifacts.py). scikit-learn 1.4.2. Seed 42. Dataset source: Synthetic customer records bundled with this site. License: Generated for demos; no external license. The segment column was held out of the fit and used only for the adjusted Rand score.

Results computed on 2026-11-02.

The results paragraph is filled from these numbers by a fixed template in the site code, so the scores can be checked against the same dataset in the tool.

Maintainer: nikolaou1982.

Contact: nick1982100@gmail.com.

How HDBSCAN Clustering Works

HDBSCAN extends DBSCAN to handle varying-density clusters. It builds a hierarchy and extracts the most stable clusters automatically.

About the Customer Segments Dataset

200 synthetic customer records with spending, income, and loyalty data. Perfect for market segmentation with clustering. Source: Synthetic customer records bundled with this site. License: Generated for demos; no external license.

Samples. 200

Features. 5

Type. Numeric

Category. Density-based

When to Use HDBSCAN Clustering

HDBSCAN Clustering belongs to the Density-based family of clustering algorithms. These methods identify clusters as regions of high point density separated by regions of low density. They can discover clusters of arbitrary shape.

Related Examples

Ready to try HDBSCAN Clustering on your own data?

Upload a CSV and get instant results — free to start.