Misplaced Pages

Divergence (statistics)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Statistical divergence) Function that measures dissimilarity between two probability distributions Not to be confused with Deviance (statistics), Deviation (statistics), or Discrepancy (statistics).

In information geometry, a divergence is a kind of statistical distance: a binary function which establishes the separation from one probability distribution to another on a statistical manifold.

The simplest divergence is squared Euclidean distance (SED), and divergences can be viewed as generalizations of SED. The other most important divergence is relative entropy (also called Kullback–Leibler divergence), which is central to information theory. There are numerous other specific divergences and classes of divergences, notably f-divergences and Bregman divergences (see § Examples).

Definition

Given a differentiable manifold M {\displaystyle M} of dimension n {\displaystyle n} , a divergence on M {\displaystyle M} is a C 2 {\displaystyle C^{2}} -function D : M × M [ 0 , ) {\displaystyle D:M\times M\to [0,\infty )} satisfying:

  1. D ( p , q ) 0 {\displaystyle D(p,q)\geq 0} for all p , q M {\displaystyle p,q\in M} (non-negativity),
  2. D ( p , q ) = 0 {\displaystyle D(p,q)=0} if and only if p = q {\displaystyle p=q} (positivity),
  3. At every point p M {\displaystyle p\in M} , D ( p , p + d p ) {\displaystyle D(p,p+dp)} is a positive-definite quadratic form for infinitesimal displacements d p {\displaystyle dp} from p {\displaystyle p} .

In applications to statistics, the manifold M {\displaystyle M} is typically the space of parameters of a parametric family of probability distributions.

Condition 3 means that D {\displaystyle D} defines an inner product on the tangent space T p M {\displaystyle T_{p}M} for every p M {\displaystyle p\in M} . Since D {\displaystyle D} is C 2 {\displaystyle C^{2}} on M {\displaystyle M} , this defines a Riemannian metric g {\displaystyle g} on M {\displaystyle M} .

Locally at p M {\displaystyle p\in M} , we may construct a local coordinate chart with coordinates x {\displaystyle x} , then the divergence is D ( x ( p ) , x ( p ) + d x ) = 1 2 d x T g p ( x ) d x + O ( | d x | 3 ) {\displaystyle D(x(p),x(p)+dx)=\textstyle {\frac {1}{2}}dx^{T}g_{p}(x)dx+O(|dx|^{3})} where g p ( x ) {\displaystyle g_{p}(x)} is a matrix of size n × n {\displaystyle n\times n} . It is the Riemannian metric at point p {\displaystyle p} expressed in coordinates x {\displaystyle x} .

Dimensional analysis of condition 3 shows that divergence has the dimension of squared distance.

The dual divergence D {\displaystyle D^{*}} is defined as

D ( p , q ) = D ( q , p ) . {\displaystyle D^{*}(p,q)=D(q,p).}

When we wish to contrast D {\displaystyle D} against D {\displaystyle D^{*}} , we refer to D {\displaystyle D} as primal divergence.

Given any divergence D {\displaystyle D} , its symmetrized version is obtained by averaging it with its dual divergence:

D S ( p , q ) = 1 2 ( D ( p , q ) + D ( q , p ) ) . {\displaystyle D_{S}(p,q)=\textstyle {\frac {1}{2}}{\big (}D(p,q)+D(q,p){\big )}.}

Difference from other similar concepts

Unlike metrics, divergences are not required to be symmetric, and the asymmetry is important in applications. Accordingly, one often refers asymmetrically to the divergence "of q from p" or "from p to q", rather than "between p and q". Secondly, divergences generalize squared distance, not linear distance, and thus do not satisfy the triangle inequality, but some divergences (such as the Bregman divergence) do satisfy generalizations of the Pythagorean theorem.

In general statistics and probability, "divergence" generally refers to any kind of function D ( p , q ) {\displaystyle D(p,q)} , where p , q {\displaystyle p,q} are probability distributions or other objects under consideration, such that conditions 1, 2 are satisfied. Condition 3 is required for "divergence" as used in information geometry.

As an example, the total variation distance, a commonly used statistical divergence, does not satisfy condition 3.

Notation

Notation for divergences varies significantly between fields, though there are some conventions.

Divergences are generally notated with an uppercase 'D', as in D ( x , y ) {\displaystyle D(x,y)} , to distinguish them from metric distances, which are notated with a lowercase 'd'. When multiple divergences are in use, they are commonly distinguished with subscripts, as in D KL {\displaystyle D_{\text{KL}}} for Kullback–Leibler divergence (KL divergence).

