The questions below walk through the use of kNN to predict the value of Y for a new point with (X1, X2)=(4, 4). Distance is calculated in the Euclidean sense.

What is the Euclidean distance between (X1,X2)=(4,4) and the first point in the table ((X1,X2)=(3,5))?

Respuesta :

Answer:

The Euclidean distance between the two given points is [tex]\sqrt{2}\text{ units}[/tex].

Step-by-step explanation:

K-NN is used to predict the variable y for a new point with [tex](X_1,X_2) = (4,4)[/tex]

Distance is calculated in the Euclidean sense.

The Euclidean distance between two points is given by the formula:

[tex]\text{Points: }(X_1, X_2), (x_1,x_2)\\\\D = \sqrt{{(x_2-X_2)}^2 + (x_1-X_1)^2}[/tex]

The point is [tex](x_1,x_2) = (3,5)[/tex]

The Euclidean distance between the two points is given by:

[tex]D = \sqrt{(5-4)^2 + (3-4)^2} = \sqrt{2}\text{ units}[/tex]

Thus, the Euclidean distance between the two given points is [tex]\sqrt{2}\text{ units}[/tex].

ACCESS MORE