Entropy Rates of a Stochastic Process
Stationarity, Markov chains, the entropy rate and its two definitions, random walks on graphs, the second law, and functions of Markov chains
Motivation: the operator has grammar
The AEP established that bits suffice on average to describe independent and identically distributed random variables. That i.i.d. assumption is the single most unrealistic thing in the whole telegraph model.
A real operator does not roll a fresh die for each keystroke. After punching Q
they punch U with probability near 1; after TH they punch E far more often
than chance; English spelling and grammar make heavily dependent on
. So the tape is not a sequence of i.i.d. draws, and
every count we made in Chapter 3 — “about realistic tapes” — was
computed under an assumption the wire violates.
IntuitionThe engineering question
If the keystrokes are dependent, does the joint entropy still grow linearly in ? If it does, there is still a well-defined “bits per keystroke” price for this operator and the telecom can still quote a rate. If it grows some other way, there is no such thing as a per-symbol cost and the whole business model of charging per word loses its information-theoretic footing.
The answer is that for a stationary process the growth is asymptotically linear at a rate , which we call the entropy rate of the process. Dependence does not destroy the per-symbol price; it lowers it, because grammar is predictability and predictability is cheap.
ConventionNotation for the rate
We write (calligraphic argument, a process) for the entropy rate, to distinguish it from (a single random variable). The interpretation of as the best achievable data compression for a dependent source is not proved here — that needs the full source coding analysis. This chapter only establishes that the rate exists and computes it.
Stochastic processes and stationarity
DefinitionStochastic process
A stochastic process is an indexed sequence of random variables. In general there can be arbitrary dependence among them. The process is characterized by its joint probability mass functions
for ,
| Component | Detail |
|---|---|
| Physical anchor | The operator’s entire typing career: is the -th keystroke. |
| What replaces | Not one pmf but an infinite family of joint pmfs, one for each length , which must be consistent with each other. |
| Why this is harder | For an i.i.d. source the whole process is specified by numbers. Here it takes numbers per — unmanageable without extra structure. |
The first structural assumption we impose is that the operator’s habits do not change over time.
DefinitionStationarity
A stochastic process is stationary if the joint distribution of any subset of the sequence is invariant with respect to shifts in the time index:
for every , every shift , and all .
IntuitionWhat stationarity physically rules out
It says the operator’s language statistics are the same in the afternoon as in
the morning. It does not say the keystrokes are independent — the operator
may still have grammar. It only says the grammar itself is not drifting. Note
the definition is about blocks, not just single symbols: the probability of
the digram TH must be the same at positions as at , not
merely the frequency of T.
WarningStationarity is an assumption about the source, and it can fail
An operator who starts the shift alert and ends it exhausted, or a wire whose noise profile worsens as the line heats up, is not stationary. Everything in this note that relies on shifting the time index silently fails for such a source, and, as example 3 below shows, the entropy rate may then not even exist.
Markov chains
Stationarity alone still leaves arbitrarily long-range dependence. The simplest useful restriction is that dependence reaches back exactly one step.
DefinitionMarkov chain
A discrete stochastic process is a Markov chain (or Markov process) if for
for all .
IntuitionThe telegraph reading
Each keystroke depends only on the one immediately preceding it and is conditionally independent of everything before that. This is the same “the future depends on the past only through the present” condition we used for the [[information-inequalities#Markov chains ()|data processing inequality]], now applied along a time axis instead of along a processing pipeline.
Because each conditional collapses to depend on one symbol, the general chain rule of probability collapses with it:
FormulaFactorization of a Markov chain
DefinitionTime invariance
The Markov chain is time invariant if the conditional probability does not depend on ; that is,
(We assume the Markov chain is time invariant unless otherwise stated.)
If is a Markov chain, is called the state at time . A time-invariant Markov chain is fully characterized by two things: its initial state, and a probability transition matrix , , where
Structural conditions
DefinitionIrreducible and aperiodic
- Irreducible: it is possible to go with positive probability from any state to any other state in a finite number of steps.
- Aperiodic: the largest common factor of the lengths of different paths from a state back to itself is 1.
IntuitionWhy these two conditions keep appearing
Irreducibility rules out a machine with a stuck key that traps the operator in a sub-alphabet they can never leave. Aperiodicity rules out a machine that can only return to a state on even-numbered steps, which would make the distribution oscillate forever instead of settling. Together they are exactly what is needed for the chain to forget where it started.
Stationary distributions
If the pmf of the state at time is , then the pmf at time is obtained by pushing it through the transition matrix:
DefinitionStationary distribution
A distribution on the states such that the distribution at time is the same as the distribution at time is called a stationary distribution. In matrix form, is stationary iff , i.e.
ImportantWhy it is called stationary
The name is not a coincidence with the earlier definition: if the initial state of a Markov chain is drawn according to a stationary distribution, the Markov chain forms a stationary process. The distribution being a fixed point of is precisely what makes the joint law shift-invariant.
TheoremUniqueness and convergence
If the finite-state Markov chain is irreducible and aperiodic, the stationary distribution is unique, and from any starting distribution, the distribution of tends to the stationary distribution as .
Example: the two-state chain
stateDiagram-v2 direction LR S1: State 1 S2: State 2 S1 --> S2: alpha S2 --> S1: beta S1 --> S1: 1 - alpha S2 --> S2: 1 - beta
ExampleTwo-state Markov chain
Consider a two-state chain with transition matrix
Let the stationary distribution be the vector . Solve , or more simply balance probabilities: for a stationary distribution, the net probability flow across any cut set in the state transition graph is zero. Here there is one cut, between the two states:
Combined with :
If the chain is started from , the process is stationary, and the entropy of the state at time is
Warning is not the entropy rate
is a constant, the same for every by stationarity, so you might guess . That is exactly the i.i.d. answer and it is wrong here. The dependence among the will take a steady toll: each keystroke after the first is partly predicted by its predecessor, so it contributes strictly less than fresh bits. Quantifying that toll is what the next section is for.
Entropy rate
The problem. We have a sequence of dependent keystrokes. The natural question for a telecom quoting a per-word price: how does the entropy of the sequence grow with ? There are two different reasonable ways to define a “per-symbol” answer, and they are not obviously the same number.
DefinitionEntropy rate (per-symbol definition)
The entropy of a stochastic process is
when the limit exists.
DefinitionEntropy rate (conditional definition)
A related quantity:
when the limit exists.
| Measures | The per-symbol entropy of the random variables, averaged over the whole tape | The conditional entropy of the last random variable given the entire past |
| Engineering reading | ”What did this whole tape cost me, divided by its length?” — an accounting figure | ”What does the next keystroke cost me, given everything I have already seen?” — a marginal figure |
| Natural for | Pricing a message already sent | Deciding how many bits to budget for the next symbol in a streaming encoder |
These are genuinely different notions — an average versus a marginal — and the central theorem of this section is that for stationary processes they coincide.
Worked examples of entropy rates
Example1. Typewriter with equally likely letters
The typewriter can produce sequences of length , all equally likely. Hence , and
This is the no-structure baseline: the rate saturates the maximum entropy bound at every .
Example2. i.i.d.
The entropy rate of an i.i.d. source is just the per-symbol entropy, which is what one would expect and is the case Chapter 3 handled. This is the sanity check that the new definition generalizes the old one rather than replacing it.
Example3. Independent but not identically distributed — the rate can fail to exist
If the are independent then , but the are not all equal, and we can choose a sequence of distributions such that has no limit.
Take a random binary sequence where is a function of :
Then there are arbitrarily long stretches where , followed by exponentially longer segments where . The running average of the oscillates between and and never settles. Thus is not defined for this process.
Why the doubly-exponential construction is needed: to break the limit you must keep dragging the running average back and forth. Once the average is near , you need a -stretch longer than everything so far to drag it to , and then a -stretch longer than that. Nesting inside produces exactly this escalation.
IntuitionWhat example 3 is really telling us
Independence is not what makes the entropy rate exist — this process is independent and has no rate. What fails here is stationarity: the source’s statistics keep changing. This is why the theorems below assume stationarity and say nothing about independence.
The two definitions agree for stationary processes
TheoremEquality of the two entropy rates
For a stationary stochastic process, the limits defining and both exist and are equal:
We prove it in three pieces: first that the marginal quantity converges at all, then a purely analytic fact about averages, then the combination.
TheoremConditional entropy is nonincreasing
For a stationary stochastic process, is nonincreasing in and has a limit .
ProofConditioning reduces entropy, then shift the index
Step 1: Drop a conditioning variable to get an upper bound. By conditioning reduces entropy, removing from the conditioning set can only increase the entropy — so keeping the shorter past on the right gives an upper bound:
Step 2: Shift the time index. The right-hand side conditions symbol on the symbols immediately before it. By stationarity, shifting every index down by one changes nothing:
Step 3: Conclude. Chaining Steps 1 and 2 gives , so the sequence is nonincreasing. It is also a sequence of nonnegative numbers (entropies are ). A decreasing sequence bounded below converges, so it has a limit .
∎
IntuitionPhysical meaning of monotonicity
The more of the operator’s past you have on the tape in front of you, the less surprised you are by their next keystroke. Extra context never hurts your prediction — the same “information can’t hurt” principle, applied along time.
TheoremCesàro mean
If and , then .
IntuitionInformal outline
Since most of the terms in the sequence are eventually close to , the running average of the first terms is also eventually close to . The finitely many early terms, however wild, get divided by a growing .
ProofSplit the average into the early terms and the late terms
Step 1: Fix a tolerance and find where the sequence settles. Let . Since , there exists such that for all .
Step 2: Write the deviation of the average.
(triangle inequality, moved inside the sum).
Step 3: Split the sum at . The first terms are whatever they are; each of the remaining terms is at most by Step 1:
for all .
Step 4: Kill the first term. is a fixed finite number once is chosen — it does not grow with — so dividing it by sends it to . Hence we can make by taking large enough, so .
∎
ProofEquality of the two entropy rates
Step 1: The chain rule turns the joint entropy into a sum of conditionals. By the [[entropy-mutual-information#Chain rule for entropy ( variables)|chain rule for entropy]]:
Read this carefully: the entropy rate is the time average of the conditional entropies. The left side is the per-symbol accounting figure; the right side averages the marginal figures. The whole theorem is now a statement about averages versus limits.
Step 2: The terms being averaged converge. By the monotonicity theorem above, tends to a limit .
Step 3: Apply Cesàro. The running average of a convergent sequence converges to the same limit. Hence
∎
IntuitionWhy this is the result that saves the business model
The accounting price per symbol and the marginal price of the next symbol are the same number. A streaming encoder budgeting bits for each new keystroke and a billing department dividing the total by agree in the long run, so “bits per symbol” is unambiguous for a stationary source.
The AEP for stationary ergodic processes
TheoremGeneral AEP (proved elsewhere)
For any stationary ergodic process,
ImportantEverything from Chapter 3 survives, with replaced by
Using this, the theorems of the AEP chapter extend directly. Define the typical set exactly as in the i.i.d. case; by the same arguments, the typical set has probability close to 1, there are about typical sequences of length , each with probability about , and we can therefore represent them using about bits. This is what makes the entropy rate the average description length for a stationary ergodic process — and it is the answer to the open question left at the end of the AEP note.
NoteTwo caveats on scope
First, the general AEP is stated here and proved only much later (Cover & Thomas §16.8) — we are borrowing it. Second, it needs ergodicity on top of stationarity, a strictly stronger condition; the entropy rate itself is well defined for all stationary processes, but the typical-set machinery needs the process to actually explore its statistics rather than getting stuck in one of several possible regimes.
Entropy rate of a Markov chain
The entropy rate is particularly easy to calculate for Markov chains, because the conditional definition collapses immediately.
FormulaMarkov entropy rate
For a stationary Markov chain,
where the conditional entropy is calculated using the given stationary distribution , the solution of for all .
IntuitionWhy the limit disappears
Each equality does one job: the first is the theorem above; the second is the Markov property (conditioning on the whole past is the same as conditioning on the last symbol); the third is time invariance plus stationarity (the conditional is the same at every , so the limit of a constant sequence is that constant). No limit actually needs computing — the rate is a one-step quantity.
TheoremEntropy rate of a stationary Markov chain
Let be a stationary Markov chain with stationary distribution and transition matrix . Let . Then
ProofExpand the one-step conditional entropy
— the outer weight is how often the chain sits in state , and the inner bracket is the entropy of row of the transition matrix.
∎
IntuitionReading the formula as a machine
Row of is the operator’s habits given they just typed , and is the surprise of their next keystroke from that state. The entropy rate is just those per-state surprises averaged by how much time the operator spends in each state.
ExampleTwo-state Markov chain
For the chain of the earlier example, with and , row 1 has entropy and row 2 has entropy , so
Compare this against from before: the two are different numbers, and the gap is exactly the “steady toll” the dependence takes.
RemarkNon-stationary starts don’t matter
If the Markov chain is irreducible and aperiodic it has a unique stationary distribution, and any initial distribution tends to it as . So even when the chain is started off-distribution, the entropy rate — being defined purely in terms of long-term behaviour — is still the computed from .
Example: entropy rate of a random walk on a weighted graph
The problem. A particle (or a message-routing token, or a king on a chessboard) walks randomly from node to node on a connected graph. This is a Markov chain with a lot of structure, and we would like a closed form for its entropy rate rather than a numerical eigenvector computation.
Setup. Consider a graph with nodes labelled , with weight on the edge joining node to node . The graph is undirected, so , and we set if there is no edge. Given , the next vertex is chosen among the nodes connected to with probability proportional to the connecting edge’s weight:
Define the local and global weight totals:
Because each undirected edge is counted once in but contributes to two nodes’ local totals, .
The stationary distribution
TheoremStationary distribution of a weighted random walk
The stationary probability of a node is proportional to the total weight of the edges emanating from it.
ProofGuess and verify
We guess the form above and check it directly:
Step 1: The cancel. This is the crucial cancellation, and it is what makes the guess work: the factor that makes a node likely to be occupied is exactly the factor that divides its outgoing probabilities.
Step 2: Use undirectedness. Since , the sum is the total weight at node , namely :
∎
IntuitionThe locality property
This stationary distribution depends only on the total weight and on the weight of edges connected to that one node. Rewiring some distant part of the graph, as long as the total weight is held constant, does not change at all. For a network engineer this is a strong statement: a node’s long-run traffic share is a purely local quantity.
The entropy rate
DerivationFrom to a difference of two entropies
Step 1: Start from the Markov entropy rate.
Step 2: Substitute and . The cancel again:
Step 3: Renormalize the inside of the logarithm. We want both entropies to be over probability distributions with denominator , so write and split the log:
Step 4: Collapse the second term by marginalizing. The log in the second term does not depend on , and :
Step 5: Recognize both pieces as entropies. The quantities (over ordered pairs) and (over nodes) are both valid distributions, so:
FormulaEntropy rate of a weighted random walk
(the entropy of the edge distribution minus the entropy of the node distribution).
CorollaryUnweighted graphs
If all edges have equal weight, the stationary distribution puts weight on node , where is the number of edges at node and is the total number of edges. The edge distribution is then uniform over ordered pairs, so its entropy is , and
WarningThis answer is so simple it is almost misleading
Apparently the entropy rate — an average transition entropy, which sounds like it should depend on the fine structure of the graph — depends only on the entropy of the stationary distribution and the total number of edges. Two very differently shaped graphs with the same degree sequence have the same entropy rate.
ExampleRandom walk of a king on a chessboard
Let a king move at random on an board. The king has 8 moves in the interior, 5 at the edges, and 3 at the corners. Counting all moves gives , so the stationary probabilities are , and respectively, and the entropy rate works out to .
The factor is due purely to edge effects — on an infinite chessboard every square would have 8 moves, the degree distribution would be uniform, and the rate would be exactly . Similarly one can find the entropy rate of rooks ( bits, since a rook always has 14 possible moves regardless of position, so there are no edge effects at all), bishops, and queens.
(Open question worth thinking about: the queen combines the moves of a rook and a bishop. Does the queen have more or less freedom than the pair?)
RemarkTime reversibility
A stationary random walk on a graph is time-reversible: the probability of any sequence of states is the same forward or backward,
Rather surprisingly, the converse is also true: any time-reversible Markov chain can be represented as a random walk on an undirected weighted graph. So the closed form above is not a special case — it covers the entire reversible class.
The second law of thermodynamics
The problem. The second law of physics says the entropy of an isolated system is nondecreasing. In statistical thermodynamics, entropy is defined as the log of the number of microstates — which corresponds exactly to our notion of entropy if all states are equally likely. Does our reproduce the second law?
Model the isolated system as a Markov chain whose transitions obey the physical laws governing it. (Implicit in this: there is an overall state, and knowing the present state, the future is independent of the past.) Within this model there are four or five different readings of “the second law.”
WarningThe headline result is not what you expect
It may come as a shock, but the entropy does not always increase. What always decreases is the relative entropy. Entropy increase is a special case that needs an extra condition.
1. Relative entropy between two distributions decreases
Theorem decreases with
Let and be two distributions on the state space of a Markov chain at time , evolving to and . Then
ProofExpand the joint relative entropy two ways
Step 1: Set up the two joint distributions. Let and be the joint mass functions of under the two starting distributions. Both are driven by the same physics, i.e. the same transition function :
Step 2: Apply the chain rule for relative entropy in both orders.
Step 3: Kill the forward conditional term. Since both and are derived from the same Markov chain, and are both equal to . A relative entropy between a distribution and itself is zero, so .
Step 4: Discard the backward conditional term by non-negativity. By the information inequality, . Equating the two expansions and dropping this non-negative term:
that is, .
∎
IntuitionThe asymmetry that drives the whole proof
The forward conditional is shared (same physics) and contributes nothing; the backward conditional is not shared and contributes something non-negative. Running the chain forward therefore blurs the two distributions together. Any two ensembles evolving under the same dynamics become more alike.
ExampleWealth distributions
Suppose the tax system for redistributing wealth is the same in Canada and in England. If and represent the distributions of wealth among people in the two countries, the inequality says the relative entropy distance between them decreases with time: the two wealth distributions become more similar.
2. Distance to a stationary distribution decreases
Corollary decreases with
Let in the previous theorem be any stationary distribution . Then as well, so
Any state distribution gets closer and closer to every stationary distribution as time passes.
RemarkConvergence of the sequence, and the harder claim
is a monotonically nonincreasing nonnegative sequence, so it must have a limit. That the limit is zero when the stationary distribution is unique is true but more difficult to prove — monotone convergence alone does not give it.
3. Entropy increases only if the stationary distribution is uniform
WarningDecreasing relative entropy does not imply increasing entropy
Counterexample: take any Markov chain with a nonuniform stationary distribution and start it from the uniform distribution. The uniform is already the maximum entropy distribution, and the chain will drift towards the stationary distribution, which has lower entropy. Here entropy decreases with time, while relative entropy still obediently decreases.
TheoremEntropy increase under a uniform stationary distribution
If the stationary distribution is the uniform distribution , then
and the monotonic decrease in relative entropy implies a monotonic increase in entropy.
IntuitionWhy this is the case that matches physics
This is the interpretation that ties in most closely with statistical thermodynamics, where all microstates are equally likely, i.e. the stationary distribution genuinely is uniform. The famous “entropy always increases” is not a theorem about Markov chains in general — it is a theorem about Markov chains whose equilibrium is uniform.
Doubly stochastic transitions
DefinitionDoubly stochastic matrix
A probability transition matrix is doubly stochastic if
(columns sum to 1 as well as rows).
RemarkThe exact characterization
The uniform distribution is a stationary distribution of if and only if is doubly stochastic. So “doubly stochastic dynamics” is precisely the physical condition under which entropy is guaranteed to increase.
4. Conditional uncertainty about the future increases
Theorem increases with
For a stationary Markov process, is constant (so entropy is certainly not increasing), but the conditional entropy increases with .
IntuitionThe right reading of “entropy increases”
A single observation of the system at time 1 tells you less and less about the system as time goes on. This is the version of the second law that survives for a general stationary Markov chain: not that the system’s entropy grows, but that your conditional uncertainty about its future, given a fixed past observation, grows.
ProofProof 1 — via entropy properties
Step 1: Add a conditioning variable. Conditioning reduces entropy, so adding to the conditioning set can only lower it:
Step 2: Drop by Markovity. Given , the variable (for ) is independent of :
Step 3: Shift indices by stationarity. Conditioning symbol on symbol 2 is the same as conditioning symbol on symbol 1:
Chaining: , which is the claim.
∎
ProofProof 2 — via the data processing inequality
Step 1: Identify the Markov chain. The states satisfy . Applying the data processing inequality:
Step 2: Expand both mutual informations into entropies.
Step 3: Cancel the marginals by stationarity. , so they cancel, leaving
(The same techniques show that is increasing in for any Markov chain — the system also becomes harder to reconstruct backwards.)
∎
5. Shuffles increase entropy
TheoremShuffles increase entropy
If is a shuffle (permutation) of a deck of cards, is the initial (random) position of the cards, and the choice of is independent of , then
where is the permutation of the deck induced by applying to .
IntuitionWhere the independence assumption does the work
The shuffler must not be looking at the deck. A shuffle chosen because of the current arrangement could undo it and lower the entropy; a shuffle chosen blind can only mix. This is the card-table version of the doubly-stochastic condition above — a random relabelling by an independent permutation acts uniformly.
Functions of Markov chains
The problem. Let be a stationary Markov chain, and let be a process each of whose terms is a function of the corresponding state. What is the entropy rate ?
This is the realistic observation model. In many situations one has only partial information about the state of the system: the wiretap sees whether the voltage is high or low, not which of 32 keys was pressed; the receiver’s tape shows a letter class, not the operator’s full internal state.
Warning is generally not a Markov chain
It would simplify matters greatly if were itself Markov, but in many cases it is not — collapsing states can create dependence on the arbitrarily distant past, because the current does not pin down which underlying state you are in. So we cannot just apply .
Since the Markov chain is stationary, so is , and the entropy rate is well defined. The obvious approach is to compute for each and take the limit.
WarningWhy the obvious approach is unusable in practice
The convergence can be arbitrarily slow, so we will never know how close we are to the limit. And we cannot use the change between consecutive values as a stopping criterion: the difference between step and may be tiny even when we are still far from the limit — consider , whose terms shrink to zero while the sum diverges.
The fix is to bracket the limit: get a sequence converging from above and another from below, and stop when they meet.
IntuitionWhere the lower bound comes from
We already know converges monotonically to from above (the monotonicity theorem). For a lower bound we use — a neat trick based on the idea that contains as much information about as the entire unobserved prehistory does. Handing the estimator the hidden initial state is at least as generous as handing it the infinite past, so it over-conditions and under-estimates.
LemmaLower bound
ProofInflate the conditioning set with the hidden past, then trade it for observed past
For :
Justifications:
- (a) is a function of , so adding it to a conditioning set that already contains adds nothing.
- (b) By the Markovity of : given , the earlier states are irrelevant to anything after time 1, so they can be added freely.
- (c) Each is a function of , so the are already determined by the conditioning set and add nothing.
- (d) Conditioning reduces entropy, applied in reverse: dropping the ‘s can only increase the entropy. This is the one inequality in the chain, and it is where we trade the hidden states for observed symbols.
- (e) Stationarity: shift every index up by .
Since the inequality holds for all , it holds in the limit:
∎
LemmaThe bracket closes
ProofThe gap is a mutual information, and it is a term of a convergent series
Step 1: Recognize the gap. By the definition of conditional mutual information, the interval length is exactly
So proving the bracket closes means proving these conditional mutual informations vanish.
Step 2: Bound the total information can ever supply. Mutual information with cannot exceed ‘s own entropy:
and increases with (more observations can only reveal more about ). An increasing sequence bounded above converges, so exists and is .
Step 3: Decompose that limit with the chain rule. By the chain rule for mutual information:
Step 4: A convergent series of non-negative terms has vanishing terms. The infinite sum is finite (bounded by ) and every term is non-negative (mutual informations are ), so the terms must tend to :
∎
IntuitionWhy the gap must close
The hidden initial state holds only bits — a finite budget. Each new observation can extract some of that budget, but the extractions must sum to no more than , so they have to die out. Eventually the observed sequence has told you everything about that it ever will, and knowing outright stops helping.
TheoremBracketing the entropy rate of a function of a Markov chain
If form a stationary Markov chain and , then
and
IntuitionThe computational payoff
This is what makes actually computable. Evaluate both bounds at increasing ; they squeeze the answer from both sides, and you halt when their difference is below your tolerance — with a certified error bar, unlike the naive single-sequence approach that could stall arbitrarily far from the limit without telling you.
Hidden Markov models
DefinitionHidden Markov model
Instead of a deterministic , let each be a stochastic function of : drawn according to , conditionally independent of all other , . The joint law is
flowchart LR X1[X1] --> X2[X2] --> X3[X3] X1 --> Y1[Y1] X2 --> Y2[Y2] X3 --> Y3[Y3]
RemarkSame machinery applies
HMMs are used extensively in speech recognition, handwriting recognition and similar settings — and in our telegraph picture, an HMM is just the Markov operator seen through the noisy wire rather than through a clean deterministic collapse. The same argument used above for functions of a Markov chain carries over, and we can lower bound the entropy rate of an HMM by conditioning on the underlying Markov state. (Details left to the reader.)
Quick reference
| Object | Statement | Reads as |
|---|---|---|
| Stationary | The source’s statistics don’t drift. | |
| Markov | Dependence reaches back one step. | |
| Stationary distribution | The occupancy that reproduces itself. | |
| Entropy rate (average) | Accounting price per symbol. | |
| Entropy rate (marginal) | Price of the next symbol given the past. | |
| Equality | for stationary processes | The two prices agree. |
| Markov rate | Row entropies weighted by occupancy. | |
| Two-state chain | — | |
| Weighted walk | Edge entropy minus node entropy. | |
| Unweighted walk | — | |
| Second law | Relative entropy always drops; plain entropy need not rise. | |
| Function of a chain | Two-sided computable bracket. |
Identities and conditions to keep to hand:
- Stationarity gives index shifting; Markovity gives conditioning-set truncation; conditioning reduces entropy gives every inequality in this note. Almost every proof here is some combination of those three.
- Irreducible aperiodic unique stationary distribution, reached from any start.
- Uniform stationary distribution doubly stochastic entropy genuinely increases.
- for an undirected graph (each edge counted at both endpoints).
- Entropy rate is well defined for all stationary processes; the typical-set/AEP extension additionally needs ergodicity.
References
- [[lit/cover2006-elements|Cover & Thomas, Elements of Information Theory]] — Chapter 4