Chi-squared divergence Created 2026-09-24 Updated 2026-09-24
For probability mass functions with absolutely continuous with respect to ,
Kullback-Leibler divergence Created 2026-09-24 Updated 2026-10-14
The Kullback-Leibler divergence, also called relative entropy, compares two probability distributions in a specified order. In , observations follow and the comparison probability distribution is : the first argument supplies the averaging weights. For probability mass functions on a finite alphabet,
Here is a random variable with probability distribution . For probability density functions relative to the same measure , replace the sum by . These formulas use natural logarithms unless stated otherwise. The expected value is under , even though appears in the denominator. [ref]
Take and on two outcomes. Direct calculation gives
The second outcome contributes negatively to the first sum: assigning it more probability than does makes its individual contribution negative. Nevertheless, relative entropy nonnegativity guarantees a nonnegative total. Reversing the arguments changes both the likelihood ratio and the averaging probabilities; taking an absolute value inside the logarithm would define a different quantity.
Figure 1.
Direction changes the averaging weights; a missing outcome can make relative entropy infinite
. Details.
The units depend on the logarithm: natural logarithms give nats, whereas base-two logarithms give bits. Divide a value in nats by to obtain bits; the forward example is approximately bits. Changing the base rescales every Kullback-Leibler divergence by the same positive factor. Since the two calculated directions differ, Kullback-Leibler divergence is asymmetric and cannot be a metric. It also need not satisfy the triangle inequality. [ref]
The operational meaning is an expected penalty for using the wrong probability distribution. A prediction incurs log-loss when outcome occurs, the negative of the logarithmic scoring rule. Under , its expected value is the cross-entropy . Predicting with itself incurs information entropy , so
Thus Kullback-Leibler divergence is exactly excess expected log-loss, whenever these separate quantities are finite. [ref]
For lossless source coding, ideal codeword lengths similarly give excess expected length in bits per symbol. Actual prefix codes require integer codeword lengths; Shannon's source coding theorem explains how long blocks approach ideal per-symbol lengths. The interpretation concerns an average, not a fractional physical bit attached to every outcome. In our example, ideal coding with costs one bit per symbol, while bits; the difference is exactly the computed bits. [ref]
Zeros require explicit conventions. An outcome with contributes zero, including when ; the convention agrees with the relevant limit. If but , the Kullback-Leibler divergence is infinite: the predictor has declared impossible an outcome that can occur. On a finite alphabet, the probability support of must therefore be contained in the probability support of for a finite answer. For example, and give , but . For general probability measures, failure of absolute continuity of measures likewise gives infinity. Even does not guarantee a finite integral. [ref]
To see how confidently wrong predictions are punished, hold the true Bernoulli distribution parameter at and vary the predicted parameter . Its binary relative entropy is
It vanishes at , equals approximately nats at , and equals nats at . Both endpoints give infinity because both outcomes remain possible under . Predicting almost no successes is especially costly because successes actually occur three quarters of the time. The reversed binary relative entropy stays finite at the endpoints: its averaging probability distribution concentrates on just one outcome, and assigns positive probability to both.
Figure 2.
Bernoulli relative entropy with true success probability 0.75 and varying predicted probability
. Details.
For model selection, minimizing expected log-loss ranks candidate statistical models by , since is common to them. The true probability distribution is usually unknown, so one estimates predictive performance using fresh observations or cross-validation. Fitting and assessing on the same data can reward overfitting; a small fitted Kullback-Leibler divergence alone does not establish useful prediction.
In variational inference, a tractable trial probability distribution commonly minimizes against a target posterior distribution . Maximizing the evidence lower bound accomplishes this without evaluating the target's normalization constant. The averaging now follows : placing trial probability where the posterior distribution assigns almost none is strongly penalized. The chosen direction and trial family therefore matter. [ref]
These comparisons do not by themselves establish causal inference. Two statistical models can reproduce the same observed probability distribution while predicting different responses to an intervention. Choosing the smaller Kullback-Leibler divergence therefore needs additional assumptions or experimental evidence before supporting a causal claim. [ref]
The original reference is S. Kullback and R. A. Leibler's 1951 paper [ref], published in The Annals of Mathematical Statistics 22(1), pages 79–86. Its title connects this comparison with sufficient statistics: the historical setting was statistical information, before today's widespread applications in prediction and variational inference.
Set family Created 2026-09-24 Updated 2026-09-24
A set family is a set whose elements are themselves sets, usually subsets of a fixed finite ground set.
Frankl-Wilson theorem Created 2026-09-24 Updated 2026-09-24
Let be a prime number, let have elements, and suppose satisfies for distinct members while . The Frankl-Wilson theorem gives
Its polynomial method in combinatorics turns modular intersection restrictions into linearly independent functions represented by square-free monomials of degree .
Set family shadow Created 2026-09-24 Updated 2026-09-24
A shadow moves a uniform set family to an adjacent level of the subset lattice by deleting or adding one element.
Colexicographic order Created 2026-09-24 Updated 2026-10-03
For equal-size finite subsets and , precedes in colexicographic order when the largest element of their symmetric difference belongs to .
Lexicographic order Created 2026-09-24 Updated 2026-10-18
For equal-size subsets and of an ordered ground set, precedes in lexicographic order when the smallest element of their symmetric difference belongs to .
For finite sequences over a total order, lexicographic order compares the first differing sequence terms; the smaller term determines the smaller sequence. If one sequence is a proper prefix of the other, the shorter precedes its extension. For fixed-length tuples, this is the first-difference rule used by radix sort key encoding.
Exoplanet bulk-composition ternary diagram Created 2026-09-24 Updated 2026-09-24
A bulk-composition ternary diagram represents the mass fractions of three planetary components at a point whose barycentric coordinates sum to one.
Exoplanet habitability Created 2026-09-24 Updated 2026-09-24
Exoplanet habitability concerns whether planetary conditions could sustain liquid water and life, while recognizing that observability and habitability are distinct questions.
Exoplanet atmosphere Created 2026-09-24 Updated 2026-10-05
An exoplanet atmosphere controls the planet's spectrum, heat redistribution, chemistry, clouds, and atmospheric escape.
Finite fibres of the Euler totient function Created 2026-09-24 Updated 2026-09-24
For each positive integer , only finitely many satisfy . Indeed, every prime has , and the exponent of in is bounded because .
Euler theorem Created 2026-09-24 Updated 2026-10-06
If a is coprime to n, then a raised to the power phi(n) is congruent to one modulo n.
Multiplication by a unit permutes the reduced residue classes modulo . Multiplying all classes before and after this permutation and cancelling their unit product proves .
Euler-Lagrange equations for two fields Created 2026-09-24 Updated 2026-09-24
For
independent variations and integration by parts give
Natural boundary conditions for a free endpoint Created 2026-09-24 Updated 2026-09-24
When the values of are free at both fixed endpoint locations, integration by parts leaves the boundary term . Since the endpoint variations are arbitrary, stationarity requires
Catenary Created 2026-09-24 Updated 2026-09-24
A catenary is a curve of the form . It is the equilibrium shape of a uniform flexible chain in a uniform gravitational field.
Beltrami identity Created 2026-09-24 Updated 2026-10-06
When a variational integrand has no explicit dependence on the independent variable, every extremal satisfies
Bernoulli equation Created 2026-09-24 Updated 2026-10-14
For steady inviscid flow, pressure, kinetic energy density, and conservative potential are constant along a streamline.
For , the density
gives incompressibility and material conservation of and . Differentiating the Clebsch representation then yields the Euler momentum equation with

There are unlisted articles, also show them or only show them.