Euclidean distance in data mining

What is the Euclidean distance?

Euclidean distance is a technique used to find the distance/dissimilarity among objects.

Example:

  Age Marks
Sameed 10 90
Shah zeb 6 95

Formulae:

Euclidean distance (sameed, sameed) = SQRT (   (X1 – X2)+ (Y1 -Y2)2   ) = 0

[quads id=2]

Euclidean distance (sameed, sameed) = SQRT ( (10 – 10)+ (90 -90)2) = 0

Here note that (90-95) = -5 and when we take sqaure of a negative number then it will be a positive number. For example, (-5)2 = 25

Euclidean distance (sameed, shah zeb) = SQRT ( (10 – 6)+ (90 -95)2) = 6.40312

Euclidean distance (shah zeb, sameed) = SQRT ( (10 – 6)+ (90 -95)2) = 6.40312

Euclidean distance (sameed, sameed) = SQRT ( (10 – 10)+ (90 -90)2) = 0

Euclidean Distance is given below;

  Sameed Shah zeb
Sameed 0 6.40312
Shah zeb 6.40312 0

 

Fazal Rehman Shamil
Welcome to all friends. The reason for our success is only your love for T4Tutorials. Our team is always available to answer your queries regarding any kind of confusions or discussion regarding your study and career matters. For discussion with us please join our facebook group "T4Tutorials.com". The link of the group is mentioned below. Thanks and love to all for connecting with us. We are nothing without you. Love you all.....
https://web.facebook.com/groups/2066136233601097/

Leave a Reply