A.To arrange every data point into a fixed sequence based on its original row number
B.To predict continuous values
C.To label training examples
D.To group similar data points
Correct Answer: To group similar data points
Explanation:
K-Means is an unsupervised algorithm that groups similar data points into clusters.
Incorrect! Try again.
2In K-Means clustering, what does represent?
K-Means Clustering
Easy
A.The number of features
B.The number of iterations
C.The number of labeled examples used to train the clustering model
D.The number of clusters
Correct Answer: The number of clusters
Explanation:
specifies how many clusters the algorithm should create.
Incorrect! Try again.
3What is a centroid in K-Means clustering?
K-Means Clustering
Easy
A.The mean position of a cluster
B.The boundary that separates every pair of clusters in the complete dataset
C.The label assigned to a cluster
D.The most distant point in a cluster
Correct Answer: The mean position of a cluster
Explanation:
A centroid is the mean position of all data points currently assigned to a cluster.
Incorrect! Try again.
4How does K-Means usually assign a data point to a cluster?
K-means clustering intuition
Easy
A.By choosing the largest cluster
B.By choosing a random label
C.By choosing the centroid with the greatest number of features and observations
D.By choosing the nearest centroid
Correct Answer: By choosing the nearest centroid
Explanation:
Each data point is assigned to the cluster whose centroid is closest.
Incorrect! Try again.
5What happens after data points are assigned to their nearest centroids?
K-means clustering intuition
Easy
A.The data points are permanently removed from clusters that contain fewer observations
B.The features are deleted
C.The centroids are recomputed
D.The cluster count is doubled
Correct Answer: The centroids are recomputed
Explanation:
K-Means updates each centroid by calculating the mean of the points assigned to its cluster.
Incorrect! Try again.
6What is the K-Means random initialization trap?
K-means random initialization trap
Easy
A.Random initialization automatically finds the globally best clustering in every dataset
B.Random data always creates one cluster
C.Different initial centroids can produce different clusters
D.Centroids cannot move after initialization
Correct Answer: Different initial centroids can produce different clusters
Explanation:
K-Means may converge to different solutions depending on the initial centroid positions.
Incorrect! Try again.
7Which method is commonly used to choose better initial centroids for K-Means?
K-means random initialization trap
Easy
A.Single linkage
B.Ordinary least squares regression with randomly generated target values
C.K-Means++
D.Apriori
Correct Answer: K-Means++
Explanation:
K-Means++ spreads out the initial centroids and often improves the clustering result.
Incorrect! Try again.
8Which method plots clustering error against different values of ?
K-means selecting number of clusters
Easy
A.Elbow method
B.Apriori method
C.Linkage method
D.A supervised classification method that compares predicted labels with known labels
Correct Answer: Elbow method
Explanation:
The elbow method compares clustering error for different values of .
Incorrect! Try again.
9In the elbow method, which value of is usually selected?
K-means selecting number of clusters
Easy
A.The number of data features
B.The point where improvement begins to slow
C.The point where the clustering error becomes larger than the original dataset size
D.The largest possible value
Correct Answer: The point where improvement begins to slow
Explanation:
The elbow indicates where adding more clusters gives only a small reduction in clustering error.
Incorrect! Try again.
10How does agglomerative hierarchical clustering begin?
Hierarchical Clustering (Agglomerative)
Easy
A.With all points in one cluster
B.With two randomly labeled clusters
C.With one cluster for every feature and one additional cluster for every target variable
D.With each point in its own cluster
Correct Answer: With each point in its own cluster
Explanation:
Agglomerative clustering starts with individual clusters and repeatedly merges the closest ones.
Incorrect! Try again.
11What is a dendrogram?
Hierarchical Clustering (Agglomerative)
Easy
A.A chart of regression errors
B.A table of class labels
C.A diagram that displays only the final centroid coordinates produced by K-Means
D.A tree diagram of cluster merges
Correct Answer: A tree diagram of cluster merges
Explanation:
A dendrogram shows how clusters are merged at different distance levels.
Incorrect! Try again.
12How is the distance between two clusters defined in single linkage?
Types of Linkages (Single, Complete, Average, Centroid)
Easy
A.The average pairwise distance
B.The sum of all distances from every observation to the overall dataset mean
C.The minimum pairwise distance
D.The maximum pairwise distance
Correct Answer: The minimum pairwise distance
Explanation:
Single linkage uses the distance between the closest pair of points in the two clusters.
Incorrect! Try again.
13How is the distance between two clusters defined in complete linkage?
Types of Linkages (Single, Complete, Average, Centroid)
Easy
A.The distance between the first observations recorded in each of the two clusters
B.The median pairwise distance
C.The maximum pairwise distance
D.The minimum pairwise distance
Correct Answer: The maximum pairwise distance
Explanation:
Complete linkage uses the distance between the farthest pair of points in the two clusters.
Incorrect! Try again.
14What does average linkage use to compare two clusters?
Types of Linkages (Single, Complete, Average, Centroid)
Easy
A.The mean of all pairwise distances
B.The smallest pairwise distance
C.The mean distance between each observation and every centroid in the full dataset
D.The largest pairwise distance
Correct Answer: The mean of all pairwise distances
Explanation:
Average linkage calculates the mean distance across all pairs of points from the two clusters.
Incorrect! Try again.
15What does centroid linkage compare?
Types of Linkages (Single, Complete, Average, Centroid)
Easy
A.The complete ordered lists of all observations and features in both clusters
B.The nearest points of two clusters
C.The centroids of two clusters
D.The farthest points of two clusters
Correct Answer: The centroids of two clusters
Explanation:
Centroid linkage measures the distance between the mean positions of two clusters.
Incorrect! Try again.
16Which form represents a typical association rule?
Association Rules
Easy
A. and are assigned to separate supervised learning target classes
B.
C.
D.
Correct Answer:
Explanation:
The rule means that transactions containing tend to also contain .
Incorrect! Try again.
17What does the support of an itemset measure?
Association Rules
Easy
A.How many clusters are generated after every iteration of a hierarchical algorithm
B.How far an item is from a centroid
C.How frequently the itemset occurs
D.How accurately a class is predicted
Correct Answer: How frequently the itemset occurs
Explanation:
Support is the proportion of transactions that contain the itemset.
Incorrect! Try again.
18What does the confidence of the rule measure?
Association Rules
Easy
A.How often occurs when occurs
B.How often occurs without
C.How many items appear in
D.How closely the items in are located to the centroid of itemset
Correct Answer: How often occurs when occurs
Explanation:
Confidence estimates the conditional probability of finding in transactions that contain .
Incorrect! Try again.
19In unsupervised pattern detection, what is the algorithm generally trying to discover?
Finding Patterns
Easy
A.A fixed mathematical formula supplied in advance for every possible observation
B.Only missing values in a table
C.Recurring structures in unlabeled data
D.Known labels in training data
Correct Answer: Recurring structures in unlabeled data
Explanation:
Pattern detection finds regularities, relationships, or repeated structures without using predefined labels.
Incorrect! Try again.
20What is the main goal of market basket analysis?
Market Basket Analysis Using Association Rules
Easy
A.To predict exact product prices
B.To divide customers by age only
C.To identify products often purchased together
D.To calculate the physical distance between products placed on different store shelves
Correct Answer: To identify products often purchased together
Explanation:
Market basket analysis uses transaction data to discover products that customers commonly buy together.
Incorrect! Try again.
21A K-means model has centroids and . Using Euclidean distance, to which cluster should the point be assigned?
K-Means Clustering
Medium
A.Cluster
B.Both clusters equally
C.Neither cluster
D.Cluster
Correct Answer: Cluster
Explanation:
The squared distances are to and to . Therefore, is assigned to .
Incorrect! Try again.
22After an assignment step, one cluster contains the points , , and . What centroid will be used in the next iteration?
K-Means Clustering
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The centroid is the coordinate-wise mean: .
Incorrect! Try again.
23During K-means training, several points change cluster assignments after the centroids are updated. What is the most appropriate next action?
K-means clustering intuition
Medium
A.Remove the reassigned observations
B.Increase by one immediately
C.Repeat assignment and centroid updates
D.Stop because centroids were updated once
Correct Answer: Repeat assignment and centroid updates
Explanation:
K-means alternates between assigning points and updating centroids until assignments stabilize or another stopping condition is met.
Incorrect! Try again.
24A dataset contains two compact circular groups and one long curved group. Why might K-means represent the curved group poorly?
K-means clustering intuition
Medium
A.It favors centroid-based convex clusters
B.It ignores distances between observations
C.It requires all features to be categorical
D.It merges points using maximum distance
Correct Answer: It favors centroid-based convex clusters
Explanation:
K-means assigns observations to their nearest centroid, so it works best with compact, roughly spherical or convex clusters.
Incorrect! Try again.
25Two 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?
K-means random initialization trap
Medium
A.The run with value
B.The run with value
C.Neither run without increasing
D.Either run because is equal
Correct Answer: The run with value
Explanation:
K-means minimizes the within-cluster sum of squares, so the converged solution with is the better local optimum.
Incorrect! Try again.
26A K-means solution changes substantially across repeated runs on the same normalized dataset. Which strategy most directly reduces this initialization problem?
K-means random initialization trap
Medium
A.Use K-means++ with multiple restarts
B.Stop after the first assignment step
C.Select all centroids from one region
D.Replace distances with cluster labels
Correct Answer: Use K-means++ with multiple restarts
Explanation:
K-means++ spreads initial centroids apart, while multiple restarts allow selection of the solution with the lowest objective value.
Incorrect! Try again.
27The within-cluster sums of squares for are . According to the elbow method, which value of is most reasonable?
K-means selecting number of clusters
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The reduction is substantial up to and becomes much smaller afterward, creating an elbow around .
Incorrect! Try again.
28The average silhouette scores for are . Which cluster count is supported by this criterion?
K-means selecting number of clusters
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
A higher average silhouette score indicates more cohesive and better-separated clusters. The maximum score, , occurs at .
Incorrect! Try again.
29Four observations have pairwise distances , , , , , and . Which pair is merged first in agglomerative clustering?
Hierarchical Clustering (Agglomerative)
Medium
A. and
B. and
C. and
D. and
Correct Answer: and
Explanation:
Agglomerative clustering begins by merging the two closest individual observations. The smallest distance is .
Incorrect! Try again.
30A dendrogram has a large jump in merge height from to . What is the usual interpretation when choosing a cut?
Hierarchical Clustering (Agglomerative)
Medium
A.Cut between and
B.Cut exactly at height
C.Cut above the final merge
D.Cut below the first merge
Correct Answer: Cut between and
Explanation:
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.
Incorrect! Try again.
31For clusters and , the cross-cluster distances are and . What are the single-linkage and complete-linkage distances, respectively?
Types of Linkages (Single, Complete, Average, Centroid)
Medium
A. and
B. and
C. and
D. and
Correct Answer: and
Explanation:
Single linkage uses the minimum cross-cluster distance, , while complete linkage uses the maximum, .
Incorrect! Try again.
32The cross-cluster distances between two clusters are and . What distance does average linkage use?
Types of Linkages (Single, Complete, Average, Centroid)
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Average linkage uses the mean of all cross-cluster distances: .
Incorrect! Try again.
33Cluster has centroid and cluster has centroid . What is their centroid-linkage distance using Euclidean distance?
Types of Linkages (Single, Complete, Average, Centroid)
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The centroid distance is .
Incorrect! Try again.
34A clustering result produced by single linkage contains long chains connecting otherwise distinct dense groups. Which linkage would most directly encourage more compact clusters?
Types of Linkages (Single, Complete, Average, Centroid)
Medium
A.Nearest linkage
B.Single linkage
C.Complete linkage
D.Minimum linkage
Correct Answer: Complete linkage
Explanation:
Complete linkage considers the farthest pair of points between clusters, which discourages elongated chains and tends to create compact groups.
Incorrect! Try again.
35In transactions, contain coffee, contain cookies, and contain both. What is the confidence of the rule ?
Association Rules
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Confidence is .
Incorrect! Try again.
36A rule has confidence , while the overall support of is . What is the lift of the rule?
Association Rules
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Lift is .
Incorrect! Try again.
37An itemset appears in of transactions. If the minimum support threshold is , how should the itemset be classified?
Finding Patterns
Medium
A.Frequent with support
B.Infrequent with support
C.Frequent with support
D.Infrequent with support
Correct Answer: Frequent with support
Explanation:
Its support is , which exceeds the minimum support threshold of .
Incorrect! Try again.
38The itemset is found to be infrequent under a fixed minimum support. According to the Apriori principle, which conclusion is valid?
Finding Patterns
Medium
A.Every superset containing is frequent
B.Every subset containing two items is infrequent
C.Every superset containing is infrequent
D.Every subset containing one item is infrequent
Correct Answer: Every superset containing is infrequent
Explanation:
A superset cannot have greater support than its subset. Therefore, every itemset containing the infrequent set must also be infrequent.
Incorrect! Try again.
39A supermarket finds that the rule has support , confidence , and lift . Which interpretation is most appropriate?
Market Basket Analysis Using Association Rules
Medium
A.Eight percent of pasta baskets exclude sauce
B.Pasta and sauce occur independently in all baskets
C.Sauce buyers purchase pasta with probability
D.Pasta buyers purchase sauce more often than average
Correct Answer: Pasta buyers purchase sauce more often than average
Explanation:
A lift of indicates a positive association: customers buying pasta are more likely than average to buy sauce.
Incorrect! Try again.
40A 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?
Market Basket Analysis Using Association Rules
Medium
A.Support , confidence , lift
B.Support , confidence , lift
C.Support , confidence , lift
D.Support , confidence , lift
Correct Answer: Support , confidence , lift
Explanation:
This rule combines substantial support with good confidence and a lift well above . The higher-lift alternative applies to far fewer baskets.
Incorrect! Try again.
41For the one-dimensional data , consider all possible contiguous two-cluster partitions. Which partition globally minimizes the K-means within-cluster sum of squares?
K-Means Clustering
Hard
A. and
B. and
C. and
D. and
Correct Answer: and
Explanation:
The corresponding sums of squares are approximately , , , and . Therefore, the split after gives the minimum objective value.
Incorrect! Try again.
42A 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?
K-means clustering intuition
Hard
A.Euclidean distances are dominated by the variable with the larger numerical scale
B.K-means ignores variables whose values are bounded above and below
C.Centroid updates automatically assign greater weight to continuous variables
D.Satisfaction contributes only when its distribution is approximately Gaussian
Correct Answer: Euclidean distances are dominated by the variable with the larger numerical scale
Explanation:
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.
Incorrect! Try again.
43Standard 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?
K-means random initialization trap
Hard
A.Run Y is globally optimal because its objective is lower
B.Run Y found a better local solution, but global optimality is not established
C.Run X and Run Y must represent the same partition up to label permutation
D.Run X has better-separated clusters because it converged sooner
Correct Answer: Run Y found a better local solution, but global optimality is not established
Explanation:
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.
Incorrect! Try again.
44In 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?
K-means random initialization trap
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
K-means++ samples proportionally to squared distance. The probability is .
Incorrect! Try again.
45A 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 ?
K-means random initialization trap
Hard
A.Leave the empty centroid unchanged until assignments eventually change
B.Delete the empty cluster and continue with clusters
C.Reinitialize the empty centroid using a poorly represented observation
D.Set the empty centroid equal to the global feature mean
Correct Answer: Reinitialize the empty centroid using a poorly represented observation
Explanation:
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.
Incorrect! Try again.
46For 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?
K-means selecting number of clusters
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The silhouette coefficient is .
Incorrect! Try again.
47The K-means objective decreases sharply through and only slightly afterward, but the average silhouette score is highest at . Which conclusion is most defensible?
K-means selecting number of clusters
Hard
A. is certainly correct because silhouette scores identify the true classes
B.The criteria reflect different cluster properties, so domain validation is needed
C. is certainly correct because the elbow overrides all other criteria
D.Neither criterion is usable because the K-means objective always decreases with
Correct Answer: The criteria reflect different cluster properties, so domain validation is needed
Explanation:
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.
Incorrect! Try again.
48Four one-dimensional observations are located at , , , and . Under single-linkage agglomerative clustering, at which heights do the three merges occur, assuming Euclidean distance?
Hierarchical Clustering (Agglomerative)
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
and merge at . Their cluster merges with at minimum distance , and the resulting cluster merges with at minimum distance .
Incorrect! Try again.
49An 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 ?
Hierarchical Clustering (Agglomerative)
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Five merges imply six initial observations. Three merges have occurred by height , leaving clusters.
Incorrect! Try again.
50Clusters and contain and observations, respectively. Under average linkage, and . After merging and , what is ?
Types of Linkages (Single, Complete, Average, Centroid)
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Average linkage weights by the numbers of cross-cluster pairs: .
Incorrect! Try again.
51Two 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?
Types of Linkages (Single, Complete, Average, Centroid)
Hard
A.Complete linkage
B.Single linkage
C.Average linkage
D.Centroid linkage
Correct Answer: Single linkage
Explanation:
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.
Incorrect! Try again.
52Which linkage can produce a dendrogram inversion, where a later merge is recorded at a lower dissimilarity than an earlier merge?
Types of Linkages (Single, Complete, Average, Centroid)
Hard
A.Unweighted average linkage
B.Single linkage
C.Centroid linkage
D.Complete linkage
Correct Answer: Centroid linkage
Explanation:
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.
Incorrect! Try again.
53For clusters and on the real line, which tuple gives their single-linkage, complete-linkage, average-linkage, and centroid-linkage distances, respectively?
Types of Linkages (Single, Complete, Average, Centroid)
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The cross-distances are , giving minimum , maximum , and average . The centroids are and , so their distance is .
Incorrect! Try again.
54In transactions, itemset appears in , itemset appears in , and both appear in . What are the confidence and lift of the rule ?
Association Rules
Hard
A.Confidence and lift
B.Confidence and lift
C.Confidence and lift
D.Confidence and lift
Correct Answer: Confidence and lift
Explanation:
Confidence is . Lift is , indicating positive association.
Incorrect! Try again.
55Suppose , , and . Which interpretation of the rule is correct?
Association Rules
Hard
A.The rule is invalid because the consequent is too frequent
B.The rule is positively associated because its confidence is
C.The rule is negatively associated because its support is only
D.The rule shows independence because its lift equals
Correct Answer: The rule shows independence because its lift equals
Explanation:
The confidence is , equal to the baseline probability of . Thus lift is , indicating no association.
Incorrect! Try again.
56A rule has support , confidence , and . What is its leverage?
Association Rules
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , leverage is .
Incorrect! Try again.
57During Apriori mining, the itemset is found to be infrequent. Which candidate can be pruned immediately without counting its support?
Finding Patterns
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
By support anti-monotonicity, every superset of an infrequent itemset is also infrequent. Because contains , it can be pruned.
Incorrect! Try again.
58An itemset is frequent. It has a frequent proper superset, but every proper superset has strictly lower support than . How should be classified?
Finding Patterns
Hard
A.Closed but not maximal
B.Neither closed nor maximal
C.Maximal but not closed
D.Both closed and maximal
Correct Answer: Closed but not maximal
Explanation:
is closed because no proper superset has the same support. It is not maximal because at least one proper superset is still frequent.
Incorrect! Try again.
59A retailer finds that the rule has confidence , while milk appears in of all baskets. Which conclusion is justified?
Market Basket Analysis Using Association Rules
Hard
A.Bread slightly reduces the relative likelihood of milk because lift is below one
B.Bread strongly promotes milk because confidence is close to one
C.Bread and milk are positively associated because support must exceed
D.Bread and milk are independent because both items occur in most baskets
Correct Answer: Bread slightly reduces the relative likelihood of milk because lift is below one
Explanation:
The lift is , which is below . High confidence alone is misleading because milk is already extremely common.
Incorrect! Try again.
60A store has baskets. Item occurs in , item in , and both in . The thresholds are minimum support , minimum confidence , and minimum lift . Does qualify?
Market Basket Analysis Using Association Rules
Hard
A.No, because only its support meets the thresholds
B.Yes, because support, confidence, and lift all pass
C.No, because confidence and lift pass but support fails
D.No, because support and confidence pass but lift fails
Correct Answer: Yes, because support, confidence, and lift all pass
Explanation:
Support is , confidence is , and lift is . All three exceed their thresholds.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →