Exercise 8.13

Answers

Consider a data set with two positive examples at x1 = (0,0) and x2 = (1,0), and one negative example at x3 = (0,1). We look for hyperplane (line) that separate the negative example with the positive examples. As there’s only 1 negative example, it has to be the support vector, either one of the two positive examples or both of them can be the support vectors. It’s not hard by trial and error to find out that the optimal fat-hyperplane is 2[x]2 + 1 = 0, i.e. with (b,w) = (1,[0,2])

The optimal solution α has to satisfy w = n=1Nynαnxn,

w = n=1Ny nαnx n = y1α1x1 + y2α2x2 + y3α3x3 = α1 [ 0 0 ] + α2 [ 1 0 ] α3 [ 0 1 ] = [ α1 α3 ]

since

w = [ 0 2 ],

we have α1 = 0.

On the other hand, for this hyperplane, all three points are support vectors. It’s easy to check that for n = 1,2,3, we have

yn(wTx n + b) = 1.

So if a point (xn,yn) is on the boundary satisfying yn((w)Txn + b) = 1, it’s possible that αn = 0 as the α1 = 0 here.

User profile picture
2021-12-08 10:12
Comments