HOME

TheInfoList



OR:

The Minkowski distance or Minkowski metric is a
metric Metric or metrical may refer to: Measuring * Metric system, an internationally adopted decimal system of measurement * An adjective indicating relation to measurement in general, or a noun describing a specific type of measurement Mathematics ...
in a
normed vector space The Ateliers et Chantiers de France (ACF, Workshops and Shipyards of France) was a major shipyard that was established in Dunkirk, France, in 1898. The shipyard boomed in the period before World War I (1914–18), but struggled in the inter-war ...
which can be considered as a generalization of both the
Euclidean distance In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
and the
Manhattan distance Taxicab geometry or Manhattan geometry is geometry where the familiar Euclidean distance is ignored, and the distance between two point (geometry), points is instead defined to be the sum of the absolute differences of their respective Cartesian ...
. It is named after the Polish mathematician
Hermann Minkowski Hermann Minkowski (22 June 1864 – 12 January 1909) was a mathematician and professor at the University of Königsberg, the University of Zürich, and the University of Göttingen, described variously as German, Polish, Lithuanian-German, o ...
.


Definition

The Minkowski distance of order p (where p is an integer) between two points X = (x_1,x_2,\ldots,x_n) \text Y = (y_1,y_2,\ldots,y_n) \in \R^n is defined as: D\left(X,Y\right) = \biggl(\sum_^n , x_i-y_i, ^p\biggr)^. For p \geq 1, the Minkowski distance is a
metric Metric or metrical may refer to: Measuring * Metric system, an internationally adopted decimal system of measurement * An adjective indicating relation to measurement in general, or a noun describing a specific type of measurement Mathematics ...
as a result of the Minkowski inequality. When p < 1, the distance between (0, 0) and (1, 1) is 2^ > 2, but the point (0, 1) is at a distance 1 from both of these points. Since this violates the
triangle inequality In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side. This statement permits the inclusion of Degeneracy (mathematics)#T ...
, for p < 1 it is not a metric. However, a metric can be obtained for these values by simply removing the exponent of 1/p. The resulting metric is also an F-norm. Minkowski distance is typically used with p being 1 or 2, which correspond to the
Manhattan distance Taxicab geometry or Manhattan geometry is geometry where the familiar Euclidean distance is ignored, and the distance between two point (geometry), points is instead defined to be the sum of the absolute differences of their respective Cartesian ...
and the
Euclidean distance In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
, respectively. In the limiting case of p reaching infinity, we obtain the
Chebyshev distance In mathematics, Chebyshev distance (or Tchebychev distance), maximum metric, or L∞ metric is a metric defined on a real coordinate space where the distance between two points is the greatest of their differences along any coordinate dimensio ...
: \lim_ = \max_^n , x_i-y_i, . Similarly, for p reaching negative infinity, we have: \lim_ = \min_^n , x_i-y_i, . The Minkowski distance can also be viewed as a multiple of the power mean of the component-wise differences between P and Q. The following figure shows unit circles (the
level set In mathematics, a level set of a real-valued function of real variables is a set where the function takes on a given constant value , that is: : L_c(f) = \left\~. When the number of independent variables is two, a level set is call ...
of the distance function where all points are at the unit distance from the center) with various values of p:


Applications

The Minkowski metric is very useful in the field of
machine learning Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of Computational statistics, statistical algorithms that can learn from data and generalise to unseen data, and thus perform Task ( ...
and AI. Many popular machine learning algorithms use specific distance metrics such as the aforementioned to compare the similarity of two data points. Depending on the nature of the data being analyzed, various metrics can be used. The Minkowski metric is most useful for numerical datasets where one wants to determine the similarity of size between multiple datapoint vectors.


See also

* * * *


References


External links


Unit Balls for Different p-Norms in 2D and 3D
at wolfram.com
Unit-Norm Vectors under Different p-Norms
at wolfram.com
Simple IEEE 754 implementation in C++

NPM JavaScript Package/Module
{{Lp spaces Distance Hermann Minkowski Metric geometry Normed spaces