Metric (mathematics)

Short description: Mathematical function defining distance

An illustration comparing the taxicab metric to the Euclidean metric on the plane: According to the taxicab metric the red, yellow, and blue paths have the same length (12). According to the Euclidean metric, the green path has length 62≈8.49, and is the unique shortest path.

In mathematics, a metric or distance function is a function that gives a distance between each pair of point elements of a set. A set with a metric is a metric space.[1] A metric induces a topology on a set, but not all topologies can be generated by a metric. A topological space whose topology can be described by a metric is a metrizable space.

One important source of metrics in differential geometry are metric tensors, bilinear forms that may be defined from the tangent vectors of a differentiable manifold onto a scalar. A metric tensor allows distances along curves to be determined through integration, and thus determines a metric.

## Contents

* 1 Definition
* 2 Notes
* 3 Examples
* 4 Equivalence of metrics
* 5 Norm induced metric
* 6 Metrics on multisets
* 7 Generalized metrics
* 7.1 Extended metrics
* 7.2 Pseudometrics
* 7.3 Quasimetrics
* 7.4 Metametrics
* 7.5 Semimetrics
* 7.6 Premetrics
* 7.7 Pseudoquasimetrics
* 7.8 Łukaszyk-Karmowski distance
* 7.9 Important cases of generalized metrics
* 8 See also
* 9 Notes
* 10 References

## Definition

A metric on a set X is a function (called distance function or simply distance)

d:X×X->ℝ,

such that for all x,y,z∈X, the following three axioms hold:

1\.  | d(x,y)=0⟺x=y | identity of indiscernibles

|
|

2. | d(x,y)=d(y,x) | symmetry
3. | d(x,z)≤d(x,y)+d(y,z) | triangle inequality

From these axioms the non-negativity of metrics can be derived like so:

| d(x,y)+d(y,x)≥d(x,x) | by triangle inequality

|
|

| d(x,y)+d(x,y)≥d(x,x) | by symmetry
| 2d(x,y)≥0 | by identity of indiscernibles
4\.  | d(x,y)≥0 | we have non-negativity

A metric (as defined) is a non-negative real-valued function. This, together with axiom 1, provides a separation condition, where distinct or separate points are precisely those that have a positive distance between them.

A metric is called an ultrametric if it satisfies the following stronger version of the triangle inequality for all x,y,z∈X:

d(x,y)≤max⁡{d(x,z),d(y,z)}.

A metric d on X is called intrinsic if for all x,y∈X and any length L>d(x,y), there exists a curve of length less than L that joins x and y.

A metric d on a group G (written multiplicatively) is said to be left-invariant (resp. right-invariant) if for all x,y,z∈G

d(zx,zy)=d(x,y) [resp. d(xz,yz)=d(x,y)].

A metric d on a commutative additive group X is said to be translation invariant if for all x,y,z∈X

d(x,y)=d(x+z,y+z),or equivalently d(x,y)=d(x−y,0).

Every vector space is also a commutative additive group and a metric on a real or complex vector space that is induced by a norm is always translation invariant. A metric d on a real or complex vector space V is induced by a norm if and only if it is translation invariant and absolutely homogeneous, where the latter means that for all scalars s and all x,y∈V: d(sx,sy)=|s|d(x,y) holds, in which case the function ‖x‖:=d(x,0) defines a norm on V and the canonical metric induced by ‖⋅‖ is equal to d.

## Notes

These conditions express intuitive notions about the concept of distance. For example, that the distance between distinct points is positive and the distance from x to y is the same as the distance from y to x. The triangle inequality means that the distance from x to z via y is at least as great as from x to z directly. Euclid in his work stated that the shortest distance between two points is a line; that was the triangle inequality for his geometry.

## Examples

