chapter

    Linear Classifiers, Discriminant Analysis and Margin-based Methods Pyqs for Gate Da

    Solve 6+ Linear Classifiers, Discriminant Analysis and Margin-based Methods previous year questions for GATE DA with answers and detailed solutions. Free samp

    Try a question

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

    Question 1
    2025 PYQ
    Level 3: Exam Standard
    Consider designing a linear classifier


    on a dataset , , , . Recall that the sign function outputs if the argument is positive, and if the argument is non-positive. The parameters and are updated as per the following training algorithm:


    whenever . In other words, whenever the classifier wrongly predicts a sample from the dataset, gets updated to , and likewise gets updated to . Consider the case , . Then
    Question 2
    2025 PYQ
    Level 3: Exam Standard
    Question 3
    2025 PYQ
    Level 3: Exam Standard
    Question 4
    2024 PYQ
    Level 3: Exam Standard
    Consider the dataset with six datapoints: ,
    where , , , , ,
    and the labels are given by , and . A hard
    margin linear support vector machine is trained on the above dataset.
    Which ONE of the following sets is a possible set of support vectors?
    Question 5
    2024 PYQ
    Level 3: Exam Standard
    Consider the following figures representing datasets consisting of
    two-dimensional features with two classes denoted by circles and squares.
    (i)(ii)(iii)(iv)321123321123321123321123
    Which of the following is/are TRUE?
    Question 6
    2024 PYQ
    Level 3: Exam Standard
    For any binary classification dataset, let and be the
    between-class and within-class scatter (covariance) matrices, respectively. The
    Fisher linear discriminant is defined by , that maximizes

    If , is non-singular and , then must satisfy which ONE
    of the following equations?
    Note: denotes the set of real numbers.
    Free preview ends here

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

    Linear Classifiers, Discriminant Analysis and Margin-based Methods PYQs for GATE DA

    Solve 6+ Linear Classifiers, Discriminant Analysis and Margin-based Methods previous year questions for GATE DA with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Linear Classifiers and Margin Methods

    1. Fisher Discriminant and Distance-Based Classifiers
    Intuition of class separation, scatter matrices, and optimal projection. Current Topic
    2. Fisher Discriminant: Mathematical Optimization
    Deriving the weight vector using generalized eigenvalue problems.
    3. Linear Separability and Perceptron Updates
    Understanding linearly separable data and mistake-driven weight updates.
    4. Perceptron Algorithm and Convergence
    Formal algorithm steps, learning rate, and convergence theorem.
    5. Support Vector Machines: Margins and Vectors
    Hard margin, soft margin, and geometric intuition of support vectors.
    6. SVM Optimization and Practical Application
    Primal and dual formulations, hinge loss, and kernel trick basics.

    The Core Idea: Why Fisher Discriminant?

    The Goal of Fisher Linear Discriminant (FLD)

    When reducing dimensions for classification, maximizing total variance (like PCA) can be disastrous. The direction of maximum variance might be orthogonal to the direction that best separates the classes.

    Fisher's insight was to frame dimensionality reduction as a supervised optimization problem. For a binary classification task, we seek a projection vector that maps -dimensional data to a scalar , such that:

    • The projected class means are far apart (maximize between-class scatter).
    • The projected points within each class are tightly clustered (minimize within-class scatter).

    This creates a linear decision boundary in the original space that is optimally tuned for separating the two classes.

    Linear Classifiers, Discriminant Analysis and Margin-based Methods: Solved Questions with Step-by-Step Explanations (6 Problems)

    Question 1 · Machine Learning · 2025 MCQ
    Consider designing a linear classifier


    on a dataset , , , . Recall that the sign function outputs if the argument is positive, and if the argument is non-positive. The parameters and are updated as per the following training algorithm:


    whenever . In other words, whenever the classifier wrongly predicts a sample from the dataset, gets updated to , and likewise gets updated to . Consider the case , . Then
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: The perceptron update adds to and to . Evaluating the new score on the same misclassified point adds to the old score, strictly increasing it.

    Exam route: . Since , .

    Learning route:

    Step 1: We are given and . This is a misclassification, so an update occurs.

    Step 2: The update rules are and .

    Step 3: Evaluate the new score on the same point :

    Step 4: Substitute the updated parameters:

    Step 5: Since , we have . Therefore, . (Option A is correct).

    Step 6: Check Option D. We are given and . Their product is negative, so it cannot be . (Option D is false).

    Answer: A

    Question 2 · Machine Learning · 2025 MSQ
    1. A.

      The sample is assigned the label green if

    2. B.

      is a linear function of

    3. C.

      , where and are functions of and

    4. D.

      is a quadratic polynomial in

    Correct Answer:

    ["B","C"]

    Step-by-Step Solution

    Insight: The difference of squared Euclidean distances to two means simplifies to a linear function because the quadratic terms cancel out.

    Exam route: Expand to get . This is strictly linear in .

    Learning route:

    Step 1: Expand the squared norms: .

    Step 2: Similarly, .

    Step 3: Subtract the two expressions. The terms cancel out perfectly, leaving:

    .

    Step 4: This is of the form , where and . Thus, is a linear function of . (Options B and C are correct).

    Step 5: Evaluate Option A. At , . If , then . The classifier assigns "red" if . So is assigned red, not green. (Option A is false).

    Step 6: Since is linear, it is not a quadratic polynomial. (Option D is false).

    Answer: B, C

    Question 3 · Machine Learning · 2025 MSQ
    1. A.

      and

    2. B.

      The number of support vectors is 3

    3. C.

      The margin is

    4. D.

      Training accuracy is 98%

    Correct Answer:

    ["B","C"]

    Step-by-Step Solution

    Insight: The support vectors are the closest points between the two classes. The optimal hard-margin hyperplane lies exactly midway between the parallel margin boundaries passing through these support vectors.

    Exam route: Identify support vectors: from Class-2, and from Class-1. Total 3 support vectors. The margin boundaries are and . The margin width is .

    Learning route:

    Step 1: Identify the closest points between classes. Distance from to is 2, to is 2, and to is . Thus, and are the support vectors for Class-1, and is the support vector for Class-2. Total = 3 support vectors. (Option B is correct).

    Step 2: The line through and is . The parallel line through is .

    Step 3: The optimal separating hyperplane is exactly in the middle: , which means and . Option A claims and , which is incorrect.

    Step 4: The margin width is the perpendicular distance between and , which is . (Option C is correct).

    Step 5: Since the data is perfectly linearly separable, a hard-margin SVM achieves 100% training accuracy, not 98%. (Option D is incorrect).

    Answer: B, C

    Question 4 · Machine Learning · 2024 MCQ
    Consider the dataset with six datapoints: ,
    where , , , , ,
    and the labels are given by , and . A hard
    margin linear support vector machine is trained on the above dataset.
    Which ONE of the following sets is a possible set of support vectors?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: The dataset is perfectly symmetric around the origin, implying the optimal hard-margin hyperplane passes through the origin (). The support vectors are the points closest to this boundary.

    Exam route: Set up the hard-margin constraints . Adding the constraints for symmetric points (e.g., and ) directly yields and . Minimizing gives and . Checking which points yield exactly 1 identifies the support vectors.

    Learning route:

    1. Write down the 6 constraints for hard-margin SVM: .
    2. For ():
    3. For ():
    4. Adding these two gives .
    5. Similarly, for () and (), we get and , which sum to .
    6. The SVM objective is to minimize .
    7. Given and , the minimum is achieved at .
    8. Substituting back, and , so .
    9. Verify with and : . . Both are strictly greater than 1, so they are not support vectors.
    10. The points satisfying are . Thus, they are the support vectors.
    Question 5 · Machine Learning · 2024 MSQ
    Consider the following figures representing datasets consisting of
    two-dimensional features with two classes denoted by circles and squares.
    (i)(ii)(iii)(iv)321123321123321123321123
    Which of the following is/are TRUE?
    1. A.

      (i) is linearly separable.

    2. B.

      (ii) is linearly separable.

    3. C.

      (iii) is linearly separable.

    4. D.

      (iv) is linearly separable.

    Correct Answer:

    ["A","D"]

    Step-by-Step Solution

    Insight: A dataset is linearly separable if and only if the convex hulls of the two classes do not intersect. Visually, this means a single straight line can perfectly separate the two classes.

    Exam route: Inspect each figure. In (i) and (iv), a straight line can cleanly separate circles from squares. In (ii) and (iii), the classes are interleaved (like an XOR pattern), making linear separation impossible.

    Learning route:

    Step 1: Understand linear separability. It requires the existence of a hyperplane (a line in 2D) such that all points of one class lie on one side and all points of the other class lie on the other side.

    Step 2: Analyze figure (i). The circles are clustered in the top-left and the squares in the bottom-right. A diagonal line can separate them. (True)

    Step 3: Analyze figure (ii). The points form an XOR-like pattern where circles and squares alternate. No single straight line can separate them. (False)

    Step 4: Analyze figure (iii). Similar to (ii), the classes are interleaved in a way that any line will misclassify at least one point. (False)

    Step 5: Analyze figure (iv). The circles are on the left and squares are on the right. A vertical line can separate them. (True)

    Answer: A, D

    Question 6 · Machine Learning · 2024 MCQ
    For any binary classification dataset, let and be the
    between-class and within-class scatter (covariance) matrices, respectively. The
    Fisher linear discriminant is defined by , that maximizes

    If , is non-singular and , then must satisfy which ONE
    of the following equations?
    Note: denotes the set of real numbers.
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Maximizing the Rayleigh quotient leads directly to the generalized eigenvalue problem .

    Exam route: Since is non-singular, left-multiply by to isolate the eigenvalue form: .

    Learning route:

    Step 1: The Fisher criterion is . To find the optimal , we set the gradient .

    Step 2: Applying the quotient rule of matrix calculus, the derivative simplifies to the condition .

    Step 3: The term in parentheses is exactly the scalar value . Thus, we get the generalized eigenvalue problem: .

    Step 4: Given that is non-singular (invertible), we can multiply both sides on the left by , yielding .

    Answer: A

    More previous year questions (pyqs) in this unit