Entropy and Information
Language is a system of communication, whereas communication can be regarded as a process of information transmission. From this point of view, while studying language, we should be interested in understanding the notion of information. The standard mathematical theories of information are theories of the amount of information, which turns out to be a more fundamental concept than the structure of information. Namely, the amount of information is preserved by reversible operations on the data, whereas the structure of information can be distorted by them. These different properties of the amount of information and the structure of information are probably the reason for little interaction between linguists, who prefer to study the structure of information, and information theorists, who tend to investigate the amount of information.
There is one more problem with studying the amount of information in empirical data. Namely, in the standard mathematical theories of information, the amount of information is given relative to a probability distribution or a universal computer. Asymptotically, the choice of a concrete probability distribution or a universal computer does not matter much, but, if we are going to perform experiments on finite samples, the choice can influence our estimates. Of course, we can confine ourselves to studying some concrete estimators of the amount of information, but these procedures introduce another level of approximation of the theoretically absolute values. As a result, information theory is not so widely applied in language research, in our opinion, as it should be.
As we have stated in Sections 1.7 and 1.10, nowadays, there are recognized two main mathematical theories of information: one initiated by Claude Elwood Shannon applies probability, whereas another proposed by Andrey Nikolaevich Kolmogorov uses algorithms. In both the approaches, the amount of information contained in an object is roughly equal to the least number of binary digits that are needed to describe the object. Whereas this idea is directly present in Kolmogorov's algorithmic definition, Shannon's probabilistic definition is more abstract. Probably for this reason, Kolmogorov eventually came to believe that the algorithmic approach to information is more fundamental than the measure‐theoretic approach to probability – and for that reason, it should be exposed first, see Cover et al. ( 1989 ).
In this chapter and in the next two ones, we will study some ideas from information theory that will be useful to us. However, we will put Kolmogorov's vision of the correct exposition order on its head. We will begin with Shannon's probabilistic theory and some measure‐theoretic excursions in this chapter, subsequently going through asymptotic equipartition and universal distributions in Chapter 6, whereas the coding interpretation of Shannon entropy and algorithmic information theory will be relegated to Chapter 7, which will close the cycle of preliminary chapters.
Thus, Section 5.1 is devoted to the concepts of Shannon entropy and mutual information as well as their conditional variants, collectively called Shannon information measures. Usually, these measures are defined for discrete random variables, but, as it is often done in ergodic theory, we will speak of Shannon information measures for partitions of the probability space, which provides a convenient layer of abstraction and stimulates further generalizations. We will see that Shannon information measures satisfy a large number of identities, called chain rules or polymatroid identities, interacting interestingly with the concept of conditional probabilistic independence.
In Section 5.2 , we will apply Shannon information measures to discrete stationary processes. We will study the block entropy, which is the entropy of a sequence of consecutive random variables of the process. We will show that block entropy is positive, growing, and concave. As a result, we can define two asymptotic quantities, entropy rate and excess entropy, which measure the limiting unpredictability of the process and the total memory used by the process, respectively. Whereas for natural language, excess entropy seems infinite by Hilberg's hypothesis introduced in Section 1.9, we will show that this quantity is finite for finite‐state processes.
Entropy rate and excess entropy are defined as limits of conditional entropy and mutual information for block lengths tending to infinity. We may rightly ask if we can define them plugging infinitely long blocks directly into their definitions. Such operation presumes that we define Shannon information measures for arbitrary fields. This construction will be performed indeed in Section 5.3 . It turns out that Shannon information measures for fields inherit all nice properties of Shannon information measures for partitions and additionally, they enjoy continuity, which allows to define entropy rate and excess entropy using infinitely long blocks.
These generalized definitions of entropy rate and excess entropy matter not only for aesthetic reasons. In Section 5.4 , we will use them to derive ergodic decomposition formulas for entropy rate and excess entropy. According to these results, a stationary process has the zero entropy rate if all of its ergodic components have the zero entropy rate, whereas the process has the infinite excess entropy if some of its ergodic components have the infinite excess entropy or if there are uncountably many ergodic components. Hence, we arrive at a reason to suspect that natural language, possibly having an infinite excess entropy, can have uncountably many ergodic components.
Section 5.5 is devoted to understanding processes with the zero entropy rate and disproving a strong form of Hilberg's hypothesis, which demands that natural language has a zero entropy rate indeed. A convenient tool for this analysis are Fano inequalities, which are of an independent interest. Using Fano inequalities, we will show that processes with a zero entropy rate are deterministic in the sense that each random variable of the process is a measurable function of its infinite past. This condition seems intuitively implausible as applied to natural language.
In Section 5.6 , we will analyze processes that have uncountably many ergodic components. Formally, these processes will be given the name of strongly nonergodic processes. Subsequently, we will show that the mixture Bernoulli process, a simple example of a strongly nonergodic process, does not satisfy the power‐law growth of mutual information stated in the relaxed form of Hilberg's hypothesis. The power‐law growth of mutual information requires a different construction of the process, which will be postponed till Chapter 8 .
5.1 Shannon Measures for Partitions
In this section, we will discuss the basic Shannon information measures such as the Shannon entropy and the mutual information. This section develops formally the informal exposition from Section 1.7. We will begin with Shannon entropy. The Shannon entropy is the founding concept of information theory. It is usually defined as follows, assuming that
stands for the logarithm of
to the base 2.
Definition 5.1 (Shannon entropy)
For a discrete probability distribution
on a countable set
, we define the Shannon entropy of
as
(5.1)
Shannon entropy measures the average amount of information in the objects drawn from a discrete distribution. That is, as we will see in Chapter 7, the Shannon entropy is the average least number of binary digits that are needed to describe a random object – if we know its exact probability distribution, in advance. The concept of Shannon entropy gives rise to many interesting considerations and is highly useful. In this chapter, we will study some algebraic properties of Shannon entropy which contributes to the general utility of this concept.
To begin, by the relationship to the KL divergence ( Definition 3.14 ), we obtain that Shannon entropy is less than the following quantity, called Hartley entropy.
Definition 5.2 (Hartley entropy)
For a discrete probability distribution
on a countable set
, we define the Hartley entropy of
as
(5.2)
Theorem 5.1
We have
.
Proof:
follows by
, whereas
follows by Theorem 3.18 for
.
Inparticular
if the domain of the probability distribution is finite.
In Eq. (5.1) , Shannon entropy is defined as a functional of a discrete probability distribution. Here we would like to entertain a different point of view, which leads to a useful generalization. In case of arbitrary probability spaces, the analogue of discrete distributions are discrete random variables and countable partitions of the probability space. In didactic expositions, the Shannon entropy is usually defined for discrete random variables, but speaking of entropy of countable partitions provides a certain layer of abstraction, which turns out to propel some further developments.
Thus, we will consider the definition of entropy for countable partitions as a primary one. In this setting, we will cast both the Shannon and the Hartley entropy.
Definition 5.3 (Shannon and Hartley entropy)
We define the Shannon entropy of a partition
with respect to as
(5.3)
Analogously, we also define the Hartley entropy
(5.4)
We have inequality
by Theorem 5.1 . Thus, the Shannon entropy
is finite if the partition
is finite.
What if we have two partitions? The Shannon entropy of one partition is a special case of the Shannon mutual information between two partitions. The definition of Shannon mutual information is as follows.
Definition 5.4 (Mutual information)
We define the Shannon mutual information between two partitions
and
with respect to probability measure
as
(5.5)
We can immediately see that mutual information is a special case of the KL divergence ( Definition 3.14 ), hence,
. Moreover,
.
What if we have three partitions? Let us observe that for
, conditional probability
is also a probability measure. Therefore, the following concepts of conditional entropy and conditional mutual information also make sense.
Definition 5.5 (Conditional entropy)
We define the conditional entropy of a partition
given a partition
as
(5.6)
Definition 5.6 (Conditional mutual information)
We define the conditional mutual information between two partitions
and
given a partition
as
(5.7)
Now we can specialize the above definitions to discrete random variables. Let us note that discrete random variables
generate unique partitions
. In this case, we will define
(5.8)
(5.9)
(5.10)
(5.11)
Sometimes we will also use a notation where we mix random variables and classes of events as arguments of these functions.
Entropy and mutual information, both conditional and unconditional, collectively called the Shannon information measures, satisfy a large number of algebraic identities, as it is generally known (Csiszár and Körner, 2011 ; Cover and Thomas, 2006 ; Yeung, 2002 ). To recall, first of all, the Shannon information measures can be all expressed as conditional mutual information or as linear combinations of Shannon entropies. The expression in terms of conditional mutual information is as follows.
Theorem 5.2
We have:
-
1.
. -
2.
. -
3.
.
The expression in terms of Shannon entropies requires an additional notation. For two partitions
and
, let us denote the join partition
.
Theorem 5.3
If the negative terms are finite, we have:
-
1.
. -
2.
. -
3.
.
The proofs of the two above theorems are left as an easy exercise. Now, we will introduce several relations on partitions. The first three ones have to do with refinements of partitions.
- (measurability is not an issue here – it is guaranteed by discreteness of the variables).
-
2. We will say that partition
is almost surely finer than
, written
, if for each event
with
we have
for all
. For discrete random variables
and partitions
, relation
holds if and only if
almost surely for a certain function
. -
3. We will say that partitions
and
are almost surely equal, written
, if both
and
. For discrete random variables
and partitions
, relation
holds if and only if
almost surely for a certain bijection
.
The next few relations have to do with probabilistic independence. In general, we say that events
and
are (probabilistically) independent if
, which reduces to
for
. Analogously, we say that events
and
are conditionally independent given
, where
, if
. In particular, events
and
are independent if and only if they are conditionally independent given
. Let us generalize these concepts to partitions.
-
1. We will say that partitions
and
are independent, written
, if all
and
are pairwise independent, i.e. if
. -
2. We will say that partitions
and
are conditionally independent given partition
, written
, if all
and
are pairwise conditionally independent given all
with
, i.e. if
. We have
if and only if
.
Extending these concepts, we will say that discrete random variables
are (conditionally) independent if the respective partitions
are (conditionally) independent.
The following four results found the algebra of the Shannon information measures. The results apply the above‐defined relations of refinement and independence. The first proposition concerns refinements of partitions.
Theorem 5.4
We have
.
Proof:
We have
-
1.
. -
2.
. -
3.
.
The second proposition provides two algebraic properties of conditional mutual information: symmetry and vanishing for conditionally independent partitions.
Theorem 5.5
We have
-
1.
. -
2.
with equality if and only if
.
Proof:
- 1. Trivial.
-
2. By Theorem 3.18 ,
with equality if and only if
. Hence,
with equality if and only if
.
The third proposition characterizes partly the conditional independence in terms of partition refinements.
Theorem 5.6
We have
.
Proof:
For each
such that
, we have
for all
if and only if
for all
. Hence,
.
The fourth proposition is called the chain rule for conditional information.
Theorem 5.7 (Chain rule)
We have
.
Proof:
The claim follows by
(5.12)
The above four theorems yield a large number of other useful identities. We will say that partition
is trivial if
for all
. A handful of useful corollaries of Theorems 5.2 and 5.4–5.7 is as follows:
Theorem 5.8
We have
-
1.
if
. -
2.
if and only if
. -
3.
if and only if
is trivial. -
4.
for
. -
5.
. -
6.
if
. -
7.
if
. -
8.
. -
9.
. -
10.
if
and
.
Proof:
-
1. If
then
. Hence,
. Using this fact, we obtain
. -
2. We have
if and only if
, which is equivalent to
. -
3. We have
if and only if
, which is equivalent to
being trivial. -
4. By
,
. The sequel is easy:
- .
-
6. If
, then
. Hence
. -
7. By property (4) we have
. Hence for
, being equivalent to
, we obtain
. - 8. Follows from properties (5) and (7).
-
9. We have
by property (4). -
10. By property (4) we have
. Hence
.
In particular, claim (6) of Theorem 5.8 is called the data‐processing inequality. It asserts that the amount of information as measured by entropy and mutual information does not decrease when we refine partitions. As a result, the amount of information contained in a random variable does not change when we apply a reversible operation to it. Claim (10) of Theorem 5.8 will be used to prove the ergodic decomposition of excess entropy in Section 5.4 .
Last but not least, we note this fact concerning equality of conditional mutual information for partitions that are almost surely equal.
Theorem 5.9
We have
if
,
,
.
Proof:
For events with a strictly positive probability, there is a bijection between events
and
such that
. Hence,
and
are sums over equal expressions.
The above‐discussed algebraic identities are called the polymatroid identities. It turns out that Shannon information measures also satisfy certain inequalities which cannot be reduced to the polymatroid inequalities. This topic will not be pursued here. An interested reader is referred to Yeung ( 2002 ).
5.2 Block Entropy and Its Limits
In this section, we will consider Shannon information measures for discrete stationary processes, as half‐formally sketched in Section 1.7, where we have introduced the block entropy, the entropy rate, and the excess entropy. The terminology of this section and the results are largely borrowed from Crutchfield and Feldman ( 2003 ). Primarily, we will be interested in the entropy of sequences of consecutive variables, called blocks. The blocks of random variables will be written as
(5.13)
by an analogy to the notation for strings
.
In the following, we will assume that
is a stationary process on a probability space
, where
and the alphabet
is countable. We observe that the entropy of a block drawn from a stationary process depends only on the block length.
Definition 5.7 (Block entropy)
The entropy of a block of variables drawn from the discrete stationary process
will be denoted as
(5.14)
For convenience, we also put
.
As we have mentioned in Section 1.9, Hilberg ( 1990 ) supposed that the block entropy for texts in natural language grows like a power law, say,
(5.15)
We will treat this hypothesis as a sufficient motivation to investigate the general behavior of the block entropy for stationary processes. In this section, we will not construct any particular process that satisfies a condition resembling hypothesis ( 5.15 ), but we will only investigate general properties of function
.
Let us observe that
if and only if
, since
by the polymatroid identities. In this case, the process will be called a finite entropy process. As we will see, by Theorem 5.3 , some differences of the block entropy of a finite entropy process equal to the conditional entropy and mutual information. Let
be the difference operator,
(5.16)
Using this operator, we can state a few interesting propositions. The first result states that the first difference of
is equal to conditional entropy, whereas the second difference of
is equal to conditional mutual information.
Theorem 5.10
The block entropy of a finite entropy process satisfies
(5.17)
(5.18)
where
and
.
Proof:
By Theorem 5.3 , we have
(5.19)
(5.20)
Hence, for a stationary process, block entropy
is positive,
, growing,
, and concave,
, as a function of
.
Now, we will investigate the behavior of block entropy for large arguments. First of all, we note that block entropy
is subadditive, i.e.
. The following proposition for subadditive and superadditive sequences is due to Fekete ( 1923 ).
Theorem 5.11 (Fekete lemma)
Let a sequence of real numbers
be superadditive, i.e. let it satisfy
. Then there exists limit
(5.21)
Conversely, if sequence
is subadditive, i.e. it satisfies
, then there exists limit
(5.22)
Proof:
Sequence
is subadditive if and only if
is superadditive. Without loss of generality, let us assume that
is superadditive. Fix a number
. Choose another number
such that
. For
, we may write
, where
and
are some integers. By the superadditivity, we have
. Hence,
(5.23)
Since
was chosen arbitrarily, we hence obtain
(5.24)
which is equivalent to the claim.
For sequences that are concave, the Fekete lemma can be strengthened.
Theorem 5.12
Let a sequence of real numbers
, where
, be concave, i.e. let it satisfy
. Then sequence
is subadditive and
(5.25)
Proof:
By the concavity, the sequence of differences
is decreasing. Hence,
(5.26)
so
is subadditive. Subsequently, it is sufficient to show
(5.27)
where limit
exists by the Fekete lemma ( Theorem 5.11 ) and limit
exists since sequence
is decreasing. By the first equality in ( 5.26 ), we also obtain
(5.28)
Putting
, dividing by
, and letting
yields
(5.29)
Hence,
.
Since the block entropy satisfies the assumptions of the above Proposition, then we may define the following limiting quantity, called the entropy rate.
Definition 5.8 (Entropy rate)
The entropy rate of a finite entropy stationary process
is defined as
(5.30)
We have
. By the third equivalent definition in Eq. (5.30) , the entropy rate measures how much unpredictable a single observation
is if we know the infinite past
. Thus, the entropy rate is a certain measure of asymptotic indeterminism of the process. In particular, we have
if condition ( 5.15 ) is satisfied. The case of a stationary process with a vanishing entropy rate will be given a name.
Definition 5.9 (Asymptotically deterministic process)
A finite entropy stationary process
is called asymptotically deterministic if
.
. There are four equivalent expressions for this quantity.
Theorem 5.13
Let a sequence of real numbers
, where
, be concave, i.e. let it satisfy
. Define
(5.31)
where
. We have
-
1.
and
. -
2.
,
, and
are increasing. -
3.
.
Proof:
Observe the chain rule
. Hence, we obtain
(5.32)
(5.33)
(5.34)
Since terms
are all positive, hence, the claims follow.
Since the block entropy satisfies the assumptions of the above proposition, then we may define another limiting quantity, called the excess entropy.
Definition 5.10 (Excess entropy)
The excess entropy of a finite entropy stationary process
is defined as
(5.35)
We have
. By the first equivalent definition in Eq. (5.35) , the excess entropy measures how much dependence there is between the infinite past
if condition ( 5.15 ) is satisfied. The case of a stationary process with an infinite excess entropy will be also given a name.
Definition 5.11 (Finitary and infinitary processes)
A finite entropy stationary process
is called finitary if
and infinitary if
.
Now, let us briefly discuss the entropy rate and the excess entropy for the three classes of processes introduced in Section 2.4 . As we will see, in typical cases, none of these processes is asymptotically deterministic or infinitary. The following propositions without proofs are left as easy exercises.
Theorem 5.14
The entropy rate and excess entropy of an IID process
are
(5.36)
(5.37)
Theorem 5.15
The entropy rate and excess entropy of a stationary Markov process
are
(5.38)
(5.39)
Theorem 5.16
The block entropy, the entropy rate, and the excess entropy of a stationary
th order Markov process
are
(5.40)
(5.41)
(5.42)
In particular, we can see that a
th order Markov process can be infinitary only when the alphabet is infinite. If the alphabet is finite, then a
th order Markov process is asymptotically deterministic if and only if the distribution of the process is a periodic measure.
In general, there are no closed expressions for the entropy rate and excess entropy of a hidden Markov process (Birch, 1962 ; Jacquet et al., 2008 ; Travers and Crutchfield, 2014 ). We can give, however, simple bounds. In particular, the excess entropy of a finite‐state process is finite, as the following theorem implies.
Theorem 5.17
The entropy rate and the excess entropy of a stationary hidden Markov process
with the underlying Markov process
satisfy inequalities
(5.43)
(5.44)
Proof:
Since random variables
and
are conditionally probabilistically independent given random variables
and
, we have
(5.45)
(5.46)
Concluding this section, we can see that a stationary hidden Markov process
is not infinitary or asymptotically deterministic, respectively, if the underlying Markov process
is not infinitary or asymptotically deterministic. Consequently, hidden Markov processes are finitary when the alphabet of the underlying Markov process is finite, i.e. if the process is finite‐state. Some infinitary hidden Markov processes where the alphabets of the underlying Markov processes are infinite were discussed by Travers and Crutchfield ( 2014 ) and Dębowski ( 2014 ). We consider these examples kind of artificial. In Section 8.3 and Chapter 11 , we will construct some different examples of infinitary and asymptotically deterministic processes, which are more motivated by natural language phenomena.
5.3 Shannon Measures for Fields
An interesting question arises whether the entropy rate and the excess entropy of a stationary process can be interpreted as the conditional entropy and the mutual information for infinite sequences of random variables. In other words, we ask whether we can define
and
in such a way that
(5.47)
(5.48)
Such a hypothetical representation presumes that we generalize the Shannon information measures to classes of events larger than partitions, such as arbitrary fields.
To make a historical remark, we note that generalization of Shannon information measures to arbitrary fields is a classical topic in information theory dating back to Gelfand et al. ( 1956 ). The original approach proposed by Gelfand et al. ( 1956 ) and developed later by Dobrushin ( 1959 ) and Pinsker ( 1964 ), goes through an integral over the Radon–Nikodym derivative of a conditional product measure with respect to a joint measure. This approach is doomed to fail if the regular conditional probability does not exist, since conditional product measure may fail to exist in this case either (Sazonov, 1964 ; Swart, 1996 ). A simpler and fully general approach, to be presented in this section, was essentially proposed by Wyner ( 1978 ) and Dębowski ( 2009 ) independently, with some later corrections by Dębowski ( 2020 ) concerning the proof of Theorem 2 by Dębowski ( 2009 ).
The definition proposed by Wyner ( 1978 ) and Dębowski ( 2009 ) reads:
Definition 5.12 (Shannon information measures)
Let
be a probability space. For a class
and an event
, let
be the conditional probability of
with respect to the smallest complete
‐field containing
. Subsequently, for an arbitrary class
and countable partitions
and
, we define the pointwise conditional entropy and mutual information
(5.49)
Finally, for arbitrary fields
and
and a class
, we define the average conditional entropy and mutual information
(5.50)
where the suprema are taken over all finite partitions of
and
.
Let us note that if
,
, and
are finite fields, then the above definitions reduce to respective Shannon information measures for finite partitions:
Theorem 5.18
If
are generated by finite partitions then:
-
1.
. -
2.
. -
3.
. -
4.
.
Proof:
The claims follow by monotonicity of Shannon information measures, i.e. claim (6) of Theorem 5.8 .
We also stress that Definition 5.12 , in contrast to the earlier expositions by Dobrushin ( 1959 ) and Pinsker ( 1964 ), is simpler and does not require regular is almost surely a probability distribution.
Similarly as in the discrete case, for arbitrary random variables
with image spaces
and preimages
, we will also define the Shannon information measures
(5.51)
(5.52)
(5.53)
(5.54)
As previously declared, sometimes we will apply a notation where we mix random variables and classes of events as arguments of these functions.
Shannon information measures as generalized above turn out to satisfy all generalized polymatroid identities as well as some continuity. To begin, we notice the following expression of them in terms of conditional mutual information.
Theorem 5.19
Let
and
be fields. We have
-
1.
. -
2.
. -
3.
.
Proof:
The claims follow since
almost surely and
.
Before we derive other polymatroid identities for the generalized Shannon information measures, it is necessary to discuss quite a few technical facts concerning continuity of these measures. Although conditional mutual information has usually been discussed for
‐fields, Definition 5.12 makes sense also for fields. This point of view is convenient to prove continuity.
We will write
for a sequence
of fields such that
. (Field
need not be a
‐field.) By an analogy to this notation, for a sequence
of real numbers, we will also write
if
and
.
Theorem 5.20 (Continuity of mutual information)
For any fields
,
, and
, we have
.
Proof:
The claim holds by claim (6) of Theorem 5.8 since every partition of
is a partition of
for all but finitely many
.
Theorem 5.21
For finite fields
and
and any fields
, we have
.
Proof:
Finite fields are generated by finite partitions. Let
and
, where
. By monotonicity of Shannon information measures, i.e. claim (6) of Theorem 5.8 , we have
, where
by claim (8) of Theorem 5.8 . Hence, the claim follows by the Levy law (3.68) and the dominated convergence ( Theorem 3.10 ).
Recall the symmetric difference (2.32) and its properties discussed in Problem 2.4. We observe the following bound:
Theorem 5.22 (Continuity of entropy)
Fix an
and a field
. For finite partitions
and
such that
for all
, we have
(5.55)
Proof:
We have the expectation
. Hence, by the Markov inequality ( Theorem 3.11 ) we obtain
(5.56)
Denote
(5.57)
From the left Bonferroni inequality (2.31), we obtain
. Subsequently, we observe that
holds almost surely since the Shannon entropy of a partition is uniformly bounded by the logarithm of the partition's cardinality. Hence,
(5.58)
Function
is subadditive and increasing for
. In particular, we have
for
. Thus, on the event
, we obtain
(5.59)
Plugging ( 5.59 ) into ( 5.58 ) yields the claim.
Now we can prove the invariance of conditional mutual information with respect to extending fields to complete
‐fields. For this aim, we will use Theorem 3.28 .
Theorem 5.23 (Invariance of completion)
Let
,
,
, and
be subfields of
. We have
(5.60)
Proof:
Equality
holds by Definition 5.12 . It remains to prove equality
. For this goal, it suffices to show that for any
and any finite partitions
and
there exists a finite partition
such that
(5.61)
Fix then some
and finite partitions
and
. Invoking Theorem 3.28 , we know that for each
there exists a class of sets
, which need not be a partition, such that
(5.62)
for all
. Let us put
and let us construct sets
and
for
. Subsequently, we put
for
and
. In this way, we obtain a partition
.
The next step of the proof is showing an analogue of bound ( 5.62 ) for partitions
and
. To begin, for
, we have
(5.63)
Now, we observe for
and
that
(5.64)
(5.65)
Hence, using the right Bonferroni inequality (2.31), we obtain
(5.66)
Resuming our bounds, we obtain
(5.67)
for all
and
. Then invoking Theorem 5.22 yields
(5.68)
Taking
sufficiently small, we obtain ( 5.61 ), which is the desired claim.
Let us denote the join of fields
and
as
. Some consequence of Theorem 5.23 is this approximation result proved by Dobrushin ( 1959 ) and Pinsker ( 1964 ) and used by Wyner ( 1978 ) to demonstrate a generalized chain rule. Applying the invariance of completion, we supply a different proof than Dobrushin ( 1959 ) and Pinsker ( 1964 ).
Theorem 5.24 (Split of join)
Let
,
,
, and
be fields. We have
(5.69)
where the supremum is taken over all finite subpartitions.
Proof:
Define class
(5.70)
It can be easily verified that
is a field such that
. By definition of
, for all finite partitions
and
, we have
. Moreover, for each finite partition
, there exist finite partitions
and
such that partition
is finer than
. Hence, by Theorem 5.20 , we obtain in this case
(5.71)
In consequence, by Theorem 5.23 , we obtain the claim
(5.72)
The last auxiliary technical statement we need is as follows:
Theorem 5.25 (Convergence of conditioning)
Let
be a finite partition and let
be a field. For each
, there exists a finite partition
such that for any partition
finer than
we have
(5.73)
Proof:
Fix an
. For each
and
, partition
(5.74)
is finite and belongs to
. If we consider partition
, it remains finite and still satisfies
. Let a partition
be finer than
. Then
(5.75)
almost surely for all
. We also have
(5.76)
From the proof of Theorem 5.22 , we recall that function
is subadditive and increasing for
. Applying this observation likewise, for
we obtain almost surely
(5.77)
Taking
so large that
yields the claim.
Once we have established continuity of generalized Shannon information measures and the series of technical results, we may inspect whether the polymatroid identities for partitions can be generalized for arbitrary fields. That is, we are going to establish some generalizations of Theorems 5.4–5.7. It would be highly convenient to establish maximally general statements. As we will see, this can be done in full generality, without assuming regular conditional probability.
In the first step of our constructions, let us generalize relations
,
, and
defined for partitions. We use the operation of completion
introduced in Section 3.7.
-
1. We will say that field
is finer than field
, written
, if
. For finite partitions
and
, we have
if and only if
. -
2. We will say that field
is almost surely finer than field
, written
, if
. Equivalently, we have
if and only if for each event
, there exists an event
such that
. For finite partitions
and
, we have
if and only if
. -
3. We will say that fields
and
are almost surely equal, written
, if
. For finite partitions
and
, we have
if and only if
.
Similarly, we may generalize the concepts of independence and conditional independence.
-
1. We will say that fields
and
are independent, written
, if for all
and
, we have
. For partitions
and
, we have
if and only if
. -
2. We will say that fields
and
are conditionally independent given a field
, written
, if for all
and
, we have
almost surely. We have
if and only if
. For finite partitions
,
, and
, we have
if and only if
.
Extending these concepts, we will say that arbitrary random variables
with image spaces
are (conditionally) independent if the respective preimages
are (conditionally) independent. Moreover, we will say that a stochastic process
is a collection of (conditionally) independent random variables (given
) if for all
, variables
and
are (conditionally) independent (given
).
Now, we prove the analogues of polymatroid identities, i.e. Theorems 5.4–5.7. First, Theorem 5.4 can be generalized without a problem.
Theorem 5.26
Let
and
be fields. We have
.
Proof:
We have
-
1.
. -
2.
. -
3.
.
Theorem 5.5 can be also generalized.
Theorem 5.27
Let
,
, and
be fields. We have
-
1.
. -
2.
with equality if and only if
.
Proof:
- 1. Trivial.
-
2. We have
if and only if
almost surely for all finite partitions
and
. The latter holds if and only if
.
The generalization of Theorem 5.6 is as follows:
Theorem 5.28
Let
,
, and
be fields. We have
(5.78)
Proof:
We have
for all
almost surely if and only if
for all
almost surely. The last condition is equivalent to
by the following reasoning. First, for an
, let
. If
almost surely, we have
(5.79)
(5.80)
(5.81)
Hence,
, so
. To prove the converse, we notice that
implies
almost almost surely. Thus, we have proved ( 5.78 ).
Theorem 5.7 , i.e. the chain rule, can be also restated in full generality.
Theorem 5.29 (Chain rule)
Let
,
,
, and
be fields. We have
(5.82)
Proof:
Let
,
,
, and
be arbitrary fields, and let
,
,
, and
be finite partitions. The point of our departure is the chain rule for finite partitions
(5.83)
demonstrated in Theorem 5.7 . By Definition 5.12 and Theorems, conditional mutual information
can be approximated by
, where we take appropriate limits of refined finite partitions with a certain care.
In particular, by Theorems 5.23 , 5.24, taking sufficiently fine finite partitions of arbitrary fields
and
, the chain rule ( 5.83 ) for finite partitions implies
(5.84)
where all expressions are finite. Hence, we also obtain
(5.85)
where all expressions are finite. Having established the above claim for finite
, we generalize it to
(5.86)
for an arbitrary field
, taking its appropriately fine finite partitions.
Now, we will produce some corollaries of the generalized polymatroid identities. We say that a
‐field
is trivial if
for all
. We have this corollary of Theorems 5.19 and 5.26–5.29, which is an analogue of Theorem 5.8 .
Theorem 5.30
For any fields, we have
-
1.
if
. -
2.
if and only if
. - is trivial.
-
4.
for
. -
5.
. -
6.
if
. -
7.
if
. -
8.
. -
9.
. -
10.
if
and
.
Proof:
The proof is analogous to the proof of Theorem 5.8 .
As another exercise, we leave proving the following expressions of Shannon information measures in terms of joint entropies, which generalizes Theorem 5.3 .
Theorem 5.31
Let
be fields. If the negative terms are finite, we have
-
1.
. -
2.
. -
3.
.
Finally, we state equality of conditional mutual information for fields that are almost surely equal.
Theorem 5.32
We have
if
,
, and
.
Proof:
For
, we have
almost surely. Assume next
and
. Then for any partitions
and
, there exist partitions
and
such that
and
. Hence, by Theorem 5.9 , we obtain
almost surely. Taking expectations and suprema, we obtain the claim.
5.4 Block Entropy Limits Revisited
Let us come back to stationary processes. In view of the developments in the previous section, we can indeed interpret entropy rate and excess entropy as conditional entropy and mutual information, respectively.
Theorem 5.33
Consider a finite entropy stationary process
, where
. We have
(5.87)
(5.88)
Proof:
The claims follow by Theorems 5.20 , 5.21 , and 5.23 .
The above result matters not only for aesthetic reasons. Theorem 5.33 is the first step to prove the ergodic decomposition of the entropy rate and excess entropy. This topic requires some preparation. First, we need to denote some special
‐fields. The first definition is just a convenient notation.
Definition 5.13 (Preimage
‐field)
Let
be a random variable with an image space
on a measurable space
. The preimage
‐field of
will be denoted as
(5.89)
Next, we define the
‐fields of blocks, semi‐infinite past and future, and tail
‐fields.
Definition 5.14 (Some
‐fields of a process)
Consider a stochastic process
on a probability space
, where
. We define
-
the
‐fields of blocks (5.90)
-
the
‐fields of semi‐infinite past and future (5.91)
-
the tail
‐fields of past and future (5.92)
Another simple definition we need is a concept of the random ergodic measure of a stationary process. This is just the conditional distribution of the process with respect to the invariant
‐field.
Definition 5.15 (Random ergodic measure)
For the process as in Definition 5.14 , let
be the invariant
‐field for the shift operation (4.1). If
‐field
is countably generated, we define the random ergodic measure of the process as the conditional probability measure
(5.93)
‐field of this random variable as
(5.94)
Now, we will state some auxiliary proposition concerning the above defined
‐fields. The proposition states that the invariant
‐field is contained in the intersection of completed tail
‐fields. For the sake of this statement, let
be the class of stationary measures on the measurable space
with the shift operation (4.1). Let
be the completion of a class of events
with respect to the class of probability measures
, defined in (3.85).
Theorem 5.34
If the
‐field
is countably generated, then
(5.95)
Proof:
Let
‐fields
be generated by countable classes
. Let
be some enumeration of sets
. We have
, where
is a countable field. Consider a stationary measure
. By Theorem 3.29 , we obtain
, where
(5.96)
On the other hand, by the Birkhoff ergodic theorem ( Theorem 4.6 ), we have
‐almost surely for each
. Since each
belongs to some
, then
is measurable with respect to
for each
. Hence,
is
‐measurable. In this way, we obtain
. Applying the Birkhoff ergodic theorem to operation
, we obtain the complementary claim
. In this way, we derive
(5.97)
Applying the intersection over all
to all terms of ( 5.97 ) yields the claim.
Subsequently, we may state the main result of this section, namely, the ergodic decomposition of entropy rate and excess entropy. Continuing our earlier notation, by
and
we will denote the entropy rate and the excess entropy of the random ergodic measure, i.e.
and
are the random variables which take the values of entropy rate and excess entropy of some processes distributed according to the values of the random measure
.
Theorem 5.35 (Ergodic decomposition)
Consider a finite entropy stationary process
, where
and
is countable. We have
(5.98)
(5.99)
Proof:
Random variables
and
are measurable since they are limits of measurable random variables by the definition of entropy rate and excess entropy. In particular, by Theorem 5.33 , we have
(5.100)
(5.101)
Since
, we hence obtain
(5.102)
(5.103)
by the dominated and monotone convergence, respectively (Theorems 3.10 and 3.8) and further by Theorems 5.20 , 5.21 , and 5.23 . Consequently, the application of Theorems 5.34 and 5.32 and claim (10) of Theorem 5.30 yields
(5.104)
(5.105)
By formula ( 5.98 ), a stationary process is asymptotically deterministic, i.e. it has the zero entropy rate if and only if its random ergodic measure is asymptotically deterministic almost surely. In contrast, by ( 5.99 ), a stationary process is infinitary, i.e. it has an infinite excess entropy not only if its random ergodic measure is infinitary with a strictly positive probability but also when the invariant
‐field has the infinite entropy. Decomposition ( 5.98 ) is a result by Gray and Davisson ( 1974a , b ). Decomposition ( 5.99 ) is a result by Dębowski ( 2009 ). Some generalization of formula ( 5.99 ) was derived by Löhr ( 2009 ) for statistical complexity, i.e. the entropy of prediction process, or so‐called
‐machine – see Problem 8 .
In the next two sections, we will see how Theorem 5.35 combined with certain related results yields a characterization of some asymptotically deterministic and infinitary processes. These results shed some light onto a possible reason why texts in natural language should be modeled by an infinitary process, exhibiting the relaxed Hilberg hypothesis (1.71). The plausible reason can be the phenomenon of strong nonergodicity, which was introduced half‐formally in Section 1.11. We will develop these ideas further in Chapter 8 .
5.5 Convergence of Entropy
To characterize some asymptotically deterministic processes, let us link the convergence of simple random variables with inclusion of
‐fields, via conditional entropy. The following two results provide another perspective of the Riesz theorem ( Theorem 3.27 ) and its applications, such as Theorem 3.29 .
We begin with two simple results, which we will call the Fano inequalities. The first inequality is actually due to Fano ( 1961 ), the other is a simple converse.
Theorem 5.36 (Fano inequalities)
Let function
be given by
(5.106)
and
to assure continuity. Let
be a simple random variable, where
. We have
-
1. For any
‐measurable random variable
, (5.107)
-
2. Let
be an
‐measurable random variable such that
if
for all
. Then (5.108)
Proof:
Let
. As for statement (1), we obtain
(5.109)
As for statement (2), by concavity of
, we have
(5.110)
for
. In particular,
(5.111)
Now, we can show the main theorem of this section.
Theorem 5.37
Let
be a simple random variable. Consider
‐fields
. The following statements are equivalent:
-
1.
for some
‐measurable simple variables
. -
2.
. -
3.
. -
4.
is
‐measurable.
Proof:
Statements (1) and (2) are equivalent by the Fano inequalities ( Theorem 5.36 ). Statements (2) and (3) are equivalent by claim (3) of Theorem 5.23 , whereas statements (3) and (4) are equivalent by claim (3) of Theorem 5.30 .
It is an important assumption in the above theorem that random variable
assumes only a finite number of values. Consider a random variable
that takes values in natural numbers and has an infinite entropy
. Let
for
and
else. We have
since
and
. But
.
Theorem 5.37 gives rise to the following characterization of asymptotically deterministic processes in the finite alphabet case. Namely, a process is asymptotically deterministic if and only if each random variable is a measurable function of its infinite past.
Theorem 5.38
Consider a stationary process
, where
and
is finite. We have
if and only if there exists a measurable function
such that
almost surely for all
.
Proof:
By Theorems 5.37 and 5.33 ,
if and only if each
is measurable with respect to the completion of the
‐field generated by the infinite past
. This is equivalent to the existence of a measurable function
such that
almost surely.
The results mentioned in this section come from Dębowski ( 2009 ). Theorem 5.38 suggests that asymptotic determinism – or the zero entropy rate – should not be satisfied by natural language. It seems unlikely that we could perfectly predict the next symbol of any text given an infinite amount of previously generated texts. There should exist some hidden variables involved in the text generation which would make such a perfect prediction impossible.
5.6 Entropy as Self‐Information
The ergodic decomposition of excess entropy ( 5.99 ) illustrates that the concept of entropy as self‐information
arises naturally when the chain rule is nonatomic.
Theorem 5.39
if
contains a nonatomic sub‐
‐field.
Proof:
Let
be an
‐measurable fair‐coin process. Such a process exists by Theorem 3.5 . For any natural number
, we have
. Hence, the claim follows:
Thus, for a real random variable
, the self‐information entropy
should not be confused with the differential entropy defined as
(5.112)
where
is the Lebesgue measure and
is the probability density. Although the appropriate difference of differential entropies for two real random variables equals the mutual information, usually we have
.
Now let us specialize the above result to the ergodic decomposition of excess entropy ( 5.99 ). Necessarily, when the invariant
‐field has infinite entropy, then the process is nonergodic. This observation motivates this definition.
Definition 5.16 (Strongly nonergodic process)
A process
will be called strongly nonergodic if
contains a nonatomic sub‐
‐field.
In the half‐formal Section 1.11, we have introduced a different definition of strongly nonergodic processes, which is more complicated but motivated by modeling semantics of texts in natural language. In Section 8.3 , we will prove formally that these two distinct definitions are equivalent.
By the ergodic decomposition of excess entropy, strongly nonergodic processes are infinitary. This gives a partial characterization of infinitary processes.
Theorem 5.40
Strongly nonergodic stationary processes satisfy
.
Proof:
By definition of a strongly nonergodic process,
contains a nonatomic sub‐
‐field. Hence,
by Theorems 5.39 and 5.35 .
Theorem 5.40 was noticed by Dębowski ( 2009 ). Less formalized intuitions about links between nonergodicity and infinite excess entropy were presented independently later by Crutchfield and Marzen ( 2015 ).
Now, we will present a simple example of a strongly nonergodic process. It begins with a familiar example, the Bernoulli processes.
Definition 5.17 (Bernoulli processes)
A process
, where
, is called a Bernoulli(
) process, where
, if
(5.113)
A process
, where
, is called a mixture Bernoulli process if
(5.114)
The plain Bernoulli processes are ergodic.
Theorem 5.41
The Bernoulli(
) processes are ergodic.
Proof:
Bernoulli(
) processes are IID processes. They are mixing by Theorem 4.14 and hence, they are ergodic.
In contrast, the mixture Bernoulli process satisfies the desired property of strong nonergodicity.
Theorem 5.42
The mixture Bernoulli process is strongly nonergodic.
Proof:
The mixture Bernoulli process is a convex combination of uncountably many different stationary ergodic measures and hence, by the second ergodic decomposition theorem ( Theorem 4.20 ), it is nonergodic. Now, we will show it is strongly nonergodic. Let
be a Bernoulli(
) process with respect to measure
, where
, and a mixture Bernoulli process with respect to measure
. Then by the uniqueness of the ergodic decomposition we have
(5.115)
Now define random variable
(5.116)
Random variable
is
‐measurable. By the ergodic theorem, equality
holds
‐almost surely. Thus,
(5.117)
‐field.
By Theorems 5.40 and 5.42 , the mixture Bernoulli process satisfies
. In the concluding result of this section, we will show that the block mutual information for this process grows much slower than implied by Hilberg's hypothesis ( 5.15 ).
Theorem 5.43
For the mixture Bernoulli process,
.
Proof:
Let
. Variable
is a function of
and it can be shown that
and
are conditionally independent given
. Hence,
(5.118)
since random variable
assumes
distinct values.
In general, a function
of a random variable
is called a sufficient statistic for predicting a random variable
if
and
are conditionally independent given
. Like in ( 5.118 ), it can be shown that inequality
holds in this case. For the mixture Bernoulli process, we have shown that the mutual information
grows quite slowly since we can construct a sufficient statistic with a relatively small entropy. In contrast, in Section 8.3 and Chapter 11 , we will formally discuss the Santa Fe processes, half‐formally mentioned in Section 1.11. Santa Fe processes are some simple strongly nonergodic processes, more motivated by the semantics of natural texts, for which the block mutual information grows at a power‐law rate, as implied for instance by the relaxed Hilberg hypothesis (1.71). The sufficient statistic for these processes takes a form which is quite different from the statistic
for the Bernoulli process.
Problems
-
5.1 Consider a random variable
and a number
. Show that (5.119)
-
5.2 Show that a stationary process
over a finite alphabet is mixing if and only if for any
we have (5.120)
-
5.3 , we have
(5.121)
-
5.4 Consider a random variable
whose distribution is (5.122)
where
and
. Show that its entropy satisfies
for
and
for
. -
5.5 Let
be a stationary Markov process where variables
take values in natural numbers but 1 and have the marginal distribution of
in ( 5.122 ). Let
with
for a function
with
finite be a stationary hidden Markov process. Show that there exist constants
such that the block mutual information of process
satisfies (5.123)
This result was shown by Dębowski ( 2014 ).
-
5.6 Let
and
be discrete random variables. An important problem in the interpretation of mutual information between
and
is whether this quantity is close to the Shannon entropy of a certain random variable
depending on
and
. Such entropy
is usually called common information between
and
. There are two simple choices of common information. Respectively, the Gács–Körner common information and the modified Wyner common information are defined as (5.124)
(5.125)
Show that
(5.126)
Can these inequalities be strict? The original Wyner common information is defined as the infimum of mutual information
rather than entropy
. The above results were shown by Gács and Körner ( 1973 ) and Wyner ( 1975 ). -
5.7 . Show that
(5.127)
-
5.8 Consider a stochastic process
on a probability space
, where
and the alphabet
is finite. The prediction process
, introduced by Knight ( 1975 ) and called the
‐machine by Shalizi and Crutchfield ( 2001 ), is a sequence of random measures (5.128)
Show that
-
is a stationary process. -
is a nondiscrete Markov process, i.e.
. -
is a nondiscrete hidden Markov process with the underlying Markov process
, i.e.
. -
is unifilar given
, i.e.
. -
, where
is the entropy rate of
. -
, where
is called the statistical complexity of
and
is the excess entropy of
. -
, where
is the invariant
‐field,
is the random ergodic measure of
, and
is the statistical complexity of
.
Remark : These results were formally demonstrated by Löhr ( 2009 ), based on half‐formal considerations by Shalizi ( 2001 ) and Shalizi and Crutchfield ( 2001 ). The idea of the prediction process was introduced by Knight ( 1975 ) in the more general setting of continuous time. Unifilar processes are the stochastic analogue of deterministic finite‐state automata, see Hopcroft and Ullman ( 1979 ). Recent computational experiments by Braverman et al. ( 2019 ) and Hahn and Futrell ( 2019 ) seem to show that both excess entropy and statistical complexity of natural language are large.
-