Unit 2: Advanced Clustering Techniques - Practice Quiz

INT423 — Machine Learning-Ii 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the fundamental principle behind the Isolation Forest algorithm for anomaly detection?

A. It calculates the distance of each point to the k-nearest neighbors.
B. It isolates anomalies by randomly selecting a feature and a split value.
C. It projects data onto a lower-dimensional hyperplane to find outliers.
D. It groups similar data points into high-density clusters.

2 In an Isolation Forest, how are anomalies distinguished from normal observations based on tree structure?

A. Anomalies have longer path lengths from the root.
B. Anomalies end up in the largest leaf nodes.
C. Anomalies have shorter path lengths from the root.
D. Anomalies are always found at the root node.

3 Which of the following is a primary advantage of Isolation Forest over distance-based anomaly detection methods?

A. It has linear time complexity and handles high-dimensional data well.
B. It is computationally expensive for high-dimensional data.
C. It calculates the density of every point precisely.
D. It requires labeled data for training.

4 When deciding between Anomaly Detection and Supervised Learning, which scenario favors Anomaly Detection?

A. When the anomalies look exactly like the normal data.
B. When you have a massive amount of labeled data for all classes.
C. When the dataset is balanced with equal positive and negative examples.
D. When the number of positive examples (anomalies) is very small compared to negative examples.

5 In the context of supervised learning vs. anomaly detection, what is a 'skewed class' problem?

A. When one class has significantly more samples than the other.
B. When the data has too many features.
C. When the decision boundary is non-linear.
D. When the data is not normalized.

6 Which metric is generally NOT suitable for evaluating a model trained on a highly skewed dataset (anomaly detection scenario)?

A. Precision
B. Recall
C. F1-Score
D. Accuracy

7 How can Principal Component Analysis (PCA) be used for anomaly detection?

A. By labeling the data using eigenvectors.
B. By increasing the number of dimensions to separate points.
C. By identifying points with a high reconstruction error.
D. By clustering points based on the first principal component only.

8 Why is feature scaling (e.g., Mean Normalization) critical before applying PCA for anomaly detection?

A. PCA seeks to maximize variance, so features with larger scales will dominate.
B. PCA only works with categorical data.
C. It ensures the reconstruction error is always zero.
D. PCA is a tree-based algorithm and requires scaling.

9 In Hierarchical Clustering, what is the visual representation of the cluster hierarchy called?

A. Heatmap
B. Histogram
C. Dendrogram
D. Scatter Plot

10 Which of the following is NOT a requirement for Hierarchical Clustering?

A. A dataset of points.
B. Specifying the number of clusters (k) beforehand.
C. A distance metric.
D. A linkage criterion.

11 Agglomerative Clustering is often referred to as a strategy of which type?

A. Top-down
B. Density-based
C. Bottom-up
D. Divide and conquer

12 What is the first step in Agglomerative Clustering?

A. Assign all points to a single cluster.
B. Calculate the centroid of the entire dataset.
C. Randomly pick k centroids.
D. Treat each data point as an individual cluster.

13 In Agglomerative Clustering, 'Single Linkage' defines the distance between two clusters as:

A. The distance between their centroids.
B. The average distance between all pairs of points.
C. The minimum distance between any single point in one cluster and any single point in the other.
D. The maximum distance between any single point in one cluster and any single point in the other.

14 What is a known disadvantage of using Single Linkage in Agglomerative Clustering?

A. It is sensitive to the order of data.
B. It suffers from the 'chaining' effect.
C. It is computationally too fast.
D. It forces clusters to be spherical.

15 Which linkage method in Agglomerative Clustering minimizes the variance of the clusters being merged?

A. Average Linkage
B. Complete Linkage
C. Ward's Method
D. Single Linkage

16 DBSCAN stands for:

A. Density-Based Statistical Clustering of Applications with Networks
B. Distance-Based Spatial Clustering of Algorithms with Noise
C. Dual-Based Spatial Clustering of Applications with Nodes
D. Density-Based Spatial Clustering of Applications with Noise

