Database MCQ - Data Mining
64
Suppose, you have given the following data where x and y are the 2 input variables and Class is the dependent variable.
Below is a scatter plot which shows the above data in 2D space.
Suppose, you want to predict the class of new data point x=1 and y=1 using Eucledian distance in 3-NN. In which class this data point belong to?
| x | y | Class |
| -1 | 1 | - |
| 0 | 1 | + |
| 0 | 2 | - |
| 1 | -1 | - |
| 1 | 0 | + |
| 1 | 2 | + |
| 2 | 2 | - |
| 2 | 3 | + |
All three nearest point are of +class so this point will be classified as +class.


