Research Library · Idea
Entropy
Entropy is a measure of the uncertainty in a random outcome. For events with probabilities p1 to pn, Shannon's 1948 paper asks for a measure H of how much choice is involved in the selection and requires three properties: H is continuous in the probabilities; if all probabilities are equal, H increases with the number of events; and if a choice is broken into two successive choices, the original H is the weighted sum of the individual values.1 His Theorem 2 states that the only H satisfying these assumptions is H = -K times the sum of p_i log p_i, with K a positive constant that amounts to the choice of a unit. Shannon adds that the theorem is in no way necessary for the theory and is given to lend plausibility to the definitions, and he notes that the expression has the form of entropy in certain formulations of statistical mechanics.1 With base-2 logarithms the unit is the bit.
A source of four letters with probabilities 1/2, 1/4, 1/8 and 1/8 has H = 7/4 bits per symbol. The maximum for four symbols is log2 4 = 2, reached when each has probability 1/4; the ratio 7/8 is the source's relative entropy, and one minus it is the redundancy.1 The same source can be coded as 0, 10, 110 and 111, which averages exactly 7/4 binary digits per symbol, so the code meets the entropy.1 That is the sense in which entropy is a limit on lossless compression.
Other measures of unpredictability answer other questions. NIST SP 800-90B says there are many possible measures of entropy and uses a very conservative one, min-entropy, defined as the minimum of -log2 p_i, which is -log2 of the largest probability and measures the effectiveness of guessing the most likely output. A variable with k values has min-entropy at most log2 k, reached by the uniform distribution.2 Massey's 1994 note shows that Shannon entropy bounds the expected number of guesses from below, E(G) at least (1/4)2^H + 1 when H is at least 2 bits, but gives no upper bound: the expected number of guesses can be arbitrarily large while the entropy is an arbitrarily small positive number.3 NIST's digital identity guidelines state that the strength of user-chosen passwords has often been characterized by entropy, that estimating entropy for such passwords is challenging, and that they therefore use a requirement based primarily on length.4
Source · A Mathematical Theory of Communication (opens in a new tab) · Bell System Technical Journal (1948)
References
- A Mathematical Theory of Communication (opens in a new tab) · Bell System Technical Journal 27 (July and October 1948), reprinted with corrections; copy hosted by the Harvard Department of Mathematics ↩ ↩ ↩ ↩
- NIST SP 800-90B, Recommendation for the Entropy Sources Used for Random Bit Generation (opens in a new tab) · National Institute of Standards and Technology · January 10, 2018 ↩
- Guessing and Entropy (opens in a new tab) · J. L. Massey, Proceedings of the IEEE International Symposium on Information Theory, 1994, p. 204; ETH Zurich archive copy ↩
- SP 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management (web edition), Appendix A, Strength of Passwords (opens in a new tab) · National Institute of Standards and Technology · Web edition dated 26 August 2025. ↩
Research articles
- The bit, the channel and the code: a reader in information theory from Shannon and Hamming to the side channel · Computer science
See what connects to it on the map of ideas →

SecSIG