Question: Only part C please! 1. The table below provides a training data set containing six observations, three predictors, and one qualitative response variable ( Y=

 Only part C please! 1. The table below provides a training

Only part C please!

1. The table below provides a training data set containing six observations, three predictors, and one qualitative response variable ( Y= color "Blue" or color "Red"). Suppose we wish to use K-nearest neighbors to work with this data set. (a) Use K=1 to predict the color (either "Blue" or "Red"), using the K-nearest neighbor predictions of color for each of the training observations. What is the average misclassification training error? (b) Use K=3 to calculate the K-nearest neighbor predictions for all the training observations. What is the average misclassification training error? (c) Suppose we wish to use this data set to make a prediction for Y when x0= (X1,X2,X3), with X1=X2=X3=0, using K-nearest neighbors. i. Compute the Euclidean distance between each observation and the test point, X1=X2=X3=0 ii. What is our prediction with K=1 ? Why? iii. What is our prediction with K=3 ? Why? iv. What is our prediction with K=5 ? Why

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 Databases Questions!