Jump to content

Cross-entropy

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 130.91.65.131 (talk) at 17:08, 16 October 2008 (→‎Cross-entropy minimization). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In information theory, the cross entropy between two probability distributions measures the average number of bits needed to identify an event from a set of possibilities, if a coding scheme is used based on a given probability distribution , rather than the "true" distribution .

The cross entropy for two distributions and over the same probability space is thus defined as follows:

,

where is the entropy of , and is the Kullback-Leibler divergence of from (also known as the relative entropy).

For discrete and this means

The situation for continuous distributions is analogous:

NB: The notation is sometimes used for both the cross entropy as well as the joint entropy of and .

Cross-entropy minimization

Cross-entropy minimization is frequently used in optimization and rare-event probability estimation; see the cross-entropy method.

When comparing a distribution against a fixed reference distribution , cross entropy and KL divergence are identical up to an additive constant (since is fixed): both take on their minimal values when , which is for KL divergence, and for cross entropy. In the engineering literature, the principle of minimising KL Divergence (Kullback's "Principle of Minimum Discrimination Information") is often called the Principle of Minimum Cross-Entropy (MCE), or Minxent.

However, as discussed in the article Kullback-Leibler divergence, sometimes the distribution q is the fixed prior reference distribution, and the distribution p is optimised to be as close to q as possible, subject to some constraint. In this case the two minimisations are not equivalent. This has led to some ambiguity in the literature, with some authors attempting to resolve the inconsistency by redefining cross-entropy to be DKL(p||q) , rather than H(p,q).

See also