Extended Science

Entropy

Definition

A source's average uncertainty, H equaling negative sum of p times log p. It also floors the fewest average bits lossless description needs.

Core rule: Use it to compute compression limits, set the required channel rate, and quantify the "disorder" of any probability distribution; in machine learning, cross-entropy and KL divergence are built on it.

Open Claude Shannon's paper and you'll see lines that start out as a jumble of letters. Farther down, the letters start bunching up the way they do in English. Then whole words appear, but when you read a line through, it scarcely makes sense.

Why put a page of almost readable nonsense into a paper about saving space in communication?

Information entropy measures how uncertain you are, on average, about what a source will produce. Let's follow Shannon as he gives his made up text more structure, and see why being able to predict even part of a message makes it easier to compress.

How it works

In nineteen forty-eight, Shannon wanted to know how much room a sender could save by using patterns in the text. To see what those patterns looked like, he made several versions of something like English. In the simplest one, every letter and space had the same chance of appearing, independently.

Next he let the letters turn up at their usual English frequencies, still picking each one on its own. Then he took account of letters that appear together. Once he'd done that, seeing the letters already chosen gave you a better guess at the next one.

  1. 01 · Surprise of each event First compute the information content of each outcome: −log(p).
  2. 02 · Weighted average by probability Multiply each surprise by its probability, then add them up.
  3. +2 more mechanism steps & animation in the app

When it fails & limits

Before you put the number to work, write down what you're counting and what you know when you make a prediction.

✦ Unlock full lesson in ConceptFlow

Unlock the full Entropy lesson in ConceptFlow

You’ve read the core idea and opening case. Get the ConceptFlow app to continue through the full breakdown, failure modes, 5-minute audio lesson, and decision practice.

  • ▸5-minute English & Mandarin audio lesson
  • ▸5 more deep-dive case & mechanism insights
  • ▸All 5 failure boundaries & counter-examples
  • ▸4-point decision checklist + 6-step practice

Tap a store button on mobile, or scan with your phone camera on desktop.