Probabilistic Toolbox

In this chapter, we will review some important technical results in probability theory, which concern mostly real random variables and related mathematical concepts. Formal linguists may rightly ask what the utility of real numbers is in language research. Indeed, the language structure is largely about discrete symbols and hierarchical categorical distinctions (Adger, 2019 ). Yet rational and computable real numbers arise naturally when we count the frequencies of those symbols and categories or compute other kinds of statistics for linguistic data, such as fractions, means, or variances. One can debate whether it is more difficult to see some patterns in large tables of numbers than in collections of categorical data, but we cannot deny that for quantitative and computational linguists fractional numbers in language matter as well.

Moreover, we should be aware that it is mathematically possible to encode an infinite sequence of binary digits images as a single real number images . Except for countably many cases such as binary numbers images , this mapping between binary sequences and real numbers is one‐to‐one. In particular, the text of any novel or even a collection of large encyclopedias can be represented as a single real number in range images . The “minor” physical problem of this representation is that to extract useful information from such a real number, we need to represent it and read it with a very high precision, which is unachievable in a physical model of the real line such as a wooden ruler. Mathematically speaking, however, real numbers are defined with an infinite precision and, when sampled uniformly at random, they usually contain an infinite amount of information.

The aforementioned observations lead us to a conclusion that even when we are studying natural language through the lens of discrete stochastic processes, we should be aware of exact mathematical constructions and tools for real random variables. The minimal toolbox should cover the concepts of the Lebesgue measure and the Lebesgue integral, the Markov and Jensen inequalities, weak and strong convergence of random variables, conditional distributions and martingales. It is quite a load of ideas and technicalities that we would like to convey in this chapter. For some readers, it may be advisable to skip thorough reading of this chapter and catch up with its contents later once the relevant material is actually needed. Intentionally, we did not make this chapter an appendix to preserve the linear flow of formal ideas.

More detailed contents of this chapter can be described as follows: In Section 3.1 , first we will introduce Borel images ‐fields and the Lebesgue measure. The Borel images ‐fields are some natural images ‐fields for the event space being the real line, whereas the Lebesgue measure is the natural measure on the real line generalizing the concept of the length of an interval. Having these, we will also introduce real random variables and nonatomic measures. It turns out as well that the Lebesgue measure on the interval images is the probability distribution of an infinite sequence of fairly tossed binary digits images encoded as the real number images .

Once we have real random variables, it is natural to ask about their expectations. In the modern probability theory, the expectation of an arbitrary real random variable is defined as the Lebesgue integral with respect to the probability measure. The Lebesgue integral itself is a generalization of the Riemann integral, which is defined as the area under the graph of a continuous function. In contrast, the Lebesgue integral exists also for highly discontinuous functions. Lebesgue integrals and their properties will be discussed in Section 3.2 .

In Section 3.3 , we will present a few useful propositions such as the Borel–Cantelli lemma as well as the Markov, the Jensen, the Cauchy–Schwarz, the Paley–Zygmund, and the median–mean inequalities. The three first propositions will be often used in the book. The Markov inequality allows to bound probability of some events in terms of expectations of real random variables that construct these events. Subsequently, the Borel–Cantelli lemma states that, for an infinite sequence of events, finitely many of them occur almost surely if the sum of probabilities of all events is finite. Eventually, the Jensen inequality allows to bound expectations of some random variables in terms of expectations of other random variables.

As an example, in Section 3.4 , we will discuss some important basic results in information theory: the Gibbs and the Barron inequalities. These results combine the Jensen inequality, the Markov inequality, and the Borel–Cantelli lemma together. Basically, the Gibbs and the Barron inequalities say that if we have two probability distributions, the real one and a model thereof, then the real probability cannot be essentially much less than the probability under the model.

Section 3.5 will be devoted to conditional probability – a concept which distinguishes probability theory from the ordinary measure theory. In the elementary probability theory, the conditional probability of an event images given an event images is defined as images . This definition can be applied only if the probability is strictly positive. The measure‐theoretic probability calculus provides some means to define the conditional probability for probabilities of conditioning events tending to zero. Under certain assumptions, we can speak of random conditional measures and convergence of conditional expectations, generalized as the martingale convergence theorem.

In Section 3.6 , we will be occupied with convergence of arbitrary real random variables. There are different modes of probabilistic convergence such as convergence in probability and almost sure convergence. It turns out that the almost sure convergence is stronger than the convergence in probability, but not too much. According to the Riesz theorem, if a sequence of random variables converges in probability, then there exists a subsequence thereof which converges almost surely.

Eventually, Section 3.7 states a few technical but also useful propositions, which may seem quite hair‐splitting upon the first reading. The first statement concerns an approximation of images ‐fields by their generating fields. Second, we discuss completion of images ‐fields with events of outer measure zero. This discussion leads us to finally show that for each sub‐ images ‐field of a countably generated probability space there exists a countably generated sub‐ images ‐field which is almost surely equal.

3.1 Borel ‐Fields and a Fair Coin

In this section, we will construct Borel images ‐fields, which are generated by classes of intervals on the real line. This construction is useful for two further movements: a definition of the Lebesgue measure, which generalizes the concept of the length of an interval, and a definition of real random variables, which gives rise to real stochastic processes. Since real numbers and real random variables can be represented via their binary expansions, hence the Lebesgue measure on the unit interval can be also regarded as the probability distribution of a sequence of independent uniformly distributed binary digits, which we will call a fair‐coin process. Subsequently, we will show that the Lebesgue measure is nonatomic, and we will characterize nonatomic probability measures in terms of fair‐coin processes in a simple way.

Let images be the set of real numbers. Let us observe that the class of closed intervals

(3.1) equation

where images and images , is a images ‐system. The Borel images ‐field is a images ‐field generated by this images ‐system.


Definition 3.1 ( Borel images ‐field )

The Borel is defined as

(3.2) equation


In particular, all singletons images , where images , belong to the Borel images ‐field images .

It is also convenient to consider the extended set of real numbers images and the unit interval images . For these sets, we can define respective Borel images ‐fields as well.


Definition 3.2 ( Borel images ‐fields )

The Borel images ‐fields on sets images and images are defined as

(3.3) equation

(3.4) equation


The length of an interval can be defined as images . In fact, the length of intervals can be extended to a measure. This measure, also denoted as images , is called the Lebesgue measure.


Theorem 3.1 (Lebesgue measure)

There is a unique measure images on the measurable space images such that images for all real numbers images .



Proof

See Billingsley ( 1979 , sections 2 and 3).


The Lebesgue measure images is the first measure ever constructed. Let us note that this measure cannot be extended to the images ‐field images and the Borel images ‐field images is its natural domain (Billingsley, 1979 , section 3), see also Problem 2.1.

Let us also observe that the Lebesgue measure on the unit interval is a probability measure, which is a simple but an important observation. Namely, the proposition below gives us a geometric interpretation of the concept of a probability measure.


Theorem 3.2 (Lebesgue measure)

The Lebesgue measure images restricted to the measurable space images is a probability measure.



Proof

Clearly, we have images .


Now, we can also define (extended) real random variables.


Definition 3.3 (Real random variable)

A real random variable images is a random variable with an image space images .


Some simple example (Billingsley, 1979 , section 13). So continuous functions of real random variables are also real random variables.

Analogously to discrete‐valued stochastic processes, we define real‐valued stochastic processes. For our applications, an important special case of real stochastic processes will be random measures. They will be defined in Section 3.5 .


Definition 3.4 (Real stochastic process)

A real stochastic process images is a collection of real random variables images indexed by certain indices images sharing the same image space images . The image space of process images is pair images , where images is the images ‐field generated by cylinder sets.


Now, we will show how a stochastic process consisting of simple random variables can be regarded as a single real random variable. Consider a discrete stochastic process images on a probability space images , consisting of simple random variables images with an image space images . Since binary digits images are called bits, random variables images will be called random bits.


Definition 3.5 (Random bit)

A simple random variable images will be called a random bit.


A sequence of random bits is called a fair‐coin process when the probability measure of sequence images is the product measure of the probability distributions of random bits images distributed uniformly on set images .


Definition 3.6 (Fair‐coin process)

A sequence of random bits images is called a fair‐coin process when

(3.5) equation

for all strings images .


Let us introduce now function images that maps infinite binary expansions of real numbers to the corresponding real numbers. Formally, we have

(3.6) equation

for images . It can .

Consequently, we may ask how the distributions of a real random variable images and its binary expansion images can be linked in some simple cases. It turns out that random variable images is distributed according to the Lebesgue measure if and only if its binary expansion images is a fair‐coin process.


Theorem 3.3

A sequence of random bits images is a fair‐coin process if and only if the probability distribution of random variable images , where images is defined in ( 3.6 ), is the Lebesgue measure on space images .



Proof

Consider cylinder sets images defined as images . These cylinder sets form a images ‐system which generates the preimage space of process images , which contains the preimage space of random variable images . By the images ‐ images theorem ( Theorem 2.3 ), it is sufficient to show that probability images for images being a fair‐coin process equals to probability images if the distribution of images is the Lebesgue measure. In fact, if the distribution of random variable images is the Lebesgue measure, then images since the set of rational numbers images is countable. Then the unique binary expansion images exists almost surely and since images , we can compute that

(3.7) equation

Hence images , which is the same as for the fair‐coin process images .


Measurable space images with the Lebesgue measure images , which we will call the Lebesgue probability space images , is an important example of a probability space which is not discrete. This concept is captured by the following definition of a nonatomic probability space. In plain words, a probability space is nonatomic if we can shatter any event into events of an arbitrarily small strictly positive measure.


Definition 3.7 (Nonatomic probability space)

A probability space images is called nonatomic if for each set images and images , there exists a set images such that images and images .


It can be easily cannot be finite. It turns out that the Lebesgue probability space has this property.


Theorem 3.4

The Lebesgue probability space images is nonatomic.



Proof

See Billingsley ( 1979 , problem 2.17).


Sometimes it is convenient to regard nonatomicity as a property of a particular sub‐ images ‐field rather than of the whole probability space.


Definition 3.8 (Nonatomic images ‐field)

A images ‐field images is called nonatomic with respect to a probability measure images if probability space images is nonatomic.


In fact, Theorem 3.3 can be used to provide a general characterization of nonatomic images ‐fields. Namely, an arbitrary images ‐field contains a nonatomic sub‐ images ‐field if and only if there lives some fair‐coin process on it.


Theorem 3.5

A images ‐field images contains a nonatomic sub‐ images ‐field if and only if there exists an images ‐measurable fair‐coin process images .



Proof

First, let images be a nonatomic sub‐ images ‐field of images . For any images and images , there exists images such that images and images . This property can be used to construct a family of nested sets images indexed by binary words images such that images for the empty string images , images , and images . Next, for each images , we define images , where images . Process images is a fair‐coin process.

As for the converse, let images be an images ‐measurable fair‐coin process. We construct an images ‐measurable random variable images . By Theorem 3.3 , the distribution of images is the Lebesgue measure on interval images . Hence, by Theorem 3.4 , images ‐field images is nonatomic and contained in images ‐field images .


Theorem 3.5 will be used to prove Theorems 5.39 and 8.12.

3.2 Integral and Expectation

Now, we can consider the concepts of the integral and the expectation. In the high school calculus, the integral is defined as the area under the graph of a continuous real function images , which is known as the Riemann integral images . Measure theory builds on this idea but extends the concept of the integral to arbitrary measurable functions, such as the Dirichlet function

(3.8) equation

In fact, we can define the integral of this function so that images . The respective general concept is called the Lebesgue integral. To be honest, the Lebesgue integral is so useful not only because it can be used to integrate quite exotic functions but also because it enjoys a number of interesting properties.

To define the Lebesgue integral, first we need the concepts of the supremum and the infimum of a set. The supremum images is defined as the least real number images such that images for all images . In contrast, infimum images is the largest real number images such that images for all images .


Definition 3.9 (Lebesgue integral)

For a real random variable images on a finite measure space images , we define the Lebesgue integral images as follows:

  1. If images and images is a simple random variable:

    (3.9) equation

  2. If images and images is not a simple random variable:

    (3.10) equation

    where the supremum ranges over all real‐valued simple random variables images such that images .

  3. If images , where images and either images or images :

    (3.11) equation


Some comments to the above definition are due. For a simple random variable, if images , then the Lebesgue integral is finite, images . If images and images , then the Lebesgue integral is infinite, images . In contrast, if both images and images , then the Lebesgue integral images is not defined.

A real random variable images is called integrable (with respect to a measure images ) if images . It can be shown that the Lebesgue integral is a linear function of integrable random variables, namely,

(3.12) equation

for images and integrable random variables images and images .

Now, we will introduce is defined as

(3.13) equation

Subsequently, we denote the integral over a measurable subset images as

(3.14) equation

Traditionally, the integral with respect to the Lebesgue measure is denoted like the Riemann integral,

(3.15) equation

In the context of measure‐theoretic probability, the Lebesgue integral of a random variable with respect to a probability measure is called the expectation.


Definition 3.10 (Expectation)

For a probability measure images , we will write

(3.16) equation

and we will call this integral the expectation of the random variable images .


It is easy to see that the above definition generalizes the concept of expectation from the elementary probability calculus, which is simply defined as ( 3.9 ).

For a random proposition images , we will say that images holds images ‐almost everywhere (or simply – almost surely – for a probability measure images ) if

(3.17) equation

In this case, we also say synonimically that “ images holds for images ‐almost all images ”.

Let us make this simple observation.


Theorem 3.6

If images and images , then images holds images ‐almost everywhere.



Proof

We will prove the converse. Suppose that images for images . By the countable additivity of images , we have images . Thus, there exists an images such that images . Hence, images .


In the above proof, we have used in fact the Markov inequality images , which will be formally stated in Theorem 3.11 .

Subsequently, we would like to state three important results about convergence of sequences of integrals. For this goal, we need to introduce generalized limits of sequences of real numbers.


Definition 3.11 (Limits of sequences)

The is defined as

(3.18) equation

whereas the lower limit of this sequence is defined as

(3.19) equation

If the upper and the lower limit are equal, images , then we say that the (proper) limit images exists, and we define images , whereas otherwise limit images is not defined, and we say that it does not exist.


The upper and the lower limits exist for any sequence, but they may be different. For example, we obtain two different values for images ,

(3.20) equation

(3.21) equation

It turns out that limits of sequences of real random variables are measurable.


Theorem 3.7

Let images be a sequence of real random variables. Then supremum images , infimum images , upper limit images , and lower limit images are also real random variables.



Proof

See Billingsley ( 1979 , theorem 13.4).


Now, we can state the three theorems about sequences of integrals. These are the monotone convergence, the Fatou lemma, and the dominated convergence.


Theorem 3.8 (Monotone convergence)

Let images be a sequence of positive, images , and growing, images , real random variables. Then

(3.22) equation



Proof

See Billingsley ( 1979 , theorem 16.2).


By the above result, if images and images , then function images satisfies countable additivity and hence it is also a finite measure.


Theorem 3.9 (Fatou lemma)

Let images be , real random variables. Then

