Results of this run
A full-covariance Gaussian mixture on Customer Segments (k=4, covariance=full) assigns rows by maximum responsibility. Mixture silhouette is 0.402, mixture Calinski-Harabasz is 328.0, mixture Davies-Bouldin is 1.077. Held-out segment versus responsibilities: adjusted Rand 0.659. 0 noise rows out of 200 under the mixture. Gaussian component 0 on Customer Segments holds 101 rows (annual_income 37642.4 / avg_spend 670.1). Gaussian component 1 on Customer Segments holds 6 rows (annual_income 77044.6 / avg_spend 2303.6). Gaussian component 2 on Customer Segments holds 49 rows (annual_income 55981.7 / avg_spend 1651.8). Gaussian component 3 on Customer Segments holds 44 rows (annual_income 78586.2 / avg_spend 3042.2). Component sweep: k 2 fits 0.608 with 2 groups on Customer Segments; k 3 fits 0.489 with 3 groups on Customer Segments; k 4 fits 0.402 with 4 groups on Customer Segments; k 5 fits 0.277 with 5 groups on Customer Segments; k 6 fits 0.280 with 6 groups on Customer Segments; k 7 fits 0.231 with 7 groups on Customer Segments; k 8 fits 0.213 with 8 groups on Customer Segments. Mixture scatter keeps 90.5%.

| k | Silhouette | Clusters |
|---|---|---|
| 2 | 0.608 | 2 |
| 3 | 0.489 | 3 |
| 4 | 0.402 | 4 |
| 5 | 0.277 | 5 |
| 6 | 0.280 | 6 |
| 7 | 0.231 | 7 |
| 8 | 0.213 | 8 |
from sklearn.mixture import GaussianMixture
from sklearn.preprocessing import StandardScaler
Xs = StandardScaler().fit_transform(X)
labels = GaussianMixture(n_components=4, random_state=42).fit(Xs).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.
