Answered step by step
Verified Expert Solution
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 |
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started