0

The Minkowski distance: $$\left(\sum_i |x_i-x_i'|^p \right)^{1/p},\ \text{where}\ p\ge1$$

is only a metric for $p\ge1$. Can someone give me a quick example why the triangle inequality doesn't hold in other cases?

Dahlai
  • 217

1 Answers1

5

The Wikipedia article has the following example:

Let $x := (0, 0)$, $y := (1, 1)$, $z := (0, 1)$.

Then:

  • $d(x, y) = 2^{1/p}$, which when $p < 1$ is more than $2$.
  • $d(x, z) = d(y, z) = 1$.

So $d(x, y) > d(x, z) + d(z, y)$.

Danica
  • 624