(3.23) equation



Proof

Denote images . We have images and images . Hence, by Theorem 3.8 , we have

(3.24) equation


Inequality ( 3.23 ) can be strict. For example, for the measurable space images and the counting measure images , where images is the cardinality of set images , let us put images . Then we obtain images and images so images .


Theorem 3.10 (Lebesgue dominated convergence)

Let images be a sequence of real random variables which satisfy images , where images . If there exists limit images , then

(3.25) equation



Proof

Let images . We have images . Hence, by Theorem 3.9 , we obtain

(3.26) equation

Thus,

(3.27) equation

and hence the claim follows.


All three above theorems will be applied in the book.

3.3 Inequalities and Corollaries

To prove many theorems in probability theory, three propositions are particularly useful: the Markov inequality, the Borel–Cantelli lemma, and the Jensen inequality. The Markov inequality bounds the probability of an unlikely event by the expectation of a related random variable. The Borel–Cantelli lemma states that, for an infinite sequence of events, finitely many of them happen almost surely if the sum of probabilities of all events in the sequence is finite. The Jensen inequality compares the expectation of a convex function with the convex function of the expectation. We will derive these results in this section. Additionally, we will show other important inequalities such as the Cauchy–Schwarz, the Paley–Zygmund, and the median–mean inequalities.

First, we will demonstrate the Markov inequality. The Markov inequality upper bounds the probability that a positive random variable images exceeds a certain threshold in terms of the expectation of images . This inequality is very simple but surprisingly powerful, since it is often much easier to upper bound the expectation than the probability of some special event.


Theorem 3.11 (Markov inequality)

For a real random variable images such that images and any images , we have

(3.28) equation



Proof

We observe that images . Taking the expectations of both sides of this inequality, we obtain the claim.


A few special cases of the Markov inequality have their own names, such as Chernoff bounds, to be used in Theorem 11.18 .

Using the Markov inequality, we may demonstrate the Borel–Cantelli lemma. The Borel–Cantelli lemma states that if the sum of probabilities of some events images is finite, then almost surely only finitely many of these events happen simultaneously. That is, we have images almost surely, where images are the characteristic functions.


Theorem 3.12 (Borel–Cantelli lemma)

If images for a family of events images then

(3.29) equation



Proof

Fix an images . By the Markov inequality ( Theorem 3.11 ) and the monotone convergence ( Theorem 3.8 ), we obtain

(3.30) equation

Since images can be chosen , whence the claim follows.


The Borel–Cantelli lemma is highly useful for proving that some limiting events hold almost surely. We note that some important almost sure propositions probably cannot be proved using the Borel–Cantelli lemma, such as the martingale convergence theorem ( Theorem 3.23 ) and the Birkhoff ergodic theorem ( Theorem 4.6 ).

The next fact to be presented is the Jensen inequality for convex functions. For this aim, let us recall the definition of convex and concave functions.


Definition 3.12 (Convex and concave functions)

For an open interval images , a real function images is called convex if

(3.31) equation

for images , images , and images . Moreover, images is called strictly convex if

(3.32) equation

for images , images , images , and images . We say that function images is concave if images is convex, whereas images is strictly concave if images is strictly convex.


A practical criterion of convexity is as follows:


Theorem 3.13

A twice differentiable function images is convex if its second derivative is positive, images for all images , and strictly convex if its second derivative is strictly positive, images for all images .



Proof

Let images be the first derivative of images . By the mean value theorem for any images there exists such an images that

(3.33) equation

Moreover, for any images there also exists such an images that

(3.34) equation

For any images , we have images , where images and images . Moreover, by the above two displayed inequalities, there exist images such that

(3.35) equation

Hence if images for all images , then images is convex, whereas if images for all images , then images is strictly convex.


According to the above criterion, some examples of strictly convex functions are images , images , and images .

The Jensen inequality states that the expectation of a convex function is greater than the function of the expected argument.


Theorem 3.14 (Jensen inequality)

If images is a convex measurable function, images is a real random variable, and images and images are Defined, then

(3.36) equation

whereas for a strictly convex function images , the equality holds if and only if images is constant almost surely.



Proof

We recall that if function images is convex, then for any images there exists a linear function images such that images and images (Boyd and Vandenberghe, 2004 ). In particular, if we fix images , then we obtain

(3.37) equation

Additionally, we recall that if function images is strictly convex, then the linear function images satisfies images if and only if images (Boyd and Vandenberghe, 2004 ). Consequently, images implies

(3.38) equation

Thus, random variable images is positive and its expectation is zero. But by Theorem 3.6 , this implies images almost surely. Using the mentioned property of a strictly convex function, we obtain images almost surely.


The Markov inequality, the Borel–Cantelli lemma, and the Jensen inequality interact quite often. In Section 3.4 , we will encounter an application of these three propositions which matters for information theory.

Yet another important inequality in probability is the Cauchy–Schwarz inequality.


Theorem 3.15 (Cauchy–Schwarz inequality)

For real , we have

(3.39) equation



Proof

Let us put images . We have

(3.40) equation

Rearranging the terms yields the claim.


