Shannon Entropy
Shannon entropy measures the average uncertainty in a random outcome and sets a fundamental limit on lossless data compression.
Claude Shannon introduced this measure in his 1948 paper establishing information theory. For discrete outcomes with probabilities pᵢ, entropy is H = −Σ pᵢ log₂(pᵢ), measured in bits, with zero-probability terms counted as zero. A fair coin toss has one bit of entropy, while a completely predictable outcome has zero. For independent symbols drawn from the same distribution, entropy gives the asymptotic minimum average number of bits per symbol required for lossless encoding.
Where this leads
Probability Theory →
Shannon entropy is calculated from a probability distribution over possible outcomes.
Randomness →
Shannon entropy quantifies uncertainty, reaching its maximum for a fixed number of outcomes when they are equally likely.
Statistics →
Statistical decision trees can use reductions in Shannon entropy, called information gain, to select splits for classification.