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
as a single real number
. Except for countably many cases such as binary numbers
, 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
. 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
‐fields and the Lebesgue measure. The Borel
‐fields are some natural
‐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
is the probability distribution of an infinite sequence of fairly tossed binary digits
encoded as the real number
.
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
given an event
is defined as
. 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
‐fields by their generating fields. Second, we discuss completion of
‐fields with events of outer measure zero. This discussion leads us to finally show that for each sub‐
‐field of a countably generated probability space there exists a countably generated sub‐
‐field which is almost surely equal.
3.1 Borel ‐Fields and a Fair Coin
In this section, we will construct Borel
‐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
be the set of real numbers. Let us observe that the class of closed intervals
(3.1)
where
and
, is a
‐system. The Borel
‐field is a
‐field generated by this
‐system.
Definition 3.1 ( Borel
‐field )
The Borel is defined as
(3.2)
In particular, all singletons
, where
, belong to the Borel
‐field
.
It is also convenient to consider the extended set of real numbers
and the unit interval
. For these sets, we can define respective Borel
‐fields as well.
Definition 3.2 ( Borel
‐fields )
The Borel
‐fields on sets
and
are defined as
(3.3)
(3.4)
The length of an interval can be defined as
. In fact, the length of intervals can be extended to a measure. This measure, also denoted as
, is called the Lebesgue measure.
Theorem 3.1 (Lebesgue measure)
There is a unique measure
on the measurable space
such that
for all real numbers
.
Proof
See Billingsley ( 1979 , sections 2 and 3).
The Lebesgue measure
is the first measure ever constructed. Let us note that this measure cannot be extended to the
‐field
and the Borel
‐field
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
restricted to the measurable space
is a probability measure.
Proof
Clearly, we have
.
Now, we can also define (extended) real random variables.
Definition 3.3 (Real random variable)
A real random variable
is a random variable with an image space
.
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
is a collection of real random variables
indexed by certain indices
sharing the same image space
. The image space of process
is pair
, where
is the
‐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
on a probability space
, consisting of simple random variables
with an image space
. Since binary digits
are called bits, random variables
will be called random bits.
Definition 3.5 (Random bit)
A simple random variable
will be called a random bit.
A sequence of random bits is called a fair‐coin process when the probability measure of sequence
is the product measure of the probability distributions of random bits
distributed uniformly on set
.
Definition 3.6 (Fair‐coin process)
A sequence of random bits
is called a fair‐coin process when
(3.5)
for all strings
.
Let us introduce now function
that maps infinite binary expansions of real numbers to the corresponding real numbers. Formally, we have
(3.6)
for
. It can .
Consequently, we may ask how the distributions of a real random variable
and its binary expansion
can be linked in some simple cases. It turns out that random variable
is distributed according to the Lebesgue measure if and only if its binary expansion
is a fair‐coin process.
Theorem 3.3
A sequence of random bits
is a fair‐coin process if and only if the probability distribution of random variable
, where
is defined in ( 3.6 ), is the Lebesgue measure on space
.
Proof
Consider cylinder sets
defined as
. These cylinder sets form a
‐system which generates the preimage space of process
, which contains the preimage space of random variable
. By the
‐
theorem ( Theorem 2.3 ), it is sufficient to show that probability
for
being a fair‐coin process equals to probability
if the distribution of
is the Lebesgue measure. In fact, if the distribution of random variable
is the Lebesgue measure, then
since the set of rational numbers
is countable. Then the unique binary expansion
exists almost surely and since
, we can compute that
(3.7)
Hence
, which is the same as for the fair‐coin process
.
Measurable space
with the Lebesgue measure
, which we will call the Lebesgue probability space
, 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
is called nonatomic if for each set
and
, there exists a set
such that
and
.
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
is nonatomic.
Proof
See Billingsley ( 1979 , problem 2.17).
Sometimes it is convenient to regard nonatomicity as a property of a particular sub‐
‐field rather than of the whole probability space.
Definition 3.8 (Nonatomic
‐field)
A
‐field
is called nonatomic with respect to a probability measure
if probability space
is nonatomic.
In fact, Theorem 3.3 can be used to provide a general characterization of nonatomic
‐fields. Namely, an arbitrary
‐field contains a nonatomic sub‐
‐field if and only if there lives some fair‐coin process on it.
Theorem 3.5
A
‐field
contains a nonatomic sub‐
‐field if and only if there exists an
‐measurable fair‐coin process
.
Proof
First, let
be a nonatomic sub‐
‐field of
. For any
and
, there exists
such that
and
. This property can be used to construct a family of nested sets
indexed by binary words
such that
for the empty string
,
, and
. Next, for each
, we define
, where
. Process
is a fair‐coin process.
As for the converse, let
be an
‐measurable fair‐coin process. We construct an
‐measurable random variable
. By Theorem 3.3 , the distribution of
is the Lebesgue measure on interval
. Hence, by Theorem 3.4 ,
‐field
is nonatomic and contained in
‐field
.
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
, which is known as the Riemann integral
. Measure theory builds on this idea but extends the concept of the integral to arbitrary measurable functions, such as the Dirichlet function
(3.8)
In fact, we can define the integral of this function so that
. 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
is defined as the least real number
such that
for all
. In contrast, infimum
is the largest real number
such that
for all
.
Definition 3.9 (Lebesgue integral)
For a real random variable
on a finite measure space
, we define the Lebesgue integral
as follows:
-
If
and
is a simple random variable: (3.9)
-
If
and
is not a simple random variable: (3.10)
where the supremum ranges over all real‐valued simple random variables
such that
. -
If
, where
and either
or
: (3.11)
Some comments to the above definition are due. For a simple random variable, if
, then the Lebesgue integral is finite,
. If
and
, then the Lebesgue integral is infinite,
. In contrast, if both
and
, then the Lebesgue integral
is not defined.
A real random variable
is called integrable (with respect to a measure
) if
. It can be shown that the Lebesgue integral is a linear function of integrable random variables, namely,
(3.12)
for
and integrable random variables
and
.
Now, we will introduce is defined as
(3.13)
Subsequently, we denote the integral over a measurable subset
as
(3.14)
Traditionally, the integral with respect to the Lebesgue measure is denoted like the Riemann integral,
(3.15)
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
, we will write
(3.16)
and we will call this integral the expectation of the random variable
.
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
, we will say that
holds
‐almost everywhere (or simply – almost surely – for a probability measure
) if
(3.17)
In this case, we also say synonimically that “
holds for
‐almost all
”.
Let us make this simple observation.
Theorem 3.6
If
and
, then
holds
‐almost everywhere.
Proof
We will prove the converse. Suppose that
for
. By the countable additivity of
, we have
. Thus, there exists an
such that
. Hence,
.
In the above proof, we have used in fact the Markov inequality
, 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)
whereas the lower limit of this sequence is defined as
(3.19)
If the upper and the lower limit are equal,
, then we say that the (proper) limit
exists, and we define
, whereas otherwise limit
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
,
(3.20)
(3.21)
It turns out that limits of sequences of real random variables are measurable.
Theorem 3.7
Let
be a sequence of real random variables. Then supremum
, infimum
, upper limit
, and lower limit
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
be a sequence of positive,
, and growing,
, real random variables. Then
(3.22)
Proof
See Billingsley ( 1979 , theorem 16.2).
By the above result, if
and
, then function
satisfies countable additivity and hence it is also a finite measure.
Theorem 3.9 (Fatou lemma)
Let
be , real random variables. Then
(3.23)
Proof
Denote
. We have
and
. Hence, by Theorem 3.8 , we have
(3.24)
Inequality ( 3.23 ) can be strict. For example, for the measurable space
and the counting measure
, where
is the cardinality of set
, let us put
. Then we obtain
and
so
.
Theorem 3.10 (Lebesgue dominated convergence)
Let
be a sequence of real random variables which satisfy
, where
. If there exists limit
, then
(3.25)
Proof
Let
. We have
. Hence, by Theorem 3.9 , we obtain
(3.26)
Thus,
(3.27)
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
exceeds a certain threshold in terms of the expectation of
. 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
such that
and any
, we have
(3.28)
Proof
We observe that
. 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
is finite, then almost surely only finitely many of these events happen simultaneously. That is, we have
almost surely, where
are the characteristic functions.
Theorem 3.12 (Borel–Cantelli lemma)
If
for a family of events
then
(3.29)
Proof
Fix an
. By the Markov inequality ( Theorem 3.11 ) and the monotone convergence ( Theorem 3.8 ), we obtain
(3.30)
Since
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
, a real function
is called convex if
(3.31)
for
,
, and
. Moreover,
is called strictly convex if
(3.32)
for
,
,
, and
. We say that function
is concave if
is convex, whereas
is strictly concave if
is strictly convex.
A practical criterion of convexity is as follows:
Theorem 3.13
A twice differentiable function
is convex if its second derivative is positive,
for all
, and strictly convex if its second derivative is strictly positive,
for all
.
Proof
Let
be the first derivative of
. By the mean value theorem for any
there exists such an
that
(3.33)
Moreover, for any
there also exists such an
that
(3.34)
For any
, we have
, where
and
. Moreover, by the above two displayed inequalities, there exist
such that
(3.35)
Hence if
for all
, then
is convex, whereas if
for all
, then
is strictly convex.
According to the above criterion, some examples of strictly convex functions are
,
, and
.
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
is a convex measurable function,
is a real random variable, and
and
are Defined, then
(3.36)
whereas for a strictly convex function
, the equality holds if and only if
is constant almost surely.
Proof
We recall that if function
is convex, then for any
there exists a linear function
such that
and
(Boyd and Vandenberghe, 2004 ). In particular, if we fix
, then we obtain
(3.37)
Additionally, we recall that if function
is strictly convex, then the linear function
satisfies
if and only if
(Boyd and Vandenberghe, 2004 ). Consequently,
implies
(3.38)
Thus, random variable
is positive and its expectation is zero. But by Theorem 3.6 , this implies
almost surely. Using the mentioned property of a strictly convex function, we obtain
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)
Proof
Let us put
. We have
(3.40)
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
, let us denote the variance
(3.41)
Let us also write
for
and
for
.
Theorem 3.16 (Paley–Zygmund inequality)
For a real random variable
and a real number
, we have
(3.42)
Proof
We observe that
(3.43)
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
,
(3.44)
The right inequality in ( 3.44 ) is left as a simple exercise. Since, by definition,
for any
, then inequality
follows by the countable additivity of probability. With this, we obtain:
Theorem 3.17 (Median‐mean inequality)
For a real random variable
we have
(3.45)
Proof
To prove the . Consequently, by the Paley–Zygmund inequality ( Theorem 3.16 ),
(3.46)
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
with an unknown probability distribution
. Suppose moreover that we have a certain model
of the true probability
. 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
do not sum up to one. Thus, let us consider this definition.
Definition 3.13 (Probability distributions and semidistributions)
A discrete probability distribution
on a countable set
is a function such that
for each
and
. In contrast, an incomplete discrete distribution or a semidistribution
on a countable set
is a function such that
for each
and
.
In the following, we will be interested in some general bounds for the loss we incur when we use an arbitrary semidistribution
instead of the true distribution
. Quantities
and
will be called pointwise entropies. It turns out that, both in expectation and almost surely with respect to measure
, the pointwise entropy
is greater than the pointwise entropy
.
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)
Let us observe that for
, the Kullback–Leibler divergence
equals the expectation
. Subsequently, using the Jensen inequality, we may prove that the Kullback–Leibler divergence is positive.
Theorem 3.18 (Gibbs inequality)
For a probability distribution
and a semidistribution
on a countable set
, let
be a random variable such that
. We have
(3.48)
where the equality holds if and only if
.
Proof
By the Jensen inequality ( Theorem 3.14 ) for function
, we have
(3.49)
with an equality if and only if
.
Next, let us consider the event that the difference of pointwise entropies
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
and a semidistribution
on a countable set
, let
be a random variable such that
. Then for any
, we have
(3.50)
Proof
By the Markov inequality ( Theorem 3.11 ), we have
(3.51)
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
be a stochastic process, where
for some countable set
. Let function
be a semidistribution on the set of strings
, i.e.
for all
and
. Let us write
. Then
(3.52)
Proof
By the Markov inequality ( Theorem 3.11 ), for any
, we obtain
(3.53)
Hence, by the Borel–Cantelli lemma ( Theorem 3.12 ), we obtain
(3.54)
for all but finitely many
almost surely. Since
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
given an event
as
(3.55)
the definition intentionally ‐fields.
To motivate further developments, for a partition
, let us introduce the following random variable
(3.56)
This random variable is a kind of an effective conditional probability of partition
. Precisely, it is a function of a point, and it returns the conditional probability given the minimal neighborhood of the point contained in
. If we would take finer and finer partitions
, we might expect that so constructed conditional probabilities
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
for the intersection of all
‐fields containing class
. Let us observe that random variable
has the following notable properties:
-
is
‐measurable (i.e. it is constant on events
). -
for every set
. -
Function
satisfying conditions (1) and (2) is given almost uniquely, i.e. if conditions (1) and (2) are satisfied, then
equals the right‐hand side of ( 3.56 ) almost surely. -
Random variable
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
with an arbitrary sub‐
‐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
dominates measure
on a measurable space
, written
, if
implies
for all events
. Then, we have this general result.
Theorem 3.21 (Radon–Nikodym theorem)
If
and
are finite measures on a measurable space
and
, then there exists a real function
, called a Radon–Nikodym derivative or density, such that
-
Function ‐measurable.
-
For each
, we have (3.57)
Moreover, function
is given almost uniquely, i.e. any two functions satisfying conditions (1) and (2) are equal
‐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
, we denote its restriction to a subdomain
as
.
Now, for a countable partition
, we can easily verify that identity
(3.58)
holds
‐almost surely. Consider now the full domain
and
, i.e. the
‐field
. We will show that the Radon–Nikodym derivative
at a point
can be interpreted as the limit of quotients
for an appropriate sequence of events
, where
. Namely, it suffices to take countable partitions
(3.59)
where the last relation follows by
‐measurability of function
. Then we can easily verify that
(3.60)
Consider now finite measure
. If conditional probability at a point
can be intuitively seen as the limit of quotients
for some events
, where
, then maybe we can define it formally as the Radon–Nikodym derivative
. Let us observe that domination
holds for all events
since
. Thus, the following construction can be performed indeed.
Definition 3.16 (Conditional probability)
Let as
(3.61)
Making some simple remarks to the above definition, we note that
-
almost surely. -
almost surely. -
almost surely. -
almost surely if
.
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
, where
. The conditional expectation of
with respect to a countable partition
is defined as the random variable
(3.62)
We observe that
and
, so that we obtain equality
in particular.
Analogously to the conditional probability, we can define the conditional expectation of
with respect to
‐field
at point
as an appropriate limit of quotients
for some events
, where
. Formally, the conditional expectation will be the Radon–Nikodym derivative
, where
. Again, domination
holds for all random variables
such that
.
Definition 3.17 (Conditional expectation)
Let
be a sub‐
‐field on a probability space
. For a real random variable
, where
and
, we define finite measure
and the conditional expectation of
with respect to
as
(3.63)
If
, where
and
, then the conditional expectation is defined as
(3.64)
Now, we note the following identities (proofs left as an exercise):
-
almost surely. -
almost surely. -
almost surely.
Subsequently, we would like to generalize the concept of increasingly finer
‐fields, such as
, where
are the countable partitions defined in ( 3.59 ). The respective concept is called a filtration.
Definition 3.18 (Filtration)
A sequence of
‐fields
, where
is called a filtration if
for
. For a filtration
, we also define
‐fields
and
.
We can see that an example of a filtration is sequence
, where
are the partitions defined in ( 3.59 ). We also note the following general fact.
Theorem 3.22
Let
. We have
almost surely.
Proof
Left as an exercise.
In the case of filtration
, 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
and a real random variable
such that
, the sequence of conditional expectations
is called a complete martingale. The following theorem states that any complete martingale does converge, which generalizes the property of filtration
.
Theorem 3.23 (Levy laws)
For a filtration
and a real random variable
such that
, we have
(3.65)
(3.66)
Proof
See Kallenberg ( 1997 , theorem 6.23).
In particular, for
and a filtration
, we obtain these special cases of Levy laws:
(3.67)
(3.68)
The full proof , we obtain
(3.69)
Hence,
almost surely for any
. On the other hand, it can be easily seen that
holds if and only if
for some
. Thus, limit
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
is a convex measurable function,
is a random real variable, and
and
are defined then
(3.70)
Proof
The proof is similar to the proof of Theorem 3.14 .
Let us also note that by equality
and Theorem 3.6 , we obtain the identities
(3.71)
(3.72)
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:
-
almost surely for disjoint
, -
almost surely for disjoint
, -
almost surely for
, -
almost surely.
The formal concept of a random measure is, however, significantly stronger.
Definition 3.19 (Random measure)
We will say that function
is a random probability measure on measurable space
if
is a probability measure on the measurable space
for each
and each function
, where
, is a real random variable. Formally, the random measure
will be treated as a special case of a real stochastic process with the image space
.
In particular, if we have a finite field
, there is only a finite number of constraints to be satisfied so that conditional probability
be a measure for a given point
. Each of these constraints may fail on a subset of
's that has null probability. Hence, we may conclude that conditional probability
for a finite field
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
is
‐regular if we may choose some versions of conditional probabilities
so that function
is a
‐measurable random probability measure. Conditional probability
is simply called regular if it is
‐regular.
As we have shown in the previous paragraph, conditional probability
is
‐regular for each finite field
. A less trivial result is as follows:
Theorem 3.25
If the probability space is countably generated, then conditional probability
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
but any countably generated probability space
, where
, can be mapped via mapping
(3.73)
and we may define the random measure
.
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
is regular and
, then
(3.74)
Proof
If
, then
almost surely. By linearity of integral, the almost sure equality
can be generalized to simple random variables and, hence, by the monotone convergence ( Theorem 3.8 ) – to random variables such that
exists .
In this way, identity
is tantamount for the regular conditional probability to so‐called disintegration formula
(3.75)
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)
In contrast, we say that a sequence of real random variables
converges to a real random variable
almost surely if
(3.77)
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
converges to
almost surely then
converges to
in probability. Conversely, if
converges to
in probability, then there exist a subsequence
such that
converges to
almost surely.
Proof
Let us consider metric
(3.78)
By the Markov inequality ( Theorem 3.11 ), we have
(3.79)
Hence,
converges to
in probability if and only if
(3.80)
In contrast, the almost sure convergence is equivalent to
(3.81)
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
we have
(3.82)
where the equality holds by the monotone convergence ( Theorem 3.8 ). Hence,
(3.83)
which by Theorem 3.6 implies
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
‐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‐
‐field of a countably generated probability space there exists a countably generated sub‐
‐field which is almost surely equal.
To proceed further, let us define negligible events.
Definition 3.22 (Negligible event)
An event
is called negligible with respect to a probability measure
if
and
for some
. The set of all negligible events will be denoted as
.
By
we will denote the complete
‐field generated by an arbitrary class
, i.e.
is the intersection of all
‐fields
such that both
and
. We note that completion
depends on the probability measure
. Especially, we need to be careful when we consider a measurable space
with multiple probability measures living on it. Let
be some class of probability measures on the measurable space
. In this case, we may define a restricted completion
(3.84)
Obviously,
for each probability measure
.
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
is called complete if
.
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
to a complete probability space
such that
(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
‐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
and any event
, there is a sequence of events
such that
(3.85)
Proof
Denote the class of sets
that satisfy ( 3.85 ) as
. It is sufficient to show that
is a complete
‐field that contains the field
. Clearly, all
satisfy ( 3.85 ) so
. Now, we verify the conditions for
to be a
‐field.
-
We have
. Hence,
. -
For
, consider
such that
. Then
, where
. Hence
. -
For
, consider events
such that
. Then (3.86)
Moreover,
(3.87)
Hence,
(3.88)
which tends to 0 for
going to infinity. Since
, we thus obtain that
.
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
stands for the set of rational numbers. To conclude this section, we will show that for each sub‐
‐field of a countably generated probability space, there exists a countably generated sub‐
‐field which is almost surely equal.
Theorem 3.29
For a countably generated probability space
, for each
‐field
, there exists a countably generated
‐field
such that
. In particular, if
for a countable field
, then we may choose
, where class
(3.89)
is countable.
Proof
Let
be a countable field such that
. Let us define a countable class
through ( 3.89 ). We have
. Hence, to prove the claim, it is sufficient to show that
.
Let us take a
. Let
satisfy condition ( 3.85 ). We observe in particular
(3.90)
By the conditional Jensen inequality ( Theorem 3.24 ), we obtain
(3.91)
so in view of the previous observation
(3.92)
In consequence, by the Markov inequality ( Theorem 3.11 ), sequence
converges in probability to
. Thus, by the Riesz theorem ( Theorem 3.27 ), a subsequence of
converges to
almost surely. But all random variables
are
‐measurable. Hence, the almost sure limit, which is
, must be
‐measurable. Therefore,
, 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
-
3.1 Using the Cauchy–Schwarz inequality, prove that
(3.93)
This proposition is called the Chung–Erdős inequality. It usually yields stronger bounds than the Bonferroni inequality (2.31).
-
3.2 Prove the right inequality in ( 3.44 ).
-
3.3 Prove Theorem 3.22 .
-
3.4 For an interval
, an extended real function
is called convex if it satisfies condition ( 3.31 ) for the extended real number arithmetic. Let us also say that filtration
is a filtration of
, written
, when
. The setting of the problem is as follows: Let
be a positive, continuous, and convex measurable function, let
be finite measures on
and let
. Show that (3.94)
where the sequence on the left‐hand side is increasing.
Hint : Use the Fatou lemma and the Jensen inequality.
-
3.5 Show that the diagonal
is an element of the product Borel
‐field
. -
3.6 Let
be the Lebesgue measure on the unit interval
. Let
be a uniformly continuous function, i.e. (3.95)
Show that the Lebesgue integral is equal to the Riemann integral, i.e.
(3.96)
-
3.7 Let
be the Lebesgue measure on the unit interval
and let
be a finite measure on the same domain. Consider the distribution function
. Suppose that function
is differentiable, i.e. there exists derivative (3.97)
and
is continuous. Show that
and the Radon–Nikodym derivative is
almost surely. -
3.8 Let
be a real‐valued IID process, where
and
. -
Prove the Hoeffding inequality
(3.98)
Hint : Show first
for
and
. Then apply the Markov inequality (3.99)
-
Using the Hoeffding inequality, prove the strong law of large numbers
(3.100)
-
-
3.9 Consider a probability space
and for a
‐field
define the random conditional probability measure
. Show that
almost surely if
is finite. Is it also true for an infinite
?