CLASSICAL ML · INTERVIEW QUESTION
What is cluster analysis and what are its main applications?
🟢 beginner · Unsupervised Learning
Hint: Grouping similar data points without labels.
Answer
Cluster analysis partitions data into groups (clusters) where intra-cluster similarity is high and inter-cluster similarity is low — all without labeled data.
Applications:
-
Customer segmentation: group customers by behavior for targeted marketing.
-
Anomaly detection: points far from any cluster are anomalies.
-
Image segmentation: group pixels by color/texture.
-
Document clustering: organize text corpora by topic.
-
Gene expression analysis: find co-expressed genes.
-
Recommendation: cluster users for collaborative filtering.
Evaluation: internal metrics (silhouette score, Calinski-Harabasz) when no ground truth, external metrics (ARI, NMI) when labels exist.
Key challenge: there's no single 'correct' clustering — depends on the similarity measure and granularity desired.
Related questions
- Compare K-Means, DBSCAN, and hierarchical clustering. When would you use each?
- How do you determine the optimal number of clusters?
- Explain Gaussian Mixture Models (GMM). How do they differ from K-Means?
- What is overfitting? How do you detect and prevent it?
- Explain the difference between bagging and boosting. When would you use each?