p(x) > 0. Halving probability adds one bit.
Two laws, two kinds of work.
The source branch measures what must be represented. The channel branch measures what can be transported. Mutual information connects observation to uncertainty, but source coding and channel coding remain distinct theorems.
Source: probability → description
Compression removes predictable redundancy.
For an IID finite-alphabet source, the typical-set and lossless block-coding statements are asymptotic.
Channel: observation → reliable rate
Channel coding adds structured redundancy.
The notes develop achievability. Their converse section—why rates above C fail—is a TODO.
Information is uncertainty you can account for.
For discrete variables with defined entropies, self-information adds before expectation does. That gives the chain rule and makes mutual information an exact accounting identity.
Add joint self-information, then take expectation.
Use the convention 0 log 0 = 0.
Also the KL divergence from the joint law to independent marginals.
Careful: “conditioning reduces entropy” is an average statement. A particular observation can make the conditional distribution more uncertain.
Long IID sequences simplify at exponential scale.
For IID samples from a finite alphabet, −n−1 log₂ p(Xn) → H(X) in probability. Typical strings are not exactly equiprobable.
Remove redundancy. Then add it back on purpose.
In a common architecture, under suitable separation assumptions, source coding removes predictable redundancy before channel coding adds designed redundancy for reliable recovery despite noise.
Source coding
H(X) ≤ L* < H(X) + 1
Kraft and McMillan constrain lengths; Huffman attains the optimal symbol-prefix length. In the IID block limit, lossless rate approaches entropy.
Channel coding
R < C is achievable
For a finite-alphabet DMC, decoding error can tend to zero as block length grows. The converse is a TODO in these notes.
Entropy rate
H̄ = limn→∞ H(X₁,…,Xₙ)/n
When the limit exists. For a stationary first-order Markov chain, it is the stationary average next-transition uncertainty.
Differential entropy
h(aX) = h(X) + log₂|a|, a ≠ 0
For an absolutely continuous variable with defined entropies. It changes with units; mutual information does not under invertible reparameterization.