* The discrete metric: d(x,y)={0if x=y,1otherwise.
* The Euclidean metric is translation and rotation invariant.
* The taxicab metric is translation invariant.
* More generally, any metric induced by a norm is translation invariant.
* If (pn)n∈ℕ is a sequence of seminorms defining a (locally convex) topological vector space E, then

d(x,y)=∑n=1∞12npn(x−y)1+pn(x−y)

is a metric defining the same topology. (One can replace 12n by any summable sequence (an) of strictly positive numbers.)
* The normed space (ℝ,|⋅|) is a Banach space where the absolute value is a norm on the real line ℝ that induces the usual Euclidean topology on ℝ. Define a metric d:ℝ×ℝ->ℝ on ℝ by d(x,y)=|arctan⁡(x)−arctan⁡(y)| for all x,y∈ℝ. Just like |⋅| 's induced metric, the metric d also induces the usual Euclidean topology on ℝ. However, d is not a complete metric because the sequence x∙=(xi)i=1∞ defined by xi:=i is a d‑Cauchy sequence but it does not converge to any point of ℝ. As a consequence of not converging, this d-Cauchy sequence cannot be a Cauchy sequence in (ℝ,|⋅|) (i.e. it is not a Cauchy sequence with respect to the norm ‖⋅‖) because if it was |⋅|-Cauchy, then the fact that (ℝ,|⋅|) is a Banach space would imply that it converges (a contradiction).[2]
* Graph metric, a metric defined in terms of distances in a certain graph.
* The Hamming distance in coding theory.
* Riemannian metric, a type of metric function that is appropriate to impose on any differentiable manifold. For any such manifold, one chooses at each point p a symmetric, positive definite, bilinear form L:Tp×Tp->ℝ on the tangent space Tp at p, doing so in a smooth manner. This form determines the length of any tangent vector 𝐯 on the manifold, via the definition ‖v‖=L(𝐯,𝐯). Then for any differentiable path on the manifold, its length is defined as the integral of the length of the tangent vector to the path at any point, where the integration is done with respect to the path parameter. Finally, to get a metric defined on any pair {x,y} of points of the manifold, one takes the infimum, over all paths from x to y,of the set of path lengths. A smooth manifold equipped with a Riemannian metric is called a Riemannian manifold.
* The Fubini–Study metric on complex projective space. This is an example of a Riemannian metric.
* String metrics, such as Levenshtein distance and other string edit distances, define a metric over strings.
* Graph edit distance defines a distance function between graphs.
* The Wasserstein metric is a distance function defined between two probability distributions.
* The Finsler metric is a continuous nonnegative function F:TM->[0,∞) defined on the tangent bundle.

## Equivalence of metrics

For a given set X, two metrics d1 and d2 are called topologically equivalent (uniformly equivalent) if the identity mapping

id:(X,d1)->(X,d2)

is a homeomorphism (uniform isomorphism).

For example, if d is a metric, then min⁡(d,1) and d1+d are metrics equivalent to d.

## Norm induced metric

Norms on vector spaces are equivalent to certain metrics, namely homogeneous, translation-invariant ones. In other words, every norm determines a metric, and some metrics determine a norm.

Given a normed vector space (X,‖⋅‖) we can define a metric d on X, called the metric induced by ‖⋅‖ or simply the norm induced metric, by

d(x,y):=‖x−y‖.

The metric d is said to be induced by the norm ‖⋅‖.

Conversely[3] if a metric d on a vector space X satisfies the properties

* Translation invariance: d(x,y)=d(x+a,y+a);
* Absolute homogeneity: d(αx,αy)=|α|d(x,y);

then a norm on X may be defined by

‖x‖:=d(x,0)

where the metric induced by this norm is the original given metric d.

Similarly, a seminorm induces a pseudometric (see below), and a homogeneous, translation invariant pseudometric induces a seminorm.

## Metrics on multisets

We can generalize the notion of a metric from a distance between two elements to a distance between two nonempty finite multisets of elements. A multiset is a generalization of the notion of a set such that an element can occur more than once. Define the multiset union U=XY if U is the multiset consisting of the elements of the multisets X and Y, that is, if x occurs m times in X and n times in Y then it occurs m+n times in U. A distance function d on the set of nonempty finite multisets is a metric[4] if

1. d(X)=0 if all elements of X are equal and d(X)>0 otherwise (positive definiteness), that is, (non-negativity plus identity of indiscernibles)
2. d(X) is invariant under all permutations of X (symmetry)
3. d(XY)≤d(XZ)+d(ZY) (triangle inequality)

Note that the familiar metric between two elements results if the multiset X has two elements in 1 and 2 and the multisets X,Y,Z have one element each in 3. For instance if X consists of two occurrences of x, then d(X)=0 according to 1.

A simple example is the set of all nonempty finite multisets X of integers with d(X)=max⁡(X)−min⁡(X). More complex examples are information distance in multisets;[4] and normalized compression distance (NCD) in multisets.[5]

## Generalized metrics

There are numerous ways of relaxing the axioms of metrics, giving rise to various notions of generalized metric spaces. These generalizations can also be combined. The terminology used to describe them is not completely standardized. Most notably, in functional analysis pseudometrics often come from seminorms on vector spaces, and so it is natural to call them "semimetrics". This conflicts with the use of the term in topology.

### Extended metrics

Some authors allow the distance function d to attain the value ∞, i.e. distances are non-negative numbers on the extended real number line. Such a function is called an extended metric or "∞-metric". Every extended metric can be transformed to a finite metric such that the metric spaces are equivalent as far as notions of topology (such as continuity or convergence) are concerned. This can be done using a subadditive monotonically increasing bounded function which is zero at zero, e.g. d′(x,y)=d(x,y)/(1+d(x,y)) or d″(x,y)=min⁡(1,d(x,y)).

The requirement that the metric take values in [0,∞) can even be relaxed to consider metrics with values in other directed sets. The reformulation of the axioms in this case leads to the construction of uniform spaces: topological spaces with an abstract structure enabling one to compare the local topologies of different points.

### Pseudometrics

Main article: Pseudometric space

A pseudometric on X is a function d:X×X->ℝ which satisfies the axioms for a metric, except that instead of the second (identity of indiscernibles) only d(x,x)=0 for all x is required. In other words, the axioms for a pseudometric are:

1. d(x,y)≥0
2. d(x,x)=0
3. d(x,y)=d(y,x)
4. d(x,z)≤d(x,y)+d(y,z).

In some contexts, pseudometrics are referred to as semimetrics because of their relation to seminorms.

### Quasimetrics

Occasionally, a quasimetric is defined as a function that satisfies all axioms for a metric with the possible exception of symmetry.[6] The name of this generalisation is not entirely standardized.[7]

1. d(x,y)≥0
2. d(x,y)=0⟺x=y
3. d(x,z)≤d(x,y)+d(y,z)

Quasimetrics are common in real life. For example, given a set X of mountain villages, the typical walking times between elements of X form a quasimetric because travel up hill takes longer than travel down hill. Another example is a taxicab geometry topology having one-way streets, where a path from point A to point B comprises a different set of streets than a path from B to A.

A quasimetric on the reals can be defined by setting

d(x,y)={x−yif x≥y,1otherwise.

The 1 may be replaced by infinity or by 1+10(y−x).

The topological space underlying this quasimetric space is the Sorgenfrey line. This space describes the process of filing down a metal stick: it is easy to reduce its size, but it is difficult or impossible to grow it.

If d is a quasimetric on X, a metric d′ on X can be formed by taking

d′(x,y)=d(x,y)+d(y,x)2

### Metametrics

In a metametric, all the axioms of a metric are satisfied except that the distance between identical points is not necessarily zero. In other words, the axioms for a metametric are:

1. d(x,y)≥0
2. d(x,y)=0⟹x=y
3. d(x,y)=d(y,x)
4. d(x,z)≤d(x,y)+d(y,z).

Metametrics appear in the study of Gromov hyperbolic metric spaces and their boundaries. The visual metametric on such a space satisfies d(x,x)=0 for points x on the boundary, but otherwise d(x,x) is approximately the distance from x to the boundary. Metametrics were first defined by Jussi Väisälä.[8]

### Semimetrics

A semimetric on X is a function d:X×X->ℝ that satisfies the first three axioms, but not necessarily the triangle inequality:

1. d(x,y)≥0
2. d(x,y)=0⟺x=y
3. d(x,y)=d(y,x)

Some authors work with a weaker form of the triangle inequality, such as:

d(x,z)≤ρ(d(x,y)+d(y,z)) | ρ-relaxed triangle inequality

|

d(x,z)≤ρmax⁡{d(x,y),d(y,z)} | ρ-inframetric inequality

The ρ-inframetric inequality implies the ρ-relaxed triangle inequality (assuming the first axiom), and the ρ-relaxed triangle inequality implies the 2ρ-inframetric inequality. Semimetrics satisfying these equivalent conditions have sometimes been referred to as "quasimetrics",[9] "nearmetrics"[10] or inframetrics.[11]

The ρ-inframetric inequalities were introduced to model round-trip delay times in the internet.[11] The triangle inequality implies the 2-inframetric inequality, and the ultrametric inequality is exactly the 1-inframetric inequality.

### Premetrics

Relaxing the last three axioms leads to the notion of a premetric, i.e. a function satisfying the following conditions:

1. d(x,y)≥0
2. d(x,x)=0

This is not a standard term. Sometimes it is used to refer to other generalizations of metrics such as pseudosemimetrics[12] or pseudometrics;[13] in translations of Russian books it sometimes appears as "prametric".[14] A premetric that satisfies symmetry, i.e. a pseudosemimetric, is also called a distance.[15]

Any premetric gives rise to a topology as follows. For a positive real r, the r-ball centered at a point p is defined as

Br(p)={x|d(x,p)<r}.

A set is called open if for any point p in the set there is an r-ball centered at p which is contained in the set. Every premetric space is a topological space, and in fact a sequential space. In general, the r-balls themselves need not be open sets with respect to this topology. As for metrics, the distance between two sets A and B, is defined as

d(A,B)=infx∈A,y∈Bd(x,y).

This defines a premetric on the power set of a premetric space. If we start with a (pseudosemi-)metric space, we get a pseudosemimetric, i.e. a symmetric premetric. Any premetric gives rise to a preclosure operator cl as follows:

cl(A)={x|d(x,A)=0}.

### Pseudoquasimetrics

The prefixes pseudo-, quasi- and semi- can also be combined, e.g., a pseudoquasimetric (sometimes called hemimetric) relaxes both the indiscernibility axiom and the symmetry axiom and is simply a premetric satisfying the triangle inequality. For pseudoquasimetric spaces the open r-balls form a basis of open sets. A very basic example of a pseudoquasimetric space is the set {0,1} with the premetric given by d(0,1)=1 and d(1,0)=0. The associated topological space is the Sierpiński space.

Sets equipped with an extended pseudoquasimetric were studied by William Lawvere as "generalized metric spaces".[16] From a categorical point of view, the extended pseudometric spaces and the extended pseudoquasimetric spaces, along with their corresponding nonexpansive maps, are the best behaved of the metric space categories. One can take arbitrary products and coproducts and form quotient objects within the given category. If one drops "extended", one can only take finite products and coproducts. If one drops "pseudo", one cannot take quotients. Approach spaces are a generalization of metric spaces that maintains these good categorical properties.

### Łukaszyk-Karmowski distance

Łukaszyk-Karmowski distance is a function defining a distance between two random variables or two random vectors. The axioms of this function are:

1. d(x,y)>0
2. d(x,y)=d(y,x)
3. d(x,z)≤d(x,y)+d(y,z).

This distance function satisfies the identity of indiscernibles condition if and only if both arguments are described by idealized Dirac delta density probability distribution functions.

### Important cases of generalized metrics

In differential geometry, one considers a metric tensor, which can be thought of as an infinitesimal quadratic metric function. This is defined as a nondegenerate symmetric bilinear form on the tangent space of a manifold with an appropriate differentiability requirement. While these are not metric functions as defined in this article, they induce what is called a pseudo-semimetric function by integration of its square root along a path through the manifold. If one imposes the positive-definiteness requirement of an inner product on the metric tensor, this restricts to the case of a Riemannian manifold, and the path integration yields a metric.

In general relativity the related concept is a metric tensor (general relativity) which expresses the structure of a pseudo-Riemannian manifold. Though the term "metric" is used, the fundamental idea is different because there are non-zero null vectors in the tangent space of these manifolds, and vectors can have negative squared norms. This generalized view of "metrics", in which zero distance does not imply identity, has crept into some mathematical writing too:[17]

## See also

* Acoustic metric
* Complete metric
* Similarity measure
* Signed distance function

## Notes

1. ↑ Čech 1969. sfn error: no target: CITEREFČech1969 (help)
2. ↑ Narici & Beckenstein 2011, pp. 47–51.
3. ↑ Narici & Beckenstein 2011, pp. 47–66.
4. ↑ 4.0 4.1 Vitányi 2011. sfn error: no target: CITEREFVitányi2011 (help)
5. ↑ Cohen & Vitányi 2012. sfn error: no target: CITEREFCohenVitányi2012 (help)
6. ↑ (Steen Seebach); (Smyth 1987)
7. ↑ (Rolewicz 1987) calls them "semimetrics". That same term is also frequently used for two other generalizations of metrics.
8. ↑ Väisälä 2005.
9. ↑ Xia 2009.
10. ↑ Xia 2008.
11. ↑ 11.0 11.1 Fraigniaud, Lebhar & Viennot 2008.
12. ↑ Buldygin & Kozachenko 2000.
13. ↑ Helemskii 2006.
14. ↑ (Arkhangel'skii Pontryagin); (Aldrovandi Pereira)
15. ↑ Deza & Laurent 1997. sfn error: no target: CITEREFDezaLaurent1997 (help)
16. ↑ (Lawvere 2002); (Vickers 2005)
17. ↑ (Parrott 1987): "This bilinear form is variously called the Lorentz metric, or Minkowski metric or metric tensor"; (Cecil 2008): "We call this scalar product the Lorentz metric"

## References

* Aldrovandi, Ruben; Pereira, José Geraldo (2017), An Introduction to Geometrical Physics (2nd ed.), Hackensack, New Jersey: World Scientific, p. 20, ISBN 978-981-3146-81-5, https://books.google.com/books?id=NWhtDQAAQBAJ&pg=PA20
* General Topology I: Basic Concepts and Constructions Dimension Theory, Encyclopaedia of Mathematical Sciences, Springer, 1990, ISBN 3-540-18178-4
* Buldygin, V. V.; Kozachenko, Yu. V. (2000), Metric Characterization of Random Variables and Random Orocesses, Translations of Mathematical Monographs, 188, Providence, Rhode Island: American Mathematical Society, p. 129, doi:10.1090/mmono/188, ISBN 0-8218-0533-9, https://books.google.com/books?id=ePDXvIhdEjoC&pg=PA129
* Point Sets, New York: Academic Press, 1969, p. 42
* Cecil, Thomas E. (2008), Lie Sphere Geometry: With Applications to Submanifolds, Universitext (2nd ed.), New York: Springer, p. 9, ISBN 978-0-387-74655-5, https://books.google.com/books?id=bT3rBwAAQBAJ&pg=PA9
* Cohen, Andrew R. (2012), "Normalized compression distance of multisets with applications", IEEE Transactions on Pattern Analysis and Machine Intelligence 37 (8): 1602–1614, doi:10.1109/TPAMI.2014.2375175, PMID 26352998
* Geometry of Cuts and Metrics, Algorithms and Combinatorics, 15, Springer-Verlag, Berlin, 1997, p. 27, doi:10.1007/978-3-642-04295-9, ISBN 3-540-61611-X, https://books.google.com/books?id=XujvCAAAQBAJ&pg=PA27
* Fraigniaud, P.; Lebhar, E.; Viennot, L. (2008), "The inframetric model for the internet", 2008 IEEE INFOCOM - The 27th Conference on Computer Communications, pp. 1085–1093, doi:10.1109/INFOCOM.2008.163, ISBN 978-1-4244-2026-1
* Helemskii, A. Ya. (2006), Lectures and Exercises on Functional Analysis, Translations of Mathematical Monographs, 233, Providence, Rhode Island: American Mathematical Society, p. 14, doi:10.1090/mmono/233, ISBN 978-0-8218-4098-6, https://books.google.com/books?id=wjzZCLzx6hUC&pg=PA14
* {{citation

William Lawvere

| issue = 1
| journal = Reprints in Theory and Applications of Categories
| mr = 1925933
| pages = 1–37
| title = Metric spaces, generalized logic, and closed categories
| url = http://tac.mta.ca/tac/reprints/articles/1/tr1.pdf
| year = 2002}}; reprinted with added commentary from Lawvere, F. William (1973), "Metric spaces, generalized logic, and closed categories", Rendiconti del Seminario Matematico e Fisico di Milano 43:  135–166 (1974), doi:10.1007/BF02924844

* Narici, Lawrence; Beckenstein, Edward (2011). Topological Vector Spaces. Pure and applied mathematics (Second ed.). Boca Raton, FL: CRC Press. ISBN 978-1584888666. OCLC 144216834.
* Parrott, Stephen (1987), Relativistic Electrodynamics and Differential Geometry, New York: Springer-Verlag, p. 4, doi:10.1007/978-1-4612-4684-8, ISBN 0-387-96435-5, https://books.google.com/books?id=NUnxBwAAQBAJ&pg=PA4
* Rolewicz, Stefan (1987), Functional Analysis and Control Theory: Linear Systems, Springer, ISBN 90-277-2186-6
* Smyth, M. (1987), "Quasi uniformities: reconciling domains with metric spaces", in Main, M.; Melton, A.; Mislove, M. et al., 3rd Conference on Mathematical Foundations of Programming Language Semantics, Lecture Notes in Computer Science, 298, Springer-Verlag, pp. 236–253, doi:10.1007/3-540-19020-1_12
* Steen, Lynn Arthur; Seebach, J. Arthur Jr. (1995), Counterexamples in Topology, Dover, ISBN 978-0-486-68735-3
* "Information distance in multiples", IEEE Transactions on Information Theory 57 (4): 2451–2456, 2011, doi:10.1109/TIT.2011.2110130
* Väisälä, Jussi (2005), "Gromov hyperbolic spaces", Expositiones Mathematicae 23 (3): 187–231, doi:10.1016/j.exmath.2005.01.010, http://www.helsinki.fi/~jvaisala/grobok.pdf
* Vickers, Steven (2005), "Localic completion of generalized metric spaces, I", Theory and Applications of Categories 14 (15): 328–356, https://www.tac.mta.ca/tac/volumes/14/15/14-15abs.html
* Xia, Qinglan (2008), "The geodesic problem in nearmetric spaces", Journal of Geometric Analysis 19 (2): 452–479
* Xia, Q. (2009), "The geodesic problem in quasimetric spaces", Journal of Geometric Analysis 19 (2): 452–479, doi:10.1007/s12220-008-9065-4

de:Metrik (Mathematik)

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Metric_(mathematics)&oldid=186483"