Aiphabet

k-NN Quiz

  1. What is the primary principle behind the k-NN algorithm?
  1. Why is feature scaling important for k-NN?
  1. You are attempting to predict if people are dog lovers or cat lovers based on their age and height. After standardizing the data, you attempt to predict the post-standardized unknown point:

undefined

Using k-NN with k=1, what label would you give the unknown point on the above graph?

Note: You should not perform the distance calculations in this problem. Rather, intuitively choose the nearest neighbor(s).

  1. You are attempting to predict if people are dog lovers or cat lovers based on their age and height. After standardizing the data, you attempt to predict the post-standardized unknown point:

undefined

Using k-NN with k=1, what label would you give the unknown point on the above graph?

Note: You should not perform the distance calculations in this problem. Rather, intuitively choose the nearest neighbor(s).

  1. You are attempting to predict if people are dog lovers or cat lovers based on their age and height. After standardizing the data, you attempt to predict the post-standardized unknown point:

undefined

Using k-NN with k=3, what label would you give the unknown point on the above graph?

Note: You should not perform the distance calculations in this problem. Rather, intuitively choose the nearest neighbor(s).

  1. You are attempting to predict if people are dog lovers or cat lovers based on their age and height. After standardizing the data, you attempt to predict the post-standardized unknown point:

undefined

Using k-NN with k=3, what label would you give the unknown point on the above graph?

Note: You should not perform the distance calculations in this problem. Rather, intuitively choose the nearest neighbor(s).

  1. You are attempting to predict if people are dog lovers or cat lovers based on their age and height. After standardizing the data, you attempt to predict the post-standardized unknown point:

undefined

Using k-NN with k=9, what label would you give the unknown point on the above graph?

Note: You should not perform the distance calculations in this problem. Rather, intuitively choose the nearest neighbor(s).

  1. You are attempting to predict if people are dog lovers or cat lovers based on their age and height. After standardizing the data, you attempt to predict the post-standardized unknown point:

undefined

Using k-NN with k=9, what label would you give the unknown point on the above graph?

Note: You should not perform the distance calculations in this problem. Rather, intuitively choose the nearest neighbor(s).