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 images , being a measurable space images with a measurable operation images .

Let us consider this definition of the stationary mean images for an event images , which is analogous to Definition 4.2 of relative frequencies images and images .


Definition 10.1 (Stationary mean)

For a probability measure images on a dynamical system images , the stationary mean images is defined through

(10.1) equation

(10.2) equation

We will say that images exists if images .


It is obvious that stationary mean is a stationary set function and images if measure images 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

images   for  images .



Proof:

Obvious by the definition of the invariant images ‐field images .


The second result links the stationary mean with relative frequency images :


Theorem 10.2

For each images , if images holds images ‐almost surely, then

(10.3) equation



Proof:

Observe that images . Hence, if images holds images ‐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 images on a dynamical system images is called AMS if stationary means images exist for all images . When images for a certain countable field images , then a probability measure images on images is called pseudo AMS if stationary means images exist for all images .


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:

  1. If images is AMS then images is a stationary measure.
  2. If images is pseudo AMS then images can be extended to a stationary measure on images .


Proof:

  1. If limits images exist for all images , then by the Vitali–Hahn–Saks theorem ( Theorem 4.2 ) they define a stationary measure on images .
  2. If limits images exist for all images , then by the Vitali–Hahn–Saks theorem ( Theorem 4.2 ) they define a stationary measure on field images , which can be uniquely extended to a stationary measure on images by Theorem 2.4 .

We recall from Theorem 4.4 that relative frequencies images usually cannot exist for all events images simultaneously. According to the next proposition, AMS measures are exactly those probability measures for which the relative frequencies images exist almost surely for each event images separately.


Theorem 10.4

Measure images is AMS if and only if images holds images ‐almost surely for all images .



Proof:

By Theorem 10.2 , it suffices to show that if images is AMS, then images holds images ‐almost surely for all images . For this aim, observe that sets images , .


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 images and images be the sets of stationary and stationary ergodic points, defined in Problem 4.7.


Theorem 10.5

We have the following implications:

(10.4) equation



Proof:

If images is AMS, then we obtain images by the Birkhoff ergodic theorem ( Theorem 4.6 ) and the first ergodic decomposition theorem ( Theorem 4.19 ). Hence, images by images . Next, if images then images converge images ‐almost surely for all images by the definition of images . Consequently, by Theorem 10.2 , we obtain that images 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 images stand for the measure concentrated on a point images , i.e. images . By the definition of the set of stationary points images , for each images , measure images is pseudo AMS with the stationary mean images for all images . In contrast, by Theorem 4.4 , we know that measure images is AMS if and only if point images is periodic. Thus ensuring existence of stationary mean for all images 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 images and we want to transform it into a process over another alphabet images . A typical situation which we will consider in this book is images being a countably infinite set, such as the set of natural numbers, and images 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 images and images , where images or images , with shift operations

(10.5) equation

(10.6) equation

These two spaces may be related by means of a code images ( Definition 7.1 ) and its infinite extensions images ( 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 images and images . A function images measurable from images to images is called a quasiperiodic coding with respect to images and images if for all images there exists an images such that

(10.7) equation

The smallest images for which condition ( 10.7 ) holds is called the quasiperiod of images and is denoted images .


In this setting, we can cast extended codes images with images or images .


Theorem 10.6

Let us put images and images . Then, the extended code images is a quasiperiodic coding for the shift operations ( 10.5 ) and ( 10.6 ), whereas the quasiperiod is

(10.8) equation



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 images , where images or images . 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 images measurable from images to images and a probability measure images on images , 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 images and images linked by a quasiperiodic coding images . Let images be a probability measure on images and let images be the transported measure on images . If images is AMS and the quasiperiod satisfies

(10.9) equation

images ‐almost surely, where images is the invariant images ‐field of images , then images is also AMS with the stationary mean

(10.10) equation

where

(10.11) equation



Proof:

By Theorem 10.4 , to demonstrate that images is AMS, it is sufficient to show that relative frequencies images exist images ‐almost surely for all images . In fact, by the Birkhoff ergodic theorem ( Theorem 4.6 ), we obtain that limit

(10.12) equation

exists images ‐almost surely. By Theorem 10.1 , this equality holds also images ‐almost surely, so we obtain that limit

(10.13) equation

exists images ‐almost surely. Hence, formula ( 10.10 ) follows by Theorem 10.2 .


Under a stronger assumption, there exists a simpler expression for the stationary mean images in terms of images , originally noticed for images by Gray and Kieffer ( 1980 , example 6). Namely, if additionally images is images ‐almost surely constant then

(10.14) equation

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 images and images linked by a quasiperiodic coding images . Let images be a probability measure on images . If images is AMS and the quasiperiod satisfies

(10.15) equation

then function

(10.16) equation

is a stationary measure on images .



Proof:

First of all, we have images , whereas the countable additivity follows by the dominated convergence theorem ( Theorem 3.10 ). As for the stationarity, we obtain

(10.17) equation

from images .


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 images and images where both images and images are invertible. An injection images measurable from images to images is called a synchronizable coding with respect to images and images if:

  1. images for a images implies images for an images .
  2. images for an images implies images for a images .

Let us recall the definition of a comma‐separated code ( Definition 7.5 ). It turns out that if images is a comma‐separated code then the respective code extension is a synchronizable coding.


Theorem 10.9

Let images and images , whereas images be a comma‐separated code. Then, the infinite extension images 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 images , the transported operation

(10.18) equation

considered by Gray and Kieffer ( 1980 , example 6), constitutes a measurable injection images . If we have a stationary measure images on dynamical system images , then transported measure images is stationary on dynamical system images but not necessarily on dynamical system images .

In the following, we will show an intuitive fact that the invariant images ‐fields of images and images are almost equal for a synchronizable coding images . Some apparent technical difficulty is that set images usually does not belong to the invariant images ‐field of images . However, this can be overcome relatively easily given a certain care. Define first the proper invariant images ‐fields

(10.19) equation

(10.20) equation

Next, we define images ‐fields

(10.21) equation

(10.22) equation

Now we have the aforementioned result.


Theorem 10.10

For a synchronizable coding images ,

(10.23) equation



Proof:

First, we will prove images . Let images . We have images for a certain images . Since images is a synchronizable coding, by condition (1), we obtain

(10.24) equation

Hence, images .

Now we will show that images . Let images . Since images is a synchronizable coding, by condition (2), we obtain

(10.25) equation

Hence, images .


To complete the result, we add some probability measures to the considerations. The established equality of images ‐fields implies equality of transported measures.


Theorem 10.11

Consider a synchronizable coding images , a measure images on images and a measure images on images . For each images , there exists an images , and for each images , there exists an images such that

(10.26) equation



Proof:

For images , take images . For images , take images . Then, images and ( 10.26 ) follows from Theorem 10.10 .


Let us trace some consequences of the above proposition. First, for a synchronizable coding images , both measures images and images are ergodic or neither of them has this property. Moreover, let us recall that images for images and an AMS measure images . The analogical equality images holds for images and an AMS measure images – which is guaranteed by Theorem 10.7 for an AMS images if images is also a quasiperiodic coding. Some oddness of equalities ( 10.26 ) is buried in the fact that images does not necessarily equal images . It is only the support of images that is confined to images , whereas images need not be images ‐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 images , where images or images , on a probability space images , is called AMS when the distribution images 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 images , where images or images and images for a countable alphabet images , on a probability space images , is called pseudo AMS when the distribution images of the process is a pseudo AMS measure with respect to the shift operation (4.1) and the countable field images .


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 images is a process on a probability space images , where images and the alphabet images is countable. Then, images and the stationary mean of images will be denoted images . First, we will prove an auxiliary proposition. Denote conditional entropies

(10.27) equation

(10.28) equation

We have the following bound for conditional entropies.


Theorem 10.12

For a pseudo AMS process images and a cylinder set images ,

(10.29) equation



Proof:

Recall measures images . We have

(10.30) equation

Hence, by the Jensen inequality ( Theorem 3.14 ), for function images ,

(10.31) equation

Since probabilities images tend to images for every cylinder set images then

(10.32) equation

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 images with images ,

(10.33) equation



Proof:

In view of Theorem 10.12 , we obtain

(10.34) equation

where the last equality follows from the bound images . Recalling that images yields the claim.


Inequality ( 10.33 ) can be sharp as the following example asserts. Let images stand for the measure concentrated on a single point images , i.e. images . As we have written in Section 10.1 , measure images 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 images be an AMS process on images , where images and the alphabet images is finite. Let images be the stationary mean of measure images , let images be the shift invariant images ‐field of the process images , let images be the random ergodic measure of the process, and let images be the entropy rate of images with respect to measure images . For any universal semidistribution images , we have

(10.35) equation

(10.36) equation



Proof:

By the Barron lemma ( Theorem 3.20 ), when images with images is a semidistribution and images is the probability distribution, we obtain that

(10.37) equation

holds images ‐almost surely and the above event is images ‐measurable. In contrast, when images with images is a semidistribution and images is the probability distribution, we obtain that

(10.38) equation

holds images ‐almost surely and the above event is images ‐measurable. Moreover, by equality (6.62), we have that

(10.39) equation

holds images ‐almost surely and the above event is images ‐measurable. Recall now that images for images ( 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) equation

Since we have (6.21) then by the dominated convergence ( Theorem 3.10 ) we obtain from ( 10.36 ) that

(10.41) equation

In contrast, by the Fatou lemma ( Theorem 3.9 ), we obtain

(10.42) equation

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 images , see Gray and Kieffer ( 1980 ). The respective proof is more complicated.

Problems

  1. 10.1 For the probability space images with the shift operation (4.1), show that if measure images is AMS, then there holds measure domination images , i.e. images implies images for all events images . Subsequently, show that the measure images is AMS if and only if there exists a stationary measure images such that images .

    Hint : Consider events images . This result was shown by Fontana et al. ( 1981 ).

  2. 10.2 Prove Theorems 10.6 and 10.9 .

  3. 10.3 Construct examples of quasiperiodic or synchronizable codings which are different from code extensions images .

  4. 10.4 Let us recall that a subset of strings images is called:

    1. prefix‐free if images for images and images ;
    2. suffix‐free if images for images and images ;
    3. fix‐free if it is both prefix‐free and suffix‐free;
    4. complete if it satisfies the Kraft equality images .

    For instance, set images is complete fix‐free with respect to images (Gillman and Rivest, 1995 ; Ahlswede et al., 1996 ). Subsequently, a function images is called a (complete) prefix/suffix/fix‐free code if images is an injection and the image images is respectively (complete) prefix/suffix/fix‐free. For finite images , function images is called finite.

    Now, suppose that images is finite and images is a complete fix‐free code. Show that:

    1. Code extension images is a bijection images .
    2. Measure images is a stationary probability measure on images if images is a stationary probability measure on images .

    The above partial converse to quasiperiodic coding was noticed by Dębowski ( 2010 ).

  5. 10.5 Consider a code images and its extension images . For a AMS process images on images , where images , we introduce process

    (10.43) equation

    with random variables images . Let images .

    1. Show that limit

      (10.44) equation

      exists almost surely and process images is also AMS.

    2. Let process images be the stationary mean of process images , i.e. let it have the distribution

      (10.45) equation

      Suppose further that process images is stationary and the average length of a symbol encoding tends to its expectation,

      (10.46) equation

      Show that process images can be constructed in the following way. First, we construct a random variable images , called a random shift, and a nonstationary process images where images . Precisely, random variable images and process images are conditionally independent given variable images and their joint distribution is

      (10.47) equation

      (10.48) equation

      In the sequel, process images can be obtained as

      (10.49) equation

      where images is the shift operation.

    .