Hellinger Distance

Decision Sciences
Introduced by
Ernst Hellinger
Year
1909
Type
Symmetric metric for probability distributions
Family
Probability distribution distance

What does it do?

Hellinger distance is a symmetric, bounded measure of difference between two probability distributions over the same set of outcomes.

It is usually traced to Ernst Hellinger's 1909 work on quadratic forms in infinitely many variables. It is closely related to the Bhattacharyya coefficient, but it is not the same quantity as the Bhattacharyya distance.

The intuition behind the method

Take each probability distribution and replace every probability with its square root. Each distribution then becomes a vector, and the squared lengths of these vectors are both 1, so they lie on the unit sphere. The Euclidean distance between the two vectors is the straight-line chord between two points on that sphere. Dividing by sqrt(2) rescales the chord to the range from 0 (identical distributions) to 1 (distributions with no overlapping probability mass). The measure is a chord, not an angle, and the square-root step keeps zero probabilities harmless.

History

Ernst Hellinger introduced the underlying quadratic-form work in 1909, as recorded in the primary citation. The measure is used across statistics and machine learning, where it is valued for its symmetry and bounded range. Lourenzutti and Krohling later brought it into multicriteria decision making, using it to compare probability-distribution ratings in TOPSIS and TODIM.

When to use it

Choose Hellinger distance when you need to compare two probability distributions defined over the same discrete outcomes, such as normalised histograms with identical bins, and you want a measure that is symmetric and bounded. It is a reasonable choice when some outcomes have zero probability, because the square-root step does not produce the undefined terms that appear in KL divergence. Do not use it for data that are not probability distributions unless you first normalise them. If you need an information-theoretic interpretation, KL divergence is the more natural choice. If the geometry of the outcome space matters, for example when mass is moved between nearby bins, the Wasserstein distance is the better tool.

Limitations and considerations

  • Because the square root magnifies differences between small probabilities, two distributions that differ mainly in low-probability outcomes can appear more distant than a linear measure would suggest.
  • The result does not have the information-theoretic meaning of KL divergence, so it is harder to relate directly to coding or likelihood-ratio arguments.
  • It is defined only for probability distributions over a common set of outcomes; it does not apply directly to raw scores or unaligned bins.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Symmetric: the distance from P to Q equals the distance from Q to P, so neither distribution is treated as the reference.
  • Bounded: values lie between 0 and 1, which makes results easy to compare across pairs of distributions.
  • No logarithms: because the formula uses square roots, zero probabilities do not require special handling or a convention for 0 log 0.

Applications

  • Comparing two normalised histograms defined over identical bins.
  • Measuring how far one estimated discrete distribution is from another in a symmetric way.
  • Clustering or grouping probability distributions when a symmetric distance is required.
  • Comparing a current feature distribution with a reference distribution, provided both are discretised over the same bins.
  • Multicriteria decision making where alternatives are rated by probability distributions: the Hellinger distance replaces ordinary differences in TOPSIS and TODIM, and because it lies between 0 and 1 no extra normalisation is needed (Lourenzutti and Krohling).

How it works

How it works

1

Check that both inputs are probability distributions over the same outcomes: every value is non-negative and the values in each distribution sum to 1.

Formula
p_i \ge 0,\; q_i \ge 0,\; \sum_i p_i = \sum_i q_i = 1
2

Take the square root of each probability in both distributions, then compute the Euclidean distance between the two resulting vectors, and divide it by sqrt(2).

Formula
S = \sum_i \left(\sqrt{p_i} - \sqrt{q_i}\right)^2
3

The result is the Hellinger distance, a metric with values between 0 and 1. It equals 0 exactly when the two distributions are identical and is strictly positive otherwise. No universal threshold says when a value is large enough to matter; interpret it relative to your application. Worked illustration: for P = (1, 0) and Q = (0, 1) the square-root vectors are orthogonal and the distance is 1, the maximum, since the distributions share no probability mass. For identical distributions it is 0.

Formula
H(P,Q) = \frac{1}{\sqrt{2}}\sqrt{S}, \qquad H^2 = 1 - \sum_i \sqrt{p_i q_i}

Common pitfalls

  • Confusing Hellinger distance with the Bhattacharyya distance or the Wasserstein distance. The Bhattacharyya coefficient, the sum of the square roots of the products of probabilities, is linked to the squared Hellinger distance by one minus that sum. The Bhattacharyya distance, the negative logarithm of that coefficient, is a different measure, so check which formula a source uses.
  • Applying the formula to raw counts or unnormalised scores. Both inputs must be non-negative and sum to 1 before the square roots are taken.
  • Comparing distributions whose bins or categories are not aligned. The formula compares probabilities outcome by outcome, so the two distributions must be defined on the same outcomes.
  • Reading the 0 to 1 range as a significance threshold. The bound follows from the normalisation, and it does not by itself indicate whether a difference is statistically meaningful.

Frequently asked questions

How does Hellinger distance compare to Kullback-Leibler divergence?

Hellinger distance is symmetric, bounded between 0 and 1, and a true metric. KL divergence is asymmetric, unbounded, and not a metric. Hellinger is suitable when you want a symmetric, bounded comparison; KL is preferred when an information-theoretic interpretation is needed.

Is Hellinger distance appropriate for discrete and continuous distributions?

Hellinger distance applies directly to discrete distributions. For continuous distributions, the sums are replaced by integrals. In practice, continuous distributions are often discretised onto bins, and the discrete formula is then applied to the binned probabilities.

Why is Hellinger distance bounded between 0 and 1?

The squared distance is H² = 1 − Σ√(p_i q_i). By the Cauchy-Schwarz inequality the sum Σ√(p_i q_i) lies between 0 and 1 for probability distributions, so H² lies between 0 and 1, and H = √(H²) does too. The factor 1/√2 in the Euclidean-distance form is what makes the maximum exactly 1.

How does Hellinger distance handle probability distributions with zeros?

Zero probabilities are handled directly, because the square root of zero is zero and the formula remains defined. Unlike KL divergence, the formula contains no logarithm of zero, so no special convention is needed.

Related methods

Sources

  1. Hellinger, E. (1909). Neue Begründung der Theorie quadratischer Formen von unendlichvielen Veränderlichen. Journal für die Reine und Angewandte Mathematik, 136, 210-271.

    Open DOI reference
  2. Bhattacharyya, A. (1946). On a measure of divergence between two multinomial populations. Sankhya, 7, 401-406.

    Open publication reference
  3. lourenzutti2014 (The Hellinger distance in Multicriteria Decision Making: An illustration to the TOPSIS and TODIM methods), p. 4