Information Theory
Introduction
Information theory, introduced by Claude Shannon (), provides a quantitative framework for measuring information, uncertainty, compression limits, and communication reliability.
Its central idea: information corresponds to reduction in uncertainty. Rare events carry more information than predictable ones. This intuition is formalized through entropy and related measures.
Entropy
For a discrete random variable with pmf ,.
Entropy is measured in bits (base- logarithm).
Basic Properties
, with equality iff is deterministic.
If takes values, then
with equality for the uniform distribution.
Binary Entropy
For ,
.
Maximum uncertainty occurs at , giving bit.
Joint and Conditional Entropy
For joint distribution : .
Conditional entropy: .
Chain rule: .
Mutual Information
Mutual information measures shared information: .
Equivalent KL form: .
Properties
(equality iff independence).
Symmetric: .
.
Kullback–Leibler Divergence
.
KL divergence measures distributional discrepancy and underlies many learning objectives.
Source Coding
Shannon’s source coding theorem:
Average code length . There exist codes achieving average length arbitrarily close to .
Entropy is the fundamental limit of lossless compression.
Channel Capacity
For channel , .
Shannon’s channel coding theorem:
Binary Symmetric Channel
With crossover probability :
.
Differential Entropy
For density :
.
Unlike discrete entropy, it:
However, continuous mutual information remains non-negative.
Gaussian :
.
Maximizes entropy among fixed-variance distributions.
Data Processing Inequality
If (Markov chain),
.
Processing cannot increase information.
Cross-Entropy
.
Widely used as a loss function in classification.
Applications
Compression: Huffman, arithmetic coding.
Error correction: Codes approaching capacity.
Machine learning: Cross-entropy loss, mutual information, variational inference.
Statistics: Maximum entropy principle, likelihood, Bayesian updates.
Summary
Entropy quantifies uncertainty. Mutual information quantifies dependence. KL divergence measures distributional mismatch.
Shannon’s theorems establish fundamental limits for compression and communication. These principles govern modern communication systems, statistical inference, and machine learning.