Often a different separator between parameters is used, particularly to emphasize the asymmetry. In information theory, a double bar is commonly used: D ( p q ) {\displaystyle D(p\parallel q)} ; this is similar to, but distinct from, the notation for conditional probability, P ( A | B ) {\displaystyle P(A|B)} , and emphasizes interpreting the divergence as a relative measurement, as in relative entropy; this notation is common for the KL divergence. A colon may be used instead, as D ( p : q ) {\displaystyle D(p:q)} ; this emphasizes the relative information supporting the two distributions.

The notation for parameters varies as well. Uppercase P , Q {\displaystyle P,Q} interprets the parameters as probability distributions, while lowercase p , q {\displaystyle p,q} or x , y {\displaystyle x,y} interprets them geometrically as points in a space, and μ 1 , μ 2 {\displaystyle \mu _{1},\mu _{2}} or m 1 , m 2 {\displaystyle m_{1},m_{2}} interprets them as measures.

Geometrical properties

Further information: Information geometry

Many properties of divergences can be derived if we restrict S to be a statistical manifold, meaning that it can be parametrized with a finite-dimensional coordinate system θ, so that for a distribution pS we can write p = p(θ).

For a pair of points p, qS with coordinates θp and θq, denote the partial derivatives of D(p, q) as

D ( ( i ) p , q )     = d e f     θ p i D ( p , q ) , D ( ( i j ) p , ( k ) q )     = d e f     θ p i θ p j θ q k D ( p , q ) ,     e t c . {\displaystyle {\begin{aligned}D((\partial _{i})_{p},q)\ \ &{\stackrel {\mathrm {def} }{=}}\ \ {\tfrac {\partial }{\partial \theta _{p}^{i}}}D(p,q),\\D((\partial _{i}\partial _{j})_{p},(\partial _{k})_{q})\ \ &{\stackrel {\mathrm {def} }{=}}\ \ {\tfrac {\partial }{\partial \theta _{p}^{i}}}{\tfrac {\partial }{\partial \theta _{p}^{j}}}{\tfrac {\partial }{\partial \theta _{q}^{k}}}D(p,q),\ \ \mathrm {etc.} \end{aligned}}}

Now we restrict these functions to a diagonal p = q, and denote

D [ i , ]   :   p D ( ( i ) p , p ) , D [ i , j ]   :   p D ( ( i ) p , ( j ) p ) ,     e t c . {\displaystyle {\begin{aligned}D\ &:\ p\mapsto D((\partial _{i})_{p},p),\\D\ &:\ p\mapsto D((\partial _{i})_{p},(\partial _{j})_{p}),\ \ \mathrm {etc.} \end{aligned}}}

By definition, the function D(p, q) is minimized at p = q, and therefore

D [ i , ] = D [ , i ] = 0 , D [ i j , ] = D [ , i j ] = D [ i , j ]     g i j ( D ) , {\displaystyle {\begin{aligned}&D=D=0,\\&D=D=-D\ \equiv \ g_{ij}^{(D)},\end{aligned}}}

where matrix g is positive semi-definite and defines a unique Riemannian metric on the manifold S.

Divergence D(·, ·) also defines a unique torsion-free affine connection ∇ with coefficients

Γ i j , k ( D ) = D [ i j , k ] , {\displaystyle \Gamma _{ij,k}^{(D)}=-D,}

and the dual to this connection ∇* is generated by the dual divergence D*.

Thus, a divergence D(·, ·) generates on a statistical manifold a unique dualistic structure (g, ∇, ∇). The converse is also true: every torsion-free dualistic structure on a statistical manifold is induced from some globally defined divergence function (which however need not be unique).

For example, when D is an f-divergence for some function ƒ(·), then it generates the metric g = c·g and the connection ∇ = ∇, where g is the canonical Fisher information metric, ∇ is the α-connection, c = ƒ′′(1), and α = 3 + 2ƒ′′′(1)/ƒ′′(1).

Examples

The two most important divergences are the relative entropy (Kullback–Leibler divergence, KL divergence), which is central to information theory and statistics, and the squared Euclidean distance (SED). Minimizing these two divergences is the main way that linear inverse problems are solved, via the principle of maximum entropy and least squares, notably in logistic regression and linear regression.

The two most important classes of divergences are the f-divergences and Bregman divergences; however, other types of divergence functions are also encountered in the literature. The only divergence for probabilities over a finite alphabet that is both an f-divergence and a Bregman divergence is the Kullback–Leibler divergence. The squared Euclidean divergence is a Bregman divergence (corresponding to the function ⁠ x 2 {\displaystyle x^{2}} ⁠) but not an f-divergence.

f-divergences

Main article: f-divergence

Given a convex function f : [ 0 , + ) ( , + ] {\displaystyle f:} such that f ( 0 ) = lim t 0 + f ( t ) , f ( 1 ) = 0 {\displaystyle f(0)=\lim _{t\to 0^{+}}f(t),f(1)=0} , the f-divergence generated by f {\displaystyle f} is defined as

D f ( p , q ) = p ( x ) f ( q ( x ) p ( x ) ) d x {\displaystyle D_{f}(p,q)=\int p(x)f{\bigg (}{\frac {q(x)}{p(x)}}{\bigg )}dx} .
Kullback–Leibler divergence: D K L ( p , q ) = p ( x ) ln ( p ( x ) q ( x ) ) d x {\displaystyle D_{\mathrm {KL} }(p,q)=\int p(x)\ln \left({\frac {p(x)}{q(x)}}\right)dx}
squared Hellinger distance: H 2 ( p , q ) = 2 ( p ( x ) q ( x ) ) 2 d x {\displaystyle H^{2}(p,\,q)=2\int {\Big (}{\sqrt {p(x)}}-{\sqrt {q(x)}}\,{\Big )}^{2}dx}
Jensen–Shannon divergence: D J S ( p , q ) = 1 2 p ( x ) ln ( p ( x ) ) + q ( x ) ln ( q ( x ) ) ( p ( x ) + q ( x ) ) ln ( p ( x ) + q ( x ) 2 ) d x {\displaystyle D_{JS}(p,q)={\frac {1}{2}}\int p(x)\ln \left(p(x)\right)+q(x)\ln \left(q(x)\right)-(p(x)+q(x))\ln \left({\frac {p(x)+q(x)}{2}}\right)dx}
α-divergence D ( α ) ( p , q ) = 4 1 α 2 ( 1 p ( x ) 1 α 2 q ( x ) 1 + α 2 d x ) {\displaystyle D^{(\alpha )}(p,q)={\frac {4}{1-\alpha ^{2}}}{\bigg (}1-\int p(x)^{\frac {1-\alpha }{2}}q(x)^{\frac {1+\alpha }{2}}dx{\bigg )}}
chi-squared divergence: D χ 2 ( p , q ) = ( p ( x ) q ( x ) ) 2 p ( x ) d x {\displaystyle D_{\chi ^{2}}(p,q)=\int {\frac {(p(x)-q(x))^{2}}{p(x)}}dx}
(α,β)-product divergence: D α , β ( p , q ) = 2 ( 1 α ) ( 1 β ) ( 1 ( q ( x ) p ( x ) ) 1 α 2 ) ( 1 ( q ( x ) p ( x ) ) 1 β 2 ) p ( x ) d x {\displaystyle D_{\alpha ,\beta }(p,q)={\frac {2}{(1-\alpha )(1-\beta )}}\int {\Big (}1-{\Big (}{\tfrac {q(x)}{p(x)}}{\Big )}^{\!\!{\frac {1-\alpha }{2}}}{\Big )}{\Big (}1-{\Big (}{\tfrac {q(x)}{p(x)}}{\Big )}^{\!\!{\frac {1-\beta }{2}}}{\Big )}p(x)dx}

Bregman divergences

Main article: Bregman divergence

Bregman divergences correspond to convex functions on convex sets. Given a strictly convex, continuously differentiable function F on a convex set, known as the Bregman generator, the Bregman divergence measures the convexity of: the error of the linear approximation of F from q as an approximation of the value at p:

D F ( p , q ) = F ( p ) F ( q ) F ( q ) , p q . {\displaystyle D_{F}(p,q)=F(p)-F(q)-\langle \nabla F(q),p-q\rangle .}

The dual divergence to a Bregman divergence is the divergence generated by the convex conjugate F of the Bregman generator of the original divergence. For example, for the squared Euclidean distance, the generator is ⁠ x 2 {\displaystyle x^{2}} ⁠, while for the relative entropy the generator is the negative entropy x log x {\displaystyle x\log x} ⁠.

History

The use of the term "divergence" – both what functions it refers to, and what various statistical distances are called – has varied significantly over time, but by c. 2000 had settled on the current usage within information geometry, notably in the textbook Amari & Nagaoka (2000).

