Unsupervised Machine Learning
- 35Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What distinguishes unsupervised machine learning from supervised machine learning?
What distinguishes unsupervised machine learning from supervised machine learning?
35 questions
- 1
What distinguishes unsupervised machine learning from supervised machine learning?
- A
Unsupervised learning always uses cross-validation.
- B
In unsupervised learning, there is no response variable y.
- C
Unsupervised learning requires labeled data.
- D
In unsupervised learning, the data matrix x is not needed.
Correct answer
BIn unsupervised learning, there is no response variable y.
Explanation
Supervised learning uses a response y to predict or detect associations, while unsupervised learning only has the data matrix x without any outcome.
- A
- 2
Which of the following is a category of machine learning?
- A
Supervised, unsupervised, and confirmatory.
- B
Hierarchical, partitional, and spectral.
- C
Supervised, unsupervised, semi-supervised, and reinforcement.
- D
Exploratory, confirmatory, and predictive.
Correct answer
CSupervised, unsupervised, semi-supervised, and reinforcement.
Explanation
The lecture mentions supervised, unsupervised, semi-supervised, and reinforcement learning as the main categories.
- A
- 3
Why is unsupervised learning commonly used in exploratory data analysis?
- A
To reduce the number of features without loss of information.
- B
To validate findings from previous studies.
- C
To identify patterns and generate hypotheses.
- D
To predict outcomes for new observations.
Correct answer
CTo identify patterns and generate hypotheses.
Explanation
Unsupervised learning is used in exploratory data analysis to discover patterns or signal in the data, which can lead to new hypotheses.
- A
- 4
When using the same data to both generate and test hypotheses, the findings are considered:
- A
Generalizable to other datasets.
- B
Exploratory and not strongly reliable.
- C
Confirmatory and reproducible.
- D
Fully validated.
Correct answer
BExploratory and not strongly reliable.
Explanation
If the same data is used to drive and validate hypotheses, the results remain exploratory and may not be reproducible; independent validation is needed.
- A
- 5
What is the main objective of clustering?
- A
To predict a continuous outcome.
- B
To reduce the dimensionality of the data.
- C
To find the best linear combination of features.
- D
To group objects so that objects within a cluster are more similar than objects in different clusters.
Correct answer
DTo group objects so that objects within a cluster are more similar than objects in different clusters.
Explanation
Clustering aims to partition data into groups where within-cluster similarity is high and between-cluster similarity is low.
- A
- 6
In clustering, the definition of 'meaningful clusters' is:
- A
Always based on a single criterion.
- B
Automatically selected by the algorithm without user input.
- C
Determined solely by the number of features.
- D
Vague and dependent on the choice of similarity measure.
Correct answer
DVague and dependent on the choice of similarity measure.
Explanation
Different similarity measures and definitions of clusters can lead to different results; the concept is inherently vague.
- A
- 7
Which of the following can be clustered in an analysis?
- A
Observations, features, or both (biclustering).
- B
Only features.
- C
Neither observations nor features.
- D
Only observations.
Correct answer
AObservations, features, or both (biclustering).
Explanation
Clustering can be applied to observations, features, or both simultaneously, the latter known as biclustering.
- A
- 8
Hierarchical clustering produces:
- A
A biplot of observations and features.
- B
A set of principal components.
- C
A single partition of data into k clusters.
- D
A dendrogram showing a sequence of nested clusters.
Correct answer
DA dendrogram showing a sequence of nested clusters.
Explanation
Hierarchical clustering yields a dendrogram, a tree-like structure that illustrates nested clusters at various levels of similarity.
- A
- 9
In a dendrogram, what does the vertical axis represent?
- A
The cluster labels.
- B
The order of merging on the horizontal axis.
- C
The number of observations.
- D
The height or dissimilarity at which clusters are fused.
Correct answer
DThe height or dissimilarity at which clusters are fused.
Explanation
The vertical axis indicates the dissimilarity (height) at which clusters are merged; earlier (lower) fusions indicate greater similarity.
- A
- 10
Which of the following is TRUE about the horizontal axis of a dendrogram?
- A
It shows the order of observations by similarity.
- B
It indicates the time of fusion.
- C
It corresponds to the cluster size.
- D
It is not informative and the arrangement of leaves is arbitrary.
Correct answer
DIt is not informative and the arrangement of leaves is arbitrary.
Explanation
The horizontal axis is arbitrary; leaves that are adjacent may be very dissimilar, as seen when two leaves are last to merge despite being next to each other.
- A
- 11
Single linkage clustering defines the distance between two clusters as:
- A
The average distance between points in the clusters.
- B
The distance between the cluster centroids.
- C
The minimum distance between points in the clusters.
- D
The maximum distance between points in the clusters.
Correct answer
CThe minimum distance between points in the clusters.
Explanation
Single linkage uses the minimum distance between any pair of points from the two clusters.
- A
- 12
Complete linkage clustering defines the distance between two clusters as:
- A
The Euclidean distance between medians.
- B
The minimum distance between points.
- C
The average distance between points.
- D
The maximum distance between points.
Correct answer
DThe maximum distance between points.
Explanation
Complete linkage uses the maximum distance between any pair of points from the two clusters.
- A
- 13
Which linkage function is most sensitive to outliers?
- A
All are equally sensitive.
- B
Complete linkage.
- C
Single linkage.
- D
Average linkage.
Correct answer
CSingle linkage.
Explanation
Single linkage is sensitive to outliers because a single point between clusters can cause them to merge (chaining), while complete and average linkage are more robust.
- A
- 14
Which linkage function is best suited for identifying nonspherical clusters?
- A
Complete linkage.
- B
Average linkage.
- C
None of the above.
- D
Single linkage.
Correct answer
DSingle linkage.
Explanation
Single linkage can capture clusters of arbitrary shape, including nested or elongated clusters, whereas complete and average linkage tend to prefer spherical clusters.
- A
- 15
In high-dimensional settings, single linkage clustering often exhibits:
- A
Robust performance like complete linkage.
- B
A clear elbow in the objective function.
- C
Compact spherical clusters.
- D
Chaining behavior, adding one observation at a time.
Correct answer
DChaining behavior, adding one observation at a time.
Explanation
Due to noise in high dimensions, single linkage tends to chain observations one by one, failing to produce meaningful clusters.
- A
- 16
What is a disadvantage of hierarchical clustering?
- A
It always produces a single partition.
- B
It cannot handle large datasets.
- C
It requires a predefined number of clusters.
- D
It does not correspond to a formal optimization criterion.
Correct answer
DIt does not correspond to a formal optimization criterion.
Explanation
Hierarchical clustering lacks a formal objective function; the final clustering is chosen arbitrarily by cutting the dendrogram.
- A
- 17
K-means clustering aims to:
- A
Build a dendrogram of nested clusters.
- B
Find the directions of maximum variance.
- C
Minimize the distance between cluster centroids.
- D
Partition observations into k clusters by minimizing within-cluster sum of squares.
Correct answer
DPartition observations into k clusters by minimizing within-cluster sum of squares.
Explanation
K-means seeks to partition the data into k clusters such that the total within-cluster variation (sum of squared distances to centroids) is minimized.
- A
- 18
In the k-means algorithm, the iterative steps are:
- A
Update the number of clusters, then recalculate distances.
- B
Assign points randomly, then compute dendrogram.
- C
Compute principal components, then cluster.
- D
Calculate centroids, then assign points to the nearest centroid.
Correct answer
DCalculate centroids, then assign points to the nearest centroid.
Explanation
The algorithm alternates between computing cluster centroids and reassigning each point to the closest centroid until convergence.
- A
- 19
Which of the following is TRUE about k-means clustering?
- A
It provides a hierarchy of clusters.
- B
It is robust to the initial random assignment.
- C
It works best for spherical clusters of similar size.
- D
It always finds the global optimum.
Correct answer
CIt works best for spherical clusters of similar size.
Explanation
K-means performs well on compact, spherical clusters of roughly equal size, but it may converge to a local optimum and is sensitive to initialization.
- A
- 20
A potential issue with k-means clustering is:
- A
It is computationally infeasible for large datasets.
- B
It cannot handle numerical data.
- C
It always requires a dendrogram.
- D
It may produce empty clusters.
Correct answer
DIt may produce empty clusters.
Explanation
K-means can produce empty clusters, especially with outliers; a remedy is to remove empty clusters and refit.
- A
- 21
Unlike hierarchical clustering, k-means clustering:
- A
Cannot cluster observations.
- B
Does not produce a hierarchy.
- C
Is slower for large data.
- D
Requires a distance matrix.
Correct answer
BDoes not produce a hierarchy.
Explanation
K-means gives a flat partition with no nested structure; changing k yields completely different cluster assignments.
- A
- 22
A common method to choose the number of clusters in k-means is:
- A
The chaining index.
- B
The proportion of variance explained.
- C
The elbow plot of the objective function.
- D
The height of the dendrogram.
Correct answer
CThe elbow plot of the objective function.
Explanation
The elbow method examines the within-cluster sum of squares for different k and looks for a point where the decrease flattens.
- A
- 23
In hierarchical clustering, the number of clusters can be chosen by:
- A
Looking for gaps in the dendrogram.
- B
Selecting the number of principal components.
- C
Using the elbow method.
- D
Maximizing the within-cluster sum of squares.
Correct answer
ALooking for gaps in the dendrogram.
Explanation
Examining the dendrogram for large jumps in fusion height (gaps) suggests natural cluster cuts.
- A
- 24
The best way to determine the number of clusters is:
- A
Use the elbow method alone.
- B
Always use k=3.
- C
Choose the linkage that gives the most clusters.
- D
Validate using downstream analysis with a test set.
Correct answer
DValidate using downstream analysis with a test set.
Explanation
Since clustering is part of a larger pipeline, the number of clusters should be validated by its effect on downstream supervised tasks using held-out data.
- A
- 25
The goal of principal component analysis (PCA) is to:
- A
Find a lower-dimensional representation that captures most of the variance.
- B
Group observations into clusters.
- C
Identify association rules between features.
- D
Classify observations into predefined classes.
Correct answer
AFind a lower-dimensional representation that captures most of the variance.
Explanation
PCA aims to reduce dimensionality by finding linear combinations (principal components) that retain as much variation as possible.
- A
- 26
The first principal component is the direction that:
- A
Maximizes the variance of the projected data.
- B
Minimizes the sum of squared distances to the origin.
- C
Has the smallest eigenvalue.
- D
Is orthogonal to all other components.
Correct answer
AMaximizes the variance of the projected data.
Explanation
The first PC is the direction of maximum variance in the data.
- A
- 27
Subsequent principal components are chosen to be:
- A
Correlated with the first component.
- B
Orthogonal (perpendicular) to all previous components.
- C
Identical to the original features.
- D
Random directions.
Correct answer
BOrthogonal (perpendicular) to all previous components.
Explanation
Each subsequent PC is orthogonal to all previous ones and maximizes the remaining variance.
- A
- 28
In a PCA biplot, what do the arrows represent?
- A
The cluster centroids.
- B
The original features/variables.
- C
The observations.
- D
The principal component scores.
Correct answer
BThe original features/variables.
Explanation
Arrows in a biplot indicate the direction and magnitude of the original variables in the PC space.
- A
- 29
PCA is widely used to:
- A
Compute linkage functions.
- B
Correct for batch effects in genomic data.
- C
Perform k-means clustering.
- D
Find hierarchical clusters.
Correct answer
BCorrect for batch effects in genomic data.
Explanation
PCA is commonly used to identify and correct batch effects, as well as in population genetics and studying human migration.
- A
- 30
How can one decide the number of principal components to retain?
- A
By using the dendrogram cut.
- B
By choosing the number that equals the number of features.
- C
By minimizing the within-cluster sum of squares.
- D
By looking for the elbow in the scree plot of eigenvalues.
Correct answer
DBy looking for the elbow in the scree plot of eigenvalues.
Explanation
A scree plot shows eigenvalues (variance explained) per PC; an elbow indicates a good cut-off point.
- A
- 31
Principal component regression (PCR) is an example of:
- A
Reinforcement learning.
- B
A semi-supervised learning method.
- C
Using unsupervised learning to aid supervised learning.
- D
Pure unsupervised clustering.
Correct answer
CUsing unsupervised learning to aid supervised learning.
Explanation
PCR first uses PCA (unsupervised) to reduce dimensionality, then applies regression or classification (supervised) on the PCs.
- A
- 32
Why is validation important in unsupervised learning?
- A
Because without external validation, findings may not be generalizable.
- B
Because the number of clusters is always known.
- C
Because unsupervised learning always produces correct results.
- D
Because cross-validation cannot be used.
Correct answer
ABecause without external validation, findings may not be generalizable.
Explanation
Without validation on independent data, results from unsupervised learning might be artifacts and not reproducible.
- A
- 33
According to the lecture, unsupervised learning should be viewed as:
- A
An automatic process requiring no user input.
- B
A replacement for supervised learning.
- C
A standalone analysis tool.
- D
One step in the data analysis pipeline.
Correct answer
DOne step in the data analysis pipeline.
Explanation
Unsupervised learning is integrated into the broader data analysis pipeline, often used in conjunction with supervised methods and validation.
- A
- 34
When clustering results are used purely for exploratory analysis, one should:
- A
Immediately publish the results.
- B
Assume they are reproducible.
- C
Treat them as confirmatory findings.
- D
Be cautious about over-interpretation without validation.
Correct answer
DBe cautious about over-interpretation without validation.
Explanation
Exploratory findings require external validation before strong conclusions are drawn; otherwise, they may not generalize.
- A
- 35
Which of the following can affect clustering results?
- A
Only the choice of linkage.
- B
Preprocessing steps like centering and scaling.
- C
Only the number of features.
- D
Clustering is unaffected by preprocessing.
Correct answer
BPreprocessing steps like centering and scaling.
Explanation
Centering and scaling can dramatically alter distances and thus clustering outcomes; preprocessing is a critical step.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.