Home / Methods / Digital / Shannon entropy
Shannon entropy
How unpredictable a choice is, how much information an answer carries, how diversified a portfolio is.
What you need
- probabilities or frequencies
What it calculates
- how many bits of uncertainty this distribution holds, bits
- the most bits possible with this many options, bits
- how close the distribution is to fully even (%), %
- the equivalent number of equally likely options
Examples
Four outcomes: ½, ¼, ⅛, ⅛
| how many bits of uncertainty this distribution holds | 1.75 bits |
| the most bits possible with this many options | 2 bits |
| how close the distribution is to fully even (%) | 87.5 % |
| the equivalent number of equally likely options | 3.3636 |
Votes for four options: 120, 45, 30 and 5
| how many bits of uncertainty this distribution holds | 1.47 bits |
| the most bits possible with this many options | 2 bits |
| how close the distribution is to fully even (%) | 73.4987 % |
| the equivalent number of equally likely options | 2.7702 |
Example numbers are checked against an independent calculation. The AI in Numo does not compute: it only parses your question; a deterministic engine does the maths.
Careful
Entropy only measures uncertainty, not importance. An even split across three trivial options scores higher than a skewed split between two things that actually matter.
Typical mistakes
- Entering probabilities that do not sum to 1 (the method normalises).
- Mixing bits and nats.