17 What are the two main hyperparameters required for DBSCAN?

A. Learning rate and batch size.
B. Number of clusters (k) and iterations.
C. Tree depth and number of estimators.
D. Epsilon (eps) and Minimum Points (MinPts).

18 In DBSCAN, a point is classified as a 'Core Point' if:

A. It is far away from all other points.
B. It has at least 'MinPts' neighbors within radius 'eps'.
C. It is the centroid of the data.
D. It is reachable from a core point but has fewer than 'MinPts' neighbors.

19 How does DBSCAN classify a point that is within the 'eps' radius of a core point but has fewer than 'MinPts' neighbors itself?

A. Noise Point
B. Core Point
C. Border Point
D. Centroid

20 Which of the following is a major advantage of DBSCAN over K-Means?

A. It is faster for all dataset sizes.
B. It can discover clusters of arbitrary shapes.
C. It works well with varying densities.
D. It does not require any parameters.

21 What happens to 'Noise' points in DBSCAN?

A. They are assigned to the nearest cluster.
B. They are treated as a separate cluster containing outliers.
C. They are deleted from the dataset before clustering.
D. They are assigned to the largest cluster.

22 In Isolation Forest, the 'anomaly score' is derived from:

A. The number of points in the epsilon radius.
B. The variance of the cluster it belongs to.
C. The average path length of the point across the ensemble of trees.
D. The Euclidean distance to the nearest neighbor.

23 Which of the following is an example of 'Novelty Detection' rather than 'Outlier Detection'?

A. Finding a malfunction in a machine during a live run based on past failures.
B. Cleaning a dataset by removing errors.
C. Detecting credit card fraud in historical transaction data.
D. Training on only 'normal' images of dogs to detect a cat image during testing.

24 When choosing features for anomaly detection, what is a desirable property?

A. Features should be highly correlated with the anomaly label (if available).
B. Features should have zero variance.
C. Features should be categorical only.
D. Features should take on unusually large or small values for anomalies compared to normal instances.

25 What is the 'curse of dimensionality' in the context of distance-based clustering?

A. Distance metrics become less meaningful as dimensions increase, making all points appear equidistant.
B. It refers to the difficulty of collecting data.
C. High dimensions make visualization easier.
D. The algorithm runs faster as dimensions increase.

26 In hierarchical clustering, what does 'cutting the tree' determine?

A. The number of clusters in the final solution.
B. The root of the tree.
C. The linkage criteria used.
D. The distance metric used.

27 Which clustering algorithm is essentially an ensemble of random decision trees?

A. Agglomerative Clustering
B. Isolation Forest
C. DBSCAN
D. K-Means

28 Complete Linkage in Agglomerative Clustering is calculated based on:

A. The minimum distance between points in two clusters.
B. The maximum distance between points in two clusters.
C. The average distance between all points.
D. The distance between centroids.

29 If your dataset has clusters with significantly different densities, which algorithm might struggle?

A. Gaussian Mixture Models
B. Isolation Forest
C. DBSCAN
D. Decision Tree

30 What is the primary goal of PCA when used as a preprocessing step for clustering?

A. To label the data.
B. To increase the number of features.
C. To ensure all clusters are the same size.
D. To reduce noise and computational complexity by dimensionality reduction.

31 In an Isolation Forest, what is the maximum possible path length for a tree trained on samples?

A.
B.
C.
D.

32 Which supervised learning algorithm is most similar to the concept of Hierarchical Clustering?

A. Decision Trees
B. Support Vector Machines
C. Linear Regression
D. Neural Networks

33 Why is 'Divisive' hierarchical clustering less common than 'Agglomerative'?

A. It is computationally more expensive ( split possibilities).
B. It is less accurate.
C. It requires labeled data.
D. It cannot produce a dendrogram.

34 In the context of Anomaly Detection, what is a False Negative?

