chapter

    Chapter 3 — Unsupervised Learning Short Notes for Gate Da

    Chapter 3 — Unsupervised Learning short notes for GATE DA: 0 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    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 2
    Level 4: Challenger

    Let be the unnormalized graph Laplacian for a 3-node graph, given by:

    In spectral clustering, the Fiedler vector (the eigenvector corresponding to the second smallest eigenvalue of ) is used to partition the graph. Let be the Fiedler vector scaled such that its Euclidean norm is and its first component is strictly positive. What is the value of the third component of ?

    Question 3
    Level 4: Challenger

    Let be an data matrix with zero-mean columns. Let be its Singular Value Decomposition, where are the singular values (). Let be the best rank- approximation of obtained by truncating the SVD to the first components. Which of the following expressions are mathematically equivalent to the trace of the reconstructed scatter matrix, ?

    Question 4
    Level 4: Challenger

    Consider the Isomap algorithm for nonlinear dimensionality reduction, which applies Classical Multidimensional Scaling (MDS) to the geodesic distance matrix of a data manifold. Let be the matrix of squared geodesic distances, and be the centering matrix. The double-centered matrix is defined as . Which of the following statements about and the resulting embedding are mathematically correct?

    Question 5
    Level 4: Challenger

    Consider a weighted undirected graph with 3 nodes and edge weights , , and . In the context of spectral clustering, the RatioCut objective for a partition of the nodes is defined as , where and are the number of nodes in each partition. If the partition is and , what is the value of the RatioCut objective?

    Question 6
    Level 4: Challenger

    Consider 4 data points in : , , , and . In hierarchical agglomerative clustering using complete linkage, the distance between two clusters is defined as the maximum distance between any pair of points from the two clusters. At what distance do we obtain exactly 2 clusters?

    Question 7
    Level 4: Challenger

    Let . Consider its Singular Value Decomposition , where is a diagonal matrix with singular values in descending order. Suppose the columns of are chosen such that and the first non-zero entry of the first column of is positive. What is the sum of all elements of the matrix ?

    Question 8
    Level 4: Challenger

    In a Kernel K-means clustering problem, the squared distance between a point and the centroid of cluster in the feature space is given by . Consider a dataset with three points and a cluster . The kernel matrix for these points is given by:

    What is the squared distance ?

    Question 9
    Level 4: Challenger

    Let be a star graph with 3 nodes, where node 1 is the center connected to nodes 2 and 3. Let be the adjacency matrix and be the degree matrix. The random walk normalized Laplacian is defined as . Let be the eigenvalues of . Which of the following are valid eigenvalues of ?

    Question 10
    Level 4: Challenger

    Consider 4 data points in : , , , and . These points are partitioned into two clusters: and . The silhouette coefficient for a point is defined as , where is the average distance from to all other points in the same cluster, and is the minimum average distance from to points in any other cluster. What is the average silhouette coefficient for this clustering? (Round to 2 decimal places)

    Free preview ends here

    Login to view the complete short 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.

    Chapter 3 — Unsupervised Learning Short Notes for GATE DA

    Chapter 3 — Unsupervised Learning short notes for GATE DA: 0 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Chapter 3 — Unsupervised Learning: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Machine 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 2 · Machine Learning MCQ

    Let be the unnormalized graph Laplacian for a 3-node graph, given by:

    In spectral clustering, the Fiedler vector (the eigenvector corresponding to the second smallest eigenvalue of ) is used to partition the graph. Let be the Fiedler vector scaled such that its Euclidean norm is and its first component is strictly positive. What is the value of the third component of ?

    1. A.

      -2

    2. B.

      2

    3. C.

      -1

    4. D.

      1

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The Fiedler vector is the eigenvector corresponding to the second smallest eigenvalue of the Laplacian. We must find the eigenvalues, extract the correct eigenvector, and resolve the sign ambiguity using the given conditions.

    Step 1: Find the eigenvalues of .

    The row sums are 0, so is an eigenvalue.

    The trace of is .

    The sum of the principal minors of size 2 is:

    Sum = 21.

    The characteristic equation is , which factors as .

    The eigenvalues are 0, 3, 7. The second smallest is .

    Step 2: Find the eigenvector for .

    Solve :

    .

    From row 3: .

    From row 1: .

    Substituting into gives .

    The unnormalized eigenvector is proportional to .

    Step 3: Apply the norm and sign conditions.

    The Euclidean norm of is . This matches the required norm exactly.

    The first component is 1, which is strictly positive. This satisfies the sign condition.

    Thus, .

    Step 4: The third component of is -2.

    Answer: -2

    Question 3 · Machine Learning MSQ

    Let be an data matrix with zero-mean columns. Let be its Singular Value Decomposition, where are the singular values (). Let be the best rank- approximation of obtained by truncating the SVD to the first components. Which of the following expressions are mathematically equivalent to the trace of the reconstructed scatter matrix, ?

    1. A.

    2. B.

      , where are the largest eigenvalues of

    3. C.

      , where and are the truncated SVD components

    4. D.

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Key idea: The trace of the reconstructed scatter matrix represents the total variance retained by the first principal components. This can be expressed as the sum of the top squared singular values, the sum of the top eigenvalues of , or the squared Frobenius norm of the truncated left singular vectors scaled by singular values.

    Step 1: Express using the truncated SVD.

    , where is , is , and is .

    Step 2: Compute and its trace.

    .

    . (Matches Option A)

    Step 3: Relate to the eigenvalues of .

    The eigenvalues of are exactly . The largest eigenvalues are . Their sum is . (Matches Option B)

    Step 4: Evaluate the Frobenius norm of .

    . (Matches Option C)

    Step 5: Check Option D.

    . Option D subtracts (the singular values, not their squares). This is mathematically incorrect unless all .

    Answer: A, B, C

    Question 4 · Machine Learning MSQ

    Consider the Isomap algorithm for nonlinear dimensionality reduction, which applies Classical Multidimensional Scaling (MDS) to the geodesic distance matrix of a data manifold. Let be the matrix of squared geodesic distances, and be the centering matrix. The double-centered matrix is defined as . Which of the following statements about and the resulting embedding are mathematically correct?

    1. A.

      The matrix is guaranteed to be positive semi-definite if the original distances are exactly Euclidean.

    2. B.

      The coordinates of the points in the -dimensional embedded space are given by the rows of the matrix V_k 
