Information Theory
How much does a message tell you? Build entropy and mutual information from scratch, compress with real source codes, and finish with KL divergence, channel capacity, and the limits of processing. You will implement Huffman and Shannon codes, Kraft's inequality, arithmetic coding, and the data-processing gap. Perfect for the mathematically curious.
Your progress
0/29 · 0%Path readiness 0%Easy 0% · Medium 0% · Hard 0%
Continue path · Self-InformationWhat you will learn
- Quantify information with entropy, cross-entropy, and perplexity
- Compute mutual information, KL, Jensen-Shannon, and Hellinger divergences
- Design source codes with Huffman, Shannon, and Kraft's inequality
- Understand channel capacity and data-processing bounds
Before you start
1Information and Entropy
Surprise and uncertainty: self-information, entropy of distributions, binary entropy, cross-entropy, total variation, perplexity, entropy in nats, and BSC capacity.
- Easy
- Easy
- Easy
- Easy
- Easy
- Easy
- Easy
- Easy
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
2Joint and Mutual Information
Relationships between variables: entropy from counts, conditional entropy, the chain rule, mutual information from joints and marginals, KL divergence, and Jensen-Shannon divergence.
- Medium
- Medium
- Medium
- Medium
- Medium
- Medium
- Medium
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
- Mutual Information from MarginalsMedium
- KL Divergence (Discrete)Medium
- Jensen-Shannon DivergenceMedium
3Source Coding
Compress messages down to their entropy: Huffman code lengths and average length, Shannon code lengths, expected code length, Kraft's inequality, Markov-source rate, LZ78 parsing, and arithmetic coding.
- Easy
- Easy
- Medium
- Medium
- Medium
- Hard
- Hard
- Hard
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
4Divergences and Fundamental Limits
Distances between distributions and the limits of processing: Gaussian KL, Hellinger distance, BSC mutual information, maximum entropy, Blahut-Arimoto capacity, and the data-processing gap.
- Medium
- Medium
- Medium
- Hard
- Hard
- Hard
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
- Maximum Entropy with Mean ConstraintHard
- Channel Capacity via Blahut-ArimotoHard
- Data Processing Inequality GapHard
Capstone
Pen and paperClose the path with one real artifact from the catalog.
Compute a Shannon entropy by hand: the move every bound in this path rests on.