Skip to content
Back to projects

ML & Data · 2026

Customer Segmentation (K-Means)

Mall Customers dataset, income vs spending score.

Model

  • K-Means with k chosen by elbow + silhouette analysis
  • Features scaled before clustering
  • Cluster profiles summarized for marketing use

Dataset

Mall Customers dataset — annual income (k$) vs spending score (1–100), 200 customers.

Results & metrics

Clusters
k = 5
Silhouette
~0.55
Method
elbow + silhouette

Deployment steps

  1. 1Scale features and run the elbow/silhouette scan
  2. 2Fit K-Means with the chosen k
  3. 3Visualize clusters and centroids with Matplotlib
  4. 4Export cluster assignments for campaigns

Tech stack

  • K-Means
  • Scikit-learn
  • Matplotlib
M

drawing ideas into systems...