A. A normal point flagged as an anomaly.
B. A normal point classified as normal.
C. An anomaly classified as an anomaly.
D. An anomaly classified as normal.

35 Which of the following scenarios is BEST suited for Supervised Learning rather than Anomaly Detection?

A. Manufacturing quality control with 1 defective part per 10,000.
B. Detecting new stars in astronomy images.
C. Email spam detection with thousands of examples for both spam and ham.
D. Intrusion detection with unknown attack patterns.

36 What does the 'MinPts' parameter in DBSCAN represent?

A. The minimum number of points required to form a dense region.
B. The minimum number of iterations to run.
C. The minimum number of clusters to find.
D. The minimum distance between clusters.

37 Which PCA component captures the most variance in the data?

A. All components capture equal variance.
B. The first principal component.
C. The second principal component.
D. The last principal component.

38 How does Agglomerative Clustering handle outliers?

A. It cannot run if outliers are present.
B. They are usually merged into clusters very late in the process.
C. It deletes them automatically.
D. It assigns them to a 'noise' bucket immediately.

39 In Isolation Forest, subsampling (using a small subset of data to build each tree) helps to:

A. Increase the training time.
B. Increase memory usage.
C. Minimize the effects of swamping and masking.
D. Reduce the ability to detect anomalies.

40 Which of the following is true regarding the shape of clusters found by K-Means vs DBSCAN?

A. Both find arbitrary shapes.
B. K-Means finds arbitrary shapes; DBSCAN finds spherical shapes.
C. Both are limited to spherical shapes.
D. K-Means tends to find spherical shapes; DBSCAN finds arbitrary shapes.

41 When using PCA for anomaly detection, if a point has a very low projection on the principal components but a high reconstruction error, it implies:

A. The point lies far from the subspace defined by the principal components (Anomaly).
B. The point lies on the principal hyperplane.
C. The point is normal.
D. The point is the mean of the data.

42 In hierarchical clustering, what is the time complexity of the standard agglomerative algorithm (naive implementation)?

A.
B.
C.
D.

43 For a dataset with varying cluster sizes and significant noise, which algorithm is generally most robust?

A. Linear Regression
B. Single Linkage Agglomerative Clustering
C. K-Means
D. DBSCAN

44 What is 'masking' in the context of anomaly detection?

A. When the presence of a cluster of anomalies makes it difficult to detect individual anomalies.
B. When the algorithm runs out of memory.
C. When features are removed from the dataset.
D. When an anomaly is hidden because it is too similar to normal data.

45 Which of the following is NOT a distance metric commonly used in Hierarchical Clustering?

A. Euclidean Distance
B. Manhattan Distance
C. Cosine Similarity
D. Gini Impurity

46 If 'epsilon' is chosen to be very small in DBSCAN, what is the likely outcome?

A. All points will be in one cluster.
B. It will act exactly like K-Means.
C. Most points will be classified as noise/outliers.
D. The algorithm will crash.

47 If 'epsilon' is chosen to be very large in DBSCAN, what is the likely outcome?

A. It creates a hierarchical tree.
B. Every point will be a noise point.
C. The clusters will be very small.
D. All points will likely be merged into a single cluster.

48 Why is 'Average Linkage' often preferred over Single and Complete Linkage?

A. It always produces k=2 clusters.
B. It is the fastest method.
C. It does not require a distance matrix.
D. It balances the extremes of chaining (Single) and sensitivity to outliers (Complete).

49 In the context of fraud detection, why might one use Supervised Learning over Anomaly Detection?

A. If the dataset is small.
B. If the company has a large, historically labeled database of verified fraud cases.
C. If the fraud patterns change every day completely.
D. If there are absolutely no examples of fraud available.

50 The 'root' of a dendrogram in hierarchical clustering represents:

A. A single cluster containing all data points.
B. The cluster with the highest variance.
C. The noise points.
D. The first data point in the set.