ArticleslgStudy

science

F-divergence

F-divergence is a science 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 F-divergence rather than just read about it. In short: In probability theory, an f-divergence is a certain type of function Df(P‖Q) that measures the difference between two probability distributions P and Q. Many common divergences, such as KL-divergence, Hellinger distance, and total variation distance, are special cases of f-divergence.

F-divergence — main illustration
F-divergence — illustration

Key takeaways

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

Reference excerpt

In probability theory, an f-divergence is a certain type of function Df(P‖Q) that measures the difference between two probability distributions P and Q. Many common divergences, such as KL-divergence, Hellinger distance, and total variation distance, are special cases of f-divergence.

History These divergences were introduced by Alfréd Rényi in the same paper where he introduced the well-known Rényi entropy. He proved that these divergences decrease in Markov processes. f-divergences were studied further independently by Csiszár (1963), Morimoto (1963) and Ali & Silvey (1966) and are sometimes known as Csiszár f-divergences, Csiszár–Morimoto divergences, or Ali–Silvey distances.

Definition

Non-singular case Let P and Q be two probability distributions over a space Ω, such that P≪Q, that is, P is absolutely continuous with respect to Q (meaning Q>0 wherever P>0). Then, for a convex function f:[0,+∞)→(−∞,+∞] such that f(x) is finite for all x>0, f(1)=0, and f(0)=limt→0+f(t) (which could be infinite), the f-divergence of P from Q is defined as

Df(P∥Q)≡∫Ωf(dPdQ)dQ. We call f the generator of Df. In concrete applications, there is usually a reference distribution μ on Ω (for example, when Ω=ℝn, the reference distribution is the Lebesgue measure), such that P,Q≪μ, then we can use Radon–Nikodym theorem to take their probability densities p and q, giving

Df(P∥Q)=∫Ωf(p(x)q(x))q(x)dμ(x). When there is no such reference distribution ready at hand, we can simply define μ=P+Q, and proceed as above. This is a useful technique in more abstract proofs.

Extension to singular measures The above definition can be extended to cases where P≪Q is no longer satisfied (Definition 7.1 of ). Since f is convex, and f(1)=0 , the function f(x)x−1 must be nondecreasing, so there exists f′(∞):=limx→∞f(x)/x, taking value in (−∞,+∞]. Since for any p(x)>0, we have limq(x)→0q(x)f(p(x)q(x))=p(x)f′(∞) , we can extend f-divergence to the P≪̸Q.

Properties

Basic relations between f-divergences Linearity: D∑iaifi=∑iaiDfi given a finite sequence of nonnegative real numbers ai and generators fi. Df=Dg iff f(x)=g(x)+c(x−1) for some c∈ℝ.

Basic properties of f-divergences

In particular, the monotonicity implies that if a Markov process has a positive equilibrium probability distribution P∗ then Df(P(t)∥P∗) is a monotonic (non-increasing) function of time, where the probability distribution P(t) is a solution of the Kolmogorov forward equations (or Master equation), used to describe the time evolution of the probability distribution in the Markov process. This means that all f-divergences Df(P(t)∥P∗) are the Lyapunov functions of the Kolmogorov forward equations. The converse statement is also true: If H(P) is a Lyapunov function for all Markov chains with positive equilibrium P∗ and is of the trace-form (H(P)=∑if(Pi,Pi∗)) then H(P)=Df(P(t)∥P∗), for some convex function f. For example, Bregman divergences in general do not have such property and can increase in Markov processes.

Analytic properties The f-divergences can be expressed using Taylor series and rewritten using a weighted sum of chi-type distances (Nielsen & Nock (2013)).

Basic variational representation Let f∗ be the convex conjugate of f. Let effdom(f∗) be the effective domain of f∗, that is, effdom(f∗)={y:f∗(y)<∞}. Then we have two variational representations of Df, which we describe below. Under the above setup,

This is Theorem 7.24 in.

