X1 X2 X3 Y Euclidian Distance
1 0 3 Red 3.000000
2 2 0 Red 2.000000
3 0 1 Red 3.162278
4 0 1 Green 2.236068
5 -1 0 Green 1.414214
6 1 1 Red 1.732051
Suppose that we will use the above data for predicting variable Y when X1=0, X2=0, and X3=0 using k-nearest neighbors.
What is your prediction with k=1? Why?
What is your prediction with k=3? Why?