chapter

    Unsupervised Learning Notes for Gate Da

    GATE DA Unsupervised Learning: 6 chapters, 5 previous year questions (19% of Machine Learning), 563 practice questions and one solved question from each chapt

    A question from this chapter

    Question 1
    Level 4: Challenger

    Consider the four 2D data points: , , , . We first compute the sample covariance matrix (using divisor , not ), find its first principal component, and project all four points onto this direction. We then run optimal 2-means clustering on the resulting one-dimensional projected data. What is the total within-cluster sum of squares of this optimal 2-means clustering?

    Question 2
    Level 3: Exam Standard

    Consider a -means clustering algorithm with in . The cluster centers are , , , , and . The Voronoi cell for is the set of all points closer to than to any other center. How many points with integer coordinates lie strictly inside or on the boundary of the Voronoi cell for ? (Provide the exact integer count)

    Question 3
    Level 4: Challenger

    A centered dataset in has the covariance matrix . The data is projected onto the unit vector for dimensionality reduction to 1D. What is the expected squared reconstruction error per data point?

    Question 4
    Level 3: Exam Standard

    Consider the hierarchical clustering of a dataset using single linkage.

    \textbf{Assertion (A):} The merge height at which two specific points and first belong to the same cluster is equal to the maximum over all paths between and of the minimum edge weight on the path.

    \textbf{Reason (R):} Single linkage clustering updates the distance matrix by taking the minimum of the distances between the constituent points of the clusters, which corresponds to finding the most similar pair at each step.

    Which of the following options is correct?

    Question 5
    Level 4: Challenger

    A dataset in consists of two clusters and with 50 points each. The within-cluster scatter matrix for is , and for is . The mean of is and the mean of is . If PCA is performed on the entire dataset of 100 points, what is the variance captured by the first principal component?

    Question 6
    Level 3: Exam Standard

    Match each task in Group I with the most appropriate algorithm in Group II. Note that an algorithm may be matched to more than one task, and not every algorithm needs to be used.

    \textbf{Group I (Tasks):}

    \begin{itemize}

    \item T1: Estimating the posterior distribution of a Bayesian model where the normalization constant is intractable.

    \item T2: Reducing the dimensionality of a dataset while preserving the maximum possible variance.

    \item T3: Identifying clusters of arbitrary shape in a spatial dataset with varying densities and noise.

    \item T4: Generating samples from a complex, high-dimensional probability distribution.

    \end{itemize}

    \textbf{Group II (Algorithms):}

    \begin{itemize}

    \item A1: Principal Component Analysis

    \item B2: Markov Chain Monte Carlo

    \item C3: DBSCAN

    \item D4: K-Medoids

    \end{itemize}

    Which of the following is the correct matching?

    Free preview ends here

    Login to view the complete notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Unsupervised Learning Notes for GATE DA

    GATE DA Unsupervised Learning: 6 chapters, 5 previous year questions (19% of Machine Learning), 563 practice questions and one solved question from each chapter.

    About Unsupervised Learning Notes

    Full study notes for Unsupervised Learning in GATE DA, organised across 6 chapters. Each chapter page explains concepts from the basics with worked examples and the formulas you need.

    Unsupervised Learning Weightage in GATE DA

    Unsupervised Learning accounts for 5 of 26 Machine Learning previous year questions in our bank (19%), about 1.7 per paper across 3 papers.

    Unsupervised Learning Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Chapter 1 — Unsupervised Learning00%10
    K-means Clustering and Cluster GeometryK-means Cluster Geometry and Voronoi Regions, K-means Cluster Geometry and Voronoi Regions120%117
    Chapter 2 — Unsupervised Learning00%10
    Hierarchical Clustering and Linkage MethodsHierarchical Clustering Distance Metrics and First Merge, Hierarchical Clustering Distance Metrics and First Merge, Single and Complete Linkage with Dendrograms, Single and Complete Linkage with Dendrograms360%305
    Chapter 3 — Unsupervised Learning00%10
    Unsupervised Learning Algorithms and Task MatchingMachine Learning Task and Algorithm Matching, Machine Learning Task and Algorithm Matching120%111

    More from Machine Learning

    One Solved Question from Each Unsupervised Learning Chapter

    Question 1 · Chapter 1 — Unsupervised Learning MCQ

    Consider the four 2D data points: , , , . We first compute the sample covariance matrix (using divisor , not ), find its first principal component, and project all four points onto this direction. We then run optimal 2-means clustering on the resulting one-dimensional projected data. What is the total within-cluster sum of squares of this optimal 2-means clustering?

    1. A.

      0.50

    2. B.

      1.00

    3. C.

      2.00

    4. D.

      4.00

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: this is a PCA-then-K-means pipeline question. The projection direction is the eigenvector of the covariance matrix corresponding to its largest eigenvalue; the within-cluster sum of squares is computed on the projected scalars, not the original 2D points.

    Step 1: The data is already centered (mean is ). Compute :

    The covariance matrix is .

    Step 2: Eigenvalues of satisfy , so , giving and . The eigenvector for satisfies , i.e. . Normalized: .

    Step 3: Project each point onto :

    Step 4: Run 2-means on . The optimal partition is and , with means and .

    Step 5: Compute WCSS:

    Answer: 1.00

    Question 2 · k-Means Clustering and Cluster Geometry NAT

    Consider a -means clustering algorithm with in . The cluster centers are , , , , and . The Voronoi cell for is the set of all points closer to than to any other center. How many points with integer coordinates lie strictly inside or on the boundary of the Voronoi cell for ? (Provide the exact integer count)

    Correct Answer:

    27.00

    Step-by-Step Solution

    Insight: The Voronoi cell is the intersection of half-spaces defined by the perpendicular bisectors between and all other centers. We can set up the inequalities and count integer points by casework on .

    Exam route:

    1. Bisector with : .
    2. Bisector with : .
    3. Bisector with : .
    4. Bisector with : .
    5. Combine: and .
    6. Count integer for each : .

    Learning route:

    A point is in the Voronoi cell of if its squared distance to is less than or equal to its squared distance to any other center.

    • vs : .
    • vs : .
    • vs : .
    • vs : .

    The region is bounded by and . We count integer pairs by checking each integer :

    • : (3 points)
    • : (5 points)
    • : (5 points)
    • : (7 points)
    • : (7 points)

    Total count = .

    Question 3 · Chapter 2 — Unsupervised Learning MCQ

    A centered dataset in has the covariance matrix . The data is projected onto the unit vector for dimensionality reduction to 1D. What is the expected squared reconstruction error per data point?

    1. A.

      4.20

    2. B.

      2.80

    3. C.

      6.16

    4. D.

      0.84

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The expected squared reconstruction error in PCA is the total variance minus the variance captured by the projection direction.

    Step 1: Total variance is the trace of the covariance matrix .

    Trace() = .

    Step 2: Variance captured by projection onto unit vector is .

    .

    Step 3: Reconstruction error = Total variance - Captured variance = .

    Answer: 2.80

    Question 4 · Hierarchical Clustering and Linkage Methods MCQ

    Consider the hierarchical clustering of a dataset using single linkage.

    \textbf{Assertion (A):} The merge height at which two specific points and first belong to the same cluster is equal to the maximum over all paths between and of the minimum edge weight on the path.

    \textbf{Reason (R):} Single linkage clustering updates the distance matrix by taking the minimum of the distances between the constituent points of the clusters, which corresponds to finding the most similar pair at each step.

    Which of the following options is correct?

    1. A.

      Both (A) and (R) are true and (R) is the correct explanation of (A).

    2. B.

      Both (A) and (R) are true but (R) is NOT the correct explanation of (A).

    3. C.

      (A) is true but (R) is false.

    4. D.

      (A) is false but (R) is true.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is an assertion-reason problem testing the graph-theoretic interpretation of single linkage clustering. We must verify the minimax/maximin path properties.

    Step 1: Analyze Assertion (A).

    Single linkage clustering is equivalent to building the Minimum Spanning Tree (MST) of the complete graph where edge weights are the pairwise distances.

    The merge height is the maximum edge weight on the unique path between and in the MST.

    A known property of the MST is that this path is the \textbf{minimax path} in the complete graph: it minimizes the maximum edge weight over all possible paths between and .

    Assertion (A) describes the \textbf{maximin path} (maximum of the minimums), which is the property of the Maximum Spanning Tree (related to complete linkage), not single linkage.

    Thus, (A) is FALSE.

    Step 2: Analyze Reason (R).

    The update rule for single linkage is .

    This means we always merge the two clusters that have the smallest pairwise distance between their constituents.

    Thus, (R) is TRUE.

    Step 3: Conclusion.

    (A) is false, (R) is true.

    Answer: D

    Question 5 · Chapter 3 — Unsupervised Learning MCQ

    A dataset in consists of two clusters and with 50 points each. The within-cluster scatter matrix for is , and for is . The mean of is and the mean of is . If PCA is performed on the entire dataset of 100 points, what is the variance captured by the first principal component?

    1. A.

      2.00

    2. B.

      18.00

    3. C.

      20.00

    4. D.

      16.00

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The total scatter matrix of a dataset is the sum of the within-cluster scatter matrix and the between-cluster scatter matrix . The overall covariance matrix is , and the variance captured by the first principal component is its largest eigenvalue.

    Step 1: Compute the within-cluster scatter matrix .

    .

    Step 2: Compute the between-cluster scatter matrix .

    The formula is .

    Here . So .

    .

    .

    Step 3: Compute the total scatter matrix and the overall covariance matrix .

    .

    .

    Step 4: Find the largest eigenvalue of .

    Since is diagonal, its eigenvalues are the diagonal entries: 18 and 2. The largest is 18.

    Answer: 18.00

    Question 6 · Unsupervised Learning Algorithms and Task Matching MCQ

    Match each task in Group I with the most appropriate algorithm in Group II. Note that an algorithm may be matched to more than one task, and not every algorithm needs to be used.

    \textbf{Group I (Tasks):}

    \begin{itemize}

    \item T1: Estimating the posterior distribution of a Bayesian model where the normalization constant is intractable.

    \item T2: Reducing the dimensionality of a dataset while preserving the maximum possible variance.

    \item T3: Identifying clusters of arbitrary shape in a spatial dataset with varying densities and noise.

    \item T4: Generating samples from a complex, high-dimensional probability distribution.

    \end{itemize}

    \textbf{Group II (Algorithms):}

    \begin{itemize}

    \item A1: Principal Component Analysis

    \item B2: Markov Chain Monte Carlo

    \item C3: DBSCAN

    \item D4: K-Medoids

    \end{itemize}

    Which of the following is the correct matching?

    1. A.

      T1 B2, T2 A1, T3 C3, T4 B2

    2. B.

      T1 B2, T2 A1, T3 D4, T4 B2

    3. C.

      T1 A1, T2 B2, T3 C3, T4 D4

    4. D.

      T1 B2, T2 A1, T3 C3, T4 D4

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a multi-select matching problem where one algorithm (MCMC) can solve multiple tasks. The trap is assuming a one-to-one mapping between tasks and algorithms.

    Step 1: Analyze T1 (Posterior estimation with intractable normalization).

    When the normalization constant (evidence) is intractable, we cannot compute the posterior directly. MCMC methods (like Metropolis-Hastings or Gibbs sampling) are designed exactly for this — they sample from the posterior without needing the normalization constant. So T1 B2.

    Step 2: Analyze T2 (Dimensionality reduction preserving maximum variance).

    This is the exact objective of PCA, which finds orthogonal projections that maximize the variance of the projected data. So T2 A1.

    Step 3: Analyze T3 (Clusters of arbitrary shape with varying densities and noise).

    DBSCAN is a density-based clustering algorithm that can find clusters of arbitrary shape and is robust to noise. K-Medoids (D4) assumes spherical clusters and is not designed for arbitrary shapes. So T3 C3.

    Step 4: Analyze T4 (Sampling from a complex, high-dimensional distribution).

    This is the core use case of MCMC — constructing a Markov chain whose stationary distribution is the target distribution. So T4 B2.

    Final matching: T1 B2, T2 A1, T3 C3, T4 B2.

    The trap is assuming each algorithm is used exactly once (one-to-one mapping). If a student makes this invalid assumption, they might assign T4 to D4 (K-Medoids), which is incorrect because K-Medoids is a clustering algorithm, not a sampling method.

    Answer: (A)