1. Home
  2. Explore
  3. Computer Science
  4. Unsupervised Machine Learning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Unsupervised Machine Learning

  • 35Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Introduction to Unsupervised Learning

What distinguishes unsupervised machine learning from supervised machine learning?

35 questions

  1. 1

    What distinguishes unsupervised machine learning from supervised machine learning?

    1. A

      Unsupervised learning always uses cross-validation.

    2. B

      In unsupervised learning, there is no response variable yyy.

    3. C

      Unsupervised learning requires labeled data.

    4. D

      In unsupervised learning, the data matrix xxx is not needed.

    Correct answer
    B

    In unsupervised learning, there is no response variable yyy.

    Explanation

    Supervised learning uses a response yyy to predict or detect associations, while unsupervised learning only has the data matrix xxx without any outcome.

  2. 2

    Which of the following is a category of machine learning?

    1. A

      Supervised, unsupervised, and confirmatory.

    2. B

      Hierarchical, partitional, and spectral.

    3. C

      Supervised, unsupervised, semi-supervised, and reinforcement.

    4. D

      Exploratory, confirmatory, and predictive.

    Correct answer
    C

    Supervised, unsupervised, semi-supervised, and reinforcement.

    Explanation

    The lecture mentions supervised, unsupervised, semi-supervised, and reinforcement learning as the main categories.

  3. 3

    Why is unsupervised learning commonly used in exploratory data analysis?

    1. A

      To reduce the number of features without loss of information.

    2. B

      To validate findings from previous studies.

    3. C

      To identify patterns and generate hypotheses.

    4. D

      To predict outcomes for new observations.

    Correct answer
    C

    To 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.

  4. 4

    When using the same data to both generate and test hypotheses, the findings are considered:

    1. A

      Generalizable to other datasets.

    2. B

      Exploratory and not strongly reliable.

    3. C

      Confirmatory and reproducible.

    4. D

      Fully validated.

    Correct answer
    B

    Exploratory 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.

  5. 5

    What is the main objective of clustering?

    1. A

      To predict a continuous outcome.

    2. B

      To reduce the dimensionality of the data.

    3. C

      To find the best linear combination of features.

    4. D

      To group objects so that objects within a cluster are more similar than objects in different clusters.

    Correct answer
    D

    To 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.

  6. 6

    In clustering, the definition of 'meaningful clusters' is:

    1. A

      Always based on a single criterion.

    2. B

      Automatically selected by the algorithm without user input.

    3. C

      Determined solely by the number of features.

    4. D

      Vague and dependent on the choice of similarity measure.

    Correct answer
    D

    Vague 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.

  7. 7

    Which of the following can be clustered in an analysis?

    1. A

      Observations, features, or both (biclustering).

    2. B

      Only features.

    3. C

      Neither observations nor features.

    4. D

      Only observations.

    Correct answer
    A

    Observations, features, or both (biclustering).

    Explanation

    Clustering can be applied to observations, features, or both simultaneously, the latter known as biclustering.

  8. 8

    Hierarchical clustering produces:

    1. A

      A biplot of observations and features.

    2. B

      A set of principal components.

    3. C

      A single partition of data into kkk clusters.

    4. D

      A dendrogram showing a sequence of nested clusters.

    Correct answer
    D

    A 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.

  9. 9

    In a dendrogram, what does the vertical axis represent?

    1. A

      The cluster labels.

    2. B

      The order of merging on the horizontal axis.

    3. C

      The number of observations.

    4. D

      The height or dissimilarity at which clusters are fused.

    Correct answer
    D

    The 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.

  10. 10

    Which of the following is TRUE about the horizontal axis of a dendrogram?

    1. A

      It shows the order of observations by similarity.

    2. B

      It indicates the time of fusion.

    3. C

      It corresponds to the cluster size.

    4. D

      It is not informative and the arrangement of leaves is arbitrary.

    Correct answer
    D

    It 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.

  11. 11

    Single linkage clustering defines the distance between two clusters as:

    1. A

      The average distance between points in the clusters.

    2. B

      The distance between the cluster centroids.

    3. C

      The minimum distance between points in the clusters.

    4. D

      The maximum distance between points in the clusters.

    Correct answer
    C

    The minimum distance between points in the clusters.

    Explanation

    Single linkage uses the minimum distance between any pair of points from the two clusters.

  12. 12

    Complete linkage clustering defines the distance between two clusters as:

    1. A

      The Euclidean distance between medians.

    2. B

      The minimum distance between points.

    3. C

      The average distance between points.

    4. D

      The maximum distance between points.

    Correct answer
    D

    The maximum distance between points.

    Explanation

    Complete linkage uses the maximum distance between any pair of points from the two clusters.

  13. 13

    Which linkage function is most sensitive to outliers?

    1. A

      All are equally sensitive.

    2. B

      Complete linkage.

    3. C

      Single linkage.

    4. D

      Average linkage.

    Correct answer
    C

    Single 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.

  14. 14

    Which linkage function is best suited for identifying nonspherical clusters?

    1. A

      Complete linkage.

    2. B

      Average linkage.

    3. C

      None of the above.

    4. D

      Single linkage.

    Correct answer
    D

    Single 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.

  15. 15

    In high-dimensional settings, single linkage clustering often exhibits:

    1. A

      Robust performance like complete linkage.

    2. B

      A clear elbow in the objective function.

    3. C

      Compact spherical clusters.

    4. D

      Chaining behavior, adding one observation at a time.

    Correct answer
    D

    Chaining 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.

  16. 16

    What is a disadvantage of hierarchical clustering?

    1. A

      It always produces a single partition.

    2. B

      It cannot handle large datasets.

    3. C

      It requires a predefined number of clusters.

    4. D

      It does not correspond to a formal optimization criterion.

    Correct answer
    D

    It 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.

  17. 17

    K-means clustering aims to:

    1. A

      Build a dendrogram of nested clusters.

    2. B

      Find the directions of maximum variance.

    3. C

      Minimize the distance between cluster centroids.

    4. D

      Partition observations into kkk clusters by minimizing within-cluster sum of squares.

    Correct answer
    D

    Partition observations into kkk clusters by minimizing within-cluster sum of squares.

    Explanation

    K-means seeks to partition the data into kkk clusters such that the total within-cluster variation (sum of squared distances to centroids) is minimized.

  18. 18

    In the k-means algorithm, the iterative steps are:

    1. A

      Update the number of clusters, then recalculate distances.

    2. B

      Assign points randomly, then compute dendrogram.

    3. C

      Compute principal components, then cluster.

    4. D

      Calculate centroids, then assign points to the nearest centroid.

    Correct answer
    D

    Calculate 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.

  19. 19

    Which of the following is TRUE about k-means clustering?

    1. A

      It provides a hierarchy of clusters.

    2. B

      It is robust to the initial random assignment.

    3. C

      It works best for spherical clusters of similar size.

    4. D

      It always finds the global optimum.

    Correct answer
    C

    It 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.

  20. 20

    A potential issue with k-means clustering is:

    1. A

      It is computationally infeasible for large datasets.

    2. B

      It cannot handle numerical data.

    3. C

      It always requires a dendrogram.

    4. D

      It may produce empty clusters.

    Correct answer
    D

    It may produce empty clusters.

    Explanation

    K-means can produce empty clusters, especially with outliers; a remedy is to remove empty clusters and refit.

  21. 21

    Unlike hierarchical clustering, k-means clustering:

    1. A

      Cannot cluster observations.

    2. B

      Does not produce a hierarchy.

    3. C

      Is slower for large data.

    4. D

      Requires a distance matrix.

    Correct answer
    B

    Does not produce a hierarchy.

    Explanation

    K-means gives a flat partition with no nested structure; changing kkk yields completely different cluster assignments.

  22. 22

    A common method to choose the number of clusters in k-means is:

    1. A

      The chaining index.

    2. B

      The proportion of variance explained.

    3. C

      The elbow plot of the objective function.

    4. D

      The height of the dendrogram.

    Correct answer
    C

    The elbow plot of the objective function.

    Explanation

    The elbow method examines the within-cluster sum of squares for different kkk and looks for a point where the decrease flattens.

  23. 23

    In hierarchical clustering, the number of clusters can be chosen by:

    1. A

      Looking for gaps in the dendrogram.

    2. B

      Selecting the number of principal components.

    3. C

      Using the elbow method.

    4. D

      Maximizing the within-cluster sum of squares.

    Correct answer
    A

    Looking for gaps in the dendrogram.

    Explanation

    Examining the dendrogram for large jumps in fusion height (gaps) suggests natural cluster cuts.

  24. 24

    The best way to determine the number of clusters is:

    1. A

      Use the elbow method alone.

    2. B

      Always use k=3k=3k=3.

    3. C

      Choose the linkage that gives the most clusters.

    4. D

      Validate using downstream analysis with a test set.

    Correct answer
    D

    Validate 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.

  25. 25

    The goal of principal component analysis (PCA) is to:

    1. A

      Find a lower-dimensional representation that captures most of the variance.

    2. B

      Group observations into clusters.

    3. C

      Identify association rules between features.

    4. D

      Classify observations into predefined classes.

    Correct answer
    A

    Find 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.

  26. 26

    The first principal component is the direction that:

    1. A

      Maximizes the variance of the projected data.

    2. B

      Minimizes the sum of squared distances to the origin.

    3. C

      Has the smallest eigenvalue.

    4. D

      Is orthogonal to all other components.

    Correct answer
    A

    Maximizes the variance of the projected data.

    Explanation

    The first PC is the direction of maximum variance in the data.

  27. 27

    Subsequent principal components are chosen to be:

    1. A

      Correlated with the first component.

    2. B

      Orthogonal (perpendicular) to all previous components.

    3. C

      Identical to the original features.

    4. D

      Random directions.

    Correct answer
    B

    Orthogonal (perpendicular) to all previous components.

    Explanation

    Each subsequent PC is orthogonal to all previous ones and maximizes the remaining variance.

  28. 28

    In a PCA biplot, what do the arrows represent?

    1. A

      The cluster centroids.

    2. B

      The original features/variables.

    3. C

      The observations.

    4. D

      The principal component scores.

    Correct answer
    B

    The original features/variables.

    Explanation

    Arrows in a biplot indicate the direction and magnitude of the original variables in the PC space.

  29. 29

    PCA is widely used to:

    1. A

      Compute linkage functions.

    2. B

      Correct for batch effects in genomic data.

    3. C

      Perform k-means clustering.

    4. D

      Find hierarchical clusters.

    Correct answer
    B

    Correct 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.

  30. 30

    How can one decide the number of principal components to retain?

    1. A

      By using the dendrogram cut.

    2. B

      By choosing the number that equals the number of features.

    3. C

      By minimizing the within-cluster sum of squares.

    4. D

      By looking for the elbow in the scree plot of eigenvalues.

    Correct answer
    D

    By 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.

  31. 31

    Principal component regression (PCR) is an example of:

    1. A

      Reinforcement learning.

    2. B

      A semi-supervised learning method.

    3. C

      Using unsupervised learning to aid supervised learning.

    4. D

      Pure unsupervised clustering.

    Correct answer
    C

    Using unsupervised learning to aid supervised learning.

    Explanation

    PCR first uses PCA (unsupervised) to reduce dimensionality, then applies regression or classification (supervised) on the PCs.

  32. 32

    Why is validation important in unsupervised learning?

    1. A

      Because without external validation, findings may not be generalizable.

    2. B

      Because the number of clusters is always known.

    3. C

      Because unsupervised learning always produces correct results.

    4. D

      Because cross-validation cannot be used.

    Correct answer
    A

    Because without external validation, findings may not be generalizable.

    Explanation

    Without validation on independent data, results from unsupervised learning might be artifacts and not reproducible.

  33. 33

    According to the lecture, unsupervised learning should be viewed as:

    1. A

      An automatic process requiring no user input.

    2. B

      A replacement for supervised learning.

    3. C

      A standalone analysis tool.

    4. D

      One step in the data analysis pipeline.

    Correct answer
    D

    One 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.

  34. 34

    When clustering results are used purely for exploratory analysis, one should:

    1. A

      Immediately publish the results.

    2. B

      Assume they are reproducible.

    3. C

      Treat them as confirmatory findings.

    4. D

      Be cautious about over-interpretation without validation.

    Correct answer
    D

    Be cautious about over-interpretation without validation.

    Explanation

    Exploratory findings require external validation before strong conclusions are drawn; otherwise, they may not generalize.

  35. 35

    Which of the following can affect clustering results?

    1. A

      Only the choice of linkage.

    2. B

      Preprocessing steps like centering and scaling.

    3. C

      Only the number of features.

    4. D

      Clustering is unaffected by preprocessing.

    Correct answer
    B

    Preprocessing steps like centering and scaling.

    Explanation

    Centering and scaling can dramatically alter distances and thus clustering outcomes; preprocessing is a critical step.

Question 1 of 35
Question 1 of 35

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent