ArticleslgStudy

mathematics

Divergence (statistics)

Divergence (statistics) 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 Divergence (statistics) rather than just read about it. In short: 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.

Key takeaways

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

Reference excerpt

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 of dimension n, a divergence on M is a C2-function D:M×M→[0,∞) satisfying:

D(p,q)≥0 for all p,q∈M (non-negativity), D(p,q)=0 if and only if p=q (positivity), At every point p∈M, D(p,p+dp) is a positive-definite quadratic form for infinitesimal displacements dp from p. In applications to statistics, the manifold M is typically the space of parameters of a parametric family of probability distributions. Condition 3 means that D defines an inner product on the tangent space TpM for every p∈M. Since D is C2 on M, this defines a Riemannian metric g on M. Locally at p∈M, we may construct a local coordinate chart with coordinates x, then the divergence is D(x(p),x(p)+dx)=12dxTgp(x)dx+O(|dx|3)where gp(x) is a matrix of size n×n. It is the Riemannian metric at point p expressed in coordinates x. Dimensional analysis of condition 3 shows that divergence has the dimension of squared distance. The dual divergence D∗ is defined as

D∗(p,q)=D(q,p). When we wish to contrast D against D∗, we refer to D as primal divergence. Given any divergence D, its symmetrized version is obtained by averaging it with its dual divergence:

DS(p,q)=12(D(p,q)+D(q,p)).

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), where 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), 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 DKL 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); this is similar to, but distinct from, the notation for conditional probability, 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); this emphasizes the relative information supporting the two distributions. The notation for parameters varies as well. Uppercase P,Q interprets the parameters as probability distributions, while lowercase p,q or x,y interprets them geometrically as points in a space, and μ1,μ2 or m1,m2 interprets them as measures.

Geometrical properties

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 p ∈ S we can write p = p(θ). For a pair of points p, q ∈ S with coordinates θp and θq, denote the partial derivatives of D(p, q) as

D((∂i)p,q) =def ∂∂θpiD(p,q),D((∂i∂j)p,(∂k)q) =def ∂∂θpi∂∂θpj∂∂θqkD(p,q), etc. 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), etc. 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] ≡ gij(D), where matrix g(D) is positive semi-definite and defines a unique Riemannian metric on the manifold S. Divergence D(·, ·) also defines a unique torsion-free affine connection ∇(D) with coefficients

Γij,k(D)=−D[∂i∂j,∂k], 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(D), ∇(D), ∇(D*)). 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(Df) = c·g and the connection ∇(Df) = ∇(α), 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 ⁠x2⁠) but not an f-divergence.

f-divergences

Given a convex function f:[0,+∞)→(−∞,+∞] such that f(0)=limt→0+f(t),f(1)=0, the f-divergence generated by f is defined as

Df(p,q)=∫p(x)f(q(x)p(x))dx.

Bregman divergences

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Divergence (statistics)

Start with the simplest possible case. Write down what Divergence (statistics) 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 Divergence (statistics) 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 Divergence (statistics) 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 Divergence (statistics)

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

How to study Divergence (statistics) in 20 minutes

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

Frequently asked questions

What is Divergence (statistics) in simple terms?

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 generaliz…

Why does Divergence (statistics) 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 Divergence (statistics)?

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 Divergence (statistics).

Tags

  • F-divergences
  • Statistical distance

Keep exploring