ArticleslgStudy

mathematics

Hellinger distance

Hellinger distance is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hellinger distance rather than just read about it. In short: 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.

Key takeaways

  • Hellinger distance belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hellinger distance to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hellinger distance from memory before moving on to harder problems.

Reference excerpt

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. It is sometimes called the Jeffreys distance.

Definition

Measure theory To define the Hellinger distance in terms of measure theory, let P and Q denote two probability measures on a measure space 𝒳 that are absolutely continuous with respect to an auxiliary measure λ. Such a measure always exists, e.g λ=(P+Q). The square of the Hellinger distance between P and Q is defined as the quantity

H2(P,Q)=12∫𝒳(p(x)−q(x))2λ(dx). Here, P(dx)=p(x)λ(dx) and Q(dx)=q(x)λ(dx), i.e. p and q are the Radon–Nikodym derivatives of P and Q respectively with respect to λ. This definition does not depend on λ, i.e. 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

H2(P,Q)=12∫𝒳(P(dx)−Q(dx))2.

Probability theory using Lebesgue measure To define the Hellinger distance in terms of elementary probability theory, we take λ to be the Lebesgue measure, so that dP / dλ 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

H2(f,g)=12∫(f(x)−g(x))2dx=1−∫f(x)g(x)dx, 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(P, Q) satisfies the property (derivable from the Cauchy–Schwarz inequality)

0≤H(P,Q)≤1.

Discrete distributions For two discrete probability distributions P=(p1,…,pk) and Q=(q1,…,qk), their Hellinger distance is defined as

H(P,Q)=12∑i=1k(pi−qi)2, which is directly related to the Euclidean norm of the difference of the square root vectors, i.e.

H(P,Q)=12‖P−Q‖2. Also, 1−H2(P,Q)=∑i=1kpiqi.

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 BC(P,Q) as it can be defined as

H(P,Q)=1−BC(P,Q). Hellinger distances are used in the theory of sequential and asymptotic statistics. The squared Hellinger distance between two normal distributions P∼𝒩(μ1,σ12) and Q∼𝒩(μ2,σ22) is:

H2(P,Q)=1−2σ1σ2σ12+σ22e−14(μ1−μ2)2σ12+σ22. The squared Hellinger distance between two multivariate normal distributions P∼𝒩(μ1,Σ1) and Q∼𝒩(μ2,Σ2) is

H2(P,Q)=1−det⁡(Σ1)1/4det⁡(Σ2)1/4det⁡(Σ1+Σ22)1/2exp⁡{−18(μ1−μ2)T(Σ1+Σ22)−1(μ1−μ2)} The squared Hellinger distance between two exponential distributions P∼Exp(α) and Q∼Exp(β) is:

H2(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):

H2(P,Q)=1−2(αβ)k/2αk+βk. The squared Hellinger distance between two Poisson distributions with rate parameters α and β, so that P∼Poisson(α) and Q∼Poisson(β), is:

H2(P,Q)=1−e−12(α−β)2. The squared Hellinger distance between two beta distributions P∼Beta(a1,b1) and Q∼Beta(a2,b2) is:

H2(P,Q)=1−B(a1+a22,b1+b22)B(a1,b1)B(a2,b2) where B is the beta function. The squared Hellinger distance between two gamma distributions P∼Gamma(a1,b1) and Q∼Gamma(a2,b2) is:

H2(P,Q)=1−Γ(a1+a22)(b1+b22)−(a1+a2)/2b1a1b2a2Γ(a1)Γ(a2) where Γ is the gamma function.

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

H2(P,Q)≤δ(P,Q)≤2H(P,Q). The constants in this inequality may change depending on which renormalization you choose (1/2 or 1/2). These inequalities follow immediately from the inequalities between the 1-norm and the 2-norm.

See also Statistical distance Kullback–Leibler divergence Bhattacharyya distance Total variation distance Fisher information metric

Notes

References Yang, Grace Lo; Le Cam, Lucien M. (2000). Asymptotics in Statistics: Some Basic Concepts. Berlin: Springer. ISBN 0-387-95036-2. Vaart, A. W. van der (19 June 2000). Asymptotic Statistics (Cambridge Series in Statistical and Probabilistic Mathematics). Cambridge, UK: Cambridge University Press. ISBN 0-521-78450-6. Pollard, David E. (2002). A user's guide to measure theoretic probability. Cambridge, UK: Cambridge University Press. ISBN 0-521-00289-3.

Worked examples

Example 1 — a first encounter with Hellinger distance

Start with the simplest possible case. Write down what Hellinger distance claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hellinger distance before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hellinger distance ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hellinger distance

In research
Hellinger distance appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hellinger distance in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hellinger distance is common in secondary-school and first-year university syllabi. It links to neighbouring topics F-divergences, Statistical distance, Theory of probability distributions, so understanding it makes those chapters shorter.
In everyday life
Look for Hellinger distance outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hellinger distance” →

How to study Hellinger distance in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hellinger distance means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hellinger distance out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hellinger distance in simple terms?

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.

Why does Hellinger distance matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hellinger distance?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hellinger distance.

Tags

  • F-divergences
  • Statistical distance
  • Theory of probability distributions

Keep exploring