Information Theory / Measuring information
Entropy
The average surprise of a source, and the number of yes-or-no questions needed to pin down its output.
Contents 3 sections
By the end you can
- Compute Shannon entropy
- Identify the distributions with maximum and minimum entropy
- Interpret entropy as average question count
Helps to know: Information and Surprise
§1Average surprise
Entropy is zero when the outcome is certain and largest, , when all outcomes are equally likely. A biased coin that lands heads 90% of the time has entropy only bits.
§2Twenty questions
To identify a uniformly random whole number from 1 to 64, halving the range each time takes exactly yes-or-no questions. In general, the entropy is the minimum average number of well-chosen binary questions needed to determine the outcome, up to less than one extra question.
Check yourself
- Q1The entropy of a fair 8-sided die is…
- Q2Which source has the lowest entropy?