Information Theory is the mathematical study of the quantification, storage, and communication of information. Founded by Claude Shannon in his 1948 paper "A Mathematical Theory of Communication", it identifies the fundamental limits on signal processing and communication operations such as data compression and reliable data transmission.
In the modern context, Information Theory is not merely about "sending bits"; it is the rigorous backbone of statistical mechanics, quantum computing, and the internal representations of Large Language Models (LLMs).
At its core, information is defined as the reduction of uncertainty. The less likely an event, the more information we gain by observing it.
For an event x with probability P(x), the self-information I(x) is:
Units are bits (binary digits). If P(x) = 0.5, I(x) = 1 bit. If P(x) = 0.001, I(x) \approx 9.96 bits.
Entropy is the expected value (average) of the surprisal across all possible outcomes of a discrete random variable X:
While formulas provide the "how," geometry provides the "what." Visualizing Information Theory requires shifting from single points to high-dimensional volumes.
Think of entropy as the logarithm of the effective number of states.
In high-dimensional spaces (e.g., a sequence of n tokens), the Asymptotic Equipartition Property (AEP) states that as n \to \infty, the probability mass concentrates almost entirely in a tiny subset called the Typical Set.
Imagine a high-dimensional sphere representing all possible sequences.
Information Geometry treats probability distributions as points on a manifold.
Information is not abstract; it is a physical quantity subject to the laws of thermodynamics.
Erasing information has a physical cost. Erasing one bit of information at temperature T requires a minimum energy expenditure of:
where k_B is the Boltzmann constant. This establishes that computation is heat.
The 19th-century paradox of a demon that violates the Second Law of Thermodynamics by sorting molecules was resolved using Information Theory. The demon must "store" the information about molecule speeds. To keep the cycle going, the demon must eventually "erase" its memory, and the heat generated by that erasure (per Landauer) compensates for the entropy reduction in the sorted gas.
LLMs process "tokens" (sub-word units). The efficiency of an LLM depends on the Entropy per Token.
Shannon's Channel Capacity Theorem defines the limit C:
where B is bandwidth and SNR is Signal-to-Noise Ratio. Modern codes (Turbo codes, LDPC) allow us to communicate at 99.9% of this theoretical limit, enabling 4K video streaming over noisy wireless channels.
| Metric | Formula | Practical Meaning |
|---|---|---|
| Entropy H(X) | -\sum P(x) \log P(x) | Limit of lossless compression. |
| Joint Entropy H(X,Y) | -\sum P(x,y) \log P(x,y) | Total uncertainty in a pair. |
| Mutual Information I(X;Y) | H(X) - H(X\|Y) | "Signal" shared between variables. |
| KL Divergence D_{KL} | \sum P \log \frac{P}{Q} | Error cost of using the wrong model. |
| Channel Capacity C | \max I(X;Y) | Maximum error-free transmission rate. |
Suppose a disease has a base rate of 1% (P(D)=0.01). A test has a 99% true positive rate and a 2% false positive rate.
Cluster Hub: Mathematics Hub (mathematics)