Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is a short dataset consisting of a binary outcome variable Y and two independent variables X1 and X2. The independent variables are normalized, so

Here is a short dataset consisting of a binary outcome variable Y and two independent variables X1 and X2. The independent variables are normalized, so no need to normalize further.

X1 X2 Y
3 5 1
1 4 0
3 2 0
2 2 1
4 1 1

  1. Suppose you are asked to predict the outcome for (X1, X2) = (4, 4). Use KNN with k = 3 to predict this outcome. You can use Euclidean distance as the distance measure.

Predict the outcome with k = 5.

Use k = 3 with Manhattan distance and reevaluate the prediction. Should the prediction with k = 5 change? Why or why not? Is there another name you can use to call the prediction with k = 5.

View keyboard shortcuts

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

The Structure Of Groups With A Quasiconvex Hierarchy (AMS-209)

Authors: Daniel T Wise

1st Edition

069121350X, 9780691213507

More Books

Students also viewed these Mathematics questions

Question

What is the difference between persistence and self-determination?

Answered: 1 week ago

Question

What, if any, limitations exist for arbitrators?

Answered: 1 week ago

Question

What are the disadvantages of arbitration?

Answered: 1 week ago