TOPICS
Search

Cross Entropy


The cross entropy of discrete probability distributions p and q on the same countable set X is

 H_b(p,q)=-sum_(x in X)p(x)log_bq(x),

where a term is infinite when p(x)>0 and q(x)=0. In terms of the Shannon entropy H_b(p) and relative entropy D_b(p,q),

 H_b(p,q)=H_b(p)+D_b(p,q).

It therefore equals H_b(p) exactly when p=q.


See also

Relative Entropy, Shannon Entropy

Explore with Wolfram|Alpha

References

Cover, T. M. and Thomas, J. A. Elements of Information Theory. New York: Wiley, 1991.Kullback, S. and Leibler, R. A. "On Information and Sufficiency." Ann. Math. Stat. 22, 79-86, 1951. https://doi.org/10.1214/aoms/1177729694.

Cite this as:

Weisstein, Eric W. "Cross Entropy." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CrossEntropy.html

Subject classifications