Binary Markov source 2026-10-14
Take the alphabet , fair initial bit , and transition matrix
The stationary distribution is . Every emitted symbol is a fair bit, while the next symbol flips the previous one with probability . For , repeating the previous symbol is the better one-step prediction; for , predicting its opposite is better. The resulting minimum next-symbol error probability is , compared with when no history is used.
Given either state, the next-symbol information entropy is . Thus
At , the best next-symbol prediction succeeds with probability , and the entropy rate is about bits per symbol. The adjacent symbols share mutual information bits. This is useful structure even though the single-symbol counts reveal no bias.
Figure 1.
A persistent fair-bit source reveals its new randomness through the flip sequence
. Original simulated sample paths with a fixed random seed. The top row is a stationary binary Markov source with ; the middle row records innovations in a binary Markov source, marking whether each symbol differs from its predecessor. The bottom row is an independent fair-bit comparison. The marginal theoretical probabilities are for both displayed source processes; finite empirical counts need not be exactly equal. These traces illustrate the stipulated models and are not measured data or a proof of the entropy rate. Details.
At , the random initial bit is repeated forever; at , it alternates forever. Both have and zero entropy rate. At , the symbols are independent and identically distributed fair bits, giving entropy rate one. Zero rate therefore need not mean that the initial choice was deterministic.
Entropy rate 2026-10-14
The entropy rate measures average new uncertainty per emitted symbol of a stochastic process. Predictability from earlier symbols can make this much smaller than the information entropy of one symbol. For example, a binary Markov source can emit a fair bit at every time while repeating its previous bit with probability : each individual symbol has one bit of uncertainty, but the entropy rate is only about bits per symbol.
For a finite alphabet source , define
when the limit exists. Base-two logarithms give bits per symbol. Multiplying by a fixed emission frequency gives bits per unit time; the symbol rate and the uncertainty of the sequence are different inputs. A strictly stationary process on a finite alphabet always has an entropy rate, equal to its conditional entropy rate.[ref]
For an independent and identically distributed source, the chain rule for information entropy gives , hence . With dependence, conditioning reduces entropy and makes the past useful. The examples under Markov information source show this benefit using exact finite-block calculations.
Consider a binary Markov source with fair initial bit and flip probability . Its exact -symbol information entropy is . At ,
This includes the uncertainty of the initial bit; the entropy rate itself is bits per symbol. The finite-block difference is .
For any finite block distribution, the entropy lower bound for prefix codes gives expected codeword length , while Shannon coding achieves . These bounds apply to each block as one source symbol, without requiring consecutive blocks to be independent. Here Huffman coding on all possible 16-symbol words gives the independently calculated value bits per block, or bits per symbol. The noninteger value is an expected value; each actual codeword has an integer length. As the block length grows, the prefix code bounds squeeze towards the entropy rate when an optimal code is used.
Figure 1.
Fair marginal bits can have a lower entropy rate, with a finite-block initial cost
. The left panel shows the exact binary entropy for the symmetric binary Markov source; each individual symbol still has one bit of information entropy. Both near-persistence and near-alternation make the next symbol predictable. The right panel uses and plots , rather than literal fractional codeword lengths. The Huffman coding point is the exact expected length over all 16-symbol words. Details.
An entropy rate below one does not allow every word to fit into a shorter fixed binary word with zero error. For , all binary words are possible, so an injective fixed-length code needs at least bits. Compression instead exploits variable codeword lengths, or the vanishing-error convention in reliable source encoding at a rate. These are different guarantees.
Generate the binary Markov source by taking independent and identically distributed Bernoulli random variables of parameter , independent of a fair initial bit, and setting . Here is exclusive or. Each is the unpredictable flip decision.
The transformation between and is a bijection. It preserves information entropy, so
Sending the initial bit and encoding the innovation sequence describes every source word exactly. This does not by itself specify a practical compressor, but it identifies the uncertainty which a prefix code or other lossless source coding method must handle.
For a word with flips among its transitions,
There are such words: choose the initial bit and the flip positions. At and , each constant word has probability , whereas an independent fair source gives each word probability . Equal marginal probabilities plainly do not imply equal word probabilities.
In A Mathematical Theory of Communication by Claude Shannon, Claude Shannon compares block uncertainty per symbol, denoted , with conditional uncertainty given the preceding symbols, denoted . Theorems 5 and 6 connect both decreasing approximations to the source's limiting uncertainty. He uses symbol statistics at increasing block lengths to expose structure missed by single-letter counts.[ref] The fair marginal bits of the binary Markov source provide a small exact example of that distinction.