Which is more surprising: a coin that's fair, or one that always lands heads?
Drag the bars from equal toward one outcome dominating. Once an outcome becomes almost certain, there's really nothing left to learn from watching the next draw — you already knew what was coming.
That "amount left to learn" is entropy, measured in bits —
- — the entropy of the distribution, in bits.
- — the probability of outcome .
- — one specific outcome, indexed by .
- Zero when certain
It's exactly zero when one outcome is certain.
- Maximal when uniform
It's largest exactly when every outcome is equally likely — uncertainty is maximized when you have the least information to favor any one outcome.
Drag toward uniform and watch entropy climb to its ceiling; drag toward certainty and watch it collapse toward zero.
With :
- Compute each term, -p log₂ p
Here the probabilities are all powers of two, so every term comes out to a whole number of bits.
- Add them up for the entropy
Reshape the distribution until H(X) reads (approximately) 1.5 bits — down from the uniform maximum of 2.
Entropy measures how much uncertainty a distribution holds, in bits — zero at certainty, maximal at uniform. This exact quantity — how much uncertainty a split removes — is what a decision tree maximizes when it picks where to split, several chapters from now.