How to calculate the width of the separating margin in support vector machine (SVM)

644 Views Asked by At

There are 4 points, $\mathrm x_1 = (1,1,0,1), \;\mathrm x_2= (1,1,0,-1) , \; \mathrm x_3 = (-1,1,0,1) , \; \mathrm x_4 = (1,-2,0,1)$ in a 4-Dimensional Euclidean space.

Let the labels of $x_1$ and $x_2$ be $+1$ and of $x_3$ and $x_4$ be $-1.$

Suppose there is a separating hyperplane between the two labels given by $\mathrm w^\top \mathrm x = 0,$ where $\mathrm w = (4,3,0,0).$

Calculate margin of separating hyperplane. Please explain the procedure as well.