Question: Note: Only solve. QP() from quadprog in R is allowed in Part I. No other packages containing svm are allowed. We consider a training data

 Note: Only solve. QP() from quadprog in R is allowed in

Note: Only solve. QP() from quadprog in R is allowed in Part I. No other packages containing svm are allowed. We consider a training data with 12 observations with two dimensions, (X1, X2). For each observation, there is an associated class label Y = {-1, 1} as follows X1 X2 Y 3 2 -1 4 0 -1 3.5 -1 -1 -1 -2 -1 10 1. Draw a scatter plot to represent the points with Red colour for the class Y = 1 and Blue colour for Y = -1. X, is on the vertical axis while X2 is on the horizontal axis. 2. . Find the optimal separating hyperplane of the classification problem using the function solve . QP() from quadprog in R. Show your work. . Sketch the optimal separating hyperplane in the scatter plot obtained in Ques- tion 1. (Hint: R might send you an message about the matrix is not positive definite. You can address this problem by adding a small value on the diagonal of the matrix, e.g. le-8 ). 3. Describe the classification rule for the maximal margin classifier. 4. Compute the margin of the classifier

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!