Kalpana Kalpana (Editor)

Hellinger distance

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In probability and statistics, the Hellinger distance (closely related to, although different from, the Bhattacharyya distance) is used to quantify the similarity between two probability distributions. It is a type of f-divergence. The Hellinger distance is defined in terms of the Hellinger integral, which was introduced by Ernst Hellinger in 1909.

Contents

Measure theory

To define the Hellinger distance in terms of measure theory, let P and Q denote two probability measures that are absolutely continuous with respect to a third probability measure λ. The square of the Hellinger distance between P and Q is defined as the quantity

H 2 ( P , Q ) = 1 2 ( d P d λ d Q d λ ) 2 d λ .

Here, dP /  and dQ / dλ are the Radon–Nikodym derivatives of P and Q respectively. This definition does not depend on λ, so the Hellinger distance between P and Q does not change if λ is replaced with a different probability measure with respect to which both P and Q are absolutely continuous. For compactness, the above formula is often written as

H 2 ( P , Q ) = 1 2 ( d P d Q ) 2 .

Probability theory using Lebesgue measure

To define the Hellinger distance in terms of elementary probability theory, we take λ to be Lebesgue measure, so that dP /  and dQ / dλ are simply probability density functions. If we denote the densities as f and g, respectively, the squared Hellinger distance can be expressed as a standard calculus integral

H 2 ( P , Q ) = 1 2 ( f ( x ) g ( x ) ) 2 d x = 1 f ( x ) g ( x ) d x ,

where the second form can be obtained by expanding the square and using the fact that the integral of a probability density over its domain equals 1.

The Hellinger distance H(PQ) satisfies the property (derivable from the Cauchy–Schwarz inequality)

0 H ( P , Q ) 1.

Discrete distributions

For two discrete probability distributions P = ( p 1 , , p k ) and Q = ( q 1 , , q k ) , their Hellinger distance is defined as

H ( P , Q ) = 1 2 i = 1 k ( p i q i ) 2 ,

which is directly related to the Euclidean norm of the difference of the square root vectors, i.e.

H ( P , Q ) = 1 2 P Q 2 .

Also, 1 H 2 ( P , Q ) = i = 1 k ( p i q i ) .

Connection with the statistical distance

The Hellinger distance H ( P , Q ) and the total variation distance (or statistical distance) δ ( P , Q ) are related as follows:

H 2 ( P , Q ) δ ( P , Q ) 2 H ( P , Q ) .

These inequalities follow immediately from the inequalities between the 1-norm and the 2-norm.

Properties

The Hellinger distance forms a bounded metric on the space of probability distributions over a given probability space.

The maximum distance 1 is achieved when P assigns probability zero to every set to which Q assigns a positive probability, and vice versa.

Sometimes the factor 1 / 2 in front of the integral is omitted, in which case the Hellinger distance ranges from zero to the square root of two.

The Hellinger distance is related to the Bhattacharyya coefficient B C ( P , Q ) as it can be defined as

H ( P , Q ) = 1 B C ( P , Q ) .

Hellinger distances are used in the theory of sequential and asymptotic statistics.

Examples

The squared Hellinger distance between two normal distributions P N ( μ 1 , σ 1 2 ) and Q N ( μ 2 , σ 2 2 ) is:

H 2 ( P , Q ) = 1 2 σ 1 σ 2 σ 1 2 + σ 2 2 e 1 4 ( μ 1 μ 2 ) 2 σ 1 2 + σ 2 2 .

The squared Hellinger distance between two multivariate normal distributions P N ( μ 1 , 1 ) and Q N ( μ 2 , 2 ) is:

H 2 ( P , Q ) = 1 det ( 1 ) 1 / 4 det ( 2 ) 1 / 4 det ( 1 + 2 2 ) 1 / 2 exp { 1 8 ( μ 1 μ 2 ) T ( 1 + 2 2 ) 1 ( μ 1 μ 2 ) }

The squared Hellinger distance between two exponential distributions P E x p ( α ) and Q E x p ( β ) is:

H 2 ( P , Q ) = 1 2 α β α + β .

The squared Hellinger distance between two Weibull distributions P W ( k , α ) and Q W ( k , β ) (where k is a common shape parameter and α , β are the scale parameters respectively):

H 2 ( P , Q ) = 1 2 ( α β ) k / 2 α k + β k .

The squared Hellinger distance between two Poisson distributions with rate parameters α and β , so that P P o i s s o n ( α ) and Q P o i s s o n ( β ) , is:

H 2 ( P , Q ) = 1 e 1 2 ( α β ) 2 .

The squared Hellinger distance between two Beta distributions P Beta ( a 1 , b 1 ) and Q Beta ( a 2 , b 2 ) is:

H 2 ( P , Q ) = 1 B ( a 1 + a 2 2 , b 1 + b 2 2 ) B ( a 1 , b 1 ) B ( a 2 , b 2 )

where B is the Beta function.

References

Hellinger distance Wikipedia


Similar Topics