Euclidean Distance
If point and
Manhattan Distance
The name came from if we want to drive from one building to another in Mahattan, we need to follow the road (x,y axis) rather than go for a straight line between these two points.
It is the projection of Euclidean distance to the x,y axis. Where and has
Mahalanobis Distance
It is a very useful way of determining the “similarity” of a set of values from an “unknown”
sample to a collection of “known” samples. The Mahalanobis distance between x and is
Comparing the the Euclidean distance. “Euclidean distance only makes sense when all the dimensions have the same units (like meters), since it involves adding the squared value of them. When you are dealing with probabilities, a lot of times the features have different units. For example: I have a model for men and women, based on their weight [Kg] and height [m]. I know the mean and covariance for each. Now I get a new measurement set of weight and height and I try to decide if it’s a man or a woman. I can use the Mahalanobis distance from the models of both men and women to decide which is closer, meaning which is more probable.”
Chebyshev Distance
Defined as
Where and is the coordinate of two points and it can also be wrote as
it is called distance
Minkowski Distance
Distance between group, defined as
Where
,it is Manhattan Distance
, it is Mahalanobis Distance
, it is Chebyshev Distance
Standardized Euclidean Distance
Bhattacharyya Distance
Cosine
For 2 data in n-dimension, cosine is defined as
if and
Jaccard Similarity Coefficient
Defined as
Pearson Correlation Coefficient