Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Measuring surprise
If I tell you the Sun rose this morning, you learn almost nothing: it was certain. If I tell you which of 8 equally likely doors hides a prize, you learn a lot: exactly 3 yes/no questions’ worth. Entropy measures how much you learn, on average, when you find out the outcome. It’s high when things are unpredictable and zero when they’re certain.
It’s counted in bits, the number of yes/no questions you’d need.
Entropy sets the limit on how much telemetry can be compressed before downlink. It underlies the cross-entropy loss used to train classifiers, quantifies a robot’s uncertainty about where it is (active exploration picks actions that reduce it), and measures how informative a sensor is.
- 1. A certain outcome has entropy…
- 2. Choosing among 8 equally likely options needs how many yes/no questions?
- 3. Entropy is highest when outcomes are…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Definition
For a discrete random variable with pmf :
It’s the average surprise , in bits (use for nats, where 1 nat ≈ 1.443 bits). Convention: .
Key facts
- , with the maximum at the uniform distribution.
- Binary entropy: . It’s 1 bit at and only about 0.5 bit at .
- Example: gives bits.
- 1. H(½, ¼, ¼) =
- 2. The maximum entropy over 16 outcomes is…
- 3. The surprise of an event with probability 1/8 is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Joint and conditional entropy
- Chain rule: . For many variables, .
- Conditioning reduces entropy on average: , with equality iff . A particular observation can still increase uncertainty.
- Subadditivity: , with equality iff independent.
- iff is a function of .
Differential entropy
For densities: . It can be negative, and it changes under rescaling (). For a Gaussian, . Among all densities with variance , the Gaussian has the maximum differential entropy.
- 1. H(X, Y) = H(X) + H(Y|X) is the…
- 2. H(Y|X) = 0 means…
- 3. Differential entropy can be…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof: H(X) ≤ log₂|𝒳|
, where is uniform. Equivalently, by Jensen on the concave log: . ∎
Proof of the chain rule
. Take of both sides. ∎
Proof that conditioning reduces entropy
(A7-3, A7-4). Equality holds iff . ∎
Exercise 3.1: Differential entropy of Uniform[0, 0.5]
bit. Negative, showing that differential entropy isn’t a count of bits but a relative quantity.
- 1. log₂|𝒳| − H(X) equals…
- 2. H(Y) − H(Y|X) equals…
- 3. Among variance-σ² densities, maximum differential entropy belongs to…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.How compressible is rover telemetry?
An IMU channel quantized to 8 bits (64 levels actually in use, roughly Gaussian) has about 4.6 bits of entropy per sample. No lossless compressor can beat that average (A7-7), so the best ratio is about 1.7×. Estimating entropy from data is itself biased: the plug-in (frequency) estimator underestimates, badly with small samples, because it never sees rare symbols. The Miller–Madow correction removes most of the bias.
Entropy in AI, robotics and aerospace
- Telemetry compression is bounded by entropy. CCSDS lossless standards (Rice coding) approach it for spacecraft data (CCSDS 121.0-B).
- Active perception and exploration: choose sensing actions that minimize posterior entropy over the map or the robot pose (Stachniss, Grisetti and Burgard, 2005).
- Maximum-entropy RL (SAC) adds an entropy bonus to keep policies exploratory and robust (Haarnoja et al., 2018).
- Maximum-entropy modelling: the least-committed distribution consistent with known constraints (Jaynes, 1957).
References
- C. Shannon (1948). “A mathematical theory of communication.” Bell System Technical Journal, 27.
- T. Cover, J. Thomas (2006). Elements of Information Theory, 2nd ed. Wiley. Ch. 2, 8.
- D. MacKay (2003). Information Theory, Inference, and Learning Algorithms. Cambridge University Press.
- E. T. Jaynes (1957). “Information theory and statistical mechanics.” Physical Review, 106(4).
- G. Miller (1955). “Note on the bias of information estimates.” Information Theory in Psychology.
- L. Paninski (2003). “Estimation of entropy and mutual information.” Neural Computation, 15(6).
- C. Stachniss, G. Grisetti, W. Burgard (2005). “Information gain-based exploration using Rao-Blackwellized particle filters.” RSS.
- T. Haarnoja et al. (2018). “Soft actor-critic: off-policy maximum entropy deep reinforcement learning with a stochastic actor.” ICML.
- CCSDS (2020). “Lossless Data Compression.” Recommended Standard 121.0-B-3.
- R. Gray (2011). Entropy and Information Theory, 2nd ed. Springer.