MS-DS Master of Data science Unsupervised Learning Techniques Questions and Answers — Questions and Answers
Question 1: A marketing team wants to segment its customer base into distinct groups based on purchasing behaviors (e.g., frequency, recency, monetary value) but has no predefined group labels for the customers. Which unsupervised learning technique is most suitable for this task?
- Principal Component Analysis (PCA)
- K-Means Clustering (Correct answer)
- Linear Regression
- Support Vector Machine (SVM)
Correct answer: K-Means Clustering
K-Means Clustering is a partitional clustering algorithm designed to group unlabeled data into a pre-specified number of clusters (K), where each data point belongs to the cluster with the nearest mean. This is ideal for customer segmentation. PCA is for dimensionality reduction, while Linear Regression and SVMs are supervised learning algorithms.
Question 2: What is the primary objective of Principal Component Analysis (PCA) when used as an unsupervised learning technique?
- To classify data into predefined categories based on labeled examples.
- To group data points into dense regions, identifying outliers as noise.
- To reduce dimensionality by finding a new set of uncorrelated variables (principal components) that capture the maximum variance in the data. (Correct answer)
- To predict a continuous target variable by fitting a linear equation to the observed data.
Correct answer: To reduce dimensionality by finding a new set of uncorrelated variables (principal components) that capture the maximum variance in the data.
PCA is a dimensionality reduction technique. Its main goal is to transform a large set of variables into a smaller, more manageable set while retaining as much of the original information (variance) as possible. The new variables, or principal components, are linear combinations of the original variables and are uncorrelated.
Question 3: Which of the following statements accurately describes a key difference between K-Means and DBSCAN clustering algorithms?
- K-Means is a density-based algorithm, while DBSCAN is a centroid-based algorithm.
- K-Means is highly effective at identifying clusters of arbitrary shapes, unlike DBSCAN.
- DBSCAN can identify noise points (outliers) that do not belong to any cluster, whereas K-Means assigns every point to a cluster. (Correct answer)
- DBSCAN requires the user to specify the exact number of clusters to be found, while K-Means determines this automatically.
Correct answer: DBSCAN can identify noise points (outliers) that do not belong to any cluster, whereas K-Means assigns every point to a cluster.
A significant advantage of DBSCAN is its ability to handle noise and identify outliers. Points in low-density regions are marked as noise and do not get assigned to any cluster. In contrast, K-Means forces every single data point into one of the K clusters, which can distort the cluster shapes if outliers are present.
Question 4: A financial institution is analyzing a large dataset of credit card transactions to identify fraudulent activities. These fraudulent transactions are rare and often exhibit unusual patterns compared to the vast majority of legitimate transactions. Which type of unsupervised learning is most appropriate for this specific task?
- Association Rule Mining
- Anomaly Detection (Correct answer)
- Dimensionality Reduction
- Hierarchical Clustering
Correct answer: Anomaly Detection
Anomaly detection (or outlier detection) is the branch of unsupervised learning focused on identifying rare items, events, or observations that differ significantly from the majority of the data. Since fraudulent transactions are rare and deviate from normal patterns, this is the most suitable approach.
Question 5: In agglomerative hierarchical clustering, what does the 'linkage criterion' (e.g., single, complete, average) determine?
- The number of initial clusters to be formed.
- The method for measuring the distance between clusters to decide which ones to merge next. (Correct answer)
- The distance metric used between individual data points, such as Euclidean or Manhattan distance.
- The final shape of the clusters, forcing them to be spherical.
Correct answer: The method for measuring the distance between clusters to decide which ones to merge next.
The linkage criterion defines how the distance between two clusters is calculated at each step of the agglomerative process. For example, 'complete' linkage uses the maximum distance between points in the two clusters, 'single' linkage uses the minimum distance, and 'average' uses the average distance. This criterion is crucial for determining the merge order and the final hierarchy.
Question 6: A retail manager wants to analyze transaction data to discover which products are frequently purchased together, with the goal of optimizing store layout. For example, they want to find rules like "If a customer buys bread, they are 80% likely to also buy milk." Which unsupervised technique is best suited for this 'market basket analysis'?
- Apriori Algorithm (Correct answer)
- t-SNE (t-Distributed Stochastic Neighbor Embedding)
- K-Means Clustering
- Principal Component Analysis (PCA)
Correct answer: Apriori Algorithm
The Apriori algorithm is a classic method for association rule mining, specifically designed to perform market basket analysis. It identifies frequent itemsets in a transactional database and derives association rules to uncover patterns of co-occurrence, which directly addresses the manager's goal.
A marketing team wants to segment its customer base into distinct groups based on purchasing behaviors (e.g., frequency, recency, monetary value) but has no predefined group labels for the customers.
Which unsupervised learning technique is most suitable for this task?