Kayavak / Information Theory / IT·01 Start Here: What Information Is / Deeper
Deeper · Information Theory
Start Here: What Information Is
The questions the chapter doesn't stop for: why this exists, the model to keep in your head, what changes when an assumption does, how sure we are of each claim, and what's still open. Read it after the chapter; back to the chapter.
Why does this exist?
Long before anyone measured information, engineers paid for it. Telegraph companies in the nineteenth century charged by the word, so merchants compressed their messages into commercial code books, where one five-letter group stood for a whole sentence. Morse code, developed by Samuel Morse and Alfred Vail from the late 1830s, gave common letters short signals. Both were practical answers to the same question: how few symbols can carry a message?
The theory arrived at Bell Telephone Laboratories. Harry Nyquist (1924) related a telegraph line's speed to the number of distinct signal levels it used, and Ralph Hartley (1928) defined the information in a message as the logarithm of the number of messages it could have been, deliberately leaving out "psychological factors". During the Second World War, Claude Shannon worked on cryptography and fire control; his classified 1945 memorandum on secrecy systems used the ideas that became "A Mathematical Theory of Communication" (1948). At almost the same time Norbert Wiener, in Cybernetics (1948), proposed a closely related measure of information for control and signal processing, and Alan Turing and I. J. Good at Bletchley Park had been scoring evidence in bans since the early 1940s. Shannon's paper won because it did more than define a measure: it proved what the measure means, as limits on compression and on communication through noise, which engineers spent the next fifty years reaching.
The mental model
Try it yourself first: write your own model in the Mental Model Explorer, then compare.
Information is the uncertainty a message removes. An outcome's surprise is bits; it depends only on how likely the outcome was among the possibilities, and it adds up across independent outcomes.
| Question | Answer |
|---|---|
| What is it? | A measure of how much a message tells a receiver who knew the possibilities but not the choice |
| Problem it solves | Comparing messages, sources and channels by one quantity, independent of meaning or format |
| Parts | A set of possible messages, their probabilities, surprise , a unit (bit, nat, ban) |
| How it works | Rarer outcomes carry more; independent outcomes' surprises add because probabilities multiply |
| Assumptions | The probabilities are known (to sender and receiver alike); meaning plays no part |
| When they change | A different model of the source gives different probabilities, so different surprise for the same message |
| Where it fails | Value and meaning: two messages with equal information can matter very differently |
| Related ideas | Logarithms (Mathematics Book 1, ch10), probability (ch03), entropy (ch04), compression (ch05–06) |
What if?
What if information were measured by the number of possibilities, not the logarithm?
Reason it through, then open
Then two independent messages, one of 8 possibilities and one of 4, would carry units together but 12 units separately: the measure would multiply when messages are combined. A file twice as long would carry not twice the information but its square. Every practical quantity (how long a line is busy, how much a disk must store) grows by addition, so the measure must turn the multiplication of possibilities into addition, and only the logarithm does. Hartley made exactly this argument in 1928.
What if sender and receiver disagreed about the probabilities?
Reason it through, then open
Surprise depends on the probability the receiver assigns. If a receiver thinks a message is rare when it's actually common, the receiver is "surprised" more than the message deserves, and a code designed for the receiver's beliefs wastes symbols on common messages. Chapter 11 measures that waste exactly: it's the Kullback–Leibler divergence between the true and the assumed probabilities, the quantity machine learning minimises when it trains a model.
What if meaning were part of the measure?
Reason it through, then open
The theory would need to know what every message means to every receiver, and the telephone company would have to understand every conversation to know how much it had carried. Attempts exist: Yehoshua Bar-Hillel and Rudolf Carnap (1952) proposed measuring the semantic information in a statement by how many possible states of the world it rules out. But such measures depend on a language and a model of the world, and none gives theorems as general as Shannon's. Leaving meaning out is what let the theory apply to every kind of message at once.
Where the boundary is
| Aspect | A binary digit | A bit of information |
|---|---|---|
| What it is | A stored or sent symbol, 0 or 1 | A unit of resolved uncertainty |
| Counted by | Looking at the file or the signal | Probabilities: |
| One file of a million zeros | 8,000,000 of them | About none |
| Can be fractional | No | Yes: a die roll is 2.585 |
| Changed by compression | Yes: that's the point | No: compression keeps the information |
| Changed by a better model of the data | No | It's measured relative to the model; the true limit is the source's entropy (ch04) |
Derive it
Why questions are needed, and enough, to pick one of possibilities.
- A yes-or-no question splits the remaining possibilities into two groups: those for which the answer is yes, and those for which it's no.
- Whatever the answer, at least one group has at least half the possibilities. In the worst case you're left with that group.
- So after questions, in the worst case at least possibilities remain. To be sure of one, you need , that is, , so : no strategy can do it in fewer.
- Halving questions ("is it in the first half?") achieve it: each leaves at most half (rounded up), so after questions one possibility remains.
- So the worst case needs exactly questions, and is the information in the answer. For a million, that's 20 (the chapter's lab checked every secret).
How sure are we?
| Claim | How it's known | Where from |
|---|---|---|
| Surprise must be if it's additive and depends only on | Theorem | The chapter's proof (Cauchy's functional equation) |
| yes-or-no questions find one of possibilities, and no fewer suffice in the worst case | Theorem | The derivation above; checked for every secret in the lab |
| English letters carry about 4.19 bits each on average if treated as independent | Measured | The lab, on Tiny Shakespeare's 851,078 letters |
| Random bytes don't compress | Measured, and a theorem | The lab (zlib, lzma); the counting proof in chapter 6 |
| The bit is the unit, rather than the nat | Convention | Shannon's choice for binary systems; the nat is just as valid |
| The word "bit" came from John Tukey | Historical | Shannon (1948), part 1 |
| Information can be separated from meaning for engineering | Model | Shannon's framing; it fails exactly where value and meaning matter |
Still open
How to measure semantic information, the information in what a message means, has no settled answer; proposals from Bar-Hillel and Carnap (1952) to Luciano Floridi's work on the philosophy of information are argued over, and none is used in engineering the way Shannon's measure is. Related debates ask whether "information" in biology (a gene "encodes" a protein) is the same thing as Shannon's, or a metaphor.
What would change your mind? The chapter says the amount of information depends only on probabilities. If two messages with the same probability reliably caused different amounts of, say, compression or channel use in every efficient system, that would show something besides probability mattered. No such case is known: the theorems of chapters 6 and 9 say the probabilities fix the limits exactly.
Recall
What does a message's information measure, in Shannon's theory?
How much uncertainty it resolves: which of the possible messages was chosen, given their probabilities.
What is the surprise of an outcome of probability p?
−log₂ p bits.
Why must surprise be a logarithm?
Independent events' probabilities multiply, and their surprises must add; only a logarithm turns products into sums.
How many yes-or-no questions always find one of N possibilities?
⌈log₂ N⌉, and no strategy needs fewer in the worst case.
What's the difference between a binary digit and a bit of information?
A binary digit is a stored 0 or 1; it carries a full bit of information only if it was equally likely to be either and unpredictable.
Who suggested the word "bit"?
John Tukey, credited in Shannon's 1948 paper.
Reflect
Be honest with yourself; this stays in your browser. Anything you can't tick yet is what to revisit.