Łukaszyk–Karmowski metric

From HandWiki

In mathematics, the Łukaszyk–Karmowski metric is a function defining a distance between two random variables or two random vectors.[1][2] This function is not a metric as it does not satisfy the identity of indiscernibles condition of the metric, that is for two identical arguments its value is greater than zero. The concept is named after Szymon Łukaszyk and Wojciech Karmowski.

Continuous random variables

The Łukaszyk–Karmowski metric D between two continuous independent random variables X and Y is defined as:

D(X,Y)=|xy|f(x)g(y)dxdy

where f(x) and g(y) are the probability density functions of X and Y respectively.

One may easily show that such metrics above do not satisfy the identity of indiscernibles condition required to be satisfied by the metric of the metric space. In fact they satisfy this condition if and only if both arguments X, Y are certain events described by Dirac delta density probability distribution functions. In such a case:

Dδδ(X,Y)=|xy|δ(xμx)δ(yμy)dxdy=|μxμy|

the Łukaszyk–Karmowski metric simply transforms into the metric between expected values μx, μy of the variables X and Y and obviously:

Dδδ(X,X)=|μxμx|=0.

For all the other real cases however:

D(X,X)>0.

The Łukaszyk–Karmowski metric satisfies the remaining non-negativity and symmetry conditions of metric directly from its definition (symmetry of modulus), as well as subadditivity/triangle inequality condition:

D(X,Z)=|xz|f(x)h(z)dxdz =|xz|f(x)h(z)dxdzg(y)dy =|(xy)+(yz)|f(x)g(y)h(z)dxdydz (|xy|+|yz|)f(x)g(y)h(z)dxdydz =|xy|f(x)g(y)h(z)dxdydz +|yz|f(x)g(y)h(z)dxdydz =|xy|f(x)g(y)dxdy +|yz|g(y)h(z)dydz =D(X,Y)+D(Y,Z)

Thus

D(X,Z)D(X,Y)+D(Y,Z).
L–K metric between two random variables X and Y having normal distributions and the same standard deviation σ=0,σ=0.2,σ=0.4,σ=0.6,σ=0.8,σ=1 (starting with the bottom curve). mxy=|μxμy| denotes a distance between means of X and Y.

In the case where X and Y are dependent on each other, having a joint probability density function f(x, y), the L–K metric has the following form:

|xy|f(x,y)dxdy.

Example: two continuous random variables with normal distributions (NN)

If both random variables X and Y have normal distributions with the same standard deviation σ, and if moreover X and Y are independent, then D(XY) is given by

DNN(X,Y)=μxy+2σπexp(μxy24σ2)μxyerfc(μxy2σ),

where

μxy=|μxμy|,

where erfc(x) is the complementary error function and where the subscripts NN indicate the type of the L–K metric.

In this case, the lowest possible value of the function DNN(X,Y) is given by

limμxy0DNN(X,Y)=DNN(X,X)=2σπ.

Example: two continuous random variables with uniform distributions (RR)

When both random variables X and Y have uniform distributions (R) of the same standard deviation σ, D(XY) is given by

