Information Theory ExercisesInformation Theory · Exercises
0 / 0

Workbench / Information Theory Exercises

Information Theory · Exercises

Information Theory Exercises

Exercises that prove you understand each chapter of Information Theory: questions you answer in your own words, calculations and short programs you run and check on real data, projects that combine every chapter so far, what the chapter leaves out, and senior exercises that put the ideas to work in real systems. Every hint and solution stays closed until you've written your own answer, and every program's output is real.

11 chapters◷ ~52 min to read ✓ 220 topics

How to read this book

Work one chapter's exercises after reading the chapter. Write your answer in the box first: the hints open one at a time once you've written enough, and the solution a couple of minutes after the last hint. Run every program yourself and compare your output with the one shown.

How to use this book

  1. Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking.
  2. Do the worked examples and practicals yourself before opening their solutions.
  3. Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.

Contents

  1. B1·01Start Here: What Information IsExercises for chapter 1: information against meaning, why surprise must be a logarithm, rare and common outcomes, binary digits against bits of…5 min
  2. B1·02Counting Possibilities: Bits, Logarithms and QuestionsExercises for chapter 2: the multiplication principle, orders and choices in your own words, why logarithms make bits add, fixed-length codes and…5 min
  3. B1·03The Probability You NeedExercises for chapter 3: the rules in your own words, independence against disjointness, conditional probability and its reversal, why expectations…5 min
  4. B1·04Entropy: the Average Surprise of a SourceExercises for chapter 4: entropy as an average in your own words, why uniform is the maximum, independence and grouping, entropy against counting…5 min
  5. B1·05Codes: Prefix Codes, Kraft's Inequality and Huffman CodingExercises for chapter 5: unique decodability, prefix codes as trees, Kraft's inequality, the entropy bound, why Huffman works and where it doesn't…5 min
  6. B1·06The Source Coding Theorem: Why Entropy Is the LimitExercises for chapter 6: typical sequences, both halves of the theorem, the counting argument, arithmetic coding's intervals, models and coders, and…4 min
  7. B1·07Joint and Conditional Entropy, Mutual InformationExercises for chapter 7: the chain rule, conditioning on average and in a single case, mutual information's symmetry, the data processing inequality…5 min
  8. B1·08Channels and NoiseExercises for chapter 8: channels as probabilities, why a flip costs more than an erasure, the binomial count of errors, the price of repetition…5 min
  9. B1·09Channel Capacity and the Noisy-Channel Coding TheoremExercises for chapter 9: capacity as a maximum, the theorem's surprise, the counting argument, random codes, the converse and separation, in your own…5 min
  10. B1·10Information Everywhere: Language, DNA, Randomness and PasswordsExercises for chapter 10: models as upper bounds, blending contexts, bytes against information, why DNA looks random, min-entropy against Shannon…4 min
  11. B1·11Information in Machine Learning: Cross-Entropy and KL DivergenceExercises for chapter 11: cross-entropy as entropy plus divergence, why divergence isn't a distance, why classifiers minimise log loss, what…4 min