Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is the fundamental principle behind the Isolation Forest algorithm for anomaly detection?
Not quite. Try another option.
Answer: It isolates anomalies by randomly selecting a feature and a split value.
Isolation Forest works on the principle that anomalies are 'few and different,' making them easier to isolate with fewer random partitions than normal points.
Question 2 of 50
In an Isolation Forest, how are anomalies distinguished from normal observations based on tree structure?
Not quite. Try another option.
Answer: Anomalies have shorter path lengths from the root.
Because anomalies are distinct and rare, they require fewer random splits to be isolated, resulting in shorter path lengths in the trees.
Question 3 of 50
Which of the following is a primary advantage of Isolation Forest over distance-based anomaly detection methods?
Not quite. Try another option.
Answer: It has linear time complexity and handles high-dimensional data well.
Isolation Forest does not rely on expensive distance calculations between all points, making it efficient (linear time complexity) and effective in high dimensions.
Question 4 of 50
When deciding between Anomaly Detection and Supervised Learning, which scenario favors Anomaly Detection?
Not quite. Try another option.
Answer: When the number of positive examples (anomalies) is very small compared to negative examples.
Anomaly detection is preferred when the 'positive' class (anomalies) is extremely rare or when the nature of future anomalies is unknown.
Question 5 of 50
In the context of supervised learning vs. anomaly detection, what is a 'skewed class' problem?
Not quite. Try another option.
Answer: When one class has significantly more samples than the other.
A skewed class problem occurs when the distribution of classes is highly imbalanced, such as having 99.9% normal transactions and 0.1% fraudulent ones.
Question 6 of 50
Which metric is generally NOT suitable for evaluating a model trained on a highly skewed dataset (anomaly detection scenario)?
Not quite. Try another option.
Answer: Accuracy
In highly skewed datasets, a model that predicts 'normal' for every instance can achieve high accuracy (e.g., 99%) while failing to detect any anomalies.
Question 7 of 50
How can Principal Component Analysis (PCA) be used for anomaly detection?
Not quite. Try another option.
Answer: By identifying points with a high reconstruction error.
PCA captures the normal variance of data. Anomalies often cannot be well-reconstructed using the principal components, leading to a high reconstruction error.
Question 8 of 50
Why is feature scaling (e.g., Mean Normalization) critical before applying PCA for anomaly detection?
Not quite. Try another option.
Answer: PCA seeks to maximize variance, so features with larger scales will dominate.
PCA projects data in the direction of maximum variance. If features are not scaled, variables with large absolute values will dominate the principal components purely due to their scale.
Question 9 of 50
In Hierarchical Clustering, what is the visual representation of the cluster hierarchy called?
Not quite. Try another option.
Answer: Dendrogram
A dendrogram is a tree-like diagram that records the sequences of merges or splits in hierarchical clustering.
Question 10 of 50
Which of the following is NOT a requirement for Hierarchical Clustering?
Not quite. Try another option.
Answer: Specifying the number of clusters (k) beforehand.
Unlike K-Means, hierarchical clustering does not require the number of clusters to be specified in advance; the number of clusters is determined by cutting the dendrogram.
Question 11 of 50
Agglomerative Clustering is often referred to as a strategy of which type?
Not quite. Try another option.
Answer: Bottom-up
Agglomerative clustering starts with every point as its own cluster and iteratively merges the closest pairs, hence a 'bottom-up' approach.
Question 12 of 50
What is the first step in Agglomerative Clustering?
Not quite. Try another option.
Answer: Treat each data point as an individual cluster.
The algorithm initializes by treating every single data point as a distinct cluster (N clusters for N points).
Question 13 of 50
In Agglomerative Clustering, 'Single Linkage' defines the distance between two clusters as:
Not quite. Try another option.
Answer: The minimum distance between any single point in one cluster and any single point in the other.
Single linkage uses the shortest distance between a point in cluster A and a point in cluster B (nearest neighbor approach).
Question 14 of 50
What is a known disadvantage of using Single Linkage in Agglomerative Clustering?
Not quite. Try another option.
Answer: It suffers from the 'chaining' effect.
Single linkage tends to merge clusters via long, thin chains of points, which can merge distinct groups if a chain of noise points connects them.
Question 15 of 50
Which linkage method in Agglomerative Clustering minimizes the variance of the clusters being merged?
Not quite. Try another option.
Answer: Ward's Method
Ward's method merges the two clusters that result in the minimum increase in total within-cluster variance (Sum of Squared Errors).
Question 16 of 50
DBSCAN stands for:
Not quite. Try another option.
Answer: Density-Based Spatial Clustering of Applications with Noise
DBSCAN is an acronym for Density-Based Spatial Clustering of Applications with Noise.
Question 17 of 50
What are the two main hyperparameters required for DBSCAN?
Not quite. Try another option.
Answer: Epsilon (eps) and Minimum Points (MinPts).
DBSCAN requires 'eps' (the radius of the neighborhood) and 'MinPts' (the minimum number of points required to form a dense region).
Question 18 of 50
In DBSCAN, a point is classified as a 'Core Point' if:
Not quite. Try another option.
Answer: It has at least 'MinPts' neighbors within radius 'eps'.
By definition, a core point is a point that has a dense neighborhood, specifically containing at least MinPts within the Epsilon radius.
Question 19 of 50
How does DBSCAN classify a point that is within the 'eps' radius of a core point but has fewer than 'MinPts' neighbors itself?
Not quite. Try another option.
Answer: Border Point
Border points are part of a cluster (reachable from a core point) but are not dense enough to be core points themselves.
Question 20 of 50
Which of the following is a major advantage of DBSCAN over K-Means?
Not quite. Try another option.
Answer: It can discover clusters of arbitrary shapes.
Unlike K-Means, which assumes spherical clusters, DBSCAN forms clusters based on density connectivity, allowing it to find non-convex shapes like crescents or rings.
Question 21 of 50
What happens to 'Noise' points in DBSCAN?
Not quite. Try another option.
Answer: They are treated as a separate cluster containing outliers.
DBSCAN explicitly identifies noise points (points not reachable from any core point) and leaves them unassigned to any main cluster, effectively performing outlier detection.
Question 22 of 50
In Isolation Forest, the 'anomaly score' is derived from:
Not quite. Try another option.
Answer: The average path length of the point across the ensemble of trees.
The anomaly score is a function of the average path length; shorter average paths indicate a higher likelihood of being an anomaly.
Question 23 of 50
Which of the following is an example of 'Novelty Detection' rather than 'Outlier Detection'?
Not quite. Try another option.
Answer: Training on only 'normal' images of dogs to detect a cat image during testing.
Novelty detection involves training on a clean dataset (only normal data) and identifying new observations that differ from this training data.
Question 24 of 50
When choosing features for anomaly detection, what is a desirable property?
Not quite. Try another option.
Answer: Features should take on unusually large or small values for anomalies compared to normal instances.
Good features for anomaly detection allow the algorithm to distinguish normal behavior from abnormal behavior, often manifested as extreme values.
Question 25 of 50
What is the 'curse of dimensionality' in the context of distance-based clustering?
Not quite. Try another option.
Answer: Distance metrics become less meaningful as dimensions increase, making all points appear equidistant.
In high-dimensional spaces, the volume increases so much that data becomes sparse, and the contrast between the nearest and farthest neighbors diminishes.
Question 26 of 50
In hierarchical clustering, what does 'cutting the tree' determine?
Not quite. Try another option.
Answer: The number of clusters in the final solution.
Cutting the dendrogram at a specific height determines how many vertical lines are intersected, which corresponds to the number of clusters.
Question 27 of 50
Which clustering algorithm is essentially an ensemble of random decision trees?
Not quite. Try another option.
Answer: Isolation Forest
Isolation Forest builds an ensemble of 'Isolation Trees' (iTrees) to isolate points.
Question 28 of 50
Complete Linkage in Agglomerative Clustering is calculated based on:
Not quite. Try another option.
Answer: The maximum distance between points in two clusters.
Complete linkage considers the farthest distance between pairs of points in two clusters, tending to produce compact, spherical clusters.
Question 29 of 50
If your dataset has clusters with significantly different densities, which algorithm might struggle?
Not quite. Try another option.
Answer: DBSCAN
Standard DBSCAN uses a global 'epsilon' and 'MinPts'. If clusters have varying densities, a single density threshold cannot capture all clusters effectively.
Question 30 of 50
What is the primary goal of PCA when used as a preprocessing step for clustering?
Not quite. Try another option.
Answer: To reduce noise and computational complexity by dimensionality reduction.
PCA reduces dimensions by keeping components with high variance, thereby filtering out noise and making clustering algorithms more efficient.
Question 31 of 50
In an Isolation Forest, what is the maximum possible path length for a tree trained on samples?
Not quite. Try another option.
Answer:
In the worst-case scenario (a completely unbalanced tree), a path could be linear, equal to edges, though average depth is usually logarithmic.
Question 32 of 50
Which supervised learning algorithm is most similar to the concept of Hierarchical Clustering?
Not quite. Try another option.
Answer: Decision Trees
Both Hierarchical Clustering and Decision Trees involve splitting data recursively, resulting in a tree-like structure.
Question 33 of 50
Why is 'Divisive' hierarchical clustering less common than 'Agglomerative'?
Not quite. Try another option.
Answer: It is computationally more expensive ( split possibilities).
Divisive clustering (Top-down) requires splitting a cluster. Finding the optimal split is computationally intensive compared to merging closest pairs in Agglomerative.
Question 34 of 50
In the context of Anomaly Detection, what is a False Negative?
Not quite. Try another option.
Answer: An anomaly classified as normal.
A False Negative in anomaly detection means the algorithm failed to detect an anomaly (it tested negative for the condition, but was actually positive).
Question 35 of 50
Which of the following scenarios is BEST suited for Supervised Learning rather than Anomaly Detection?
Not quite. Try another option.
Answer: Email spam detection with thousands of examples for both spam and ham.
Since there are ample examples of both classes (spam and non-spam), the model can learn the characteristics of both efficiently, making it a supervised problem.
Question 36 of 50
What does the 'MinPts' parameter in DBSCAN represent?
Not quite. Try another option.
Answer: The minimum number of points required to form a dense region.
MinPts defines the threshold for a region to be considered 'dense' enough to be a core part of a cluster.
Question 37 of 50
Which PCA component captures the most variance in the data?
Not quite. Try another option.
Answer: The first principal component.
By definition, the first principal component is the direction in the feature space along which the data varies the most.
Question 38 of 50
How does Agglomerative Clustering handle outliers?
Not quite. Try another option.
Answer: They are usually merged into clusters very late in the process.
Since outliers are far from other points, they are merged only when the distance threshold becomes very large, appearing near the top of the dendrogram.
Question 39 of 50
In Isolation Forest, subsampling (using a small subset of data to build each tree) helps to:
Not quite. Try another option.
Answer: Minimize the effects of swamping and masking.
Subsampling improves performance by reducing the likelihood that normal points surround anomalies (swamping) or anomalies hide other anomalies (masking).
Question 40 of 50
Which of the following is true regarding the shape of clusters found by K-Means vs DBSCAN?
K-Means minimizes variance from a centroid (spherical), while DBSCAN follows density chains, allowing it to model complex geometric shapes.
Question 41 of 50
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:
Not quite. Try another option.
Answer: The point lies far from the subspace defined by the principal components (Anomaly).
High reconstruction error means information was lost when projecting to lower dimensions, implying the point does not conform to the correlation structure of normal data.
Question 42 of 50
In hierarchical clustering, what is the time complexity of the standard agglomerative algorithm (naive implementation)?
Not quite. Try another option.
Answer:
The standard naive implementation involves calculating the distance matrix () and updating it times, leading to . Optimized versions can reach .
Question 43 of 50
For a dataset with varying cluster sizes and significant noise, which algorithm is generally most robust?
Not quite. Try another option.
Answer: DBSCAN
DBSCAN is designed to handle noise explicitly and does not assume equal cluster sizes or shapes.
Question 44 of 50
What is 'masking' in the context of anomaly detection?
Not quite. Try another option.
Answer: When the presence of a cluster of anomalies makes it difficult to detect individual anomalies.
Masking occurs when a group of anomalies is dense enough to appear as a normal cluster or affect the isolation process of a single anomaly.
Question 45 of 50
Which of the following is NOT a distance metric commonly used in Hierarchical Clustering?
Not quite. Try another option.
Answer: Gini Impurity
Gini Impurity is a metric for split quality in Decision Trees (classification), not a distance metric for clustering.
Question 46 of 50
If 'epsilon' is chosen to be very small in DBSCAN, what is the likely outcome?
Not quite. Try another option.
Answer: Most points will be classified as noise/outliers.
If epsilon is too small, the neighborhood of points will not contain enough neighbors to satisfy 'MinPts', resulting in no dense regions and many noise points.
Question 47 of 50
If 'epsilon' is chosen to be very large in DBSCAN, what is the likely outcome?
Not quite. Try another option.
Answer: All points will likely be merged into a single cluster.
If epsilon is large enough to cover the whole dataset, every point is reachable from every other point, merging everything into one cluster.
Question 48 of 50
Why is 'Average Linkage' often preferred over Single and Complete Linkage?
Not quite. Try another option.
Answer: It balances the extremes of chaining (Single) and sensitivity to outliers (Complete).
Average linkage uses the average distance between all pairs, making it a compromise that avoids the chaining of Single linkage and the overcrowding of Complete linkage.
Question 49 of 50
In the context of fraud detection, why might one use Supervised Learning over Anomaly Detection?
Not quite. Try another option.
Answer: If the company has a large, historically labeled database of verified fraud cases.
If sufficient labeled examples of the 'anomalous' class exist, Supervised Learning usually yields better predictive performance than unsupervised anomaly detection.
Question 50 of 50
The 'root' of a dendrogram in hierarchical clustering represents:
Not quite. Try another option.
Answer: A single cluster containing all data points.
The top (root) of the dendrogram represents the final state of agglomerative clustering where all data points have been merged into one unique cluster.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT423 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of INT423 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.