Data Mining Chapter 2
Data Mining Chapter 2
Data Mining Chapter 2
6
Given:
xi = (22, 1, 42, 10)
xj = (20, 0, 36, 8)
(a) Compute the Euclidean distance between the two objects.
The Euclidean distance is computed using Equation
=
Therefore, we have
=
= 6.7082.
(b) Compute the Manhattan distance between the two objects.
The Manhattan distance is computed using Equation
Binary attributes are the categorical attributes with only tow possible values (yes or no),
(true or false), (0 or 1).
symmetric binary attribute is the attribute which each value is equally valuable (male or
female). the male here is not more important than the female value.
asymmetric is the attribute which the two states is not equally important. for example, the
medical test (positive or negative). here, the positive results is more significant than the
negative one.