AMS Processes
An important property of natural language – and of programming languages, as well – is the double articulation: written texts consist of words, whereas words consist of letters. Whereas the number of distinct letters is bounded and rather small, the number of distinct words is difficult to bound and we can imagine it as countably infinite. The theorems about facts and words discussed in Section 8.4 suggest that the double articulation arises from a mere semantic constraint that texts describe infinitely many independent elementary facts in a repetitive way. From this perspective, it is natural to switch between two alternative views of a text: one in which the text is a string of letters and another in which the text is a string of words.
By an analogy, if we consider discrete stochastic processes, we can also switch between viewing them as sequences of random letters and sequences of random words. It pays off to study this operation on stochastic processes and their probability measures in its own right. The operation does not preserve stationarity of the investigated process, but it preserves a more general property, called asymptotic mean stationarity (AMS). Curiously, this natural operation has not been much investigated in the literature. We notice that the theory of AMS measures and respective operations on them is quite technical, and probably underdeveloped, but we will need it for construction of some linguistically motivated examples of stochastic processes in Chapter 11 .
Consequently, in this chapter, we will come back to the general setting of ergodic theory, and we will consider AMS measures and some useful operations on them. It turns out that AMS probability measures are the largest class of measures for which the relative frequencies of all events converge almost surely. This property makes AMS measures attractive from a theoretical point of view. The ugly little problem is that it is usually not trivial to demonstrate that a particular measure is AMS since we need to verify convergence of relative frequencies for all measurable events rather than just cylinder sets. There exist simple counterexamples of measures which satisfy the condition for all cylinder sets but are not AMS. We call these measures pseudo AMS. A nontrivial example of pseudo AMS measures may be random hierarchical association (RHA) processes to be discussed in Section 11.4 . We have not managed to prove that they are AMS.
The detailed organization of this chapter is following. Section 10.1 introduces the formal definitions of AMS and pseudo AMS probability measures. The defining property of these measures is that they have a stationary mean, which is an appropriately taken average of the probability measure with respect to a measurable transformation of the probability space. It turns out that AMS processes are the largest class of processes for which the relative frequency function exists almost surely, i.e. they are the largest class of processes that satisfy the claim of the Birkhoff ergodic theorem. Unfortunately, there seems to be no analogue of Kolmogorov process theorem for general AMS measures, so these measures must be constructed differently.
In Section 10.2 , we present an operation which can be used to construct nontrivial AMS measures, called quasiperiodic coding. This operation generalizes the aforementioned switching between the process consisting of letters and the process consisting of words, where the quasiperiod is the length of the first word of the process measured in letters. We show that quasiperiodic coding preserves the AMS property if the expectation of the quasiperiod for the input measure is strictly positive and finite almost surely. In some cases, there exists also a formula that links the stationary means of an AMS measure and its image under quasiperiodic coding.
Quasiperiodic coding is a convenient operation to encode a stochastic process over one alphabet into a process over another alphabet. We can subsequently ask whether this operation preserves not only the AMS property but also ergodicity. It turns out that the answer is positive for some special quasiperiodic codings called synchronizable codings. In the special case of switching between the process consisting of letters and the process consisting of words, a synchronizable coding corresponds to the intuitive requirement that words are separated by some delimiters such as spaces or commas. These topics will be discussed in Section 10.3 .
In Section 10.4 , we will deal with entropy rate of AMS and pseudo AMS processes. We show that the entropy rate of a pseudo AMS process is less than the entropy rate of its stationary mean. In contrast, for two‐sided AMS processes, not only the respective entropy rates are equal but also the process satisfies the claim of the Shannon–McMillan–Breiman (SMB) theorem discussed in Chapter 6 . This result can be generalized also for one‐sided AMS processes but we do not exhibit the respective proof.
10.1 AMS and Pseudo AMS Measures
In this section, we will define AMS and pseudo AMS probability measures. These measures enjoy the property of having a stationary mean for all or for some events, respectively. To define the stationary mean, we have to come back to the setting of Chapter 4 , concerning relative frequencies and ergodic properties. That is, the investigated probability measures will live on some abstract dynamical system
, being a measurable space
with a measurable operation
.
Let us consider this definition of the stationary mean
for an event
, which is analogous to Definition 4.2 of relative frequencies
and
.
Definition 10.1 (Stationary mean)
For a probability measure
on a dynamical system
, the stationary mean
is defined through
(10.1)
(10.2)
We will say that
exists if
.
It is obvious that stationary mean is a stationary set function and
if measure
is stationary itself. Moreover, we have two simple results. The first one says that the stationary mean of a probability measure equals the probability measure for invariant events.
Theorem 10.1
for
.
Proof:
Obvious by the definition of the invariant
‐field
.
The second result links the stationary mean with relative frequency
:
Theorem 10.2
For each
, if
holds
‐almost surely, then
(10.3)
Proof:
Observe that
. Hence, if
holds
‐almost surely, then the claim follows by the dominated convergence ( Theorem 3.10 ).
Consequently, probability measures which admit the stationary mean for all events will be called AMS (asymptotically mean stationary). Probability measures for which the stationary mean exists only for events in a certain countable generating field will be called pseudo AMS.
Definition 10.2 (AMS and pseudo AMS measures)
A probability measure
on a dynamical system
is called AMS if stationary means
exist for all
. When
for a certain countable field
, then a probability measure
on
is called pseudo AMS if stationary means
exist for all
.
Some accounts of AMS measures were given by Gray and Kieffer ( 1980 ), Fontana et al. ( 1981 ), Gray ( 2009 ), and Kakihara ( 1999 ), whereas the definition of pseudo AMS measures is our invention motivated by the forthcoming application in Chapter 11 . In particular, a nontrivial example of pseudo AMS measures are RHA processes to be discussed in Section 11.4 . So far, we have not managed to show that they are AMS.
The following observation applies the Vitali–Hahn–Saks theorem.
Theorem 10.3
We have:
-
If
is AMS then
is a stationary measure. -
If
is pseudo AMS then
can be extended to a stationary measure on
.
Proof:
-
If limits
exist for all
, then by the Vitali–Hahn–Saks theorem ( Theorem 4.2 ) they define a stationary measure on
. -
If limits
exist for all
, then by the Vitali–Hahn–Saks theorem ( Theorem 4.2 ) they define a stationary measure on field
, which can be uniquely extended to a stationary measure on
by Theorem 2.4 .
We recall from Theorem 4.4 that relative frequencies
usually cannot exist for all events
simultaneously. According to the next proposition, AMS measures are exactly those probability measures for which the relative frequencies
exist almost surely for each event
separately.
Theorem 10.4
Measure
is AMS if and only if
holds
‐almost surely for all
.
Proof:
By Theorem 10.2 , it suffices to show that if
is AMS, then
holds
‐almost surely for all
. For this aim, observe that sets
, .
There are some other exact characterizations of AMS measures, see Gray and Kieffer ( 1980 ), Fontana et al. ( 1981 ), and Problem 1 . These characterizations are mostly of a theoretical importance since they require checking conditions for events not being cylinder sets. However, they can be useful sometimes, see Theorem 10.7 .
For pseudo AMS measures, there are no such equivalences. Let
and
be the sets of stationary and stationary ergodic points, defined in Problem 4.7.
Theorem 10.5
We have the following implications:
(10.4)
Proof:
If
is AMS, then we obtain
by the Birkhoff ergodic theorem ( Theorem 4.6 ) and the first ergodic decomposition theorem ( Theorem 4.19 ). Hence,
by
. Next, if
then
converge
‐almost surely for all
by the definition of
. Consequently, by Theorem 10.2 , we obtain that
is pseudo AMS.
Pseudo AMS measures seem to be a kind of an ugly duckling but they arise naturally when we consider measures concentrated on a single point. Let
stand for the measure concentrated on a point
, i.e.
. By the definition of the set of stationary points
, for each
, measure
is pseudo AMS with the stationary mean
for all
. In contrast, by Theorem 4.4 , we know that measure
is AMS if and only if point
is periodic. Thus ensuring existence of stationary mean for all
can be difficult.
The question arises how we can construct AMS measures which are not stationary. There is no analogue of the Kolmogorov process theorems (Theorems 2.7 and 4.5) for AMS measures. Nonetheless, as we will see in the next section, AMS measures arise naturally when we apply an operation which we call quasiperiodic coding to other AMS measures, e.g. to stationary measures in particular.
10.2 Quasiperiodic Coding
Suppose we have a stochastic process over some alphabet
and we want to transform it into a process over another alphabet
. A typical situation which we will consider in this book is
being a countably infinite set, such as the set of natural numbers, and
being a finite set, such as the set of digits. Let us stress that the respective coding operation does not preserve stationarity in general, but given reasonable conditions it preserves the AMS property, as we will inspect it in this section.
To begin the formal construction, we may have two spaces of infinite sequences
and
, where
or
, with shift operations
(10.5)
(10.6)
These two spaces may be related by means of a code
( Definition 7.1 ) and its infinite extensions
( Definition 7.3 ).
In fact, it is possible to consider a more general setting of a quasiperiodic mapping between two dynamical systems.
Definition 10.3 (Quasiperiodic coding)
Consider two dynamical systems
and
. A function
measurable from
to
is called a quasiperiodic coding with respect to
and
if for all
there exists an
such that
(10.7)
The smallest
for which condition ( 10.7 ) holds is called the quasiperiod of
and is denoted
.
In this setting, we can cast extended codes
with
or
.
Theorem 10.6
Let us put
and
. Then, the extended code
is a quasiperiodic coding for the shift operations ( 10.5 ) and ( 10.6 ), whereas the quasiperiod is
(10.8)
Proof:
Left as an easy exercise.
Thus, a quasiperiodic coding arises naturally when we want to transform a stochastic process from one alphabet into another alphabet. The general concept of a quasiperiodic coding provides a convenient layer of abstraction which allows to simultaneously discuss the product spaces
, where
or
. Possibly, we could imagine other kinds of quasiperiodic codings.
Consequently, let introduce some probability measures into the general setting of a quasiperiodic coding. If we have a function
measurable from
to
and a probability measure
on
, we may define measure a probability is a quasiperiodic coding with a strictly positive and finite expected quasiperiod.
Theorem 10.7
Consider two dynamical systems
and
linked by a quasiperiodic coding
. Let
be a probability measure on
and let
be the transported measure on
. If
is AMS and the quasiperiod satisfies
(10.9)
‐almost surely, where
is the invariant
‐field of
, then
is also AMS with the stationary mean
(10.10)
where
(10.11)
Proof:
By Theorem 10.4 , to demonstrate that
is AMS, it is sufficient to show that relative frequencies
exist
‐almost surely for all
. In fact, by the Birkhoff ergodic theorem ( Theorem 4.6 ), we obtain that limit
(10.12)
exists
‐almost surely. By Theorem 10.1 , this equality holds also
‐almost surely, so we obtain that limit
(10.13)
exists
‐almost surely. Hence, formula ( 10.10 ) follows by Theorem 10.2 .
Under a stronger assumption, there exists a simpler expression for the stationary mean
in terms of
, originally noticed for
by Gray and Kieffer ( 1980 , example 6). Namely, if additionally
is
‐almost surely constant then
(10.14)
is not constant then the right‐ hand side of expression ( 10.14 ) still defines a stationary measure. In other words, we may always construct a stationary measure by averaging the transported stationary mean over a randomized shift within the quasiperiod.
Theorem 10.8
Consider two dynamical systems
and
linked by a quasiperiodic coding
. Let
be a probability measure on
. If
is AMS and the quasiperiod satisfies
(10.15)
then function
(10.16)
is a stationary measure on
.
Proof:
First of all, we have
, whereas the countable additivity follows by the dominated convergence theorem ( Theorem 3.10 ). As for the stationarity, we obtain
(10.17)
from
.
It is an interesting open question how the above operation interacts with the ergodic decomposition of AMS measures – a topic which we do not develop here, see Gray ( 2009 ) and Schönhuth ( 2008 ).
In this section, we have presented constructions originally described by Dębowski ( 2010 ). Some similar constructions were considered by Cariolaro and Pierobon ( 1977 ), Gray and Kieffer ( 1980 ), and Timo et al. ( 2007 ).
10.3 Synchronizable Coding
This section also reports some ideas of Dębowski ( 2010 ) in a slightly generalized fashion. Whereas quasiperiodic coding is a convenient construction to encode a stochastic process into another alphabet, a question arises whether this transformation preserves some important properties of the process such as ergodicity. In general, the answer is negative, but we may restrict ourselves to some special quasiperiodic coding which does preserve ergodicity. This special case will be called a synchronizable coding.
Definition 10.4 (Synchronizable coding)
Consider two dynamical systems
and
where both
and
are invertible. An injection
measurable from
to
is called a synchronizable coding with respect to
and
if:
-
for a
implies
for an
. -
for an
implies
for a
.
Let us recall the definition of a comma‐separated code ( Definition 7.5 ). It turns out that if
is a comma‐separated code then the respective code extension is a synchronizable coding.
Theorem 10.9
Let
and
, whereas
be a comma‐separated code. Then, the infinite extension
is a synchronizable coding for the shift operations ( 10.5 ) and ( 10.6 ).
Proof:
Left as an easy exercise.
In general, for a measurable injection
, the transported operation
(10.18)
considered by Gray and Kieffer ( 1980 , example 6), constitutes a measurable injection
. If we have a stationary measure
on dynamical system
, then transported measure
is stationary on dynamical system
but not necessarily on dynamical system
.
In the following, we will show an intuitive fact that the invariant
‐fields of
and
are almost equal for a synchronizable coding
. Some apparent technical difficulty is that set
usually does not belong to the invariant
‐field of
. However, this can be overcome relatively easily given a certain care. Define first the proper invariant
‐fields
(10.19)
(10.20)
Next, we define
‐fields
(10.21)
(10.22)
Now we have the aforementioned result.
Theorem 10.10
For a synchronizable coding
,
(10.23)
Proof:
First, we will prove
. Let
. We have
for a certain
. Since
is a synchronizable coding, by condition (1), we obtain
(10.24)
Hence,
.
Now we will show that
. Let
. Since
is a synchronizable coding, by condition (2), we obtain
(10.25)
Hence,
.
To complete the result, we add some probability measures to the considerations. The established equality of
‐fields implies equality of transported measures.
Theorem 10.11
Consider a synchronizable coding
, a measure
on
and a measure
on
. For each
, there exists an
, and for each
, there exists an
such that
(10.26)
Proof:
For
, take
. For
, take
. Then,
and ( 10.26 ) follows from Theorem 10.10 .
Let us trace some consequences of the above proposition. First, for a synchronizable coding
, both measures
and
are ergodic or neither of them has this property. Moreover, let us recall that
for
and an AMS measure
. The analogical equality
holds for
and an AMS measure
– which is guaranteed by Theorem 10.7 for an AMS
if
is also a quasiperiodic coding. Some oddness of equalities ( 10.26 ) is buried in the fact that
does not necessarily equal
. It is only the support of
that is confined to
, whereas
need not be
‐invariant, as it has been remarked.
10.4 Entropy Rate in the AMS Case
So far we wanted to state our results in the most general way which we could imagine. Now we will scale down to our standard application of processes over a countable alphabet, and we will investigate Shannon entropies for AMS and pseudo AMS processes. First, we will consider AMS processes defined as follows.
Definition 10.5 (AMS process)
A stochastic process
, where
or
, on a probability space
, is called AMS when the distribution
of the process is an AMS measure with respect to the shift operation (4.1).
Similarly, we will define pseudo AMS processes. Some particular twist in the respective definition is that we choose a particular countable generating field, being the field generated by cylinder sets.
Definition 10.6 (Pseudo AMS process)
A stochastic process
, where
or
and
for a countable alphabet
, on a probability space
, is called pseudo AMS when the distribution
of the process is a pseudo AMS measure with respect to the shift operation (4.1) and the countable field
.
For AMS and pseudo AMS processes, we are interested whether we can generalize the concept of the entropy rate defined as limit (5.30). As we will see, the answer is partly positive. In the following, we will assume that
is a process on a probability space
, where
and the alphabet
is countable. Then,
and the stationary mean of
will be denoted
. First, we will prove an auxiliary proposition. Denote conditional entropies
(10.27)
(10.28)
We have the following bound for conditional entropies.
Theorem 10.12
For a pseudo AMS process
and a cylinder set
,
(10.29)
Proof:
Recall measures
. We have
(10.30)
Hence, by the Jensen inequality ( Theorem 3.14 ), for function
,
(10.31)
Since probabilities
tend to
for every cylinder set
then
(10.32)
In view of this, we obtain the requested claim.
Now, we will show a bound for the block entropy of a pseudo AMS process. It turns out that the rate of entropy of a pseudo AMS process is less than the entropy rate of its stationary mean.
Theorem 10.13
For a pseudo AMS process
with
,
(10.33)
Proof:
In view of Theorem 10.12 , we obtain
(10.34)
where the last equality follows from the bound
. Recalling that
yields the claim.
Inequality ( 10.33 ) can be sharp as the following example asserts. Let
stand for the measure concentrated on a single point
, i.e.
. As we have written in Section 10.1 , measure
is pseudo AMS for each stationary point need not be AMS.
In contrast, the existence of the entropy rate for an AMS process is guaranteed by a generalization of the SMB theorem. According to this generalization, the entropy rate of an AMS process is equal to the entropy rate of its stationary mean. The following version of the SMB theorem for two‐sided AMS processes rests on the SMB theorem for the stationary case ( Theorem 6.9 ).
Theorem 10.14 (SMB theorem)
Let
be an AMS process on
, where
and the alphabet
is finite. Let
be the stationary mean of measure
, let
be the shift invariant
‐field of the process
, let
be the random ergodic measure of the process, and let
be the entropy rate of
with respect to measure
. For any universal semidistribution
, we have
(10.35)
(10.36)
Proof:
By the Barron lemma ( Theorem 3.20 ), when
with
is a semidistribution and
is the probability distribution, we obtain that
(10.37)
holds
‐almost surely and the above event is
‐measurable. In contrast, when
with
is a semidistribution and
is the probability distribution, we obtain that
(10.38)
holds
‐almost surely and the above event is
‐measurable. Moreover, by equality (6.62), we have that
(10.39)
holds
‐almost surely and the above event is
‐measurable. Recall now that
for
( Theorem 10.1 ). Hence, we may combine the above three displayed formulas to obtain ( 10.36 ).
Now, we will prove ( 10.35 ). By the Gibbs inequality ( Theorem 3.18 ),
(10.40)
Since we have (6.21) then by the dominated convergence ( Theorem 3.10 ) we obtain from ( 10.36 ) that
(10.41)
In contrast, by the Fatou lemma ( Theorem 3.9 ), we obtain
(10.42)
From the last three displayed formulas, we derive ( 10.35 ).
It is known that the SMB theorem is true also for a one‐sided AMS process
, see Gray and Kieffer ( 1980 ). The respective proof is more complicated.
Problems
-
10.1 For the probability space
with the shift operation (4.1), show that if measure
is AMS, then there holds measure domination
, i.e.
implies
for all events
. Subsequently, show that the measure
is AMS if and only if there exists a stationary measure
such that
. Hint : Consider events
. This result was shown by Fontana et al. ( 1981 ). -
10.2 Prove Theorems 10.6 and 10.9 .
-
10.3 Construct examples of quasiperiodic or synchronizable codings which are different from code extensions
. -
10.4 Let us recall that a subset of strings
is called: -
prefix‐free if
for
and
; -
suffix‐free if
for
and
; - fix‐free if it is both prefix‐free and suffix‐free;
-
complete if it satisfies the Kraft equality
.
For instance, set
is complete fix‐free with respect to
(Gillman and Rivest, 1995 ; Ahlswede et al., 1996 ). Subsequently, a function
is called a (complete) prefix/suffix/fix‐free code if
is an injection and the image
is respectively (complete) prefix/suffix/fix‐free. For finite
, function
is called finite. Now, suppose that
is finite and
is a complete fix‐free code. Show that: -
Code extension
is a bijection
. -
Measure
is a stationary probability measure on
if
is a stationary probability measure on
.
The above partial converse to quasiperiodic coding was noticed by Dębowski ( 2010 ).
-
prefix‐free if
-
10.5 Consider a code
and its extension
. For a AMS process
on
, where
, we introduce process (10.43)
with random variables
. Let
. -
Show that limit
(10.44)
exists almost surely and process
is also AMS. -
Let process
be the stationary mean of process
, i.e. let it have the distribution (10.45)
Suppose further that process
is stationary and the average length of a symbol encoding tends to its expectation, (10.46)
Show that process
can be constructed in the following way. First, we construct a random variable
, called a random shift, and a nonstationary process
where
. Precisely, random variable
and process
are conditionally independent given variable
and their joint distribution is (10.47)
(10.48)
In the sequel, process
can be obtained as (10.49)
where
is the shift operation.
.
-