DSE Unsupervised Learning: Clustering 5 — Questions and Answers
Question 1: What is the primary purpose of the 'gap statistic' method in clustering?
- To measure the gap between cluster centroids
- To compare within-cluster dispersion to a null reference distribution to find optimal k (Correct answer)
- To fill missing values before clustering
- To detect outliers that fall between clusters
Correct answer: To compare within-cluster dispersion to a null reference distribution to find optimal k
The gap statistic compares WCSS of the actual clustering to that expected under a null uniform distribution, with the optimal k being where the gap is maximized.
Question 2: In the context of clustering high-dimensional data, what is the 'curse of dimensionality' problem?
- Algorithms run slower in high dimensions
- Distance metrics become less meaningful as all pairwise distances converge (Correct answer)
- Cluster labels become unreliable in high dimensions
- Silhouette scores cannot be computed above 100 dimensions
Correct answer: Distance metrics become less meaningful as all pairwise distances converge
As dimensionality increases, the ratio of maximum to minimum pairwise distances approaches 1, making distance-based clustering unreliable since all points appear equally far apart.
Question 3: Which subspace clustering technique projects data into lower dimensions before clustering to mitigate high-dimensionality issues?
- Applying PCA before K-Means (Correct answer)
- Using DBSCAN with cosine distance
- Increasing min_samples in DBSCAN
- Using complete linkage hierarchical clustering
Correct answer: Applying PCA before K-Means
Applying PCA before K-Means reduces noise dimensions and retains variance-rich components, making distance computations more meaningful in the reduced space.
Question 4: When using Fuzzy C-Means clustering, what does the fuzziness parameter 'm' control?
- The number of clusters
- The degree of overlap between cluster memberships (Correct answer)
- The maximum number of iterations
- The distance metric used
Correct answer: The degree of overlap between cluster memberships
Higher values of m (m > 1) increase fuzziness so memberships are spread more evenly across clusters; as m → 1, Fuzzy C-Means approaches hard K-Means partitioning.
Question 5: A retail analyst clusters purchase transactions and finds that scaling features dramatically changes cluster assignments. Why does this happen with K-Means?
- K-Means is sensitive to feature scale because it uses Euclidean distance (Correct answer)
- K-Means uses gradient descent which depends on learning rate
- Scaling changes the number of clusters automatically
- K-Means centroids move randomly when features are scaled
Correct answer: K-Means is sensitive to feature scale because it uses Euclidean distance
Euclidean distance gives more weight to features with larger numeric ranges, so an unscaled feature like 'transaction amount in dollars' dominates 'number of items bought'.
Question 6: What is the main difference between divisive and agglomerative hierarchical clustering?
- Divisive clustering uses Euclidean distance; agglomerative uses cosine similarity
- Divisive starts with one cluster and splits; agglomerative starts with n clusters and merges (Correct answer)
- Divisive is faster; agglomerative produces better results
- Divisive requires specifying k upfront; agglomerative does not
Correct answer: Divisive starts with one cluster and splits; agglomerative starts with n clusters and merges
Agglomerative (bottom-up) begins with each point as its own cluster and merges, while divisive (top-down) begins with all points in one cluster and recursively splits.
Question 7: In which scenario would Gaussian Mixture Models be preferred over K-Means for customer segmentation?
- When clusters have equal size and spherical shape
- When interpretability of hard assignments is the top priority
- When customers can belong to multiple segments with varying degrees (Correct answer)
- When the dataset has more than 1 million records
Correct answer: When customers can belong to multiple segments with varying degrees
GMMs provide soft probabilistic memberships, making them ideal when customers can exhibit mixed behaviors (e.g., 70% value-seeker, 30% brand-loyal) rather than belonging to exactly one segment.
What is the primary purpose of the 'gap statistic' method in clustering?