chapter

    Unsupervised Learning Algorithms and Task Matching Notes for Gate Da

    Unsupervised Learning Algorithms and Task Matching notes for GATE DA: 18 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practi

    Unsupervised Learning Algorithms and Task Matching notes

    Chapter Roadmap: Unsupervised Learning Algorithms

    Chapter Journey

    Unsupervised Learning Algorithms

    Step 1: Foundations

    Understand core objectives and identify keywords to separate clustering, reduction, and association tasks.

    Step 2: Deep Dive

    Handle complex constraints, data types, and avoid common exam traps in algorithm selection.

    Outcomes
    • Recognize tasks from word problems.
    • Filter algorithms by constraints.
    • Solve matching questions confidently.

    The Core of Unsupervised Learning: Task to Algorithm Mapping

    The Unsupervised Paradigm

    Align the business goal with the mathematical objective.

    Task CategoryCore ObjectiveWhat we look for
    ClusteringPartitioning dataNatural groupings of similar points
    Dim. ReductionFeature compressionLower-dimensional representation
    AssociationRule discoveryFrequent co-occurring patterns
    AnomalyOutlier identificationDeviations from the norm
    DensityDistribution modelingUnderlying probability distribution

    Identifying Clustering Tasks

    Clustering: Finding Natural Groupings

    Maximize intra-cluster similarity and minimize inter-cluster similarity.

    Task Identification Keywords
    Group Segment Partition Categorize Natural Groupings
    Primary Algorithms
    K-MeansPartitional, minimizes variance within clusters.
    HierarchicalBuilds a tree of clusters (dendrogram).
    DBSCANDensity-based, finds arbitrary shapes and noise.
    GMMProbabilistic, allows soft clustering.

    15 more cards in this chapter

    Try a question

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

    Question 1
    Level 1: Warm-up

    Assertion (A): K-Medoids is generally preferred over K-Means for clustering a dataset of geographic locations on the Earth's surface represented by latitude and longitude coordinates.

    Reason (R): K-Medoids can utilize the Haversine distance metric (measuring great-circle distance in kilometers), whereas standard K-Means relies on computing the arithmetic mean which is mathematically invalid for unconstrained spherical coordinates.

    Options:

    Question 2
    Level 1: Warm-up

    Consider the following list of 6 machine learning algorithms: K-Means, Linear Discriminant Analysis (LDA), K-Nearest Neighbors (KNN), Principal Component Analysis (PCA), DBSCAN, and Support Vector Machines (SVM). Let be the number of strictly unsupervised algorithms in this list, and be the number of strictly supervised algorithms. What is the value of ?

    Question 3
    Level 1: Warm-up

    Consider the following statements regarding multi-select task-algorithm matching in machine learning:

    Statement 1: In a multi-select matching question, an algorithm like Principal Component Analysis (PCA) can be correctly matched to multiple distinct tasks (e.g., 'Dimensionality Reduction' and 'Noise Reduction') if both tasks are present in the task list.

    Statement 2: For an explicitly defined 'unsupervised clustering' task, the number of valid algorithm matches from a given list is strictly bounded above by the count of unsupervised clustering algorithms in that list, regardless of the dataset's characteristics or the presence of labels.

    Which of the statements given above is/are correct?

    Question 4
    Level 1: Warm-up

    Which of the following statements correctly describe the mathematical objectives and label requirements of the listed algorithms, allowing for the elimination of paradigm mismatches?

    Question 5
    Level 1: Warm-up
    Consider the following statements about task-algorithm matching in machine learning: Statement 1: An unsupervised task like clustering can be correctly matched to LDA if the goal is to maximize class separability. Statement 2: PCA can be matched to both dimensionality reduction and noise reduction tasks. Statement 3: Both K-Means and DBSCAN can be valid matches for a clustering task depending on the data shape. Which of the above statements is/are TRUE?
    Question 6
    Level 1: Warm-up

    A dataset has original features. Principal Component Analysis (PCA) is applied to project the data into a lower-dimensional space. If the projection matrix is formed by the eigenvectors corresponding to the largest eigenvalues of the covariance matrix, and the transformed dataset retains principal components, how many columns does the projection matrix have?

    Question 7
    Level 1: Warm-up

    A 1-dimensional dataset consists of the points . The K-Medoids algorithm selects the medoid as the point that minimizes the sum of absolute distances to all other points in the dataset. What is the maximum absolute distance from the selected medoid to any other point in this dataset?

    Question 8
    Level 1: Warm-up

    A student is matching 3 tasks to algorithms and assigning a score: +1 for a correct match, and -1 for an incorrect match.

    Task 1: Clustering K-Means

    Task 2: Classification LDA

    Task 3: Sampling PCA

    The student calculates their score as due to a sign error on the incorrect match. What is the correct score?

    Question 9
    Level 1: Warm-up

    A student evaluates a list of 7 machine learning algorithms: PCA, LDA, K-Means, KNN, MCMC, SVM, and Random Forest. They calculate a "supervised index" using the formula:

    The student correctly identifies the paradigms of all algorithms but makes a sign error by computing instead.

    What is the correct supervised index for this list of algorithms?

    Question 10
    Level 1: Warm-up

    Consider the following statements regarding algorithm objectives and data requirements:

    Statement 1: Principal Component Analysis (PCA) seeks to maximize the variance of projected data without requiring class labels.

    Statement 2: Linear Discriminant Analysis (LDA) seeks to maximize class separation and requires labeled data.

    Statement 3: K-Means clustering minimizes variance within clusters and requires class labels to initialize centroids.

    Which of the above statements is/are true?

    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 Algorithms and Task Matching Notes for GATE DA

    Unsupervised Learning Algorithms and Task Matching notes for GATE DA: 18 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Chapter Roadmap: Unsupervised Learning Algorithms

    Chapter Journey

    Unsupervised Learning Algorithms

    Step 1: Foundations

    Understand core objectives and identify keywords to separate clustering, reduction, and association tasks.

    Step 2: Deep Dive

    Handle complex constraints, data types, and avoid common exam traps in algorithm selection.

    Outcomes
    • Recognize tasks from word problems.
    • Filter algorithms by constraints.
    • Solve matching questions confidently.

    The Core of Unsupervised Learning: Task to Algorithm Mapping

    The Unsupervised Paradigm

    Align the business goal with the mathematical objective.

    Task CategoryCore ObjectiveWhat we look for
    ClusteringPartitioning dataNatural groupings of similar points
    Dim. ReductionFeature compressionLower-dimensional representation
    AssociationRule discoveryFrequent co-occurring patterns
    AnomalyOutlier identificationDeviations from the norm
    DensityDistribution modelingUnderlying probability distribution

    Identifying Clustering Tasks

    Clustering: Finding Natural Groupings

    Maximize intra-cluster similarity and minimize inter-cluster similarity.

    Task Identification Keywords
    Group Segment Partition Categorize Natural Groupings
    Primary Algorithms
    K-MeansPartitional, minimizes variance within clusters.
    HierarchicalBuilds a tree of clusters (dendrogram).
    DBSCANDensity-based, finds arbitrary shapes and noise.
    GMMProbabilistic, allows soft clustering.

    Identifying Dimensionality Reduction Tasks

    Dimensionality Reduction

    Map high-dimensional space to lower dimensions while preserving structure.

    • Keywords: Compress, visualize, latent variables, remove noise.

    PCA

    Linear transformation. Maximizes variance preserved. Best for global structure and noise reduction.

    t-SNE

    Non-linear. Excellent for 2D/3D visualization. Preserves local structure but distorts global distances.

    UMAP

    Non-linear and topological. Faster than t-SNE. Preserves both local and global structure better.

    Unsupervised Learning Algorithms and Task Matching: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Machine Learning MCQ

    Assertion (A): K-Medoids is generally preferred over K-Means for clustering a dataset of geographic locations on the Earth's surface represented by latitude and longitude coordinates.

    Reason (R): K-Medoids can utilize the Haversine distance metric (measuring great-circle distance in kilometers), whereas standard K-Means relies on computing the arithmetic mean which is mathematically invalid for unconstrained spherical coordinates.

    Options:

    1. A.

      A is true but R is false

    2. B.

      A is false but R is true

    3. C.

      Both A and R are true and R is the correct explanation of A

    4. D.

      Both A and R are true but R is not the correct explanation of A

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: K-Medoids is robust to arbitrary distance metrics, while K-Means requires a valid Euclidean space to compute meaningful means.

    Step 1: Evaluate Assertion (A). Geographic coordinates lie on a sphere. K-Medoids selects actual data points and works with any valid distance metric (like Haversine). K-Means computes the arithmetic mean of coordinates, which for spherical data results in a point inside the Earth, not on the surface. Thus, K-Medoids is preferred. Assertion (A) is True.

    Step 2: Evaluate Reason (R). The Haversine formula correctly computes distances on a sphere. Standard K-Means relies on Euclidean distance and the arithmetic mean. The arithmetic mean of latitude/longitude is invalid for spherical geometry without complex 3D re-projection. Reason (R) is True.

    Step 3: Check if R explains A. The inability of K-Means to handle the spherical metric/mean correctly is exactly why K-Medoids (which avoids the mean entirely) is preferred. R is the correct explanation of A.

    Answer: Both A and R are true and R is the correct explanation of A

    Question 2 · Machine Learning MCQ

    Consider the following list of 6 machine learning algorithms: K-Means, Linear Discriminant Analysis (LDA), K-Nearest Neighbors (KNN), Principal Component Analysis (PCA), DBSCAN, and Support Vector Machines (SVM). Let be the number of strictly unsupervised algorithms in this list, and be the number of strictly supervised algorithms. What is the value of ?

    1. A.

      2

    2. B.

      0

    3. C.

      -2

    4. D.

      4

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The fastest way to eliminate distractors in task-algorithm matching is to check the paradigm: does the algorithm require labels?

    Step 1: Classify each algorithm in the list.

    • K-Means: Unsupervised (Clustering)
    • LDA: Supervised (Classification/Dimensionality Reduction with labels)
    • KNN: Supervised (Classification/Regression)
    • PCA: Unsupervised (Dimensionality Reduction)
    • DBSCAN: Unsupervised (Clustering)
    • SVM: Supervised (Classification/Regression)

    Step 2: Count the unsupervised algorithms (). K-Means, PCA, DBSCAN .

    Step 3: Count the supervised algorithms (). LDA, KNN, SVM .

    Step 4: Calculate .

    Answer: 0

    Question 3 · Machine Learning MCQ

    Consider the following statements regarding multi-select task-algorithm matching in machine learning:

    Statement 1: In a multi-select matching question, an algorithm like Principal Component Analysis (PCA) can be correctly matched to multiple distinct tasks (e.g., 'Dimensionality Reduction' and 'Noise Reduction') if both tasks are present in the task list.

    Statement 2: For an explicitly defined 'unsupervised clustering' task, the number of valid algorithm matches from a given list is strictly bounded above by the count of unsupervised clustering algorithms in that list, regardless of the dataset's characteristics or the presence of labels.

    Which of the statements given above is/are correct?

    1. A.

      Both 1 and 2

    2. B.

      1 only

    3. C.

      2 only

    4. D.

      Neither 1 nor 2

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Multi-select matching requires checking for one-to-many mappings and strictly enforcing paradigm constraints.

    Step 1: Evaluate Statement 1. PCA is widely used for both dimensionality reduction (preserving variance) and noise reduction (discarding low-variance components). Thus, it can validly match multiple tasks. Statement 1 is True.

    Step 2: Evaluate Statement 2. The task is explicitly 'unsupervised clustering'. By definition, unsupervised tasks do not use labels. Therefore, any supervised algorithm (even if the dataset happens to have labels available) is an invalid match for an unsupervised task constraint. The valid matches are strictly bounded by the unsupervised algorithms available. Statement 2 is True.

    Step 3: Both statements are correct.

    Answer: Both 1 and 2

    Question 4 · Machine Learning MSQ

    Which of the following statements correctly describe the mathematical objectives and label requirements of the listed algorithms, allowing for the elimination of paradigm mismatches?

    1. A.

      Principal Component Analysis (PCA) is unsupervised and seeks to maximize the variance of the projected data.

    2. B.

      Linear Discriminant Analysis (LDA) is unsupervised and seeks to maximize the variance of the projected data.

    3. C.

      K-Means is unsupervised and seeks to minimize the variance within clusters.

    4. D.

      Markov Chain Monte Carlo (MCMC) is a supervised algorithm that requires class labels for sampling.

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Key idea: Eliminate paradigm mismatches by verifying if an algorithm is supervised (requires labels) or unsupervised (no labels), and checking its core mathematical objective.

    Step 1: PCA is unsupervised (no labels required) and its objective is to maximize the variance of the projected data. (Option A is correct).

    Step 2: LDA is supervised (requires labels) and its objective is class separation, not variance maximization. (Option B is incorrect due to wrong paradigm and wrong formula).

    Step 3: K-Means is unsupervised (no labels required) and seeks to minimize the variance within clusters. (Option C is correct).

    Step 4: MCMC is an unsupervised sampling method used for complex distributions and does not require class labels. (Option D is incorrect due to wrong paradigm).

    Answer: A, C

    Question 5 · Machine Learning MCQ
    Consider the following statements about task-algorithm matching in machine learning: Statement 1: An unsupervised task like clustering can be correctly matched to LDA if the goal is to maximize class separability. Statement 2: PCA can be matched to both dimensionality reduction and noise reduction tasks. Statement 3: Both K-Means and DBSCAN can be valid matches for a clustering task depending on the data shape. Which of the above statements is/are TRUE?
    1. A.

      Statement 1 only

    2. B.

      Statements 2 and 3 only

    3. C.

      Statements 1 and 3 only

    4. D.

      All three statements

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a bounding question testing the constraints of algorithm matching, specifically the supervised/unsupervised paradigm and multi-select logic. Step 1: Evaluate Statement 1: "An unsupervised task like clustering can be correctly matched to LDA if the goal is to maximize class separability." - LDA (Linear Discriminant Analysis) is a supervised algorithm. It requires class labels to maximize class separability. - An unsupervised task like clustering does not have labels. Therefore, LDA cannot be used. - Statement 1 is FALSE. Step 2: Evaluate Statement 2: "PCA can be matched to both dimensionality reduction and noise reduction tasks." - PCA preserves maximum variance (dimensionality reduction). - By keeping only the principal components, it effectively filters out noise (noise reduction). - Statement 2 is TRUE. Step 3: Evaluate Statement 3: "Both K-Means and DBSCAN can be valid matches for a clustering task depending on the data shape." - K-Means is good for spherical clusters. - DBSCAN is good for arbitrary shapes and density-based clusters. - Both are valid clustering algorithms for different data shapes. - Statement 3 is TRUE. Step 4: Combine the results: Statements 2 and 3 are TRUE. Answer: Statements 2 and 3 only
    Question 6 · Machine Learning MCQ

    A dataset has original features. Principal Component Analysis (PCA) is applied to project the data into a lower-dimensional space. If the projection matrix is formed by the eigenvectors corresponding to the largest eigenvalues of the covariance matrix, and the transformed dataset retains principal components, how many columns does the projection matrix have?

    1. A.

      3

    2. B.

      47

    3. C.

      50

    4. D.

      150

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The dimensions of the PCA projection matrix are strictly determined by the original feature space and the number of retained components.

    Step 1: The covariance matrix of the original data has dimensions , yielding eigenvectors.

    Step 2: Each eigenvector is a column vector of size .

    Step 3: To project the data into a -dimensional space, we select the top eigenvectors and place them side-by-side to form the projection matrix .

    Step 4: Therefore, has dimensions . The number of columns is exactly .

    Answer: 3

    Question 7 · Machine Learning MCQ

    A 1-dimensional dataset consists of the points . The K-Medoids algorithm selects the medoid as the point that minimizes the sum of absolute distances to all other points in the dataset. What is the maximum absolute distance from the selected medoid to any other point in this dataset?

    1. A.

      2

    2. B.

      8

    3. C.

      4

    4. D.

      10

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: K-Medoids selects an actual data point as the center, unlike K-Means which computes a virtual mean.

    Step 1: Calculate the sum of absolute distances from each candidate point to all other points in .

    • From 2:
    • From 4:
    • From 6:
    • From 8:
    • From 10:

    Step 2: The minimum sum is 12, which occurs at the point 6. Thus, the medoid is 6.

    Step 3: Calculate the absolute distances from the medoid (6) to all other points: , , , .

    Step 4: The maximum of these distances is 4.

    Answer: 4

    Question 8 · Machine Learning NAT

    A student is matching 3 tasks to algorithms and assigning a score: +1 for a correct match, and -1 for an incorrect match.

    Task 1: Clustering K-Means

    Task 2: Classification LDA

    Task 3: Sampling PCA

    The student calculates their score as due to a sign error on the incorrect match. What is the correct score?

    Correct Answer:

    1.00

    Step-by-Step Solution

    Key idea: This is a casework question testing the supervised vs unsupervised paradigm check.

    Step 1: Evaluate each match based on the paradigm:

    • Task 1 (Clustering) K-Means: K-Means is unsupervised clustering. Correct match (+1).
    • Task 2 (Classification) LDA: LDA is supervised classification. Correct match (+1).
    • Task 3 (Sampling) PCA: PCA is unsupervised dimensionality reduction, not sampling. Incorrect match (-1).

    Step 2: Calculate the correct score:

    Correct score = .

    Answer: 1.00

    Question 9 · Machine Learning NAT

    A student evaluates a list of 7 machine learning algorithms: PCA, LDA, K-Means, KNN, MCMC, SVM, and Random Forest. They calculate a "supervised index" using the formula:

    The student correctly identifies the paradigms of all algorithms but makes a sign error by computing instead.

    What is the correct supervised index for this list of algorithms?

    Correct Answer:

    1.00

    Step-by-Step Solution

    Key idea: This is a casework question testing the supervised vs unsupervised paradigm check for a list of algorithms.

    Step 1: Classify each algorithm based on whether it requires class labels:

    • PCA: Unsupervised (dimensionality reduction, no labels)
    • LDA: Supervised (classification/separation, requires labels)
    • K-Means: Unsupervised (clustering, no labels)
    • KNN: Supervised (classification, requires labels)
    • MCMC: Unsupervised (sampling, no labels)
    • SVM: Supervised (classification, requires labels)
    • Random Forest: Supervised (classification, requires labels)

    Step 2: Count the algorithms in each paradigm:

    • Supervised: LDA, KNN, SVM, Random Forest (Total = 4)
    • Unsupervised: PCA, K-Means, MCMC (Total = 3)

    Step 3: Calculate the correct index using the given formula:

    Correct Index = (Count of Supervised) - (Count of Unsupervised) = 4 - 3 = 1.

    (Note: The student's sign error would yield 3 - 4 = -1, but the question asks for the correct index).

    Answer: 1.00

    Question 10 · Machine Learning MCQ

    Consider the following statements regarding algorithm objectives and data requirements:

    Statement 1: Principal Component Analysis (PCA) seeks to maximize the variance of projected data without requiring class labels.

    Statement 2: Linear Discriminant Analysis (LDA) seeks to maximize class separation and requires labeled data.

    Statement 3: K-Means clustering minimizes variance within clusters and requires class labels to initialize centroids.

    Which of the above statements is/are true?

    1. A.

      Statement 1 only

    2. B.

      Statements 1 and 2 only

    3. C.

      Statements 2 and 3 only

    4. D.

      All statements are true

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a statement evaluation question testing the objective and data requirements of specific algorithms.

    Step 1: Analyze Statement 1. PCA is an unsupervised dimensionality reduction technique that maximizes the variance of projected data. It does not require labels. (True)

    Step 2: Analyze Statement 2. LDA is a supervised technique that maximizes class separation. It explicitly requires labeled data to compute class means and scatter matrices. (True)

    Step 3: Analyze Statement 3. K-Means is an unsupervised clustering algorithm that minimizes variance within clusters. It does NOT require class labels to initialize centroids; random or heuristic initialization is used. (False)

    Step 4: Conclude that only Statements 1 and 2 are true.

    Answer: B

    More notes in this unit