Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago