Results of this run
DBSCAN density on Customer Segments uses eps 0.988557 and minSamples 5. Density silhouette is 0.608 (undefined when fewer than two dense regions). Density Calinski-Harabasz is 441.9. Density Davies-Bouldin is 0.495. Held-out segment versus dense regions: adjusted Rand 0.330. 0 noise rows out of 200 failed the core-point rule. Dense region 0 on Customer Segments holds 150 rows (annual_income 43633.2 / avg_spend 990.8). Dense region 1 on Customer Segments holds 50 rows (annual_income 78401.2 / avg_spend 2953.6). minSamples sweep: min_samples 3 yields 0.609 with 2 groups on Customer Segments; min_samples 5 yields 0.608 with 2 groups on Customer Segments; min_samples 8 yields 0.608 with 2 groups on Customer Segments. Density scatter keeps 90.5% via PCA.

| min_samples | Silhouette | Clusters |
|---|---|---|
| 3 | 0.609 | 2 |
| 5 | 0.608 | 2 |
| 8 | 0.608 | 2 |
from sklearn.cluster import DBSCAN
from sklearn.preprocessing import StandardScaler
Xs = StandardScaler().fit_transform(X)
labels = DBSCAN(eps=0.988557, min_samples=5).fit_predict(Xs)
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.
