Information theory

How much do you know before flipping a coin?

Image: Unknown authorUnknown author, CC BY 4.0, via Wikimedia Commons

Information theory

How much do you know before flipping a coin?

Imagine you're guessing if a coin will land heads or tails. Before flipping, your knowledge is uncertain.

Your uncertainty before flipping is like not knowing anything. The formula H(X) = -Σ P(x) log₂ P(x) measures this uncertainty.

Example

With a fair coin, the probability of heads or tails is 1/2. The uncertainty (information) is -log₂(1/2) = 1 bit.

Remember this

The formula quantifies how much uncertainty (information) you have before knowing the coin's outcome.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath