This was one question but it kept branching.
Structure your answer by first grouping clustering algorithms into families (centroid-based, density-based, hierarchical, and model-based), then compare them across the requested dimensions using a consistent framework. Use a concrete example like Spotify's music recommendation or user segmentation to ground the trade-offs, and emphasize how you would choose an approach based on data characteristics and business goals.
Pro tip: Always tie the comparison back to the evaluation challenge: since labels are rare, mention how you'd use internal metrics (silhouette, Davies-Bouldin) combined with domain-specific validation (e.g., A/B tests for playlist clustering). This shows you understand that clustering is often a means to an end, not the final goal.
Briefly introduce the main families: centroid-based (K-means, K-medoids), density-based (DBSCAN, HDBSCAN), hierarchical (agglomerative, divisive), and model-based (Gaussian Mixture Models, spectral clustering). This sets the stage for structured comparison.
For each family, explain the underlying intuition (e.g., centroids minimize variance, density connects high-density regions) and the shapes they assume (spherical, arbitrary, nested). Highlight how these assumptions affect performance on real-world data.
Detail key hyperparameters (e.g., k for K-means, eps and minPts for DBSCAN, linkage for hierarchical) and methods to select them (elbow, silhouette, domain knowledge). Compare computational complexity and scalability to large datasets, noting which algorithms can handle millions of points.
Identify common failure modes (e.g., K-means fails on non-convex clusters, DBSCAN struggles with varying densities). Explain internal evaluation metrics (silhouette, Calinski-Harabasz) and how to validate clusters using domain-specific proxies or downstream tasks.
Discuss the curse of dimensionality and techniques like PCA, UMAP, or feature hashing for dimensionality reduction. For sparse data (e.g., text), mention using cosine distance or specialized algorithms like spherical K-means, and the importance of scaling.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.