What is Information entropy?
The average amount of information per symbol emitted by a source. With pᵢ the probability of each symbol, it is H = −Σ pᵢ log₂ pᵢ (bits), and it expresses how hard it is to predict what comes next. It reaches its maximum log₂ n when all n kinds of symbols are equally likely, and is 0 when one symbol always occurs. It gives the lower bound on the average number of bits needed per symbol in lossless coding. Shannon introduced it in 1948, and it was named after thermodynamic entropy because the formulas look alike. Also called Shannon entropy.
Japanese name: 情報エントロピー
Information entropy appears in 11 practice questions across 2 topics, including Information Theory and Coding Basics, Machine Learning Basics.
Field: Information Theory and Coding Basics
Related quantities
For two random variables we consider the joint entropy H(X, Y), the conditional entropy H(X|Y), which expresses the uncertainty about X that remains once Y is known, and their difference, the mutual information I(X;Y) = H(X) − H(X|Y). The cross-entropy used in machine learning measures the difference between the true distribution and the predicted one, and it becomes smaller the better the prediction.
FAQ
Is a source with higher entropy a better source?
It is not a matter of better or worse but of how unpredictable the source is. Data with high entropy are hard to compress, and for things that must not be predicted, such as cryptographic keys and random numbers, high entropy is required. Conversely, highly redundant data such as text shrink well when compressed.
Is it the same as entropy in physics?
The formulas look very much alike, and it is closely related to entropy in statistical mechanics, but entropy in physics is tied to heat and temperature and has different units. Information theory treats entropy as a quantity determined by the probability distribution alone.