Example applications Using this theorem on total variation distance, with generator f(x)=12|x−1|, its convex conjugate is f∗(x∗)={x∗ on [−1/2,1/2],+∞ else., and we obtain TV(P‖Q)=sup|g|≤1/2EP[g(X)]−EQ[g(X)]. For chi-squared divergence, defined by f(x)=(x−1)2,f∗(y)=y2/4+y, we obtain χ2(P;Q)=supgEP[g(X)]−EQ[g(X)2/4+g(X)]. Since the variation term is not affine-invariant in g, even though the domain over which g varies is affine-invariant, we can use up the affine-invariance to obtain a leaner expression. Replacing g by ag+b and taking the maximum over a,b∈ℝ, we obtain χ2(P;Q)=supg(EP[g(X)]−EQ[g(X)])2VarQ[g(X)], which is just a few steps away from the Hammersley–Chapman–Robbins bound and the Cramér–Rao bound (Theorem 29.1 and its corollary in ). For α-divergence with α∈(−∞,0)∪(0,1), we have fα(x)=xα−αx−(1−α)α(α−1), with range x∈[0,∞). Its convex conjugate is fα∗(y)=1α(x(y)α−1) with range y∈(−∞,(1−α)−1), where x(y)=((α−1)y+1)1α−1. Applying this theorem yields, after substitution with h=((α−1)g+1)1α−1, Dα(P‖Q)=1α(1−α)−infh:Ω→(0,∞)(EQ[hαα]+EP[hα−11−α]), or, releasing the constraint on h, Dα(P‖Q)=1α(1−α)−infh:Ω→ℝ(EQ[|h|αα]+EP[|h|α−11−α]). Setting α=−1 yields the variational representation of χ2-divergence obtained above. The domain over which h varies is not affine-invariant in general, unlike the χ2-divergence case. The χ2-divergence is special, since in that case, we can remove the |⋅| from |h|. For general α∈(−∞,0)∪(0,1), the domain over which h varies is merely scale invariant. Similar to above, we can replace h by ah, and take minimum over a>0 to obtain Dα(P‖Q)=suph>0[1α(1−α)(1−EP[hα−1]αEQ[hα]α−1)]. Setting α=12, and performing another substitution by g=h, yields two variational representations of the squared Hellinger distance: H2(P‖Q)=12D1/2(P‖Q)=2−infh>0(EQ[h(X)]+EP[h(X)−1]), H2(P‖Q)=2suph>0(1−EP[h−1]EQ[h]). Applying this theorem to the KL-divergence, defined by f(x)=xln⁡x,f∗(y)=ey−1, yields DKL(P;Q)=supgEP[g(X)]−e−1EQ[eg(X)]. This is strictly less efficient than the Donsker–Varadhan representation DKL(P;Q)=supgEP[g(X)]−ln⁡EQ[eg(X)]. This defect is fixed by the next theorem.

Improved variational representation Assume the setup in the beginning of this section ("Variational representations").

This is Theorem 7.25 in.

Example applications Applying this theorem to KL-divergence yields the Donsker–Varadhan representation. Attempting to apply this theorem to the general α-divergence with α∈(−∞,0)∪(0,1) does not yield a closed-form solution.

Common examples of f-divergences The following table lists many of the common divergences between probability distributions and the possible generating functions to which they correspond. Notably, except for total variation distance, all others are special cases of α-divergence, or linear sums of α-divergences. For each f-divergence Df, its generating function is not uniquely defined, but only up to c⋅(t−1), where c is any real constant. That is, for any f that generates an f-divergence, we have Df(t)=Df(t)+c⋅(t−1). This freedom is not only convenient, but actually necessary.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with F-divergence

Start with the simplest possible case. Write down what F-divergence claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, 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 F-divergence 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 F-divergence 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 F-divergence

In research
F-divergence appears in science 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 F-divergence 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
F-divergence is common in secondary-school and first-year university syllabi. It links to neighbouring topics F-divergences, so understanding it makes those chapters shorter.
In everyday life
Look for F-divergence 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 “F-divergence” →

How to study F-divergence in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what F-divergence 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 F-divergence out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is F-divergence in simple terms?

In probability theory, an f-divergence is a certain type of function Df(P‖Q) that measures the difference between two probability distributions P and Q. Many common divergences, such as KL-divergence, Hellinger distance, and total variation distance, are special cases of f-divergence.

Why does F-divergence matter?

Because it connects several science 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 F-divergence?

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 F-divergence.

Tags

  • F-divergences

Keep exploring