cast off

Surprise and Entropy

24.11.2026 · AE561124
H = − Σ pi · log2 piEntropy = average surprise per message, measured in bits.Fair coin: 1 bit. Coin that gives heads 90% of the time: only 0.47 bit. A certain event: 0 bit.Fair die: log2 6 ≈ 2.58 bits.The more predictable the source, the less there is to say.
Binary entropy function, by Juanciño (labels in Portuguese) · CC BY-SA 4.0 · Wikimedia Commons
Binary entropy function, by Juanciño (labels in Portuguese) · CC BY-SA 4.0 · Wikimedia Commons
> click / swipe / arrow keys to begin_

open as its own page ↗