Question: 1. Consider the (training) data in the table below, with one predictor r and categorical response y, with two classes labels 1 and -1. Do

1. Consider the (training) data in the table below, with one predictor r and categorical response y, with two classes labels 1 and -1. Do not e a computer to do this problem 3 (a) Report the training error for the KNN classifier with K-1 and K=9. (b) Apply the 3-NN classifier to the following test points: x =-10, 0, and 10. Report your class predictions for each. (It is helpful to plot the data first.) (c) The 3-NN classification rule for any predictor value r in this prob- lem takes the form "Assign class -1 if
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
