Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Information Theory / Measuring information

Information and Surprise

Why unlikely events carry more information, and why the logarithm is the right way to measure it.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1Surprise in bits
  2. ?Check yourself

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 pp as

I(p)=−log⁡2p=log⁡21pI(p) = -\log_2 p = \log_2 \frac{1}{p}

The logarithm is forced by one natural requirement: information about independent events should add. Since independent probabilities multiply, I(pq)=I(p)+I(q)I(pq) = I(p) + I(q), and logarithms are the functions that turn products into sums.

EventProbabilityInformation
Fair coin lands heads1/21/211 bit
Die shows a 61/61/62.582.58 bits
Random card is the ace of spades1/521/525.705.70 bits

Check yourself

  1. Q1
    An event has probability 1/81/8. Its information content is…