Lecture Notes
Proximity
- Dissimilatity (distance)
- Similarity
- Nominal and Ordinal vs Interval/Ratio
- Nominal
- Categories/Bools
- Ordinal
- Ranking or order
- You need to calculate
\frac{|p-q|}{(n-1)} for dissimilarity
- p and q are the ranking of each one
- n is the number of rankings
- Similarity is similar but subtract from 1
- Interval Ratio
d = |p-q| for dissimilarity
- For similarity: negate the dissimilarity
- Euclidean Distance
- Minkowski Distance
(\sum_{k=1}^{n} |x_k - y_k|^r)^{1/r}
- Hamming Distance
- If the two strings are equal length
- Count number of different symbols at positions