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.
You're offline
Unit 4 MCQsUNSUPERVISED LEARNING: CLUSTERING AND PATTERN DETECTION
Which of the following best defines Unsupervised Learning?
Not quite. Try another option.
Answer: Learning where the data has no predefined labels or target variables
Unsupervised learning involves training algorithms on data that does not have labels, aiming to find hidden structures or patterns.
Question 2 of 50
In K-Means clustering, what does 'K' represent?
Not quite. Try another option.
Answer: The number of clusters the algorithm forms
K is a hyperparameter that determines the specific number of centroids (and thus clusters) the algorithm attempts to identify.
Question 3 of 50
What is the primary objective function that K-Means minimizes?
Not quite. Try another option.
Answer: Within-Cluster Sum of Squares (WCSS)
K-Means aims to minimize the variance within each cluster, calculated as the sum of squared distances between data points and their respective cluster centroids.
Question 4 of 50
Which of the following is the first step in the standard K-Means algorithm?
Not quite. Try another option.
Answer: Randomly initialize K centroids
The algorithm begins by selecting K random points from the dataset (or random coordinates) to serve as initial centroids.
Question 5 of 50
The 'Random Initialization Trap' in K-Means refers to:
Not quite. Try another option.
Answer: Different initial centroid positions leading to different, suboptimal results
Because K-Means uses a greedy approach, poor random starting points can cause the algorithm to get stuck in a local minimum rather than the global minimum.
Question 6 of 50
Which technique is commonly used to mitigate the Random Initialization Trap?
Not quite. Try another option.
Answer: K-Means++
K-Means++ is an initialization algorithm that selects initial centroids far apart from each other, improving the chances of finding the global optimum.
Question 7 of 50
What is the 'Elbow Method' used for in K-Means clustering?
Not quite. Try another option.
Answer: Determining the optimal number of clusters
The Elbow Method plots WCSS against the number of clusters (K). The 'elbow' point represents the K where adding more clusters yields diminishing returns in variance reduction.
Question 8 of 50
In an Elbow Method plot, what variable is typically on the Y-axis?
Not quite. Try another option.
Answer: WCSS (Inertia)
The Y-axis represents the Within-Cluster Sum of Squares (or Inertia), which decreases as the number of clusters increases.
Question 9 of 50
When does the K-Means algorithm stop iterating?
Not quite. Try another option.
Answer: When the centroids no longer move significantly between iterations
Convergence is reached when the assignment of points to clusters does not change and centroids remain stable.
Question 10 of 50
Which of the following is a limitation of K-Means clustering?
Not quite. Try another option.
Answer: It requires the number of clusters to be specified in advance
Unlike hierarchical clustering, K-Means requires the user to define K before running the algorithm, which is not always known.
Question 11 of 50
Agglomerative Hierarchical Clustering is best described as a approach.
Not quite. Try another option.
Answer: Bottom-up
Agglomerative clustering starts by treating each data point as a single cluster and then iteratively merges pairs of clusters until one big cluster remains.
Question 12 of 50
Divisive Hierarchical Clustering is best described as a approach.
Not quite. Try another option.
Answer: Top-down
Divisive clustering starts with all points in one cluster and recursively splits them into smaller clusters.
Question 13 of 50
What diagram is commonly used to visualize Hierarchical Clustering?
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 14 of 50
In a dendrogram, the vertical axis typically represents:
Not quite. Try another option.
Answer: The Euclidean distance or dissimilarity between clusters
The height of the U-shaped lines in a dendrogram indicates the distance (dissimilarity) at which clusters were merged.
Question 15 of 50
How do you determine the optimal number of clusters using a dendrogram?
Not quite. Try another option.
Answer: Cut the dendrogram at the point with the longest vertical distance without crossing horizontal lines
A large vertical distance implies that the clusters formed are distinct and far apart; cutting across this gap defines the natural clusters.
Question 16 of 50
Which linkage method defines the distance between two clusters as the shortest distance between any single point in one cluster and any single point in the other?
Not quite. Try another option.
Answer: Single Linkage
Single linkage looks for the nearest neighbors across two clusters (minimum distance).
Question 17 of 50
Which linkage method defines the distance between two clusters as the maximum distance between any point in the first cluster and any point in the second?
Not quite. Try another option.
Answer: Complete Linkage
Complete linkage considers the farthest points (maximum distance) to determine the distance between clusters.
Question 18 of 50
Average Linkage calculates the distance between clusters by:
Not quite. Try another option.
Answer: Taking the average of all pairwise distances between points in the two clusters
Average linkage computes the mean distance between all pairs of items from the two clusters.
Question 19 of 50
Centroid Linkage measures the distance between clusters based on:
Not quite. Try another option.
Answer: The distance between the geometric centers (means) of the clusters
Centroid linkage calculates the distance between the centroid vector of cluster A and the centroid vector of cluster B.
Question 20 of 50
Which linkage method is most notorious for producing the 'chaining' effect (long, stringy clusters)?
Not quite. Try another option.
Answer: Single Linkage
Because Single Linkage merges based on the closest points, it can merge distinct clusters if a chain of points connects them, often referred to as the chaining phenomenon.
Question 21 of 50
What is a primary advantage of Hierarchical Clustering over K-Means?
Not quite. Try another option.
Answer: It does not require assuming the number of clusters (K) beforehand
Hierarchical clustering produces a dendrogram that allows the analyst to choose the number of clusters after inspecting the structure, unlike K-Means where K is an input.
Question 22 of 50
Market Basket Analysis is a specific application of which technique?
Not quite. Try another option.
Answer: Association Rule Learning
Market Basket Analysis uses Association Rules to discover patterns in transaction data, such as products frequently bought together.
Question 23 of 50
In the rule {Bread} -> {Butter}, {Bread} is the:
Not quite. Try another option.
Answer: Antecedent
The 'if' part of the rule (left-hand side) is the antecedent. The 'then' part (right-hand side) is the consequent.
Question 24 of 50
What does the metric 'Support' measure in Association Rules?
Not quite. Try another option.
Answer: The frequency with which an itemset appears in the dataset
Support(A) is the proportion of transactions in the dataset that contain item A.
Question 25 of 50
How is 'Confidence' for the rule A -> B calculated?
Not quite. Try another option.
Answer: Support(A & B) / Support(A)
Confidence measures how often B appears in transactions that contain A. It is the conditional probability P(B|A).
Question 26 of 50
What does a 'Lift' value greater than 1 indicate?
Not quite. Try another option.
Answer: The presence of the antecedent increases the likelihood of the consequent
Lift > 1 implies a positive association; the items are bought together more frequently than would be expected by chance.
Question 27 of 50
If the Lift of a rule A -> B is exactly 1, what does this imply?
Not quite. Try another option.
Answer: A and B are independent
A Lift of 1 means the probability of occurring together is exactly the same as the product of their individual probabilities, implying no relationship.
Question 28 of 50
Which algorithm is most commonly associated with mining frequent itemsets for Association Rules?
Not quite. Try another option.
Answer: Apriori
The Apriori algorithm is the standard algorithm used to identify frequent itemsets and generate association rules.
Question 29 of 50
The Apriori algorithm uses the 'Downward Closure Property'. What does this property state?
Not quite. Try another option.
Answer: All subsets of a frequent itemset must be frequent
This property allows the algorithm to prune the search space. If {A, B} is frequent, then {A} and {B} must also be frequent.
Question 30 of 50
Which of the following is NOT a step in the K-Means algorithm?
Not quite. Try another option.
Answer: Calculation of distance matrix for all pairs of points
K-Means calculates distances from points to centroids, not a full pairwise distance matrix between all points (which is done in Hierarchical clustering).
Question 31 of 50
What is the main reason to scale features (normalize/standardize) before running K-Means?
Not quite. Try another option.
Answer: To prevent features with large magnitudes from dominating distance calculations
Since K-Means relies on Euclidean distance, a feature ranging from 0-1000 will overpower a feature ranging from 0-1 without scaling.
Question 32 of 50
In the context of Association Rules, the 'Consequent' is found on which side of the arrow?
Not quite. Try another option.
Answer: Right (THEN side)
In A -> B, B is the consequent (the item implied by the rule).
Question 33 of 50
Which metric would you look at to determine if a high-confidence rule is merely a coincidence because the consequent is very popular?
Not quite. Try another option.
Answer: Lift
Lift accounts for the popularity of the consequent. If B is very popular, Confidence(A->B) might be high just by chance, but Lift will correct for this.
Question 34 of 50
If Support(A) = 0.4 and Support(A, B) = 0.2, what is the Confidence(A -> B)?
K-Means is affected by outliers (which shift centroids significantly), scaling (distance dominance), and redundant features (inflating importance).
Question 36 of 50
Which clustering method generates a hierarchy of clusters?
Not quite. Try another option.
Answer: Hierarchical Clustering
As the name implies, Hierarchical Clustering builds a hierarchy of clusters, usually visualized by a dendrogram.
Question 37 of 50
In the Silhouette Analysis for K-Means, a score close to +1 indicates:
Not quite. Try another option.
Answer: The point is well-matched to its own cluster and far from neighboring clusters
The Silhouette score ranges from -1 to +1. A score near +1 means the sample is far away from the neighboring clusters.
Question 38 of 50
Which of the following scenarios is ideal for K-Means clustering?
Not quite. Try another option.
Answer: Clusters are spherical and distinct
K-Means assumes clusters are spherical (globular) and roughly the same size due to its reliance on variance and Euclidean distance.
Question 39 of 50
In Association Rule Mining, a 'Frequent Itemset' is an itemset whose support is:
Not quite. Try another option.
Answer: Greater than or equal to a minimum support threshold
The first step of Apriori is to filter out itemsets that do not appear frequently enough, defined by the minimum support threshold.
Question 40 of 50
Which distance metric is most commonly used in K-Means?
Not quite. Try another option.
Answer: Euclidean Distance
The standard K-Means algorithm minimizes variance, which corresponds to minimizing the squared Euclidean distance.
Question 41 of 50
Which linkage method in Hierarchical Clustering aims to minimize the variance within clusters being merged (similar to K-Means)?
Not quite. Try another option.
Answer: Ward's Method
Ward's method minimizes the increase in total within-cluster variance when merging two clusters.
Question 42 of 50
What is a 'hard' clustering assignment?
Not quite. Try another option.
Answer: A data point belongs to exactly one cluster
K-Means and standard Hierarchical clustering perform hard clustering, where a point is assigned exclusively to one specific cluster.
Question 43 of 50
In Market Basket Analysis, if {Milk, Bread} -> {Eggs} has a confidence of 0.7, it means:
Not quite. Try another option.
Answer: 70% of transactions containing Milk and Bread also contain Eggs
Confidence is the conditional probability. Given the antecedent occurred, there is a 70% chance the consequent occurred.
Question 44 of 50
Which of the following is an application of Clustering?
Not quite. Try another option.
Answer: Customer Segmentation
Clustering is widely used to group customers with similar behaviors or characteristics without predefined labels.
Question 45 of 50
In the context of K-Means, what is a Centroid?
Not quite. Try another option.
Answer: The arithmetic mean position of all the points in the cluster
The centroid is the geometric center of the cluster, calculated by averaging the coordinates of all points assigned to that cluster.
Question 46 of 50
Which of the following is true regarding the computational complexity of Hierarchical Clustering compared to K-Means for large datasets?
Not quite. Try another option.
Answer: Hierarchical is generally slower and more memory intensive
Agglomerative clustering usually has a time complexity of O(n^3) or O(n^2 log n), making it much slower than K-Means (O(nKI)) for large datasets.
Question 47 of 50
When performing K-Means, if you initialize centroids to the same location, what happens?
Not quite. Try another option.
Answer: The algorithm fails to generate distinct clusters
If centroids start at the same point, they will calculate the same updates and move together, failing to separate the data into K clusters.
Question 48 of 50
A Lift value of 0.5 suggests:
Not quite. Try another option.
Answer: Negative correlation (Substitutes)
Lift < 1 indicates that the occurrence of A makes B less likely to occur (e.g., people buying product A rarely buy product B).
Question 49 of 50
What happens to the WCSS as the number of clusters (K) increases towards the total number of data points?
Not quite. Try another option.
Answer: It decreases towards zero
If every point is its own cluster (K=N), the distance from each point to its centroid is zero, so WCSS becomes zero.
Question 50 of 50
Which step ensures that the K-Means algorithm converges?
Not quite. Try another option.
Answer: The fact that WCSS decreases or stays the same with every iteration
The mathematical property of the K-Means update steps guarantees that the objective function (WCSS) is non-increasing, ensuring convergence (though possibly to a local minimum).
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of INT234 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of INT234 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.