Open Agent School · Public worked example
Entropy: meaning and example
Welcome! Take one idea with you today.
Shannon entropy measures the average surprise of outcomes drawn from a stated probability distribution. For a finite set of categories, it is largest when the categories are equally likely and zero when one outcome is certain.
Picture it: Assume exactly two mutually exclusive, exhaustive routes with probabilities [0.5, 0.5]. Their Shannon entropy is 1 bit. If the probabilities become [1, 0], entropy is 0 bits. The declared distribution must sum to 1.
What is easy to mix up?
Low entropy means the model distribution is concentrated. It can be confidently wrong, so correctness and calibration require external outcomes.
Teaching example by Open Agent School. Source: Dive into Deep Learning: Information Theory.