Values such as colors or product types do not have meaningful arithmetic averages.
Incorrect! Try again.
13What statistic represents a cluster center in K median?
K median
Easy
A.The median
B.The range
C.The mode
D.The mean
Correct Answer: The median
Explanation:
K median represents each cluster using the median of its assigned numerical values.
Incorrect! Try again.
14Which distance measure is commonly associated with K median?
K median
Easy
A.Jaccard distance
B.Manhattan distance
C.Hamming distance
D.Cosine distance
Correct Answer: Manhattan distance
Explanation:
K median commonly minimizes absolute differences, which correspond to Manhattan distance.
Incorrect! Try again.
15Compared with the mean, the median is generally less affected by what?
K median
Easy
A.Repeated values
B.Scaled values
C.Middle values
D.Extreme values
Correct Answer: Extreme values
Explanation:
The median is resistant to extreme values, so K median can be more robust to outliers.
Incorrect! Try again.
16For the values , , and , what is the median?
K median
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
After ordering the three values, the middle value is .
Incorrect! Try again.
17What does a high silhouette score generally indicate?
Performance measures of clustering
Easy
A.Clusters are compact and separated
B.Clusters contain identical record counts
C.Clusters use many input features
D.Clusters are large and overlapping
Correct Answer: Clusters are compact and separated
Explanation:
A high silhouette score indicates that points fit their own clusters well and are separated from other clusters.
Incorrect! Try again.
18What does within-cluster sum of squares measure?
Performance measures of clustering
Easy
A.Distance between class labels
B.Number of categorical features
C.Accuracy of target predictions
D.Variation inside the clusters
Correct Answer: Variation inside the clusters
Explanation:
Within-cluster sum of squares measures how far points are from their assigned cluster centroids.
Incorrect! Try again.
19For within-cluster sum of squares, which value usually indicates more compact clusters?
Performance measures of clustering
Easy
A.A lower value
B.A higher value
C.A negative value
D.An undefined value
Correct Answer: A lower value
Explanation:
A lower within-cluster sum of squares means data points are generally closer to their cluster centers.
Incorrect! Try again.
20What is the elbow method commonly used to estimate?
Performance measures of clustering
Easy
A.A suitable number of labels
B.A suitable number of records
C.A suitable number of classes
D.A suitable number of clusters
Correct Answer: A suitable number of clusters
Explanation:
The elbow method examines how clustering variation changes with to select a reasonable number of clusters.
Incorrect! Try again.
21A dataset contains customer age in years and annual income in dollars. Before applying a distance-based clustering algorithm, why should these features usually be standardized?
Introduction to clustering algorithms
Medium
A.To guarantee that every cluster has equal size
B.To prevent income from dominating the distance calculation
C.To convert the clustering task into classification
D.To remove all correlations between the two features
Correct Answer: To prevent income from dominating the distance calculation
Explanation:
Features with larger numerical scales contribute more to distance. Standardization gives age and income more comparable influence.
Incorrect! Try again.
22A hierarchical clustering dendrogram is cut at a horizontal level that intersects four vertical branches. How many clusters does this cut produce?
Introduction to clustering algorithms
Medium
A.Five clusters
B.Two clusters
C.Four clusters
D.Three clusters
Correct Answer: Four clusters
Explanation:
Each branch intersected by the horizontal cut corresponds to one resulting cluster.
Incorrect! Try again.
23Which situation is most suitable for unsupervised clustering?
Introduction to clustering algorithms
Medium
A.Classifying emails using manually assigned spam labels
B.Grouping news articles without predefined categories
C.Predicting house prices from labeled sales records
D.Estimating demand from known historical targets
Correct Answer: Grouping news articles without predefined categories
Explanation:
Clustering discovers groups in unlabeled data, such as collections of articles with similar content.
Incorrect! Try again.
24Two clusters have irregular, curved shapes and are separated by low-density regions. Which type of clustering approach is generally most appropriate?
Introduction to clustering algorithms
Medium
A.A density-based method identifying connected dense regions
D.A dimensionality-reduction method that always assigns labels by retaining the components with the greatest variance
Correct Answer: A density-based method identifying connected dense regions
Explanation:
Density-based clustering can detect irregularly shaped groups separated by sparse regions.
Incorrect! Try again.
25For the one-dimensional points , , , and , suppose K Means assigns and to one cluster and and to another. What are the updated centroids?
K Means
Medium
A. and
B. and
C. and
D. and
Correct Answer: and
Explanation:
Each centroid is the mean of its assigned points: and .
Incorrect! Try again.
26A point is compared with centroids and using Euclidean distance. To which cluster is the point assigned?
K Means
Medium
A.Cluster 2, because its distance is
B.Cluster 1, because its distance is
C.Cluster 1, because its distance is
D.Cluster 2, because its distance is
Correct Answer: Cluster 1, because its distance is
Explanation:
The distances are to and to . Since , the point joins cluster 1.
Incorrect! Try again.
27Why can two runs of standard K Means on the same dataset produce different cluster assignments?
K Means
Medium
A.The algorithm automatically removes different features during every centroid-update stage
B.Euclidean distance randomly changes for each observation
C.The arithmetic mean changes between separate runs
D.The initial centroids may be selected differently
Correct Answer: The initial centroids may be selected differently
Explanation:
K Means can converge to different local optima when initialized with different centroids.
Incorrect! Try again.
28A K Means cluster contains points , , and . What centroid is obtained after the update step?
K Means
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The coordinate-wise mean is .
Incorrect! Try again.
29What is the most likely effect of adding one extremely distant outlier to a dataset clustered with K Means?
K Means
Medium
A.All centroids remain fixed because means ignore extremes
B.Every ordinary point is removed before the next assignment step
C.A centroid may shift substantially toward the outlier
D.The number of clusters automatically increases by one
Correct Answer: A centroid may shift substantially toward the outlier
Explanation:
K Means uses arithmetic means, which are sensitive to extreme values.
Incorrect! Try again.
30A K mode cluster contains the values red, blue, red, green, and red for a categorical feature. What value is used for that feature in the updated mode?
K mode
Medium
A.Green
B.Red
C.A numerical average of all category codes
D.Blue
Correct Answer: Red
Explanation:
K mode represents each categorical feature by its most frequent value, which is red.
Incorrect! Try again.
31Using simple matching dissimilarity, what is the dissimilarity between and ?
K mode
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The first and third attributes differ, while the second matches, giving two mismatches.
Incorrect! Try again.
32Why is K mode generally preferred over K Means for purely nominal attributes?
K mode
Medium
A.It converts every category into a continuous probability
B.It uses category modes and mismatch-based dissimilarities
C.It guarantees clusters with identical numbers of records
D.It computes arithmetic means after assigning arbitrary integer codes to categories and then treats those codes as measured quantities
Correct Answer: It uses category modes and mismatch-based dissimilarities
Explanation:
Modes and categorical mismatches are meaningful for nominal values, whereas arithmetic means are not.
Incorrect! Try again.
33A categorical cluster has equal frequencies for the values A and B in one attribute. How should a K mode implementation typically update that component?
K mode
Medium
A.Merge every existing cluster into a single cluster
B.Choose one tied mode using a defined tie rule
C.Delete the attribute from the dataset
D.Compute the midpoint between A and B
Correct Answer: Choose one tied mode using a defined tie rule
Explanation:
When categories tie for highest frequency, the implementation selects one according to a consistent tie-breaking rule.
Incorrect! Try again.
34A one-dimensional K median cluster contains , , , , and . What is its updated center?
K median
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The median of the ordered values is the middle value, .
Incorrect! Try again.
35Which objective is most directly minimized by K median clustering?
K median
Medium
A.The sum of squared Euclidean distances to centroids
B.The sum of Manhattan distances to cluster centers
C.The count of categorical mismatches with cluster modes
D.The total variance of all features before cluster assignments are produced
Correct Answer: The sum of Manhattan distances to cluster centers
Explanation:
K median uses median-based centers and minimizes an or Manhattan-distance objective.
Incorrect! Try again.
36A two-dimensional cluster contains , , and . What is its coordinate-wise median center?
K median
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The median of the first coordinates is , and the median of the second coordinates is .
Incorrect! Try again.
37Compared with K Means, why is K median often more robust when a dataset contains extreme numerical outliers?
K median
Medium
A.K median increases the number of clusters until each outlier receives a separate cluster
B.Medians always produce perfectly spherical clusters
C.Manhattan distance removes outliers from the dataset
D.Medians are less affected by extreme values
Correct Answer: Medians are less affected by extreme values
Explanation:
A median changes less than a mean when an extreme observation is added, making K median more robust.
Incorrect! Try again.
38A sample has average intra-cluster distance and average distance to its nearest other cluster . What is its silhouette coefficient?
Performance measures of clustering
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The silhouette is .
Incorrect! Try again.
39When using the elbow method, the within-cluster sum of squares decreases sharply up to and only slightly afterward. Which value is the most reasonable choice?
Performance measures of clustering
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The elbow occurs near , where adding more clusters begins to provide only small improvements.
Incorrect! Try again.
40Two clustering models have average silhouette scores of and . Assuming the same data and distance measure, which interpretation is most appropriate?
Performance measures of clustering
Medium
A.The model has better cohesion and separation
B.Both models have identical cluster quality
C.The model necessarily matches all unknown true labels perfectly and therefore requires no further evaluation
D.The model has better cohesion and separation
Correct Answer: The model has better cohesion and separation
Explanation:
A silhouette score closer to indicates that points are compact within clusters and well separated from other clusters.
Incorrect! Try again.
41A dataset contains continuous variables measured in meters and categorical variables with no natural ordering. Which approach most directly avoids imposing arbitrary numeric distances on the categories?
Introduction to clustering algorithms
Hard
A.Apply K mode after discretizing every continuous variable
B.Use a mixed-type dissimilarity with an appropriate clustering method
C.Use Euclidean distance after one-hot encoding without rescaling
D.Apply K Means after integer-encoding every categorical value
Correct Answer: Use a mixed-type dissimilarity with an appropriate clustering method
Explanation:
A mixed-type dissimilarity, such as Gower distance, handles numeric and categorical attributes according to their measurement scales without inventing ordinal relationships.
Incorrect! Try again.
42Suppose a clustering method uses only the pairwise rank ordering of dissimilarities. Which transformation leaves its result unchanged, assuming no ties are introduced?
Introduction to clustering algorithms
Hard
A.Any strictly increasing transformation of all dissimilarities
B.Any permutation of dissimilarities within each observation
C.Any nonlinear transformation applied separately to each feature
D.Any positive affine transformation of individual coordinates
Correct Answer: Any strictly increasing transformation of all dissimilarities
Explanation:
A strictly increasing transformation preserves every pairwise ordering. The result is therefore unchanged when the method depends only on dissimilarity ranks.
Incorrect! Try again.
43For one-dimensional observations , K Means with is restricted to contiguous partitions after sorting. Which partition minimizes the within-cluster sum of squares?
K Means
Hard
A. and an empty cluster
B. and
C. and
D. and
Correct Answer: and
Explanation:
For , the mean is and the within-cluster sum of squares is . The singleton contributes zero, giving a smaller objective than the other valid partitions.
Incorrect! Try again.
44A standard Lloyd iteration assigns every observation to its nearest centroid and then replaces each centroid by its assigned-cluster mean. Which statement is guaranteed when ties and empty clusters are handled without increasing the objective?
K Means
Hard
A.Each full iteration does not increase the objective
B.Each full iteration preserves all cluster sizes
C.Each full iteration strictly decreases the objective
D.Each full iteration reaches the global optimum
Correct Answer: Each full iteration does not increase the objective
Explanation:
Nearest-centroid assignment and mean recomputation each minimize the K Means objective with the other component fixed. Equality can occur, so strict decrease is not guaranteed.
Incorrect! Try again.
45In K Means++, one centroid has already been selected at from the candidate points . What is the probability that is selected next?
K Means
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
K Means++ samples proportionally to squared distance. The weights are , so the probability is .
Incorrect! Try again.
46A feature is multiplied by a constant before Euclidean K Means is run. How does that feature's contribution to the objective change for a fixed partition?
K Means
Hard
A.It is multiplied by
B.It remains exactly unchanged
C.It is divided by
D.It is multiplied by
Correct Answer: It is multiplied by
Explanation:
K Means sums squared deviations. Multiplying a feature by multiplies each squared deviation in that feature by .
Incorrect! Try again.
47A K Means implementation produces an empty cluster during the assignment step. Which response best preserves the intended optimization while allowing the algorithm to continue?
K Means
Hard
A.Replace its centroid with the global coordinate-wise median
B.Reinitialize it using a point with large current assignment error
C.Set its centroid equal to the nearest occupied centroid
D.Retain it permanently and exclude it from later assignments
Correct Answer: Reinitialize it using a point with large current assignment error
Explanation:
Using a poorly represented point creates a nonempty candidate cluster and targets a large contribution to the current objective. The other choices can leave the cluster ineffective or mismatched to K Means.
Incorrect! Try again.
48For a fixed nonempty cluster, why is its arithmetic mean used as the K Means centroid?
K Means
Hard
A.It minimizes the sum of Euclidean distances
B.It minimizes the sum of squared Euclidean distances
C.It minimizes the maximum squared Euclidean distance
D.It minimizes the number of nonzero coordinate deviations
Correct Answer: It minimizes the sum of squared Euclidean distances
Explanation:
The arithmetic mean is the unique minimizer of the sum of squared deviations in Euclidean space, except in degenerate coordinate representations.
Incorrect! Try again.
49Under simple matching dissimilarity, a categorical cluster contains three times, twice, and four times. What is a valid mode vector?
K mode
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Modes are computed coordinate-wise. occurs five times versus four for , while occurs six times versus three for .
Incorrect! Try again.
50A K mode cluster has category counts , , and for one attribute. Which statement correctly describes the prototype update for that attribute?
K mode
Hard
A.Only minimizes the mismatch loss
B.Either or minimizes the mismatch loss
C.Only minimizes the mismatch loss
D.The prototype must remain unchanged because of the tie
Correct Answer: Either or minimizes the mismatch loss
Explanation:
Choosing either category with maximal frequency gives five mismatches. Thus the minimizing mode is nonunique and requires a tie-breaking rule.
Incorrect! Try again.
51Two categorical records are and . With simple matching dissimilarity and unit attribute weights, what is their dissimilarity?
K mode
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The records differ in the second and fourth attributes, so simple matching dissimilarity counts two mismatches.
Incorrect! Try again.
52A categorical attribute has 1,000 possible values, most of which are rare, while another attribute is binary and balanced. Under unweighted simple matching dissimilarity, what is the main risk?
K mode
Hard
A.The high-cardinality attribute may dominate through frequent mismatches
B.Both attributes contribute equally in expected mismatch frequency
C.The high-cardinality attribute becomes irrelevant after mode updates
D.The binary attribute necessarily dominates every assignment
Correct Answer: The high-cardinality attribute may dominate through frequent mismatches
Explanation:
Although each mismatch has unit cost, a high-cardinality attribute is much more likely to mismatch. Frequency-aware weighting or careful feature design may therefore be needed.
Incorrect! Try again.
53For the one-dimensional cluster , which set contains every centroid minimizing the sum of absolute deviations?
K median
Hard
A.Only the point
B.Every point in
C.Only the point
D.Every point in
Correct Answer: Every point in
Explanation:
With an even number of sorted observations, every value between the two middle observations minimizes the sum of absolute deviations.
Incorrect! Try again.
54For multivariate K median using Manhattan distance, how is the optimal prototype of a fixed nonempty cluster obtained?
K median
Hard
A.By taking the arithmetic mean of each coordinate
B.By minimizing squared distance in each coordinate
C.By taking a median independently in each coordinate
D.By selecting the point nearest to the arithmetic mean
Correct Answer: By taking a median independently in each coordinate
Explanation:
Manhattan loss separates by coordinate. Each coordinate-wise sum of absolute deviations is minimized by a median.
Incorrect! Try again.
55A one-dimensional cluster consists of , where . As tends to infinity, what happens to the K median prototype and its minimized absolute-deviation objective?
K median
Hard
A.The prototype approaches , while the objective remains constant
B.The prototype stays at , while the objective grows linearly
C.The prototype stays at , while the objective remains bounded
D.The prototype approaches , while the objective grows quadratically
Correct Answer: The prototype stays at , while the objective grows linearly
Explanation:
The sample median is always . The minimized loss is , which grows linearly.
Incorrect! Try again.
56A weighted one-dimensional K median cluster has observations with respective weights . Which value is a weighted median under the condition that neither side has more than half the total weight?
K median
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The total weight is . At , the weight strictly below is and the weight strictly above is , so neither exceeds half the total.
Incorrect! Try again.
57For a point , the mean intra-cluster distance is and the smallest mean distance to another cluster is . What is its silhouette value?
Performance measures of clustering
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The silhouette is .
Incorrect! Try again.
58A clustering is compared with ground-truth labels using the Adjusted Rand Index (ARI). Both the cluster identifiers and class identifiers are independently permuted. What happens to the ARI?
Performance measures of clustering
Hard
A.It becomes one because permutations imply equivalent labels
B.It becomes zero because the identifiers no longer match
C.It remains unchanged because pair relationships are preserved
D.It changes sign because both label systems are permuted
Correct Answer: It remains unchanged because pair relationships are preserved
Explanation:
ARI depends on whether pairs are grouped together or apart, not on the symbolic names assigned to clusters or classes.
Incorrect! Try again.
59Why can unadjusted cluster purity misleadingly favor solutions with large values of ?
B.Singleton clusters can achieve perfect class homogeneity
C.Purity penalizes every split of a true class
D.Purity becomes negative when clusters are unbalanced
Correct Answer: Singleton clusters can achieve perfect class homogeneity
Explanation:
Purity does not penalize fragmentation. Assigning each point to its own cluster yields purity , even though the clustering may be uninformative.
Incorrect! Try again.
60Two candidate clusterings have Davies–Bouldin indices and , computed using the same data, distance, and dispersion definition. Which interpretation is correct?
Performance measures of clustering
Hard
A.The solution is preferred because lower values indicate better separation
B.The indices cannot be compared unless both solutions have identical centroids
C.The solution is preferred because higher values indicate greater cohesion
D.The solutions are equivalent because the index is invariant to partitions
Correct Answer: The solution is preferred because lower values indicate better separation
Explanation:
The Davies–Bouldin index averages worst-case ratios of within-cluster scatter to between-cluster separation. Lower values indicate more compact, better-separated clusters.
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 →