Skip to Content
BayesiaLabKey ConceptsHellinger Distance

Hellinger Distance

The Hellinger distance measures the similarity or dissimilarity between two probability distributions. It is often used in statistics and information theory to compare how two probability distributions differ or overlap.

The Hellinger distance is often used in various applications, such as statistical hypothesis testing, image processing, machine learning, and ecology, where comparing and quantifying the similarity or difference between probability distributions is important.

For discrete probability distributions PP and QQ defined over the same probability space, the Hellinger distance is defined as:

H(P,Q)=12∑i=1n(pi−qi)2H(P,Q) = \frac{1}{\sqrt{2}}\sqrt{\sum_{i=1}^{n}\left(\sqrt{p_i} - \sqrt{q_i}\right)^2}

Here, pip_i and qiq_i are the probabilities of outcome ii in the two distributions, and nn is the number of possible outcomes.

Loading SVG...

Each row is one outcome for two binary variables. Q gives each outcome 25% probability. Applying the Hellinger formula to all four pairs gives 0.185 on the scale from 0 (identical distributions) to 1 (disjoint support).

The Hellinger distance has several useful properties:

It is a metric:
It satisfies the properties of a metric, which means it is non-negative, symmetric, and obeys the triangle inequality. In other words, it measures the distance between two distributions in a mathematically consistent way.
It is bounded:
The Hellinger distance ranges from 0 to 1. It is 0 for identical distributions and 1 when the distributions have disjoint support, so no outcome has positive probability in both.
Interpretability:
The Hellinger distance has a meaningful interpretation in terms of probability distributions. It quantifies how much the square root of the probability density functions of the two distributions differ.
Square-root transformation:
The square root transformation in the formula gives more weight to the differences in the tails of the distributions compared to other distance metrics like the Kullback-Leibler (KL) divergence or the Bhattacharyya distance.