Distance Metrics
Core requirements #
Perfect distant metrics must fulfill core requirements:
- Distance from itself to itself should be 0
- Symmetric distances1
- Satisfy triangle inequality
- Positive for all other points
Satisfiability #
Only some Minkowski distances satisfy these constraints.
Minkowski distance is: where .2
The only values of that satisfies requirements are:
For example,
- is Manhattan distance (L1 norm)
- is Euclidean distance (L2 norm)
Any does not satisfy the triangle inequality (since distances become convex) and therefore isn’t considered a valid distance metric.
If this requirement is ever weakened to an inequality then could be 0 even if . If this happens, then becomes a pseudo-metric. ↩︎