GATE DA 2024 · Support Vector Machine (SVM)

MCQ · 1 mark · Problem ML-SVM-0017

Consider the dataset with six datapoints: \(\left\{\left(\boldsymbol{x}_{1}, \boldsymbol{y}_{1}\right),\left(\boldsymbol{x}_{2}, \boldsymbol{y}_{2}\right), \ldots,\left(\boldsymbol{x}_{6}, \boldsymbol{y}_{6}\right)\right\}\), where \[x_{1}=\left[\begin{array}{l}1 \\ 0\end{array}\right], x_{2}=\left[\begin{array}{l}0 \\ 1\end{array}\right], x_{3}=\left[\begin{array}{c}0 \\ -1\end{array}\right], x_{4}=\left[\begin{array}{c}-1 \\ 0\end{array}\right], x_{5}=\left[\begin{array}{l}2 \\ 2\end{array}\right], x_{6}=\left[\begin{array}{l}-2 \\ -2\end{array}\right]\] and the labels are given by \(\boldsymbol{y}_{1}=\boldsymbol{y}_{2}=\boldsymbol{y}_{5}=1\), and \(\boldsymbol{y}_{3}=\boldsymbol{y}_{4}=\boldsymbol{y}_{6}=-1\). 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
    \(\left\{x_{1}, x_{2}, x_{5}\right\}\)
  2. B
    \(\left\{x_{3}, x_{4}, x_{5}\right\}\)
  3. C
    \(\left\{x_{4}, x_{5}\right\}\)
  4. D
    \(\left\{x_{1}, x_{2}, x_{3}, x_{4}\right\}\)

Solve it on GATE DA practice →More Supervised Learning — Classification problems

Show the worked solutionThe positive points \((1,0),(0,1),(2,2)\) and the negative points \((0,-1),(-1,0),(-2,-2)\) are symmetric about the origin.The closest parts of the two convex hulls are the parallel edges \((1,0)\)–\((0,1)\) (on \(x_1+x_2=1\)) and \((0,-1)\)–\((-1,0)\) (on \(x_1+x_2=-1\)), at distance \(\sqrt2\).So the maximum-margin boundary is \(x_1+x_2=0\), i.e. \(\mathbf w=(1,1),\ b=0\), and the points with \(y_i(\mathbf w^T\mathbf x_i+b)=1\) are \(\mathbf x_1,\mathbf x_2,\mathbf x_3,\mathbf x_4\); \(\mathbf x_5\) and \(\mathbf x_6\) give \(\pm4\), well outside the margin.A set containing \(\mathbf x_5\) or leaving out the four points on the margin (options A, B, C) cannot be the support vectors.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com