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 7 MCQsUnsupervised Learning
ECAP792 ·
60 questions. Pick an option to check it.
Values such as colors or product types do not have meaningful arithmetic averages.
Question 13 of 60 · K median · Easy
What statistic represents a cluster center in K median?
Not quite. Try another option.
Answer: The median
K median represents each cluster using the median of its assigned numerical values.
Question 14 of 60 · K median · Easy
Which distance measure is commonly associated with K median?
Not quite. Try another option.
Answer: Manhattan distance
K median commonly minimizes absolute differences, which correspond to Manhattan distance.
Question 15 of 60 · K median · Easy
Compared with the mean, the median is generally less affected by what?
Not quite. Try another option.
Answer: Extreme values
The median is resistant to extreme values, so K median can be more robust to outliers.
Question 16 of 60 · K median · Easy
For the values , , and , what is the median?
Not quite. Try another option.
Answer:
After ordering the three values, the middle value is .
Question 17 of 60 · Performance measures of clustering · Easy
What does a high silhouette score generally indicate?
Not quite. Try another option.
Answer: Clusters are compact and separated
A high silhouette score indicates that points fit their own clusters well and are separated from other clusters.
Question 18 of 60 · Performance measures of clustering · Easy
What does within-cluster sum of squares measure?
Not quite. Try another option.
Answer: Variation inside the clusters
Within-cluster sum of squares measures how far points are from their assigned cluster centroids.
Question 19 of 60 · Performance measures of clustering · Easy
For within-cluster sum of squares, which value usually indicates more compact clusters?
Not quite. Try another option.
Answer: A lower value
A lower within-cluster sum of squares means data points are generally closer to their cluster centers.
Question 20 of 60 · Performance measures of clustering · Easy
What is the elbow method commonly used to estimate?
Not quite. Try another option.
Answer: A suitable number of clusters
The elbow method examines how clustering variation changes with to select a reasonable number of clusters.
Question 21 of 60 · Introduction to clustering algorithms · Medium
A 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?
Not quite. Try another option.
Answer: To prevent income from dominating the distance calculation
Features with larger numerical scales contribute more to distance. Standardization gives age and income more comparable influence.
Question 22 of 60 · Introduction to clustering algorithms · Medium
A hierarchical clustering dendrogram is cut at a horizontal level that intersects four vertical branches. How many clusters does this cut produce?
Not quite. Try another option.
Answer: Four clusters
Each branch intersected by the horizontal cut corresponds to one resulting cluster.
Question 23 of 60 · Introduction to clustering algorithms · Medium
Which situation is most suitable for unsupervised clustering?
Not quite. Try another option.
Answer: Grouping news articles without predefined categories
Clustering discovers groups in unlabeled data, such as collections of articles with similar content.
Question 24 of 60 · Introduction to clustering algorithms · Medium
Two clusters have irregular, curved shapes and are separated by low-density regions. Which type of clustering approach is generally most appropriate?
Not quite. Try another option.
Answer: A density-based method identifying connected dense regions
Density-based clustering can detect irregularly shaped groups separated by sparse regions.
Question 25 of 60 · K Means · Medium
For the one-dimensional points , , , and , suppose K Means assigns and to one cluster and and to another. What are the updated centroids?
Not quite. Try another option.
Answer: and
Each centroid is the mean of its assigned points: and .
Question 26 of 60 · K Means · Medium
A point is compared with centroids and using Euclidean distance. To which cluster is the point assigned?
Not quite. Try another option.
Answer: Cluster 1, because its distance is
The distances are to and to . Since , the point joins cluster 1.
Question 27 of 60 · K Means · Medium
Why can two runs of standard K Means on the same dataset produce different cluster assignments?
Not quite. Try another option.
Answer: The initial centroids may be selected differently
K Means can converge to different local optima when initialized with different centroids.
Question 28 of 60 · K Means · Medium
A K Means cluster contains points , , and . What centroid is obtained after the update step?
Not quite. Try another option.
Answer:
The coordinate-wise mean is .
Question 29 of 60 · K Means · Medium
What is the most likely effect of adding one extremely distant outlier to a dataset clustered with K Means?
Not quite. Try another option.
Answer: A centroid may shift substantially toward the outlier
K Means uses arithmetic means, which are sensitive to extreme values.
Question 30 of 60 · K mode · Medium
A 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?
Not quite. Try another option.
Answer: Red
K mode represents each categorical feature by its most frequent value, which is red.
Question 31 of 60 · K mode · Medium
Using simple matching dissimilarity, what is the dissimilarity between and ?
Not quite. Try another option.
Answer:
The first and third attributes differ, while the second matches, giving two mismatches.
Question 32 of 60 · K mode · Medium
Why is K mode generally preferred over K Means for purely nominal attributes?
Not quite. Try another option.
Answer: It uses category modes and mismatch-based dissimilarities
Modes and categorical mismatches are meaningful for nominal values, whereas arithmetic means are not.
Question 33 of 60 · K mode · Medium
A categorical cluster has equal frequencies for the values A and B in one attribute. How should a K mode implementation typically update that component?
Not quite. Try another option.
Answer: Choose one tied mode using a defined tie rule
When categories tie for highest frequency, the implementation selects one according to a consistent tie-breaking rule.
Question 34 of 60 · K median · Medium
A one-dimensional K median cluster contains , , , , and . What is its updated center?
Not quite. Try another option.
Answer:
The median of the ordered values is the middle value, .
Question 35 of 60 · K median · Medium
Which objective is most directly minimized by K median clustering?
Not quite. Try another option.
Answer: The sum of Manhattan distances to cluster centers
K median uses median-based centers and minimizes an or Manhattan-distance objective.
Question 36 of 60 · K median · Medium
A two-dimensional cluster contains , , and . What is its coordinate-wise median center?
Not quite. Try another option.
Answer:
The median of the first coordinates is , and the median of the second coordinates is .
Question 37 of 60 · K median · Medium
Compared with K Means, why is K median often more robust when a dataset contains extreme numerical outliers?
Not quite. Try another option.
Answer: Medians are less affected by extreme values
A median changes less than a mean when an extreme observation is added, making K median more robust.
Question 38 of 60 · Performance measures of clustering · Medium
A sample has average intra-cluster distance and average distance to its nearest other cluster . What is its silhouette coefficient?
Not quite. Try another option.
Answer:
The silhouette is .
Question 39 of 60 · Performance measures of clustering · Medium
When 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?
Not quite. Try another option.
Answer:
The elbow occurs near , where adding more clusters begins to provide only small improvements.
Question 40 of 60 · Performance measures of clustering · Medium
Two clustering models have average silhouette scores of and . Assuming the same data and distance measure, which interpretation is most appropriate?
Not quite. Try another option.
Answer: The model has better cohesion and separation
A silhouette score closer to indicates that points are compact within clusters and well separated from other clusters.
Question 41 of 60 · Introduction to clustering algorithms · Hard
A 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?
Not quite. Try another option.
Answer: Use a mixed-type dissimilarity with an appropriate clustering method
A mixed-type dissimilarity, such as Gower distance, handles numeric and categorical attributes according to their measurement scales without inventing ordinal relationships.
Question 42 of 60 · Introduction to clustering algorithms · Hard
Suppose a clustering method uses only the pairwise rank ordering of dissimilarities. Which transformation leaves its result unchanged, assuming no ties are introduced?
Not quite. Try another option.
Answer: Any strictly increasing transformation of all dissimilarities
A strictly increasing transformation preserves every pairwise ordering. The result is therefore unchanged when the method depends only on dissimilarity ranks.
Question 43 of 60 · K Means · Hard
For one-dimensional observations , K Means with is restricted to contiguous partitions after sorting. Which partition minimizes the within-cluster sum of squares?
Not quite. Try another option.
Answer: and
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.
Question 44 of 60 · K Means · Hard
A 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?
Not quite. Try another option.
Answer: Each full iteration does not increase the objective
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.
Question 45 of 60 · K Means · Hard
In K Means++, one centroid has already been selected at from the candidate points . What is the probability that is selected next?
Not quite. Try another option.
Answer:
K Means++ samples proportionally to squared distance. The weights are , so the probability is .
Question 46 of 60 · K Means · Hard
A 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?
Not quite. Try another option.
Answer: It is multiplied by
K Means sums squared deviations. Multiplying a feature by multiplies each squared deviation in that feature by .
Question 47 of 60 · K Means · Hard
A K Means implementation produces an empty cluster during the assignment step. Which response best preserves the intended optimization while allowing the algorithm to continue?
Not quite. Try another option.
Answer: Reinitialize it using a point with large current assignment error
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.
Question 48 of 60 · K Means · Hard
For a fixed nonempty cluster, why is its arithmetic mean used as the K Means centroid?
Not quite. Try another option.
Answer: It minimizes the sum of squared Euclidean distances
The arithmetic mean is the unique minimizer of the sum of squared deviations in Euclidean space, except in degenerate coordinate representations.
Question 49 of 60 · K mode · Hard
Under simple matching dissimilarity, a categorical cluster contains three times, twice, and four times. What is a valid mode vector?
Not quite. Try another option.
Answer:
Modes are computed coordinate-wise. occurs five times versus four for , while occurs six times versus three for .
Question 50 of 60 · K mode · Hard
A K mode cluster has category counts , , and for one attribute. Which statement correctly describes the prototype update for that attribute?
Not quite. Try another option.
Answer: Either or minimizes the mismatch loss
Choosing either category with maximal frequency gives five mismatches. Thus the minimizing mode is nonunique and requires a tie-breaking rule.
Question 51 of 60 · K mode · Hard
Two categorical records are and . With simple matching dissimilarity and unit attribute weights, what is their dissimilarity?
Not quite. Try another option.
Answer:
The records differ in the second and fourth attributes, so simple matching dissimilarity counts two mismatches.
Question 52 of 60 · K mode · Hard
A 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?
Not quite. Try another option.
Answer: The high-cardinality attribute may dominate through frequent mismatches
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.
Question 53 of 60 · K median · Hard
For the one-dimensional cluster , which set contains every centroid minimizing the sum of absolute deviations?
Not quite. Try another option.
Answer: Every point in
With an even number of sorted observations, every value between the two middle observations minimizes the sum of absolute deviations.
Question 54 of 60 · K median · Hard
For multivariate K median using Manhattan distance, how is the optimal prototype of a fixed nonempty cluster obtained?
Not quite. Try another option.
Answer: By taking a median independently in each coordinate
Manhattan loss separates by coordinate. Each coordinate-wise sum of absolute deviations is minimized by a median.
Question 55 of 60 · K median · Hard
A one-dimensional cluster consists of , where . As tends to infinity, what happens to the K median prototype and its minimized absolute-deviation objective?
Not quite. Try another option.
Answer: The prototype stays at , while the objective grows linearly
The sample median is always . The minimized loss is , which grows linearly.
Question 56 of 60 · K median · Hard
A 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?
Not quite. Try another option.
Answer:
The total weight is . At , the weight strictly below is and the weight strictly above is , so neither exceeds half the total.
Question 57 of 60 · Performance measures of clustering · Hard
For a point , the mean intra-cluster distance is and the smallest mean distance to another cluster is . What is its silhouette value?
Not quite. Try another option.
Answer:
The silhouette is .
Question 58 of 60 · Performance measures of clustering · Hard
A 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?
Not quite. Try another option.
Answer: It remains unchanged because pair relationships are preserved
ARI depends on whether pairs are grouped together or apart, not on the symbolic names assigned to clusters or classes.
Question 59 of 60 · Performance measures of clustering · Hard
Why can unadjusted cluster purity misleadingly favor solutions with large values of ?
Not quite. Try another option.
Answer: Singleton clusters can achieve perfect class homogeneity
Purity does not penalize fragmentation. Assigning each point to its own cluster yields purity , even though the clustering may be uninformative.
Question 60 of 60 · Performance measures of clustering · Hard
Two candidate clusterings have Davies–Bouldin indices and , computed using the same data, distance, and dispersion definition. Which interpretation is correct?
Not quite. Try another option.
Answer: The solution is preferred because lower values indicate better separation
The Davies–Bouldin index averages worst-case ratios of within-cluster scatter to between-cluster separation. Lower values indicate more compact, better-separated clusters.
That's unit 7
Answer a few questions and your score shows up here.
Nearly through. Did unit 7 of ECAP792 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 7 of ECAP792 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.