Type at least 2 letters. Enter opens the first result, Esc closes.

    Videos and books

    The free courses, lecture series, books and short reads that pair best with this track, with a note on what each one is good for.

    Every resource on this page is free to watch or read, from the author's or the publisher's own page. Where a classic book is not free, we say so. Each lesson of the track also ends with a Watch and read section that names the exact lecture, chapter or paper.

    How to use it. Watch for the picture, read for the proofs, and write code to check both. A good default: one short video before a lesson, then the lesson and its notebook, then one book section from the table at the end of this page. All books below use the same quantities as this track. Most use log⁡2\log_2 (bits) by default, while ML papers and libraries use the natural log (nats).

    Video courses #

    For the picture #

    Entropy from the question game and from coding, the same path as lessons 01 and 05.
    Open on YouTube · the player loads from youtube-nocookie.com when you press play
    • 3Blue1Brown, Compression is Intelligence. Part 1 (above) builds entropy; Part 2, "But what is cross-entropy?" (34 min), explains cross-entropy as the cost of coding with the wrong model, and why it is the loss of language models. Watch Part 1 before lesson 01 and Part 2 before lesson 04.
    • Artem Kirsanov, "The Key Equation Behind Probability" (26 min). Surprise, entropy, cross-entropy and KL divergence in one animated story. A good review after lesson 04.

    University courses #

    Noisy channels, repetition codes and the binary symmetric channel: why information theory exists.
    Open on YouTube · the player loads from youtube-nocookie.com when you press play
    • David MacKay, Information Theory, Pattern Recognition and Neural Networks (Cambridge, 2012; YouTube playlist, course page). Sixteen lectures that follow his book (below). Lectures 2–5 cover entropy and data compression (lessons 01 and 05), lectures 6–8 cover joint entropy, mutual information and channel capacity (lessons 02 and 07). The best single course for the first half of the track.
    • Raymond W. Yeung, Information Theory (CUHK; YouTube playlist). A careful, proof-based course in short sections: entropy and the information inequalities, data compression, channel capacity, differential entropy and the maximum-entropy distributions. Pairs with lessons 01–07 when you want every proof.
    • MIT 6.441, Information Theory (Polyanskiy, 2016; course). Graduate lecture notes, no videos. They grew into the Polyanskiy–Wu book below.
    Why compression works, prefix codes and the entropy bound, with practical examples.
    Open on YouTube · the player loads from youtube-nocookie.com when you press play
    • Stanford EE274, Data Compression: Theory and Applications (2023; YouTube playlist, course site, notes). Prefix codes, Huffman, arithmetic coding, ANS, context models, LZ77, rate–distortion, quantization and transform coding. Pairs with lessons 05 and 10.

    For machine learning #

    The map of generative models; KL, maximum likelihood and the ELBO come back in every later lecture.
    Open on YouTube · the player loads from youtube-nocookie.com when you press play
    • Stanford CS236, Deep Generative Models (Ermon, 2023; YouTube playlist, course site). Maximum likelihood as KL minimization, latent-variable models, the ELBO and VAEs, flows, GANs as divergence minimization, and diffusion models. Pairs with lessons 04, 06, 08 and 09.

    Free books #

    Main textbooks #

    • David MacKay, Information Theory, Inference, and Learning Algorithms (2003; free PDF, book page). The closest book to this track: information content and entropy (ch. 2, 4), symbol codes and arithmetic coding (ch. 5, 6), mutual information and channels (ch. 8–10), and variational methods (ch. 33). Many exercises have full solutions. Read it alongside lessons 01–07.
    • Kevin Murphy, Probabilistic Machine Learning: An Introduction (2022; free PDF). Chapter 6 is a compact information theory chapter for ML: entropy, cross-entropy, perplexity, KL divergence, mutual information and the data processing inequality. Good for lessons 01–07.
    • Kevin Murphy, Probabilistic Machine Learning: Advanced Topics (2023; free PDF). §2.7 (f-divergences), §5.3.6 (variational bounds on mutual information), §5.4 (rate–distortion), §5.6 (the information bottleneck), chapter 10 (variational inference) and chapter 21 (VAEs). Good for lessons 08–10.
    • Yury Polyanskiy and Yihong Wu, Information Theory: From Coding to Learning (free draft). A rigorous modern book: divergences and their variational forms, mutual information, lossless and lossy compression, and statistics. Read it when you want the general proofs behind lessons 03, 06–08 and 10.
    • Christopher Bishop, Pattern Recognition and Machine Learning (2006; free PDF). §1.6 (information theory, differential entropy, maximum entropy) and chapter 10 (variational inference, the two KL directions). The newer Deep Learning: Foundations and Concepts by Bishop and Bishop (free online) covers the same ideas and VAEs in a deep-learning setting.
    • Cover and Thomas, Elements of Information Theory (2nd edition, 2006). The standard textbook of the field. It is not free; MacKay and Polyanskiy–Wu cover the same material.

    Short reads #

    Which lesson pairs with what #

    The first choice for each lesson. The Watch and read section at the end of each lesson gives more, with exact section numbers.

    Lesson Watch Read
    01 Surprise, bits and entropy 3Blue1Brown, Compression is Intelligence Part 1; MacKay lecture 2 MacKay §2.4, §4.1; Murphy PML1 §6.1.1
    02 Joint and conditional entropy MacKay lecture 6; Oxford Mathematics, Information Theory lecture 1 MacKay §8.1; Murphy PML1 §6.1.3–6.1.4
    03 Jensen and KL divergence Mutual Information, "Jensen's Inequality"; Géron, entropy and KL MacKay §2.6–2.7; Murphy PML1 §6.2; Olah, "Visual Information Theory"
    04 Cross-entropy as a loss 3Blue1Brown, Compression is Intelligence Part 2; StatQuest, Neural Networks Parts 6–7 Murphy PML1 §6.1.2, §6.1.5, §6.2.5
    05 Compression is prediction Reducible, Huffman codes; MacKay lectures 4–5; EE274 MacKay ch. 5–6; EE274 notes; Delétang et al.
    06 Differential entropy and KL fits Yeung, chapter 10; Jia-Bin Huang, KL divergence Murphy PML1 §6.1.6, §6.2.3, §6.2.6; Bishop PRML §1.6, §10.1.2
    07 Mutual information StatQuest, mutual information; MacKay lecture 7 MacKay §8.1, §8.3, ch. 9; Murphy PML1 §6.3
    08 InfoNCE and contrastive learning f-GAN talk; Yannic Kilcher on CLIP Poole et al.; Murphy PML2 §2.7.1, §5.3.6; Weng, contrastive learning
    09 The ELBO and VAEs CS236 VAE lectures; Arxiv Insights, VAEs Kingma–Welling intro §2; Burda et al. (IWAE); Murphy PML2 ch. 10, 21
    10 Rate–distortion and β-VAE EE274 lossy compression lectures; Falkovich lecture 9 EE274 notes on rate–distortion; Murphy PML2 §5.4.2, §5.6; Alemi et al., "Fixing a Broken ELBO"