A useful converse of the Markov inequality is the Paley–Zygmund inequality, which follows easily by the Cauchy–Schwarz inequality. For a real random variable images , let us denote the variance

(3.41) equation

Let us also write images for images and images for images .


Theorem 3.16 (Paley–Zygmund inequality)

For a real random variable images and a real number images , we have

(3.42) equation



Proof

We observe that

(3.43) equation

by the Cauchy–Schwarz inequality ( Theorem 3.15 ). Rearranging the terms yields the claim.


A special case of the Paley–Zygmund inequality is the median‐mean inequality. Let us denote the (upper) median of a real random variable images ,

(3.44) equation

The right inequality in ( 3.44 ) is left as a simple exercise. Since, by definition, images for any images , then inequality images follows by the countable additivity of probability. With this, we obtain:


Theorem 3.17 (Median‐mean inequality)

For a real random variable images we have

(3.45) equation



Proof

To prove the . Consequently, by the Paley–Zygmund inequality ( Theorem 3.16 ),

(3.46) equation

which is a contradiction indeed.


The median‐mean inequality will be used in the proof of Theorem 8.6 .

3.4 Semidistributions

In this section, we will present a simple application of the Jensen inequality, Markov inequality, and the Borel–Cantelli lemma – introduced in Section 3.3 . The results obtained in this section, called the Gibbs and the Barron inequalities, will be used later in this book to derive some important results in information theory.

Suppose that we have a discrete random variable images with an unknown probability distribution images . Suppose moreover that we have a certain model images of the true probability images . For applications such as data compression, to be treated in Chapter 7 , it is convenient to consider a more general case when probabilities under the model images do not sum up to one. Thus, let us consider this definition.


Definition 3.13 (Probability distributions and semidistributions)

A discrete probability distribution images on a countable set images is a function such that images for each images and images . In contrast, an incomplete discrete distribution or a semidistribution images on a countable set images is a function such that images for each images and images .


In the following, we will be interested in some general bounds for the loss we incur when we use an arbitrary semidistribution images instead of the true distribution images . Quantities images and images will be called pointwise entropies. It turns out that, both in expectation and almost surely with respect to measure images , the pointwise entropy images is greater than the pointwise entropy images .

To state the first result, it is convenient to define an important functional called the Kullback–Leibler (KL) divergence.


Definition 3.14 (KL divergence)

Kullback–Leibler is defined as

(3.47) equation


Let us observe that for images , the Kullback–Leibler divergence images equals the expectation images . Subsequently, using the Jensen inequality, we may prove that the Kullback–Leibler divergence is positive.


Theorem 3.18 (Gibbs inequality)

For a probability distribution images and a semidistribution images on a countable set images , let images be a random variable such that images . We have

(3.48) equation

where the equality holds if and only if images .



Proof

By the Jensen inequality ( Theorem 3.14 ) for function images , we have

(3.49) equation

with an equality if and only if images .


Next, let us consider the event that the difference of pointwise entropies images is smaller than a certain number. We will show that the probability of this event is exponentially small. The formal result of this kind will be called the Barron inequality.


Theorem 3.19 (Barron inequality)

For a probability distribution images and a semidistribution images on a countable set images , let images be a random variable such that images . Then for any images , we have

(3.50) equation



Proof

By the Markov inequality ( Theorem 3.11 ), we have

(3.51) equation


There exists also a related almost sure statement, which applies the Borel–Cantelli lemma. This statement is not an inequality strictly speaking and we will call it the Barron lemma.


Theorem 3.20 (Barron lemma)

Let images be a stochastic process, where images for some countable set images . Let function images be a semidistribution on the set of strings images , i.e. images for all images and images . Let us write images . Then

(3.52) equation



Proof

By the Markov inequality ( Theorem 3.11 ), for any images , we obtain

(3.53) equation

Hence, by the Borel–Cantelli lemma ( Theorem 3.12 ), we obtain

(3.54) equation

for all but finitely many images almost surely. Since images was chosen arbitrarily, hence, follows the claim.


Gibbs and Barron inequalities are some fundamental inequalities in information theory. We will see several applications of them: in the discussion of entropy and mutual information in Chapter 5 , in the proof of the Shannon–McMillan–Breiman theorem ( Theorem 6.1 ), in the proof of the source coding inequality ( Theorem 7.6 ), and in the discussion of algorithmically random sequences ( Theorem 7.32 ). The Barron inequality was a part of the information‐theoretic folklore, see e.g. Chaitin ( 1975a ), until it was explicitly stated by Barron ( 1985b , theorem 3.1).

3.5 Conditional Probability

This section is devoted to a measure‐theoretic generalization of conditional probability. In the elementary probability calculus, we define the conditional probability of an event images given an event images as

(3.55) equation

the definition intentionally ‐fields.

To motivate further developments, for a partition images , let us introduce the following random variable

(3.56) equation

This random variable is a kind of an effective conditional probability of partition images . Precisely, it is a function of a point, and it returns the conditional probability given the minimal neighborhood of the point contained in images . If we would take finer and finer partitions images , we might expect that so constructed conditional probabilities images converge to a certain well‐defined random variable. This intuition is valid, but, for narrative reasons, we will first discuss the existence of the limit and show the convergence later.

We recall notation images for the intersection of all images ‐fields containing class images . Let us observe that random variable images has the following notable properties:

  1. images is images ‐measurable (i.e. it is constant on events images ).
  2. images for every set images .
  3. Function images satisfying conditions (1) and (2) is given almost uniquely, i.e. if conditions (1) and (2) are satisfied, then images equals the right‐hand side of ( 3.56 ) almost surely.
  4. Random variable images as a function of the first argument is a probability measure almost surely.

Whereas there are certain problems with generalizing property (4), properties (1)–(3) can be generalized by replacing images with an arbitrary sub‐ images ‐field on the probability space. This is a consequence of a general fact called the Radon–Nikodym theorem. The Radon–Nikodym theorem states that given a simple condition of measure domination, we may define the local density of one finite measure with respect to another finite measure. In the following, we will say that a measure images dominates measure images on a measurable space images , written images , if images implies images for all events images . Then, we have this general result.


Theorem 3.21 (Radon–Nikodym theorem)

If images and images are finite measures on a measurable space images and images , then there exists a real function images , called a Radon–Nikodym derivative or density, such that

  1. Function ‐measurable.

  2. For each images , we have

    (3.57) equation

Moreover, function images is given almost uniquely, i.e. any two functions satisfying conditions (1) and (2) are equal images ‐almost everywhere.



Proof

An elegant elementary proof can be found in Bradley ( 1989 ). For the standard proof using Hahn decomposition, see Billingsley ( 1979 , theorem 32.2).


Continuing the setting of the Radon–Nikodym theorem, let us introduce the following technical but useful notation:


Definition 3.15 (Domain restriction)

For a function images , we denote its restriction to a subdomain images as images .


Now, for a countable partition images , we can easily verify that identity

(3.58) equation

holds images ‐almost surely. Consider now the full domain images and images , i.e. the images ‐field images . We will show that the Radon–Nikodym derivative images at a point images can be interpreted as the limit of quotients images for an appropriate sequence of events images , where images . Namely, it suffices to take countable partitions

(3.59) equation

where the last relation follows by images ‐measurability of function images . Then we can easily verify that

(3.60) equation

Consider now finite measure images . If conditional probability at a point images can be intuitively seen as the limit of quotients images for some events images , where images , then maybe we can define it formally as the Radon–Nikodym derivative images . Let us observe that domination images holds for all events images since images . Thus, the following construction can be performed indeed.


Definition 3.16 (Conditional probability)

Let as

(3.61) equation


Making some simple remarks to the above definition, we note that

  1. images almost surely.
  2. images almost surely.
  3. images almost surely.
  4. images almost surely if images .

It is often convenient to treat the conditional probability as a special case of a more general object called the conditional expectation. Consider a random variable images , where images . The conditional expectation of images with respect to a countable partition images is defined as the random variable

(3.62) equation

We observe that images and images , so that we obtain equality images in particular.

Analogously to the conditional probability, we can define the conditional expectation of images with respect to images ‐field images at point images as an appropriate limit of quotients images for some events images , where images . Formally, the conditional expectation will be the Radon–Nikodym derivative images , where images . Again, domination images holds for all random variables images such that images .


Definition 3.17 (Conditional expectation)

Let images be a sub‐ images ‐field on a probability space images . For a real random variable images , where images and images , we define finite measure images and the conditional expectation of images with respect to images as

(3.63) equation

If images , where images and images , then the conditional expectation is defined as

(3.64) equation


Now, we note the following identities (proofs left as an exercise):

  1. images almost surely.
  2. images almost surely.
  3. images almost surely.

Subsequently, we would like to generalize the concept of increasingly finer images ‐fields, such as images , where images are the countable partitions defined in ( 3.59 ). The respective concept is called a filtration.


Definition 3.18 (Filtration)

A sequence of images ‐fields images , where images is called a filtration if images for images . For a filtration images , we also define images ‐fields images and images .


We can see that an example of a filtration is sequence images , where images are the partitions defined in ( 3.59 ). We also note the following general fact.


Theorem 3.22

Let images . We have images almost surely.



Proof

Left as an exercise.


In the case of filtration images , we have observed that the Radon–Nikodym derivatives with respect to the increasingly finer partitions converge to a well‐defined limit. It turns out that this property is more general. For a filtration images and a real random variable images such that images , the sequence of conditional expectations images is called a complete martingale. The following theorem states that any complete martingale does converge, which generalizes the property of filtration images .


Theorem 3.23 (Levy laws)

For a filtration images and a real random variable images such that images , we have

(3.65) equation

(3.66) equation



Proof

See Kallenberg ( 1997 , theorem 6.23).


In particular, for images and a filtration images , we obtain these special cases of Levy laws:

(3.67) equation

(3.68) equation

The full proof , we obtain

(3.69) equation

Hence, images almost surely for any images . On the other hand, it can be easily seen that images holds if and only if images for some images . Thus, limit images exists almost surely.

The conditional expectation satisfies many properties analogous to the unconditional expectation, such as the monotone convergence, the Fatou lemma, and the dominated convergence. There is also an analogue of the Jensen inequality.


Theorem 3.24 (Conditional Jensen inequality)

If images is a convex measurable function, images is a random real variable, and images and images are defined then

(3.70) equation



Proof

The proof is similar to the proof of Theorem 3.14 .


Let us also note that by equality images and Theorem 3.6 , we obtain the identities

(3.71) equation

(3.72) equation

Now, we proceed to somewhat more advanced topics concerning conditional probability. It may seem that conditional probability is a sort of a random probability measure almost surely, since it can be shown that:

  1. images almost surely for disjoint images ,
  2. images almost surely for disjoint images ,
  3. images almost surely for images ,
  4. images almost surely.

The formal concept of a random measure is, however, significantly stronger.


Definition 3.19 (Random measure)

We will say that function images is a random probability measure on measurable space images if images is a probability measure on the measurable space images for each images and each function images , where images , is a real random variable. Formally, the random measure images will be treated as a special case of a real stochastic process with the image space images .


In particular, if we have a finite field images , there is only a finite number of constraints to be satisfied so that conditional probability images be a measure for a given point images . Each of these constraints may fail on a subset of images 's that has null probability. Hence, we may conclude that conditional probability images for a finite field images is a random measure almost surely.

In general, the collection of conditional probabilities which form a random measure almost surely is called a regular conditional probability.


Definition 3.20 (Regular conditional probability)

We will say that conditional probability images is images ‐regular if we may choose some versions of conditional probabilities images so that function images is a images ‐measurable random probability measure. Conditional probability images is simply called regular if it is images ‐regular.


As we have shown in the previous paragraph, conditional probability images is images ‐regular for each finite field images . A less trivial result is as follows:


Theorem 3.25

If the probability space is countably generated, then conditional probability images is regular.



Proof

See Kallenberg ( 1997 , theorem 5.3) or Chow and Teicher ( 1978 , theorem 7.2.2). Formally, these theorems are stated for a Borel probability space images but any countably generated probability space images , where images , can be mapped via mapping

(3.73) equation

and we may define the random measure images .


Theorem 3.25 is sufficient for our applications, but let us mention that there exist probability spaces for which conditional probability is not regular [Doob, 1953 , page 624; Billingsley, 1979 , exercise 33.13].

Regular conditional probability admits a natural interpretation of conditional expectation as the plain expectation with respect to the conditional random measure. The following fact will be used later.


Theorem 3.26

If conditional probability images is regular and images , then

(3.74) equation



Proof

If images , then images almost surely. By linearity of integral, the almost sure equality images can be generalized to simple random variables and, hence, by the monotone convergence ( Theorem 3.8 ) – to random variables such that images exists .


In this way, identity images is tantamount for the regular conditional probability to so‐called disintegration formula

(3.75) equation

Recapitulating this section, conditional probability can be generalized to a function of elementary events and it satisfies intuitive properties, such as continuity and being a random probability measure when the probability space is not too large. We may be pretty sure that reasonable stochastic models for texts in natural language fall into this case.

3.6 Modes of Convergence

Another technical problem we need to discuss concerns convergence of random variables. There are two basic modes of convergence of random variables: convergence in probability and almost sure convergence.


Definition 3.21 (Convergence in probability and almost surely)

We we have

(3.76) equation

In contrast, we say that a sequence of real random variables images converges to a real random variable images almost surely if

(3.77) equation


The following theorem asserts that the almost sure convergence is a stronger property than the convergence in probability. Conversely, convergence in probability implies almost sure convergence of a subsequence of the random variables.


Theorem 3.27 (Riesz theorem)

If a sequence of random variables images converges to images almost surely then images converges to images in probability. Conversely, if images converges to images in probability, then there exist a subsequence images such that images converges to images almost surely.



Proof

Let us consider metric

(3.78) equation

By the Markov inequality ( Theorem 3.11 ), we have

(3.79) equation

Hence, images converges to images in probability if and only if

(3.80) equation

In contrast, the almost sure convergence is equivalent to

(3.81) equation

Condition ( 3.81 ) implies ( 3.80 ) by the dominated convergence ( Theorem 3.10 ). Conversely, if ( 3.80 ) holds true, then for a subsequence of natural numbers images we have

(3.82) equation

where the equality holds by the monotone convergence ( Theorem 3.8 ). Hence,

(3.83) equation

which by Theorem 3.6 implies images almost surely.


Theorem 3.27 will ‐fields. Another perspective onto convergence of random variables will be provided by Theorem 5.37 . That theorem, via the Fano inequality ( Theorem 5.36 ), links convergence in probability with convergence of some conditional entropies to zero.

3.7 Complete Spaces

This section contains a few technical but also useful results. First, we will discuss negligible events and complete probability spaces. Second, we will show that any event in the complete images ‐field generated by a field can be approximated by a sequence of events belonging to the field. Third, we will show that for each sub‐ images ‐field of a countably generated probability space there exists a countably generated sub‐ images ‐field which is almost surely equal.

To proceed further, let us define negligible events.


Definition 3.22 (Negligible event)

An event images is called negligible with respect to a probability measure images if images and images for some images . The set of all negligible events will be denoted as images .


By images we will denote the complete images ‐field generated by an arbitrary class images , i.e. images is the intersection of all images ‐fields images such that both images and images . We note that completion images depends on the probability measure images . Especially, we need to be careful when we consider a measurable space images with multiple probability measures living on it. Let images be some class of probability measures on the measurable space images . In this case, we may define a restricted completion

(3.84) equation

Obviously, images for each probability measure images .

Sometimes it is convenient to work with probability spaces which are complete in the following sense:


Definition 3.23 (Complete probability space)

A probability space images is called complete if images .


Usually, the default probability spaces which we will work with are not complete. In any case, however, there exists is a unique extension of any incomplete probability space images to a complete probability space images such that images (Billingsley, 1979 , exercise .

Using symmetric difference (2.32) and its properties discussed in Problem 4, we will show now that any event in the complete images ‐field generated by a field can be approximated by a sequence of events belonging to the field.


Theorem 3.28 (Approximation of complete ‐fields)

For any field images and any event images , there is a sequence of events images such that

(3.85) equation



Proof

Denote the class of sets images that satisfy ( 3.85 ) as images . It is sufficient to show that images is a complete images ‐field that contains the field images . Clearly, all images satisfy ( 3.85 ) so images . Now, we verify the conditions for images to be a images ‐field.

  1. We have images . Hence, images .

  2. For images , consider images such that images . Then images , where images . Hence images .

  3. For images , consider events images such that images . Then

    (3.86) equation

    Moreover,

    (3.87) equation

    Hence,

    (3.88) equation

    which tends to 0 for images going to infinity. Since images , we thus obtain that images .

Completeness .


Theorem 3.28 will be used to prove Theorem 3.29 in this section and to demonstrate two propositions in Section 4.3 , concerning some effective criteria for ergodic and mixing processes, as well as Theorem 5.23 , which concerns Shannon information measures for arbitrary fields.

Let us recall that images stands for the set of rational numbers. To conclude this section, we will show that for each sub‐ images ‐field of a countably generated probability space, there exists a countably generated sub‐ images ‐field which is almost surely equal.


Theorem 3.29

For a countably generated probability space images , for each images ‐field images , there exists a countably generated images ‐field images such that images . In particular, if images for a countable field images , then we may choose images , where class

(3.89) equation

is countable.



Proof

Let images be a countable field such that images . Let us define a countable class images through ( 3.89 ). We have images . Hence, to prove the claim, it is sufficient to show that images .

Let us take a images . Let images satisfy condition ( 3.85 ). We observe in particular

(3.90) equation

By the conditional Jensen inequality ( Theorem 3.24 ), we obtain

(3.91) equation

so in view of the previous observation

(3.92) equation

In consequence, by the Markov inequality ( Theorem 3.11 ), sequence images converges in probability to images . Thus, by the Riesz theorem ( Theorem 3.27 ), a subsequence of images converges to images almost surely. But all random variables images are images ‐measurable. Hence, the almost sure limit, which is images , must be images ‐measurable. Therefore, images , which proves the requested claim.


Theorem 3.29 will ‐fields of a stationary process. The above elementary proofs of Theorems 3.28 and 3.29 are due to Krzysztof Oleszkiewicz (private communication).

Problems

  1. 3.1 Using the Cauchy–Schwarz inequality, prove that

    (3.93) equation

    This proposition is called the Chung–Erdős inequality. It usually yields stronger bounds than the Bonferroni inequality (2.31).

  2. 3.2 Prove the right inequality in ( 3.44 ).

  3. 3.3 Prove Theorem 3.22 .

  4. 3.4 For an interval images , an extended real function images is called convex if it satisfies condition ( 3.31 ) for the extended real number arithmetic. Let us also say that filtration images is a filtration of images , written images , when images . The setting of the problem is as follows: Let images be a positive, continuous, and convex measurable function, let images be finite measures on images and let images . Show that

    (3.94) equation

    where the sequence on the left‐hand side is increasing.

    Hint : Use the Fatou lemma and the Jensen inequality.

  5. 3.5 Show that the diagonal images is an element of the product Borel images ‐field images .

  6. 3.6 Let images be the Lebesgue measure on the unit interval images . Let images be a uniformly continuous function, i.e.

    (3.95) equation

    Show that the Lebesgue integral is equal to the Riemann integral, i.e.

    (3.96) equation

  7. 3.7 Let images be the Lebesgue measure on the unit interval images and let images be a finite measure on the same domain. Consider the distribution function images . Suppose that function images is differentiable, i.e. there exists derivative

    (3.97) equation

    and images is continuous. Show that images and the Radon–Nikodym derivative is images almost surely.

  8. 3.8 Let images be a real‐valued IID process, where images and images .

    1. Prove the Hoeffding inequality

      (3.98) equation

      Hint : Show first images for images and images . Then apply the Markov inequality

      (3.99) equation

    2. Using the Hoeffding inequality, prove the strong law of large numbers

      (3.100) equation

  9. 3.9 Consider a probability space images and for a images ‐field images define the random conditional probability measure images . Show that images almost surely if images is finite. Is it also true for an infinite images ?