Gradient LabSign up free

Home / GATE DA / 2025 / Q.53

GATE DA 2025, Q.53: SVM on four points

Machine learningHard-margin SVM2 marksMSQ (more than one correct)Free

The question

A hard-margin linear SVM f(x) = sign(wᵀx + b) in ℝ² is trained on class 1: (2, 0), (0, 2), (2, 2) and class 2: (0, 0). Which are correct? (A) w = (4, 4)ᵀ and b = 1. (B) There are 3 support vectors. (C) The margin is √2. (D) Training accuracy is 98%.

Watch it solved

Solve it step by step

  1. Closest points. (0, 0) faces (2, 0) and (0, 2); (2, 2) is farther away.
  2. Boundary. The max-margin line is halfway: x₁ + x₂ = 1, with w = (1, 1), b = −1 after scaling.
  3. Support vectors. (0, 0), (2, 0), (0, 2) all lie on the margins: 3 (B).
  4. Margin. Width 2/‖w‖ = 2/√2 = √2 (C). Separable data give 100% accuracy (D fails); A has the wrong scale and sign of b.

Answer: B, C

Official IIT Roorkee answer key: B; C.

Common mistake. Calling the half-width 1/√2 "the margin"; here the margin means the full gap 2/‖w‖.

Remember. Hard margin: maximise 2/‖w‖ subject to yᵢ(wᵀxᵢ + b) ≥ 1.

See it move

Learn the idea behind this question in the free animated lesson Support vector machines, then Decision boundaries.

Want every question solved? The past-paper pack has all 195 questions from 2024, 2025 and 2026 for ₹499. The cheat sheet pack has 23 printable sheets for ₹399.

See the past-paper pack See the cheat sheets

Source: official GATE DA 2025 question paper and answer key (IIT Roorkee). The question is lightly reworded; every number and option is kept.