chapter

    Chapter 2 — Unsupervised Learning Practice Questions for Gate Da

    Solve 10+ Chapter 2 — Unsupervised Learning practice questions for GATE DA with answers and detailed solutions. Free sample questions below.

    Try a question

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

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

    Consider a dataset mapped into a feature space via a polynomial kernel . A cluster contains the points and . Let be a query point. In the context of Kernel K-Means, the squared distance in the feature space between and the centroid of is computed entirely using the kernel function.

    Which of the following statements are correct?

    Question 3
    Level 4: Challenger

    Consider an undirected weighted graph with 3 nodes and the following edge weights: , , and . Let be the degree matrix and be the unnormalized graph Laplacian matrix.

    Which of the following statements are correct?

    Question 4
    Level 4: Challenger

    Consider a 1D dataset with points in the interval . A student implements 2-means clustering, but due to a bug, the decision boundary is permanently fixed at . The algorithm alternates between assigning points to the nearest centroid and updating the centroids, until convergence. Over all possible initial configurations of the 100 points in , what is the maximum possible Within-Cluster Sum of Squares (WSS) at convergence? Round your answer to 2 decimal places.

    Question 5
    Level 4: Challenger

    A dataset consists of two clusters in 1D: Cluster A contains points and Cluster B contains points . What is the silhouette coefficient of the point ?

    Question 6
    Level 4: Challenger

    In a Fuzzy C-Means clustering algorithm with two clusters and fuzzifier parameter , a single data point has Euclidean distances and to the two cluster centers. What is the contribution of this single point to the Fuzzy C-Means objective function ?

    Question 7
    Level 4: Challenger

    Consider four 2D points: , , , and . Agglomerative hierarchical clustering is performed using Complete Linkage with Euclidean distance. What is the cophenetic distance between and ?

    Question 8
    Level 4: Challenger

    Consider a dataset of 8 points in 2D space:

    , , ,

    , ,

    The DBSCAN algorithm is applied with parameters and , using Euclidean distance.

    Which of the following statements are correct?

    Question 9
    Level 4: Challenger

    Consider a dataset of points. A student runs agglomerative hierarchical clustering with complete linkage. To find the number of clusters at a distance threshold , the student counts the number of pairs of points with pairwise distance strictly greater than , and claims this count equals , where is the true number of clusters formed by the complete-linkage dendrogram at threshold . This claim leads to a contradiction for certain datasets. Find the minimum number of points for which such a contradiction can occur.

    Question 10
    Level 4: Challenger

    Consider a piecewise kernel function defined as:

    Given vectors and , what is the value of ?

    Free preview ends here

    Login to view the complete practice questions and solutions

    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 2 — Unsupervised Learning Practice Questions for GATE DA

    Solve 10+ Chapter 2 — Unsupervised Learning practice questions for GATE DA with answers and detailed solutions. Free sample questions below.

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

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

    Consider a dataset mapped into a feature space via a polynomial kernel . A cluster contains the points and . Let be a query point. In the context of Kernel K-Means, the squared distance in the feature space between and the centroid of is computed entirely using the kernel function.

    Which of the following statements are correct?

    1. A.

      The squared distance between and the centroid of is $10.75$.

    2. B.

      The value of the cross-term is $4.00$.

    3. C.

      The value of the centroid norm term is $11.75$.

    4. D.

      The value of the self-kernel is $0.00$.

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Key idea: This is a Kernel K-Means distance calculation. The squared distance in the feature space can be expanded into three terms using only the kernel function, avoiding the need to compute the infinite-dimensional feature map explicitly.

    Formula: .

    Step 1: Compute the self-kernel term .

    . (Statement D is incorrect).

    Step 2: Compute the cross-term.

    .

    The term value is . (Statement B is incorrect; it missed the division by ).

    Step 3: Compute the centroid norm term.

    .

    , , , .

    Sum = .

    The term value is . (Statement C is correct).

    Step 4: Combine to find the squared distance.

    . (Statement A is correct).

    Answer: A, C

    Question 3 · Machine Learning MSQ

    Consider an undirected weighted graph with 3 nodes and the following edge weights: , , and . Let be the degree matrix and be the unnormalized graph Laplacian matrix.

    Which of the following statements are correct?

    1. A.

      The trace of the matrix is 6.

    2. B.

      The determinant of the matrix is 0.

    3. C.

      For the vector , the value of the quadratic form is 3.

    4. D.

      For the vector , the value of the quadratic form is 11.

    Correct Answer:

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

    Step-by-Step Solution

    Key idea: The unnormalized graph Laplacian is defined as . Its quadratic form can be evaluated either via matrix multiplication or directly using the edge sum formula .

    Step 1: Compute the degree matrix and the trace of .

    The degrees are , , .

    The trace of is the sum of the degrees: . (Statement A is correct).

    Step 2: Evaluate the determinant of .

    For any graph Laplacian, the sum of each row is 0, meaning . Thus, 0 is an eigenvalue, and . (Statement B is correct).

    Step 3: Compute the quadratic form for .

    Using the edge sum formula:

    . (Statement C is correct).

    Step 4: Analyze Statement D.

    If one incorrectly computes instead of , the result is . This is the wrong formula for the Laplacian quadratic form. (Statement D is incorrect).

    Answer: A, B, C

    Question 4 · Machine Learning NAT

    Consider a 1D dataset with points in the interval . A student implements 2-means clustering, but due to a bug, the decision boundary is permanently fixed at . The algorithm alternates between assigning points to the nearest centroid and updating the centroids, until convergence. Over all possible initial configurations of the 100 points in , what is the maximum possible Within-Cluster Sum of Squares (WSS) at convergence? Round your answer to 2 decimal places.

    Correct Answer:

    625.00

    Step-by-Step Solution

    Key idea: This is an optimization problem over the dataset configuration, recognizing that WSS is maximized when points are placed at the extremes of each cluster's valid interval to maximize variance.

    Step 1: Understand the fixed boundary constraint.

    The boundary is fixed at . Cluster 1 will contain points in and Cluster 2 will contain points in .

    Step 2: Maximize WSS for Cluster 1.

    For a fixed set of points in , the WSS is . This is maximized when the points are at the extremes of the interval, i.e., at $0$ and $5$.

    Let points be at $0$ and points be at $5$. The centroid is .

    The WSS is , where .

    This is maximized when , giving WSS.

    At this maximum, .

    Step 3: Maximize WSS for Cluster 2.

    Similarly, for points in , WSS is maximized when points are at and $10$.

    As , the maximum WSS, and .

    Step 4: Verify consistency.

    The centroids are and . The decision boundary is , which matches the fixed boundary.

    Step 5: Compute total maximum WSS.

    Total WSS = .

    Answer: 625.00

    Question 5 · Machine Learning MCQ

    A dataset consists of two clusters in 1D: Cluster A contains points and Cluster B contains points . What is the silhouette coefficient of the point ?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The silhouette coefficient measures how similar a point is to its own cluster compared to other clusters, using the formula .

    Step 1: Calculate , the average distance from to other points in Cluster A .

    Distances are and . Average .

    Step 2: Calculate , the average distance from to points in Cluster B .

    Distances are and . Average .

    Step 3: Apply the silhouette formula.

    .

    Answer:

    Question 6 · Machine Learning NAT

    In a Fuzzy C-Means clustering algorithm with two clusters and fuzzifier parameter , a single data point has Euclidean distances and to the two cluster centers. What is the contribution of this single point to the Fuzzy C-Means objective function ?

    Correct Answer:

    5.76

    Step-by-Step Solution

    Key idea: This is a direct application of the Fuzzy C-Means (FCM) membership and objective function formulas. The contribution of a single point requires first computing its fuzzy memberships and then plugging them into the objective function.

    Step 1: Compute the fuzzy memberships and for .

    The membership formula is .

    For , the exponent is .

    .

    .

    Step 2: Compute the objective function contribution for this point.

    .

    .

    (Shortcut for : ).

    Answer: 5.76

    Question 7 · Machine Learning MCQ

    Consider four 2D points: , , , and . Agglomerative hierarchical clustering is performed using Complete Linkage with Euclidean distance. What is the cophenetic distance between and ?

    1. A.

      5

    2. B.

      6

    3. C.

      8

    4. D.

      10

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: In Complete Linkage, the cophenetic distance between two points is the maximum pairwise distance between any points in the two clusters when they first merge. Since they end up in the same cluster, it's the maximum pairwise distance in the entire dataset if they only merge at the final step.

    Step 1: Calculate all pairwise Euclidean distances.

    Step 2: In Complete Linkage, the distance between clusters is the maximum distance between their points.

    The maximum distance in the entire dataset is .

    Step 3: and will only merge when the cluster distance reaches 8. Thus, their cophenetic distance is 8.

    Answer: 8

    Question 8 · Machine Learning MSQ

    Consider a dataset of 8 points in 2D space:

    , , ,

    , ,

    The DBSCAN algorithm is applied with parameters and , using Euclidean distance.

    Which of the following statements are correct?

    1. A.

      The total number of core points in the dataset is 5.

    2. B.

      The Euclidean distance between and is 1.00.

    3. C.

      The total number of clusters identified by the algorithm is 2.

    4. D.

      The point is classified as a noise point.

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Key idea: DBSCAN classifies points based on their -neighborhood size. A point is a core point if its neighborhood contains at least points (including itself). Border points are non-core points that fall within the -neighborhood of a core point. Noise points are neither core nor border.

    Step 1: Evaluate Cluster 1 candidates ().

    • (distances: 1, 1, ). Size = 3. Core.
    • (distances: 1, 1, ). Size = 3. Core.
    • (distances: 1, , 1). Size = 3. Core.
    • (distances: 1, , 1). Size = 3. Core.

    All 4 points are core points and form 1 cluster.

    Step 2: Evaluate Cluster 2 candidates ().

    • (distances: 1, 1, ). Size = 3. Core.
    • (distances: 1, ). Size = 2. Border.
    • (distances: 1, ). Size = 2. Border.

    These form a second cluster with 1 core and 2 border points.

    Step 3: Evaluate .

    • . Size = 1. Noise.

    Step 4: Analyze the options.

    • Total core points: . Total = 5. (Statement A is correct).
    • Distance to : . Statement B claims 1.00, which results from the sign error . (Statement B is incorrect).
    • Total clusters: 2. (Statement C is correct).
    • is a border point, not noise. (Statement D is incorrect).

    Answer: A, C

    Question 9 · Machine Learning NAT

    Consider a dataset of points. A student runs agglomerative hierarchical clustering with complete linkage. To find the number of clusters at a distance threshold , the student counts the number of pairs of points with pairwise distance strictly greater than , and claims this count equals , where is the true number of clusters formed by the complete-linkage dendrogram at threshold . This claim leads to a contradiction for certain datasets. Find the minimum number of points for which such a contradiction can occur.

    Correct Answer:

    3.00

    Step-by-Step Solution

    Key idea: This is a contradiction detection problem, recognizing that complete linkage merges clusters based on the maximum distance between any two points, which can cause the number of pairs to exceed .

    Step 1: Understand the student's claim.

    The student claims: (number of pairs with distance ) = .

    Step 2: Check .

    For 2 points with distance :

    • If : pairs is 1. Dendrogram merges at , so . . Match.
    • If : pairs is 0. Dendrogram merges at , so . . Match.

    So never contradicts.

    Step 3: Check .

    Consider 3 points with distances , , .

    Let threshold .

    Step 4: Compute the student's count.

    Pairs with distance : and . Count = 2.

    Step 5: Compute the true from the dendrogram.

    • and merge at distance 1.
    • The distance between and is .
    • So and merge at distance 2.

    At threshold , the clusters are and . So .

    .

    Step 6: Identify the contradiction.

    Student's count = 2, but . Since , this is a contradiction.

    Answer: 3.00

    Question 10 · Machine Learning MCQ

    Consider a piecewise kernel function defined as:

    Given vectors and , what is the value of ?

    1. A.

      144

    2. B.

      64

    3. C.

      9

    4. D.

      169

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a piecewise kernel function. You must first compute the dot product to determine which case applies, then evaluate the corresponding formula.

    Step 1: Compute the dot product .

    .

    Step 2: Check the condition.

    Since , we use the first case: .

    Step 3: Evaluate the formula.

    .

    Answer: 144

    More practice questions in this unit