Answered step by step
Verified Expert Solution
Question
1 Approved Answer
9. Given following data (from Iris dataset) compute Euclidian distance between observation 1 and 2 and Manhattan distance between observations 2 and 3 sepal.length sepal.width
9. Given following data (from Iris dataset) compute Euclidian distance between observation 1 and 2 and Manhattan distance between observations 2 and 3 sepal.length sepal.width petal.length 5.1 3.5 1.4 3 1.4 petal.width 0.2 4.9 0.2 4.7 3.2 1.3 0.2 5.5 2.5 4 1.3 5.5 2.6 4.4 1.2 6.1 3 4.6 1.4 5.8 4 1.2 2.6 2.3 5 3.3 1 2.7 4.2 1.3 5.6 6.2 3.4 5.4 2.3 5.9 3 5.1 1.8 Euclidian distance between two points with coordinates (X1, X2... x) and (yY2Y) d = V(x1 - x1) + (y2 x2)+.. + (yn xn). Manhattan (taxicab) distance between two points with coordinates (X1, X2... x) and (y Y2y) d = | x1| + |2 = x2] + .. + y = xr| a. 0.538516 and 0.5 b. 8.8107 and 18.5 2.58 and 2.35654 c. d. None of the above
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