ambda_k^{1/2}, where contains the top eigenvectors of and is the diagonal matrix of their corresponding eigenvalues.

    3. C.

      By using geodesic distances instead of Euclidean distances, Isomap preserves the global intrinsic geometry of the manifold while mapping it to a linear subspace.

    4. D.

      The double-centered matrix can be equivalently computed using the single-centered formula B = - rac{1}{2} H D^{(2)} because is already symmetric.

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Key idea: Isomap relies on Classical MDS, which requires double-centering the squared distance matrix to convert distances into inner products (a Gram matrix). The embedding is then obtained via the eigendecomposition of this Gram matrix.

    Step 1: Analyze the properties of .

    If the distances in are exactly Euclidean, the double-centered matrix represents the Gram matrix of inner products, which is inherently positive semi-definite. (Matches Option A)

    Step 2: Determine the embedding coordinates.

    Let be the eigendecomposition. The configuration of points in the embedded space that reproduces the inner products is . The rows of correspond to the coordinates of the points. (Matches Option B)

    Step 3: Evaluate the geometric preservation.

    Isomap computes geodesic distances along the manifold (approximated via shortest paths on a neighborhood graph) rather than straight-line Euclidean distances. Applying MDS to these geodesic distances unrolls the manifold, preserving its global intrinsic geometry in the lower-dimensional linear subspace. (Matches Option C)

    Step 4: Check the centering formula.

    The formula requires both left and right multiplication by to center both the rows and the columns of the squared distance matrix. Using only single centering does not yield a valid Gram matrix because the column means are not zeroed out. (Option D is incorrect)

    Answer: A, B, C

    Question 5 · Machine Learning NAT

    Consider a weighted undirected graph with 3 nodes and edge weights , , and . In the context of spectral clustering, the RatioCut objective for a partition of the nodes is defined as , where and are the number of nodes in each partition. If the partition is and , what is the value of the RatioCut objective?

    Correct Answer:

    9.00

    Step-by-Step Solution

    Insight: RatioCut penalizes the cut size by the number of nodes in each partition, so we just need the cut weight and the sizes of the two sets.

    Exam route: Cut edges are (1,2) and (1,3) with weights 2 and 4. Cut size = 6. Partition sizes are 1 and 2. RatioCut = 6/1 + 6/2 = 9.

    Learning route:

    Step 1: Identify the partition and calculate the cut size.

    The partition is and .

    The edges crossing the cut are (1,2) and (1,3).

    .

    Step 2: Determine the sizes of the partitions.

    and .

    Step 3: Apply the RatioCut formula.

    .

    Answer: 9.00

    Tempting wrong path 1 (Ncut): If you use the volume (sum of degrees) instead of node count, and . This gives . This breaks because RatioCut strictly uses cardinality , not volume.

    Tempting wrong path 2 (MinCut): If you just report the cut size, you get 6. This breaks because it ignores the balancing penalty entirely.

    Generalization: RatioCut leads to the unnormalized Laplacian , while Ncut leads to the normalized Laplacian .

    Verification: Plugging 9 back in, , which perfectly matches the formula and the partition sizes.

    Question 6 · Machine Learning NAT

    Consider 4 data points in : , , , and . In hierarchical agglomerative clustering using complete linkage, the distance between two clusters is defined as the maximum distance between any pair of points from the two clusters. At what distance do we obtain exactly 2 clusters?

    Correct Answer:

    7.00

    Step-by-Step Solution

    Insight: Complete linkage uses the maximum distance between clusters. We need to track merges step-by-step and find the distance at which exactly 2 clusters remain.

    Exam route: Compute all pairwise distances, merge the closest pairs, update distances using complete linkage, and find the final merge distance.

    Learning route:

    Step 1: Compute initial pairwise distances.

    Step 2: Merge the closest pairs.

    The minimum distances are and .

    Merge and (both at distance 2).

    Now we have 2 clusters: and .

    Step 3: We want exactly 2 clusters, so we stop here. But let's verify by computing the distance between and using complete linkage.

    So the next merge would happen at distance 7, reducing to 1 cluster.

    Therefore, at distance 7, we transition from 2 clusters to 1 cluster. The question asks at what distance we obtain exactly 2 clusters, which means we look at the merge that creates the 2-cluster solution. Since the first merges happen at distance 2 (creating the 2-cluster solution), and the next merge happens at distance 7, the answer is 7.00 (the distance at which we would merge the 2 clusters into 1).

    Wait, let me re-read the question. "At what distance do we obtain exactly 2 clusters?" This could mean:

    1. The distance at which the 2-cluster solution is formed (which is 2, when we merge the first pairs)
    2. The distance threshold below which we have 2 clusters (which is 7, because at distance 7 we merge into 1 cluster)

    In hierarchical clustering, we typically cut the dendrogram at a certain distance. If we cut at distance , we get all clusters that haven't merged yet at distance . So if we cut at distance 7, we get 2 clusters (because the merge at distance 7 hasn't happened yet). If we cut at distance 2, we also get 2 clusters (the first merges have just happened).

    Actually, the standard interpretation is: the distance at which we have exactly 2 clusters is the distance of the last merge that keeps us at 2 clusters, which is the distance before the final merge. Since the final merge (from 2 to 1 cluster) happens at distance 7, the 2-cluster solution exists for distances in the range . The question likely asks for the merge distance that creates the 2-cluster solution, which is 2.00.

    Let me reconsider. In a dendrogram, the height at which two clusters merge is the distance between them. So:

    • At height 2, and merge, and and merge. We go from 4 clusters to 2 clusters.
    • At height 7, and merge. We go from 2 clusters to 1 cluster.

    So the 2-cluster solution is formed at height 2. But the question might be asking for the distance at which the 2-cluster solution is stable, which is the distance before the next merge, i.e., 7.

    Given the ambiguity, let me assume the question asks for the merge distance that reduces the number of clusters from 3 to 2. But we go from 4 to 2 clusters in one step (two simultaneous merges at distance 2). So there's no 3-cluster solution.

    Actually, if we break ties differently, we might merge first at distance 2, giving us 3 clusters: , , . Then we need to compute distances:

    Next, merge and at distance 2, giving us 2 clusters: and .

    So the 2-cluster solution is formed at distance 2.

    But wait, the question says "at what distance do we obtain exactly 2 clusters?" This likely means the distance threshold for the dendrogram cut. If we cut at distance , we get all clusters that haven't merged at distance . So:

    • Cut at : 4 clusters
    • Cut at : 2 clusters
    • Cut at : 1 cluster

    So the 2-cluster solution exists for . The question likely asks for the upper bound, which is 7.00.

    Answer: 7.00

    Tempting wrong path 1: If you use single linkage instead of complete linkage, you compute . This breaks because the question specifies complete linkage.

    Tempting wrong path 2: If you think the answer is 2 (the distance at which the first merges happen), you're interpreting the question as asking for the merge distance that creates the 2-cluster solution. But the standard interpretation is the distance threshold for the dendrogram cut, which is 7.

    Generalization: In hierarchical clustering, the dendrogram shows the merge distances. To get clusters, cut the dendrogram at a height between the -th merge distance and the -th merge distance.

    Verification: At distance 7, the two clusters and merge, so for distances just below 7, we have exactly 2 clusters.

    Question 7 · Machine Learning MCQ

    Let . Consider its Singular Value Decomposition , where is a diagonal matrix with singular values in descending order. Suppose the columns of are chosen such that and the first non-zero entry of the first column of is positive. What is the sum of all elements of the matrix ?

    1. A.

      -2

    2. B.

      2

    3. C.

      0

    4. D.

      -4

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The SVD requires to contain the eigenvectors of and to contain the eigenvectors of . The signs of the columns of and are strictly linked by the relation . Sign conventions like fix the relative signs.

    Step 1: Find the singular values and the matrix .

    .

    The eigenvalues are 16 and 9, so the singular values in descending order are and .

    The eigenvector for is . The condition "first non-zero entry is positive" forces .

    The eigenvector for is .

    Step 2: Apply the determinant condition to fix .

    We need .

    So . Thus .

    Step 3: Compute the columns of using .

    .

    .

    Step 4: Sum the elements of .

    . Sum = .

    Answer: -2

    Question 8 · Machine Learning MCQ

    In a Kernel K-means clustering problem, the squared distance between a point and the centroid of cluster in the feature space is given by . Consider a dataset with three points and a cluster . The kernel matrix for these points is given by:

    What is the squared distance ?

    1. A.

      3.0

    2. B.

      5.0

    3. C.

      7.0

    4. D.

      4.0

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The squared distance in the feature space can be expanded entirely in terms of kernel evaluations using the kernel trick, avoiding the need to explicitly compute the feature map .

    Step 1: Identify the cluster size .

    Step 2: Compute the cross term between and the cluster centroid:

    .

    Step 3: Compute the cluster spread term (the squared norm of the centroid):

    .

    Step 4: Combine the terms using the expansion formula:

    .

    Answer: 5.0

    Question 9 · Machine Learning MSQ

    Let be a star graph with 3 nodes, where node 1 is the center connected to nodes 2 and 3. Let be the adjacency matrix and be the degree matrix. The random walk normalized Laplacian is defined as . Let be the eigenvalues of . Which of the following are valid eigenvalues of ?

    1. A.

      0

    2. B.

      1

    3. C.

      2

    4. D.

      -1

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Key idea: The eigenvalues of the random walk Laplacian for a star graph can be found by constructing the matrix and solving its characteristic equation. The eigenvalues of any normalized Laplacian are bounded between 0 and 2.

    Step 1: Construct and for the 3-node star graph.

    Node 1 has degree 2, nodes 2 and 3 have degree 1.

    , .

    Step 2: Compute .

    .

    .

    Step 3: Find the eigenvalues using the characteristic polynomial.

    Trace.

    Sum of principal minors of size 2: , , . Sum = 2.

    Det (since row sums are 0).

    Characteristic equation: .

    The eigenvalues are 0, 1, and 2. (Matches Options A, B, C)

    Step 4: Analyze the trap option.

    An eigenvalue of -1 would violate the property that normalized Laplacian eigenvalues lie in . This typically arises from a sign_error if one computes the eigenvalues of instead of . (Option D is incorrect)

    Answer: A, B, C

    Question 10 · Machine Learning NAT

    Consider 4 data points in : , , , and . These points are partitioned into two clusters: and . The silhouette coefficient for a point is defined as , where is the average distance from to all other points in the same cluster, and is the minimum average distance from to points in any other cluster. What is the average silhouette coefficient for this clustering? (Round to 2 decimal places)

    Correct Answer:

    0.80

    Step-by-Step Solution

    Insight: The silhouette coefficient measures how well each point lies within its cluster compared to other clusters. For each point, compute (intra-cluster distance) and (nearest inter-cluster distance), then combine them.

    Exam route: For each point, calculate and , compute , and average over all 4 points.

    Learning route:

    Step 1: Compute and for each point.

    For (in ):

    • (only one other point in )
    • (average distance to )

    For (in ):

    For (in ):

    For (in ):

    Step 2: Compute the average silhouette coefficient.

    Rounded to 2 decimal places: 0.80

    Answer: 0.80

    Tempting wrong path 1: If you forget to divide by and just compute , you get values like 9 and 7, averaging to 8.00. This breaks because the silhouette formula requires normalization.

    Tempting wrong path 2: If you compute as the distance to the nearest point in another cluster instead of the average distance to all points in that cluster, you get instead of 11, leading to . This breaks because must be the average distance to the entire cluster.

    Generalization: The silhouette coefficient ranges from -1 to 1, where values close to 1 indicate good clustering. The denominator ensures proper normalization.

    Verification: Plugging back, , which is close to 1, indicating is well-clustered. The average 0.80 confirms good overall clustering quality.

    More short notes in this unit