A novice here
My previous question was closed due to inadequate details
So here I've added more details
A metric should basically satisfy 3 properties
- Distance is equal to zero if and only if $x$ is equal to $y$ ($d(x,y)=0 ⇔ x=y$))
- Distance from $x$ to $y$ is the same as distance from $y$ to $x$ ($d(x,y)=d(y,x)$)
- Distance should satisfy the triangular inequality ($d(x,y)\leq d(x,z) +d(z,y)$)
I already know that Gower's distance satisfy the first 2 properties to be a metric, but I want to know whether it satisfies the triangular inequality property.
The reason I want to know this, is because all metric spaces are Hausdorff spaces, and I want use the Gowers distance in order to find the Hausdorff distance for 2 sets of points.
In my case, a point contains data of mixed types (logical, categorical & numeral), and therefore I have to use the Gowers distance.
Any help would be appreciated.
Thank You!
Edit:
According to a suggestion on the comments, here is the formal definition of a metric
A metric on a set X is a function (called the distance function or simply distance)
$d : X × X → R$
(where R is the set of real numbers). For all $ x, y, z $ in $X$, this function is required to satisfy the following conditions:
- $d(x, y) ≥ 0$ (non-negativity)
- $d(x, y) = 0$ if and only if $x = y $
- $d(x, y) = d(y, x) $ (symmetry)
- $d(x, z) ≤ d(x, y) + d(y, z) $
Note that the first condition is implied by the others.