Information Theory / Measuring information
Information and Surprise
Why unlikely events carry more information, and why the logarithm is the right way to measure it.
Contents 2 sections
By the end you can
- Compute the information content of an outcome in bits
- Explain why information should add for independent events
- Convert between bits and other units
§1Surprise in bits
Learning that a fair coin landed heads tells you one bit. Learning that a lottery ticket won tells you far more, because it was far less expected. Shannon defined the information in an outcome of probability as
The logarithm is forced by one natural requirement: information about independent events should add. Since independent probabilities multiply, , and logarithms are the functions that turn products into sums.
| Event | Probability | Information |
|---|---|---|
| Fair coin lands heads | bit | |
| Die shows a 6 | bits | |
| Random card is the ace of spades | bits |
Check yourself
- Q1An event has probability . Its information content is…