Assume a group of data that own numerical and nominal attributes. If we want to calculate distance of one items from others.

For numerical attributes we compute average amount of each attributes and calculate distance of the item to center in each dimension and after all get average of these distances for difference.

But how we can calculate for nominal attributes? for example we have 40 patients that 20,3,7,10 of them are in A, B, AB, O blood group respectively. for new patient that are in B group how we calculate differences of this patient from others? 

More Reza Sadeghi's questions See All
Similar questions and discussions