The term "divergence" for a statistical distance was used informally in various contexts from c. 1910 to c. 1940. Its formal use dates at least to Bhattacharyya (1943), entitled "On a measure of divergence between two statistical populations defined by their probability distributions", which defined the Bhattacharyya distance, and Bhattacharyya (1946), entitled "On a Measure of Divergence between Two Multinomial Populations", which defined the Bhattacharyya angle. The term was popularized by its use for the Kullback–Leibler divergence in Kullback & Leibler (1951) and its use in the textbook Kullback (1959). The term "divergence" was used generally by Ali & Silvey (1966) for statistically distances. Numerous references to earlier uses of statistical distances are given in Adhikari & Joshi (1956) and Kullback (1959, pp. 6–7, §1.3 Divergence).

Kullback & Leibler (1951) actually used "divergence" to refer to the symmetrized divergence (this function had already been defined and used by Harold Jeffreys in 1948), referring to the asymmetric function as "the mean information for discrimination ... per observation", while Kullback (1959) referred to the asymmetric function as the "directed divergence". Ali & Silvey (1966) referred generally to such a function as a "coefficient of divergence", and showed that many existing functions could be expressed as f-divergences, referring to Jeffreys' function as "Jeffreys' measure of divergence" (today "Jeffreys divergence"), and Kullback–Leibler's asymmetric function (in each direction) as "Kullback's and Leibler's measures of discriminatory information" (today "Kullback–Leibler divergence").

The information geometry definition of divergence (the subject of this article) was initially referred to by alternative terms, including "quasi-distance" Amari (1982, p. 369) and "contrast function" Eguchi (1985), though "divergence" was used in Amari (1985) for the α-divergence, and has become standard for the general class.

The term "divergence" is in contrast to a distance (metric), since the symmetrized divergence does not satisfy the triangle inequality. For example, the term "Bregman distance" is still found, but "Bregman divergence" is now preferred.

Notationally, Kullback & Leibler (1951) denoted their asymmetric function as I ( 1 : 2 ) {\displaystyle I(1:2)} , while Ali & Silvey (1966) denote their functions with a lowercase 'd' as d ( P 1 , P 2 ) {\displaystyle d\left(P_{1},P_{2}\right)} .

See also

Notes

  1. Throughout, we only require differentiability class C (continuous with continuous first and second derivatives), since only second derivatives are required. In practice, commonly used statistical manifolds and divergences are infinitely differentiable ("smooth").
  2. A colon is used in Kullback & Leibler (1951, p. 80), where the KL divergence between measure μ 1 {\displaystyle \mu _{1}} and μ 2 {\displaystyle \mu _{2}} is written as I ( 1 : 2 ) {\displaystyle I(1:2)} .

References

  1. ^ Amari & Nagaoka 2000, chapter 3.2.
  2. ^ Amari 2016, p. 10, Definition 1.1.
  3. ^ Amari 2016, p. 10.
  4. Eguchi (1992)
  5. Matumoto (1993)
  6. Nielsen, F.; Nock, R. (2013). "On the Chi square and higher-order Chi distances for approximating f-divergences". IEEE Signal Processing Letters. 21: 10–13. arXiv:1309.3029. doi:10.1109/LSP.2013.2288355. S2CID 4152365.
  7. Csiszar 1991.
  8. Jiao, Jiantao; Courtade, Thomas; No, Albert; Venkat, Kartik; Weissman, Tsachy (December 2014). "Information Measures: the Curious Case of the Binary Alphabet". IEEE Transactions on Information Theory. 60 (12): 7616–7626. arXiv:1404.6810. doi:10.1109/TIT.2014.2360184. ISSN 0018-9448. S2CID 13108908.
  9. Jeffreys 1948, p. 158.
  10. Kullback & Leibler 1951, p. 80.
  11. Kullback 1959, p. 7.
  12. Ali & Silvey 1966, p. 139.
  13. Kullback 1959, p. 6.

Bibliography

Statistics
Descriptive statistics
Continuous data
Center
Dispersion
Shape
Count data
Summary tables
Dependence
Graphics
Data collection
Study design
Survey methodology
Controlled experiments
Adaptive designs
Observational studies
Statistical inference
Statistical theory
Frequentist inference
Point estimation
Interval estimation
Testing hypotheses
Parametric tests
Specific tests
Goodness of fit
Rank statistics
Bayesian inference
Correlation
Regression analysis
Linear regression
Non-standard predictors
Generalized linear model
Partition of variance
Categorical / Multivariate / Time-series / Survival analysis
Categorical
Multivariate
Time-series
General
Specific tests
Time domain
Frequency domain
Survival
Survival function
Hazard function
Test
Applications
Biostatistics
Engineering statistics
Social statistics
Spatial statistics
Categories: