Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

Students also viewed these Databases questions