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)=xlnx,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)]−lnEQ[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.
