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
K-Means is an unsupervised algorithm that groups similar data points into clusters.
Question 2 of 60 · K-Means Clustering · Easy
In K-Means clustering, what does represent?
Not quite. Try another option.
Answer: The number of clusters
specifies how many clusters the algorithm should create.
Question 3 of 60 · K-Means Clustering · Easy
What is a centroid in K-Means clustering?
Not quite. Try another option.
Answer: The mean position of a cluster
A centroid is the mean position of all data points currently assigned to a cluster.
Question 4 of 60 · K-means clustering intuition · Easy
How does K-Means usually assign a data point to a cluster?
Not quite. Try another option.
Answer: By choosing the nearest centroid
Each data point is assigned to the cluster whose centroid is closest.
Question 5 of 60 · K-means clustering intuition · Easy
What happens after data points are assigned to their nearest centroids?
Not quite. Try another option.
Answer: The centroids are recomputed
K-Means updates each centroid by calculating the mean of the points assigned to its cluster.
Question 6 of 60 · K-means random initialization trap · Easy
What is the K-Means random initialization trap?
Not quite. Try another option.
Answer: Different initial centroids can produce different clusters
K-Means may converge to different solutions depending on the initial centroid positions.
Question 7 of 60 · K-means random initialization trap · Easy
Which method is commonly used to choose better initial centroids for K-Means?
Not quite. Try another option.
Answer: K-Means++
K-Means++ spreads out the initial centroids and often improves the clustering result.
Question 8 of 60 · K-means selecting number of clusters · Easy
Which method plots clustering error against different values of ?
Not quite. Try another option.
Answer: Elbow method
The elbow method compares clustering error for different values of .
Question 9 of 60 · K-means selecting number of clusters · Easy
In the elbow method, which value of is usually selected?
Not quite. Try another option.
Answer: The point where improvement begins to slow
The elbow indicates where adding more clusters gives only a small reduction in clustering error.
Question 10 of 60 · Hierarchical Clustering (Agglomerative) · Easy
How does agglomerative hierarchical clustering begin?
Not quite. Try another option.
Answer: With each point in its own cluster
Agglomerative clustering starts with individual clusters and repeatedly merges the closest ones.
Question 11 of 60 · Hierarchical Clustering (Agglomerative) · Easy
What is a dendrogram?
Not quite. Try another option.
Answer: A tree diagram of cluster merges
A dendrogram shows how clusters are merged at different distance levels.
Question 12 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Easy
How is the distance between two clusters defined in single linkage?
Not quite. Try another option.
Answer: The minimum pairwise distance
Single linkage uses the distance between the closest pair of points in the two clusters.
Question 13 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Easy
How is the distance between two clusters defined in complete linkage?
Not quite. Try another option.
Answer: The maximum pairwise distance
Complete linkage uses the distance between the farthest pair of points in the two clusters.
Question 14 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Easy
What does average linkage use to compare two clusters?
Not quite. Try another option.
Answer: The mean of all pairwise distances
Average linkage calculates the mean distance across all pairs of points from the two clusters.
Question 15 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Easy
What does centroid linkage compare?
Not quite. Try another option.
Answer: The centroids of two clusters
Centroid linkage measures the distance between the mean positions of two clusters.
Question 16 of 60 · Association Rules · Easy
Which form represents a typical association rule?
Not quite. Try another option.
Answer:
The rule means that transactions containing tend to also contain .
Question 17 of 60 · Association Rules · Easy
What does the support of an itemset measure?
Not quite. Try another option.
Answer: How frequently the itemset occurs
Support is the proportion of transactions that contain the itemset.
Question 18 of 60 · Association Rules · Easy
What does the confidence of the rule measure?
Not quite. Try another option.
Answer: How often occurs when occurs
Confidence estimates the conditional probability of finding in transactions that contain .
Question 19 of 60 · Finding Patterns · Easy
In unsupervised pattern detection, what is the algorithm generally trying to discover?
Not quite. Try another option.
Answer: Recurring structures in unlabeled data
Pattern detection finds regularities, relationships, or repeated structures without using predefined labels.
Question 20 of 60 · Market Basket Analysis Using Association Rules · Easy
What is the main goal of market basket analysis?
Not quite. Try another option.
Answer: To identify products often purchased together
Market basket analysis uses transaction data to discover products that customers commonly buy together.
Question 21 of 60 · K-Means Clustering · Medium
A K-means model has centroids and . Using Euclidean distance, to which cluster should the point be assigned?
Not quite. Try another option.
Answer: Cluster
The squared distances are to and to . Therefore, is assigned to .
Question 22 of 60 · K-Means Clustering · Medium
After an assignment step, one cluster contains the points , , and . What centroid will be used in the next iteration?
Not quite. Try another option.
Answer:
The centroid is the coordinate-wise mean: .
Question 23 of 60 · K-means clustering intuition · Medium
During K-means training, several points change cluster assignments after the centroids are updated. What is the most appropriate next action?
Not quite. Try another option.
Answer: Repeat assignment and centroid updates
K-means alternates between assigning points and updating centroids until assignments stabilize or another stopping condition is met.
Question 24 of 60 · K-means clustering intuition · Medium
A dataset contains two compact circular groups and one long curved group. Why might K-means represent the curved group poorly?
Not quite. Try another option.
Answer: It favors centroid-based convex clusters
K-means assigns observations to their nearest centroid, so it works best with compact, roughly spherical or convex clusters.
Question 25 of 60 · K-means random initialization trap · Medium
Two K-means runs with the same value of produce within-cluster sums of squares of and . Assuming both runs converged, which result should generally be preferred?
Not quite. Try another option.
Answer: The run with value
K-means minimizes the within-cluster sum of squares, so the converged solution with is the better local optimum.
Question 26 of 60 · K-means random initialization trap · Medium
A K-means solution changes substantially across repeated runs on the same normalized dataset. Which strategy most directly reduces this initialization problem?
Not quite. Try another option.
Answer: Use K-means++ with multiple restarts
K-means++ spreads initial centroids apart, while multiple restarts allow selection of the solution with the lowest objective value.
Question 27 of 60 · K-means selecting number of clusters · Medium
The within-cluster sums of squares for are . According to the elbow method, which value of is most reasonable?
Not quite. Try another option.
Answer:
The reduction is substantial up to and becomes much smaller afterward, creating an elbow around .
Question 28 of 60 · K-means selecting number of clusters · Medium
The average silhouette scores for are . Which cluster count is supported by this criterion?
Not quite. Try another option.
Answer:
A higher average silhouette score indicates more cohesive and better-separated clusters. The maximum score, , occurs at .
Question 29 of 60 · Hierarchical Clustering (Agglomerative) · Medium
Four observations have pairwise distances , , , , , and . Which pair is merged first in agglomerative clustering?
Not quite. Try another option.
Answer: and
Agglomerative clustering begins by merging the two closest individual observations. The smallest distance is .
Question 30 of 60 · Hierarchical Clustering (Agglomerative) · Medium
A dendrogram has a large jump in merge height from to . What is the usual interpretation when choosing a cut?
Not quite. Try another option.
Answer: Cut between and
A large increase in merge height suggests that relatively dissimilar groups are being combined. Cutting within that gap preserves the groups formed before the jump.
Question 31 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Medium
For clusters and , the cross-cluster distances are and . What are the single-linkage and complete-linkage distances, respectively?
Not quite. Try another option.
Answer: and
Single linkage uses the minimum cross-cluster distance, , while complete linkage uses the maximum, .
Question 32 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Medium
The cross-cluster distances between two clusters are and . What distance does average linkage use?
Not quite. Try another option.
Answer:
Average linkage uses the mean of all cross-cluster distances: .
Question 33 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Medium
Cluster has centroid and cluster has centroid . What is their centroid-linkage distance using Euclidean distance?
Not quite. Try another option.
Answer:
The centroid distance is .
Question 34 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Medium
A clustering result produced by single linkage contains long chains connecting otherwise distinct dense groups. Which linkage would most directly encourage more compact clusters?
Not quite. Try another option.
Answer: Complete linkage
Complete linkage considers the farthest pair of points between clusters, which discourages elongated chains and tends to create compact groups.
Question 35 of 60 · Association Rules · Medium
In transactions, contain coffee, contain cookies, and contain both. What is the confidence of the rule ?
Not quite. Try another option.
Answer:
Confidence is .
Question 36 of 60 · Association Rules · Medium
A rule has confidence , while the overall support of is . What is the lift of the rule?
Not quite. Try another option.
Answer:
Lift is .
Question 37 of 60 · Finding Patterns · Medium
An itemset appears in of transactions. If the minimum support threshold is , how should the itemset be classified?
Not quite. Try another option.
Answer: Frequent with support
Its support is , which exceeds the minimum support threshold of .
Question 38 of 60 · Finding Patterns · Medium
The itemset is found to be infrequent under a fixed minimum support. According to the Apriori principle, which conclusion is valid?
Not quite. Try another option.
Answer: Every superset containing is infrequent
A superset cannot have greater support than its subset. Therefore, every itemset containing the infrequent set must also be infrequent.
Question 39 of 60 · Market Basket Analysis Using Association Rules · Medium
A supermarket finds that the rule has support , confidence , and lift . Which interpretation is most appropriate?
Not quite. Try another option.
Answer: Pasta buyers purchase sauce more often than average
A lift of indicates a positive association: customers buying pasta are more likely than average to buy sauce.
Question 40 of 60 · Market Basket Analysis Using Association Rules · Medium
A retailer wants a cross-selling rule that applies to many baskets and strongly increases the likelihood of the consequent. Which rule is the best choice?
Not quite. Try another option.
Answer: Support , confidence , lift
This rule combines substantial support with good confidence and a lift well above . The higher-lift alternative applies to far fewer baskets.
Question 41 of 60 · K-Means Clustering · Hard
For the one-dimensional data , consider all possible contiguous two-cluster partitions. Which partition globally minimizes the K-means within-cluster sum of squares?
Not quite. Try another option.
Answer: and
The corresponding sums of squares are approximately , , , and . Therefore, the split after gives the minimum objective value.
Question 42 of 60 · K-means clustering intuition · Hard
A dataset has two variables: annual spending measured in dollars and satisfaction measured on a - scale. Without standardization, K-means produces clusters almost entirely separated by spending. Which explanation is most accurate?
Not quite. Try another option.
Answer: Euclidean distances are dominated by the variable with the larger numerical scale
K-means minimizes squared Euclidean distances. A variable with a much larger numerical scale can dominate those distances unless features are appropriately transformed or standardized.
Question 43 of 60 · K-means random initialization trap · Hard
Standard K-means is run repeatedly with the same but different random initial centroids. Run X ends with objective , while Run Y ends with . Both runs have converged. What can be concluded?
Not quite. Try another option.
Answer: Run Y found a better local solution, but global optimality is not established
K-means converges to a local minimum determined partly by initialization. A lower objective identifies the better observed run, but does not prove that the global minimum was found.
Question 44 of 60 · K-means random initialization trap · Hard
In K-means++ initialization, the first centroid has been selected. Three remaining observations have distances , , and from their nearest selected centroid. What is the probability that the observation at distance is selected next?
Not quite. Try another option.
Answer:
K-means++ samples proportionally to squared distance. The probability is .
Question 45 of 60 · K-means random initialization trap · Hard
A K-means run initializes two centroids at identical coordinates. After the first assignment step, one cluster receives no observations because all ties are resolved in favor of the other cluster. Which response best preserves the intended value of ?
Not quite. Try another option.
Answer: Reinitialize the empty centroid using a poorly represented observation
An empty cluster has no mean to update. Reinitializing it, often at a point with high current reconstruction error, preserves and reduces the chance of another empty assignment.
Question 46 of 60 · K-means selecting number of clusters · Hard
For an observation, the mean distance to other members of its cluster is , and the smallest mean distance to any other cluster is . What is its silhouette coefficient?
Not quite. Try another option.
Answer:
The silhouette coefficient is .
Question 47 of 60 · K-means selecting number of clusters · Hard
The K-means objective decreases sharply through and only slightly afterward, but the average silhouette score is highest at . Which conclusion is most defensible?
Not quite. Try another option.
Answer: The criteria reflect different cluster properties, so domain validation is needed
The elbow measures marginal reduction in within-cluster variation, while silhouette measures cohesion and separation. Their disagreement is meaningful and should be resolved using stability and domain usefulness.
Question 48 of 60 · Hierarchical Clustering (Agglomerative) · Hard
Four one-dimensional observations are located at , , , and . Under single-linkage agglomerative clustering, at which heights do the three merges occur, assuming Euclidean distance?
Not quite. Try another option.
Answer:
and merge at . Their cluster merges with at minimum distance , and the resulting cluster merges with at minimum distance .
Question 49 of 60 · Hierarchical Clustering (Agglomerative) · Hard
An agglomerative dendrogram is cut horizontally at height . A merge occurring exactly at is treated as already completed. How many clusters remain if the merge heights are , , , , and , and ?
Not quite. Try another option.
Answer:
Five merges imply six initial observations. Three merges have occurred by height , leaving clusters.
Question 50 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Hard
Clusters and contain and observations, respectively. Under average linkage, and . After merging and , what is ?
Not quite. Try another option.
Answer:
Average linkage weights by the numbers of cross-cluster pairs: .
Question 51 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Hard
Two compact, dense groups are connected by a sparse sequence of intermediate observations. Which linkage is most likely to merge the groups prematurely because of this structure?
Not quite. Try another option.
Answer: Single linkage
Single linkage uses the closest cross-cluster pair. A sequence of nearby bridge points can therefore create the chaining effect and connect otherwise distinct groups.
Question 52 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Hard
Which linkage can produce a dendrogram inversion, where a later merge is recorded at a lower dissimilarity than an earlier merge?
Not quite. Try another option.
Answer: Centroid linkage
With centroid linkage, merging changes a cluster's centroid and can reduce its distance to another cluster. This can produce non-monotonic merge heights known as inversions.
Question 53 of 60 · Types of Linkages (Single, Complete, Average, Centroid) · Hard
For clusters and on the real line, which tuple gives their single-linkage, complete-linkage, average-linkage, and centroid-linkage distances, respectively?
Not quite. Try another option.
Answer:
The cross-distances are , giving minimum , maximum , and average . The centroids are and , so their distance is .
Question 54 of 60 · Association Rules · Hard
In transactions, itemset appears in , itemset appears in , and both appear in . What are the confidence and lift of the rule ?
Not quite. Try another option.
Answer: Confidence and lift
Confidence is . Lift is , indicating positive association.
Question 55 of 60 · Association Rules · Hard
Suppose , , and . Which interpretation of the rule is correct?
Not quite. Try another option.
Answer: The rule shows independence because its lift equals
The confidence is , equal to the baseline probability of . Thus lift is , indicating no association.
Question 56 of 60 · Association Rules · Hard
A rule has support , confidence , and . What is its leverage?
Not quite. Try another option.
Answer:
Since , leverage is .
Question 57 of 60 · Finding Patterns · Hard
During Apriori mining, the itemset is found to be infrequent. Which candidate can be pruned immediately without counting its support?
Not quite. Try another option.
Answer:
By support anti-monotonicity, every superset of an infrequent itemset is also infrequent. Because contains , it can be pruned.
Question 58 of 60 · Finding Patterns · Hard
An itemset is frequent. It has a frequent proper superset, but every proper superset has strictly lower support than . How should be classified?
Not quite. Try another option.
Answer: Closed but not maximal
is closed because no proper superset has the same support. It is not maximal because at least one proper superset is still frequent.
Question 59 of 60 · Market Basket Analysis Using Association Rules · Hard
A retailer finds that the rule has confidence , while milk appears in of all baskets. Which conclusion is justified?
Not quite. Try another option.
Answer: Bread slightly reduces the relative likelihood of milk because lift is below one
The lift is , which is below . High confidence alone is misleading because milk is already extremely common.
Question 60 of 60 · Market Basket Analysis Using Association Rules · Hard
A store has baskets. Item occurs in , item in , and both in . The thresholds are minimum support , minimum confidence , and minimum lift . Does qualify?
Not quite. Try another option.
Answer: Yes, because support, confidence, and lift all pass
Support is , confidence is , and lift is . All three exceed their thresholds.
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.