DRR(X,Y)={243σ3μxy3+63σμxy236σ2,μxy<23σ,μxy,μxy23σ.

The minimal value of this kind of L–K metric is

DRR(X,X)=2σ3.

Discrete random variables

In case the random variables X and Y are characterized by discrete probability distribution the Łukaszyk–Karmowski metric D is defined as:

D(X,Y)=ij|xiyj|P(X=xi)P(Y=yj).

For example for two discrete Poisson-distributed random variables X and Y the equation above transforms into:

DPP(X,Y)=x=0ny=0n|xy|λxxλyye(λx+λy)x!y!.

Random vectors

equidistant surface for Euclidean metric d2(𝐱,𝟎)=x12+x22
equidistant surface for Euclidean L–K metric DRδ2(𝐗,𝟎)((𝐗,𝟎):Ω2)

The Łukaszyk–Karmowski metric of random variables may be easily extended into metric D(X, Y) of random vectors X, Y by substituting |xy| with any metric operator d(x,y):

D(𝐗,𝐘)=ΩΩd(𝐱,𝐲)F(𝐱)G(𝐲)dΩxdΩy.

For example substituting d(x,y) with an Euclidean metric and assuming two-dimensionality of random vectors X, Y would yield:

D(𝐗,𝐘)=ΩΩi=12|xiyi|2F(x1,x2)G(y1,y2)dx1dx2dy1dy2.

This form of L–K metric is also greater than zero for the same vectors being measured (with the exception of two vectors having Dirac delta coefficients) and satisfies non-negativity and symmetry conditions of metric. The proofs are analogous to the ones provided for the L–K metric of random variables discussed above.

In case random vectors X and Y are dependent on each other, sharing common joint probability distribution F(X, Y) the L–K metric has the form:

D(𝐗,𝐘)=ΩΩd(𝐱,𝐲)F(𝐱,𝐲)dΩxdΩy.

Random vectors – the Euclidean form

If the random vectors X and Y are not also only mutually independent but also all components of each vector are mutually independent, the Łukaszyk–Karmowski metric for random vectors is defined as:

D**(p)(𝐗,𝐘)=(iD**(Xi,Yi)p)1p

where:

D**(Xi,Yi)

is a particular form of L–K metric of random variables chosen in dependence of the distributions of particular coefficients Xi and Yi of vectors X, Y .

Such a form of L–K metric also shares the common properties of all L–K metrics.

  • It does not satisfy the identity of indiscernibles condition:
𝐗,𝐘 D**(p)(𝐗,𝐘)=0  𝐗=𝐘
since:
D**(p)(𝐗,𝐗)=0 i D**(Xi,Xi)=0
but from the properties of L–K metric for random variables it follows that:
 Xi D**(Xi,Xi)>0
  • It is non-negative and symmetric since the particular coefficients are also non-negative and symmetric:
 i D**(Xi,Yi)>0
 i D**(Xi,Yi)=D**(Yi,Xi)
  • It satisfies the triangle inequality:
 𝐗,𝐘,𝐙 D**(p)(𝐗,𝐙)D**(p)(𝐗,𝐘)+D**(p)(𝐘,𝐙)
since (cf. Minkowski inequality):
(iD**(Xi,Yi)p)1p+(iD**(Yi,Zi)p)1p (iD**(Xi,Yi)+D**(Yi,Zi)p)1p(iD**(Xi,Zi)p)1p

Physical interpretation

The Łukaszyk–Karmowski metric may be considered as a distance between quantum mechanics particles described by wavefunctions ψ, where the probability dP that given particle is present in given volume of space dV amounts:

dP=|ψ(x,y,z)|2dV.

A quantum particle in a box

L–K metric between a quantum particle in a one-dimensional box of length L and a given point ξ of the box (0ξL).

For example the wavefunction of a quantum particle (X) in a box of length L has the form:

ψm(x)=2Lsin(mπxL),

In this case the L–K metric between this particle and any point ξ(0,L) of the box amounts:

D(X,ξ)=0L|xξ||ψm(x)|2dx==ξ2Lξ+L(12sin2(mπξL)m2π2).

From the properties of the L–K metric it follows that the sum of distances between the edge of the box (ξ = 0 or ξ= L) and any given point and the L–K metric between this point and the particle X is greater than L–K metric between the edge of the box and the particle. E.g. for a quantum particle X at an energy level m = 2 and point ξ = 0.2:

d(0,0.2L)+D(0.2L,X)0.2L+0.3171L=0.517LD(0,X)=0.5L=d(0,0.5L).

Obviously the L–K metric between the particle and the edge of the box (D(0, X) or D(L, X)) amounts 0.5L and is independent on the particle's energy level.

Two quantum particles in a box

A distance between two particles bouncing in a one-dimensional box of length L having time-independent wavefunctions:

ψm(x)=2Lsin(mπxL),
ψn(y)=2Lsin(nπyL),

may be defined in terms of Łukaszyk–Karmowski metric of independent random variables as:

D(X,Y)=0L0L|xy||ψm(x)|2|ψn(y)|2dxdy={L(4π2m21512π2m2)m=n,L(2π2m2n23m23n26π2m2n2)mn

The distance between particles X and Y is minimal for m = 1 i n = 1, that is for the minimum energy levels of these particles and amounts:

min(D(X,Y))=L(4π21512π2)0.2067L.

According to properties of this function, the minimum distance is nonzero. For greater energy levels m, n it approaches to L/3.

Normal distributions of two random variables X and Y of the same variance for three locations of their means µx, µy

Suppose we have to measure the distance between point µx and point µy, which are collinear with some point 0. Suppose further that we instructed this task to two independent and large groups of surveyors equipped with tape measures, wherein each surveyor of the first group will measure distance between 0 and µx and each surveyor of the second group will measure distance between 0 and µy.

Under the following assumptions we may consider the two sets of received observations xi, yj as random variables X and Y having normal distribution of the same variance σ 2 and distributed over "factual locations" of points µx, µy.

Calculating the arithmetic mean for all pairs |xiyj| we should then obtain the value of L–K metric DNN(X, Y). Its characteristic curvilinearity arises from the symmetry of modulus and overlapping of distributions f(x), g(y) when their means approach each other.

An interesting experiment the results of which coincide with the properties of L–K metric was performed in 1967 by Robert Moyer and Thomas Landauer who measured the precise time an adult took to decide which of two Arabic digits was the largest. When the two digits were numerically distanced such as 2 and 9. subjects responded quickly and accurately. But their response time slowed by more than 100 milliseconds when they were closer such as 5 and 6, and subjects then erred as often as once in every ten trials. The distance effect was present both among highly intelligent persons, as well as those who were trained to escape it.[3]

Practical applications

A Łukaszyk–Karmowski metric may be used instead of a metric operator (commonly the Euclidean distance) in various numerical methods, and in particular in approximation algorithms such us radial basis function networks,[4] inverse distance weighting or Kohonen self-organizing maps.

This approach is physically based, allowing the real uncertainty in the location of the sample points to be considered. [5][6]

Łukaszyk–Karmowski metric is the only metric that can be used In the context of observer-dependent measurements.[7][8][9] It is zero only for two measurements having the same spatiotemporal coordinates for a given observer.

See also

References

  1. Metryka Pomiarowa, przykłady zastosowań aproksymacyjnych w mechanice doświadczalnej (Measurement metric, examples of approximation applications in experimental mechanics), PhD thesis, Szymon Łukaszyk (author), Wojciech Karmowski (supervisor), Tadeusz Kościuszko Cracow University of Technology, submitted December 31, 2001, completed March 31, 2004
  2. A new concept of probability metric and its applications in approximation of scattered data sets, Łukaszyk Szymon, Computational Mechanics Volume 33, Number 4, 299–304, Springer-Verlag 2003 doi:10.1007/s00466-003-0532-2
  3. The Number Sense: How the Mind Creates Mathematics, Stanislas Dehaene, Oxford University Press US, 1999, ISBN 0-19-513240-8, pp. 73–75
  4. Florian Hogewind, Peter Bissolli (2010) Operational maps of monthly mean temperature for WMO-Region VI (Europe and Middle East), IDŐJÁRÁS, Quarterly Journal of the Hungarian Meteorological Service, Vol. 115, No. 1-2, January–June 2011, pp. 31-49, p. 41
  5. Gang Meng, Jane Law, Mary E. Thompson (2010) "Small-scale health-related indicator acquisition using secondary data spatial interpolation", International Journal of Health Geographics, 9:50 doi:10.1186/1476-072X-9-50
  6. Gang Meng (2010)Social and Spatial Determinants of Adverse Birth Outcome Inequalities in Socially Advanced Societies, Thesis (Doctor of Philosophy in Planning), University of Waterloo, Canada,
  7. Časlav Brukner, On the Quantum Measurement Problem, Part of The Frontiers Collection book series (FRONTCOLL), 16 Nov 2016
  8. Časlav Brukner, A No-Go Theorem for Observer-Independent Facts, Entropy 2018, 20(5), 350; https://doi.org/10.3390/e20050350
  9. Massimiliano Proietti, Alexander Pickston, Francesco Graffitti, Peter Barrow, Dmytro Kundys, Cyril Branciard, Martin Ringbauer, Alessandro Fedrizzi, Experimental test of local observer independence, Science Advances 20 Sep 2019, Vol. 5, no. 9, eaaw9832, DOI: 10.1126/sciadv.aaw9832