Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Economics

4 Foundations of Probability

National Graduate Institute for Policy Studies (GRIPS)

Probability theory is one of the foundation stones of statistics and econometrics. We’ll start at the basics but move relatively quickly.

4.1Probabilistic Models

Probability is a technically demanding field. The main reason is that we want to assign probabilities to all manner of events. The set of possible events can be very large, and we need ways to manage this complexity. In this and the next few sections, we’ll review the basic machinery involved and why this machinery is necessary. At the same time, we’ll skip several details that would take us too far away from econometric theory. This will cost little in terms of understanding.

One concept worth mentioning before we start is countable and uncountable sets. In essence, a nonempty set SS is called countable if it is either finite or can be represented as a sequence, and uncountable if is not countable. In probability theory this distinction is important. A quick review can be found in Section 15.3.

4.1.1Sample Spaces and Events

In setting up a probabilistic model, we start with the notion of a sample space, which we think of as being a "list" of all possible outcomes in a given random experiment. In general, the sample space can be any nonempty set, and is usually denoted Ω\Omega. A typical element of Ω\Omega is denoted ω\omega. The general idea is that a realization of uncertainty will lead to the selection of a particular ω∈Ω\omega \in \Omega.

Once we have a sample space in place we can start to think about events. In the language of probability theory, an event is just a subset of Ω\Omega (with some caveats that will be addressed below). An event AA occurs whenever the individual ω∈Ω\omega \in \Omega selected in the random experiment happens to lie in AA. Figure 4.1 illustrates.

Outcomes and events

Figure 4.1:Outcomes and events

4.1.1.1Probabilities and Events

The next thing we need to do is to assign probabilities to outcomes. One idea is to start by assigning appropriate probabilities to every ω\omega in Ω\Omega. We could then derive the probability of events by looking at the probabilities attached to points contained in those events. It turns out, however, that this is not the best approach, at least if we want to consider uncountable Ω\Omega. Rather, the standard approach is to directly assign probabilities to subsets of Ω\Omega instead.

To see why the first approach is problematic, consider the dart throwing model in example 4.1.2, where Ω\Omega is the unit disk in R2\RR^2. Imagine that hitting any point in Ω\Omega is "equally likely." We can model this by assuming that the probability the dart lands in some region AA of the dartboard (some A⊂ΩA \subset \Omega) is simply proportional to the area of AA.

Consider now the probability of hitting some individual point ω∈Ω\omega \in \Omega. Intuitively, this should be less than the probability of hitting any region AA containing ω\omega. By choosing AA to be sufficiently small in area, we can show that the probability of hitting ω\omega is less than ϵ\epsilon for any given ϵ>0\epsilon > 0. We are forced to conclude that the probability of hitting the individual point ω\omega is zero.[1]

This example shows that in many sensible models the probability assigned to individual points in the sample space must be zero. If you reflect on this for even a moment you will agree that there is no way to build up a useful probabilistic model with such information alone. Hence we must assign probabilities directly to the events themselves.

4.1.1.2Choosing the Set of Events

Should we assign probabilities to every possible event—that is, to every possible subset of Ω\Omega? In the dart model above, we could say that the probability the dart lands in any region A⊂ΩA \subset \Omega is equal to the area of AA divided by the area of Ω\Omega itself, which is π\pi. In symbols,

P(A)=λ(A)πwhere  λ(A):= the area of set A \PP(A) = \frac{\lambda(A)}{\pi} \quad \text{where } \, \lambda(A) := \text{ the area of set } A \text{ }

This seems sensible enough. For example, if A=ΩA = \Omega, then P(A)=π/π=1\PP(A) = \pi/\pi = 1, as it should be. If AA is the top half of the dartboard then P(A)=0.5\PP(A) = 0.5, and so on.

Unfortunately, if we think carefully about this approach, some cracks start to appear. What exactly do we mean by "area of AA"? If AA is a circle, then its area is π\pi times the square of its radius. If AA is a rectangle, then its area is the product of its two sides. But how about the area of more general subsets of Ω\Omega?

It turns out that assigning area to all subsets of Ω\Omega in a consistent way is problematic. The reason is that Ω\Omega contains an awful lot of subsets, and some of them can be manipulated to exhibit very strange phenomena. (If you are curious, look up the Banach–Tarski paradox for a hint of the problems that can occur when we try to assign notions like area or volume to arbitrary sets.) We can dream up all sorts of strange events that confound our ability to construct a sensible probabilistic model.

Because of this, when Ω\Omega is uncountable, we usually resist taking the set of events to be all subsets of Ω\Omega. Instead, we take them to be some family of "well-behaved" subsets of Ω\Omega, denoted below by F\fF, and only assign probabilities to elements of F\fF.

There is of course a trade-off here. If we restrict F\fF to be a small fraction of the subsets of Ω\Omega, then assigning probabilities becomes easy and we can eliminate strange behavior. But if we make F\fF too small, then we might not be able to assign probabilities to events that we care about. For example, in the dartboard model, if we restrict F\fF to be the set of rectangles, then we can easily measure area and hence assign probabilities via (4.1). But this excludes interesting events such as the dart landing in the top half of the board.

How can we ensure that F\fF is large enough? To think about this in a systematic way, suppose that A∈FA \in \fF, and that P(A)\PP(A) is well-defined and represents the “probability of event AA.” Now, given that we can assign a probability to the event AA, it would be unfortunate if we couldn’t assign a probability to the event “not AA”, which corresponds to AcA^c. So normally we require that if A∈FA \in \fF, then Ac∈FA^c \in \fF. When this is true, we say that F\fF is “closed under the taking of complements.”

Further, suppose that AA and BB are both in F\fF, and we can assign probabilities to these events. In this case, it would be natural to think about the probability of the event “AA or BB”, which corresponds to A∪BA \cup B. So we also require that if AA and BB are in F\fF, then A∪BA \cup B is likewise in F\fF. We say that F\fF is “closed under the taking of unions.” In fact for technical reasons it turns out that we prefer F\fF to be closed under the taking of countable unions, which means that if A1,A2,…A_1, A_2, \ldots is a sequence of sets in F\fF, then its union is likewise in F\fF.

A set F\fF of subsets of a given set Ω\Omega that satisfies all these properties is called a σ\sigma-algebra. Formally, F\fF is a σ\sigma-algebra on Ω\Omega if

  1. A∈F  ⟹  Ac∈FA \in \fF \implies A^c \in \fF,

  2. A1,A2,…∈F  ⟹  ∪n=1∞An∈FA_1, A_2, \ldots \in \fF \implies \cup_{n=1}^{\infty} A_n \in \fF, and

  3. Ω∈F\Omega \in \fF.

Note that (i) and (iii) together imply that ∅∈F\emptyset \in \fF. In this context, the empty set ∅\emptyset is called the impossible event. In contrast, Ω\Omega is called the certain event because it always occurs (regardless of which outcome ω\omega is selected, ω∈Ω\omega \in \Omega is true by definition).

The σ\sigma-algebra of events F\fF we choose to pair with a given Ω\Omega can vary from problem to problem. There is however one particular σ\sigma-algebra that you should know at least something about, and that is the standard σ\sigma-algebra we use to pair with ordinary vector space RN\RR^N. This σ\sigma-algebra is called the Borel sets.

To understand the idea, consider the following: The property of F\fF being a σ\sigma-algebra seems to imply that F\fF is a relatively rich class of sets. After all, we can take complements and unions (and intersections too—see ex. 4.4.1) without ever leaving F\fF. However, there are trivial examples of σ\sigma-algebras, such as F:={∅,Ω}\fF := \{ \emptyset, \Omega\}. So if we want to pin down a large and useful class of events, the best way to proceed is to assume not only that F\fF is a σ\sigma-algebra, but also that F\fF contains some fundamental sets that we are likely to want to attach probabilities to, such as intervals and rectangles.

In this connection, the Borel subsets of RN\RR^N are defined as the smallest σ\sigma-algebra of subset of RN\RR^N that contains all rectangles in RN\RR^N. (See Section 15.1 if you wish to learn more about rectangles.) This definition turns out to be highly successful: Restricting attention to Borel sets does a great job of excluding the kind of strange behavior found in the Banach-Tarski paradox, and, moreover, every subset of RN\RR^N we need to deal with in day to day analysis is a Borel set. These include planes and hyperplanes, circles, spheres, polygons, finite sets, and sequences of points. In what follows we use B(RN)\bB(\RR^N) to represent the Borel sets of RN\RR^N.

4.1.2Probabilities

Now let’s take a σ\sigma-algebra of events as given and consider how to assign probabilities to elements of F\fF. For given event BB, the symbol P(B)\PP(B) will be interpreted as representing "the probability that event BB occurs." The way you should think about it is this:

P(B)\PP(B) represents the probability that when uncertainty is resolved and some ω∈Ω\omega \in \Omega is selected by “nature,” the statement ω∈B\omega \in B is true.

In order to make sure our model of probability is well behaved, we need to put certain restrictions on P\PP. For example, it wouldn’t do to have a BB with P(B)=−93\PP(B) = -93, since negative probabilities don’t make sense. The standard restrictions are imposed in the next definition:

Let Ω\Omega be a nonempty set and let F\fF be a σ\sigma-algebra of subsets of Ω\Omega. A probability P\PP on (Ω,F)(\Omega, \fF) is a function from F\fF to [0,1][0,1] that satisfies

  1. P(Ω)=1\PP(\Omega) = 1 and

  2. P(∪n=1∞An)=∑n=1∞P(An)\PP(\cup_{n=1}^{\infty} A_n) = \sum_{n=1}^{\infty} \PP(A_n) for any disjoint sequence of sets A1,A2,…∈FA_1, A_2, \ldots \in \fF.

In this context P\PP is also called a probability measure. Together, the triple (Ω,F,P)(\Omega, \fF, \PP) is called a probability space.

In the definition, axiom (i) is straightforward. We require P(Ω)=1\PP(\Omega) = 1 because, by construction, every possible ω\omega lies in the set Ω\Omega. Axiom (ii) is called countable additivity. The concept of disjointness in the statement of the axiom is pairwise: Any distinct pair Ai,AjA_i, A_j share no points in common. By taking some of the sets as empty, countable additivity can be shown to imply finite additivity, which requires that

P(A1∪⋯∪Ak)=P(A1)+⋯+P(Ak)\PP(A_1 \cup \cdots \cup A_k) = \PP (A_1) + \cdots + \PP (A_k)

whenever A1,…,AkA_1, \ldots, A_k are disjoint.

The general notion of additivity is a natural requirement for probabilistic models. It says that to find the probability of a given event, we can determine all the different (think "disjoint") ways that the event could occur, and then sum their probabilities. Probabilists boost this up to countable additivity because it helps certain limiting arguments work smoothly.

Figure 4.2 gives an illustration of additivity. Suppose that the NN dots in the figure are the only possible outcomes. Suppose that each of these occurs with probability 1/N1/N, and hence the probability of an event is the number of dots it contains divided by NN. Hence P(A)=2/N\PP(A)=2/N, P(B)=4/N\PP(B)=4/N and P(C)=3/N\PP(C)=3/N. In addition there are 99 dots in A∪B∪CA\cup B \cup C, so

P(A∪B∪C)=9N=P(A)+P(B)+P(C)\PP(A \cup B \cup C) = \frac{9}{N} = \PP(A) + \PP(B) + \PP(C)

Notice how disjointness is important in making additivity work here: If the sets were not disjoint we would run the risk of double counting on the right hand side of this sum, breaking the equality.

Each of the N dots occurs with probability 1/N

Figure 4.2:Each of the NN dots occurs with probability 1/N1/N

The function λ\lambda from example 4.1.7 that maps Borel sets to their "area" is formally known as the Lebesgue measure. Section 15.3.1 provides a brief introduction to this concept.

4.1.2.1Implications of the Axioms

Now let’s go back to the general case, where (Ω,F,P)(\Omega, \fF, \PP) is an arbitrary probability space. From the axioms, we can derive a surprising number of properties. Let’s list the key ones, starting with the next fact.

(Here Ac=Ω∖AA^c = \Omega \setminus A. See Section 15.1 for a review of set-theoretic operations.)

To prove fact 4.1.1, note that when A⊂BA \subset B, we have B=(B∖A)∪AB = (B \setminus A) \cup A. Since B∖AB \setminus A and AA are disjoint, additivity of P\PP now gives

P(B)=P(B∖A)+P(A)(whenever A⊂B)\PP(B) = \PP(B \setminus A) + \PP(A) \quad \qquad (\text{whenever } A \subset B)

This equality implies (i)–(iv) of fact 4.1.1. Rearranging gives (i), while nonnegativity of P\PP gives (ii). Specializing to B=ΩB = \Omega gives (iii), and setting B=AB = A gives (iv).

The property A⊂B  ⟹  P(A)⩽P(B)A \subset B \implies \PP(A) \leq \PP(B) is called monotonicity, and is both fundamental and intuitive: If A⊂BA \subset B, then we know that BB occurs whenever AA occurs, since ω\omega lands in BB whenever it lands in AA. Hence the probability of BB should be no smaller. Many results in probability turn on this idea.

Exercise 4.4.2 asks you to prove this. It follows from fact 4.1.2 that for any A,B∈FA, B \in \fF, we have P(A∪B)⩽P(A)+P(B)\PP(A \cup B) \leq \PP(A) + \PP(B). This inequality is called subadditivity. Thus probabilities are subadditive over arbitrary pairs of events and additive over disjoint pairs.

4.1.2.2Dependence and Independence

If AA and BB are events, then the conditional probability of AA given BB is

P(A ∣ B):=P(A∩B)P(B)\PP(A \,|\, B) := \frac{ \PP(A \cap B) }{ \PP(B) }

It represents the probability that AA will occur, given the information that BB has occurred. For the definition to make sense, we need P(B)>0\PP(B) > 0. Events AA and BB are called independent if P(A∩B)=P(A)P(B)\PP(A \cap B) = \PP(A) \PP(B). More generally, events A1,…,AN∈FA_1, \ldots, A_N \in \fF are called independent if

P(∩n=1NAn)=∏n=1NP(An)\PP \left(\cap_{n=1}^N A_n \right) = \prod_{n=1}^N \PP(A_n)

Note that if AA and BB are independent, then the conditional probability of AA given BB is just the probability of AA.

To state the next result, we need the concept of a partition of Ω\Omega, by which we mean a countable set of events {Bm}m⩾1\{B_m\}_{m \geq 1} with the property that distinct pairs are disjoint and ∪m⩾1Bm=Ω\cup_{m \geq 1} B_m = \Omega.

The following fact is known as the law of total probability.

The proof is as follows: It is a basic result from set theory that A∩(∪mBm)=∪m(A∩Bm)A \cap (\cup_m B_m) = \cup_m (A \cap B_m). From this equality, the definition of a partition and countable additivity of P\PP, we get

P(A)=P[A∩(∪m⩾1Bm)]=P[∪m⩾1(A∩Bm)]=∑m⩾1P(A∩Bm)\PP(A) = \PP[A \cap (\cup_{m \geq 1} B_m) ] = \PP[\cup_{m \geq 1} (A \cap B_m)] = \sum_{m \geq 1} \PP(A \cap B_m)

Applying (4.4) completes the proof.

Another useful result concerning conditional probability is Bayes’ law, which states that for any events AA and BB with positive probability,

P(A ∣ B)=P(B ∣ A)P(A)P(B)\PP(A \given B) = \frac{\PP(B \given A) \PP(A)}{\PP(B)}

To prove (4.6), observe that, from the definition of conditional probability,

P(A ∣ B)=P(A∩B)P(B)andP(B ∣ A)=P(A∩B)P(A)\PP(A \given B)=\frac{\PP(A \cap B)}{\PP(B)} \quad \text{and} \quad \PP(B \given A) = \frac{\PP(A \cap B)}{\PP(A)}

Hence P(A∩B)=P(A ∣ B) P(B)=P(B ∣ A) P(A)\PP(A \cap B) = \PP(A \given B)\, \PP(B) = \PP(B \given A)\, \PP(A). Rearranging yields (4.6).

4.1.3Random Variables

In some probability courses, a random variable is defined as a “value that changes randomly,” or something to that effect. This is a fairly useless definition. A better definition of a random variable is a function xx from a sample space Ω\Omega into R\RR. Think of it this way:

  1. “Nature” picks out an element ω\omega in Ω\Omega according to some probability.

  2. The random variable xx sends this ω\omega into numerical value x(ω)x(\omega).

Thus a random variable is a map xx that converts outcomes in sample space—which can be any kind of object—into numerical outcomes. This is valuable because numerical outcomes are easy to order, add, subtract and so forth. In other words, random variables "report" the outcome of an experiment in a format amenable to further analysis.

The random variable yy in (4.7) is an example of a binary (or Bernoulli) random variable, which is a random variable taking values in the set {0,1}\{0, 1\}. There is a generic way to create binary random variables that often comes in handy, using indicator functions. If QQ is a statement, such as “on the planet Uranus, there exists a tribe of three-headed monkeys,” then 1 ⁣ ⁣1{Q}\1\{Q\} is considered as equal to 1 when the statement QQ is true, and zero when the statement QQ is false. Another common variation on the notation is, for arbitrary A∈FA \in \fF,

1 ⁣ ⁣1A(ω):=1 ⁣ ⁣1{ω∈A}:={1if ω∈A0otherwise\1_A(\omega) := \1\{\omega \in A\} := \begin{cases} 1 & \text{if } \omega \in A \\ 0 & \text{otherwise} \end{cases}

So defined, 1 ⁣ ⁣1A\1_A is a binary random variable. In fact any binary random variable xx can be expressed as 1 ⁣ ⁣1A\1_A by setting A:={ω∈Ω:x(ω)=1}A := \setntn{\omega \in \Omega}{x(\omega) = 1}.

Here equality means when evaluated at any ω∈Ω\omega \in \Omega. See exercise 4.4.5.

4.1.3.1Notational Conventions

Given random variable xx, you will often see notation such as

{x has some property}\{ x \text{ has some property} \}

This is a shorthand for the event

{ω∈Ω:x(ω) has some property}\setntn{\omega \in \Omega}{x(\omega) \text{ has some property}}

Another notational convention you should be aware of is that, for random variables, equalities, inequalities and arithmetic operations should be interpreted pointwise. For example,

4.1.3.2Random Variables Are Measurable Functions

We’ve omitted a technical detail in our construction of random variables. It arises because we cannot always take the set of events F\fF to be the set of all subsets of Ω\Omega (since assigning probabilities to arbitrarily complex sets causes problems—see the discussion in Section 4.1.1).

To explain, let (Ω,F,P)(\Omega, \fF, \PP) be any probability space. Let BB be any subset of R\RR and consider evaluating the probability

P{x∈B}:=P{ω∈Ω:x(ω)∈B}\PP\{x \in B\} := \PP\setntn{\omega \in \Omega}{x(\omega) \in B}

Here xx is some function from Ω\Omega to R\RR. Now observe that if we put no restrictions on xx, we might end up in a mess. The reason is that we have no way of being sure that the set {ω∈Ω:x(ω)∈B}\setntn{\omega \in \Omega}{x(\omega) \in B} is in fact an element of F\fF. Since P\PP is only defined over elements of F\fF (i.e., for bona fide events), it is possible that P{x∈B}\PP\{x \in B\} is undefined.

To prevent such embarrassment, it’s standard to put some restrictions both on xx and BB that ensure {x∈B}∈F\{x \in B\} \in \fF. For BB, we naturally restrict attention to B(R)\bB(\RR), the Borel subsets of R\RR, since we know these sets to be both relatively well behaved and common enough to satisfy our purposes (see Section 4.1.1). For xx, we simply require that {x∈B}∈F\{x \in B\} \in \fF whenever BB is a Borel set. Thus, our formal definition is that a random variable on (Ω,F)(\Omega, \fF) is a function x ⁣:Ω→Rx \colon \Omega \to \RR satisfying

{ω∈Ω:x(ω)∈B}∈Ffor all B∈B(R)\setntn{\omega \in \Omega}{x(\omega) \in B} \in \fF \quad \text{for all } B \in \bB(\RR)

These kinds of functions are also sometimes called F\fF-measurable functions. In other texts you will see (4.9) expressed using preimage notation. In the preimage notation, x−1(B)x^{-1}(B) is all ω∈Ω\omega \in \Omega such that x(ω)∈Bx(\omega) \in B. This is just the left-hand side of (4.9), so we can rewrite (4.9) as

x−1(B)∈Ffor all B∈B(R)x^{-1}(B) \in \fF \quad \text{for all } B \in \bB(\RR)

Thus xx "pulls back" Borel sets to events.

4.1.3.3Measurable Transformations

So far so good. If xx is a random variable, then {x∈B}\{x \in B\} is a well-defined event for every B∈B(R)B \in \bB(\RR). But suppose now that we want to discuss some transformation of xx. For example, we might be interested in the properties of y:=exy := e^x. Is yy also a random variable? That is, is {y∈B}\{y \in B\} always a well-defined event?

The answer to this question is affirmative provided that our transformation satisfies a regularity condition called Borel measurability. Formally, f ⁣:R→Rf \colon \RR \to \RR is called Borel measurable, or B\bB-measurable, if

f−1(B)∈B(R)for all B∈B(R)f^{-1}(B) \in \bB(\RR) \quad \text{for all } B \in \bB(\RR)

Thus ff "pulls back" Borel sets to Borel sets. Although we omit the details, the class of B\bB-measurable functions is vast (any continuous function, any increasing function, etc., etc.), and all transformations we work with below are B\bB-measurable.

So why is B\bB-measurability of ff the key to ensuring that y=f(x)y = f(x) is a random variable? Suppose that ff is B\bB-measurable and that xx is a random variable. We claim that {y∈B}∈F\{y \in B\} \in \fF for all B∈B(R)B \in \bB(\RR). This holds because

{y∈B}={f(x)∈B}={x∈f−1(B)}\{y \in B\} = \{f(x) \in B\} = \{x \in f^{-1}(B)\}

for all B∈B(R)B \in \bB(\RR). By (4.10) we know that f−1(B)f^{-1}(B) is a Borel set. Since xx is a random variable, it follows that {x∈f−1(B)}\{x \in f^{-1}(B)\} is an element of F\fF.

4.1.4Expectations

Our next task is to define expectations of random variables and state their basic properties. Elementary probability courses define expectations by summing or integrating functions over densities. The view of a random variable as a function on a sample space plays no part in these definitions. However, when we move to more sophisticated arguments, particularly those involving a large number of random variables, we need a better definition. This section outlines the modern treatment of expectations found in probability and statistics. As we’ll see later, the definition in this section is a generalization of the elementary definition. The two agree whenever the latter is well defined.

For finite random variables (i.e., random variables with finite range) the expectation is just the sum of all possible values of the variable, weighted by the corresponding probabilities. More formally, given probability space (Ω,F,P)(\Omega, \fF, \PP) and random variable xx taking only finitely many distinct values s1,…,sJs_1, \ldots, s_J, the expectation of xx is defined as

E x=∑j=1Jsj P{x=sj}\EE x = \sum_{j=1}^J s_j \, \PP\{x = s_j\}

4.1.4.1Expectations for Arbitrary Random Variables

Definition (4.12) only applies for random variables with finite range. We still need to define expectation for general xx. This is done by bootstrapping up from the finite case. The procedure is based on approximating arbitrary random variables with finite random variables. One finite approximation xnx_n to an arbitrary random variable xx is shown in figure 4.3. The approximation can be improved without limit if we allow xnx_n to take a larger and larger number of distinct values. This process yields a sequence of finite random variables xnx_n converging to xx (e.g., see Çinlar (2011), lemma 2.16). The expectation of xx is then defined as

E x:=lim⁡n→∞E xn\EE x := \lim_{n \to \infty} \EE x_n

The value E x\EE x is also referred to as the Lebesgue integral of xx with respect to P\PP, with the alternative notation E x=∫x(ω)P( ⁣dω)\EE x = \int x(\omega) \PP(\diff \omega).

Finite approximation to a general random variable

Figure 4.3:Finite approximation to a general random variable

Can we be sure that the limit in (4.14) makes sense? Suppose first that xx is nonnegative (i.e., x(ω)⩾0x(\omega) \geq 0 for all ω∈Ω\omega \in \Omega). It can be shown that the sequence {xn}\{x_n\} approximating xx can then be chosen so that E xn\EE x_n is monotone increasing and hence convergent, and that the limiting value does not depend on the particular approximating sequence {xn}\{x_n\}. See, for example, Dudley (2002), proposition 4.1.5. Hence E x\EE x is well defined, although we cannot rule out divergence of the sequence, which gives E x=∞\EE x = \infty.

We’ve assumed that xx is nonnegative. If we drop this assumption, we can still treat xx with similar methods by writing it as the difference between two nonnegative random variables. Typically this is done by writing x=x+−x−x = x^+ - x^{-}, where x+:=max⁡{x,0}x^+ := \max\{x, 0\} and x−:=−min⁡{x,0}x^- := -\min\{x, 0\}. Both x+x^+ and x−x^- are nonnegative random variables. The expectation can then be defined as

E x:=E x+−E x−\EE x := \EE x^+ - \EE x^-

This is fine except that (4.15) might have the form ∞−∞\infty - \infty, which isn’t well-defined. For this reason we often restrict attention to integrable random variables, which are all random variables xx such that E ∣x∣<∞\EE |x| < \infty. Since x+⩽∣x∣x^+ \leq |x| and x−⩽∣x∣x^- \leq |x|, this is enough to ensure that (4.15) is well-defined.

The definition of E \EE given in this section doesn’t really tell us how to calculate E x\EE x in specific instances, but we’ll see how to do so in Section 4.2.5.

4.1.4.2Properties of Expectation

Let’s summarize the main results concerning expectations and list some properties of this operation.

Since we only know how to take expectations of random variables, the expression E α\EE \alpha in part (i) should be understood as the expectation of a constant random variable everywhere equal to α\alpha. (We could write this object more precisely as α1 ⁣ ⁣1Ω\alpha \1_\Omega.) That the expectation equals α\alpha was already established in example 4.1.15. It also follows from (ii) and (iv), by taking x=1 ⁣ ⁣1Ωx = \1_{\Omega} and β=0\beta = 0.

Part (ii) follows from example 4.1.16. It is restated here to emphasize this fundamental link between probabilities and expectations. Part (iii) is called monotonicity of expectations. The statement x⩽yx \leq y means that x(ω)⩽y(ω)x(\omega) \leq y(\omega) for all ω∈Ω\omega \in \Omega. Exercise 4.4.23 asks you to prove this monotonicity in a special case. For a general proof see lemma 4.1.9 of Dudley (2002). Part (iv) is called linearity of expectations. Here αx+βy\alpha x + \beta y should be understood as the random variable (αx+βy)(ω):=αx(ω)+βy(ω)(\alpha x + \beta y)(\omega) := \alpha x(\omega) + \beta y(\omega). Exercise 4.4.13 and Exercise 4.4.14 ask you to check linearity in some special cases. For the general case see theorem 4.1.10 of Dudley (2002).

As an exercise, let’s use these results to prove that if xx is a finite random variable with range {sj}j=1J\{s_j\}_{j=1}^J and hh is any B\bB-measurable function, then h(x)h(x) has expectation

E h(x)=∑j=1Jh(sj)P{x=sj}\EE h(x) = \sum_{j=1}^J h(s_j) \PP\{x = s_j\}

First observe that ∑j=1J1 ⁣ ⁣1{x=sj}=1\sum_{j=1}^J \1\{x = s_j\} = 1, and hence we can write h(x)h(x) as

h(x)=h(x)∑j=1J1 ⁣ ⁣1{x=sj}=∑j=1Jh(sj)1 ⁣ ⁣1{x=sj}h(x) = h(x) \sum_{j=1}^J \1\{x = s_j\} = \sum_{j=1}^J h(s_j) \1\{x = s_j\}

Using linearity of expectations gives E h(x)=∑j=1Jh(sj)E 1 ⁣ ⁣1{x=sj}\EE h(x) = \sum_{j=1}^J h(s_j) \EE \1\{x = s_j\}. Applying part (ii) of fact 4.1.5 leads to (4.17).

The next result is another useful link between probabilities and expectations, typically called Chebyshev’s inequality.

A common variation of Chebyshev’s inequality is the bound

P{∣x∣⩾δ}⩽E x2δ2\PP\{|x| \geq \delta \} \leq \frac{\EE x^2}{\delta^2}

Exercise 4.4.29 asks you to check both (4.18) and (4.19).

4.1.5Moments and Co-Moments

Let xx be a random variable and let k∈Nk \in \NN. If xkx^k is integrable, then

If E [∣x∣k]=∞\EE [ |x|^k ] = \infty, then the kkth moment is said not to exist. For some random variables even the first moment does not exist. For others every moment exists.

Exercise 4.4.24 asks you to confirm this. The next fact is called the Cauchy–Schwarz inequality for random variables. Its proof will be given later, once we’ve covered orthogonal projection (ex. 5.4.15).

The second central moment of xx is called the variance of xx:

var⁡x:=E [(x−E x)2]\var x := \EE [ (x - \EE x)^2 ]

This gives a measure of the dispersion of xx. The standard deviation of xx is

σx:=var⁡x\sigma_x := \sqrt{\var x}

The covariance of random variables xx and yy is defined as

cov⁡[x,y]:=E [(x−E x)(y−E y)]\cov[x, y] := \EE [ (x - \EE x)(y - \EE y) ]

Part (i) follows from (ii)–(iii), the Cauchy–Schwarz inequality and fact 4.1.7. Parts (ii)–(iii) follow from linearity of E \EE and some simple manipulations.

Some simple implications of this fact are that

  1. var⁡[α+βx]=β2var⁡[x]\var[\alpha + \beta x] = \beta^2 \var[x] and

  2. var⁡[αx+βy]=α2var⁡[x]+β2var⁡[y]+2αβcov⁡[x,y]\var[\alpha x + \beta y] = \alpha^2 \var[x] + \beta^2 \var[y] + 2 \alpha \beta \cov[x,y].

The correlation of xx and yy is defined as

corr⁡[x,y]:=cov⁡[x,y]σx σy\corr[x,y] := \frac{\cov[x,y]}{\sigma_x \, \sigma_y}

If corr⁡[x,y]=0\corr[x,y] = 0, we say that xx and yy are uncorrelated. Positive correlation means that corr⁡[x,y]\corr[x,y] is positive and negative correlation means that corr⁡[x,y]\corr[x,y] is negative. The first part of the next fact follows immediately from fact 4.1.8; the second is just algebra.

4.1.5.1Best Linear Predictors

As an application of covariance and a prelude to our discussion of prediction, let’s consider the problem of predicting the value of a random variable yy given knowledge of the value of a second random variable xx (and also knowledge of the underlying probability distributions, which makes this a problem in probability rather than statistics). Thus we seek a function ff such that f(x)f(x) is close to yy on average. To measure the latter, we will use mean squared error, which amounts in this case to

E [(y−f(x))2]\EE [ (y - f(x))^2 ]

As we’ll see in Section 5.2.5, the minimizer of the mean squared deviation over all functions of xx is obtained by choosing f(x)=E [y ∣ x]f(x) = \EE[y \given x], where the right-hand side is the conditional expectation of yy given xx. Here we’ll consider the simpler problem of finding a good predictor of yy within the class of “linear” functions

Hℓ:={ all functions of the form ℓ(x)=α+βx}\llL := \{ \text{ all functions of the form } \ell(x) = \alpha + \beta x \}

(We defer to common usage and call such functions linear in this context, despite the fact that they are, in general, affine; see example 2.1.23.) Thus we consider the problem

min⁡ℓ∈ HℓE [(y−ℓ(x))2]=min⁡α,β∈RE [(y−α−βx)2]\min_{\ell \in \, \llL} \EE[ (y - \ell(x))^2 ] = \min_{\alpha, \beta \in \RR} \EE[ (y - \alpha - \beta x)^2 ]

If α\alpha and β\beta solve (4.21), then the function

ℓ∗(x):=α∗+β∗x\ell^*(x) := \alpha^* + \beta^* x

is called the best linear predictor of yy given xx.

To solve (4.21) we expand the square on the right-hand side and use linearity of E \EE to write the objective function as

ψ(α,β):=E [y2]−2αE [y]−2βE [xy]+2αβE [x]+α2+β2E [x2]\psi(\alpha, \beta) := \EE [y^2] - 2 \alpha \EE[y] - 2 \beta \EE[xy] + 2\alpha\beta \EE[x] + \alpha^2 + \beta^2 \EE[x^2]

Computing the derivatives and solving the first-order conditions yields (ex. 4.4.27) the minimizers

β∗:=cov⁡[x,y]var⁡[x]andα∗:=E [y]−β∗E [x]\beta^* := \frac{\cov[x,y]}{\var[x]} \quad \text{and} \quad \alpha^* := \EE[y] - \beta^* \EE[x]

If you’ve studied simple linear least squares regression before, you might realize that α∗\alpha^* and β∗\beta^* are the “population” counterparts of coefficient estimates in an empirical setting. In example 4.1.18, this allows us to take the coefficient β∗\beta^* as the definition of an asset’s beta, independent of any particular data set. If we wish to evaluate β∗\beta^*, however, we need to use data, since the underlying probabilities, and hence the expectation operator E \EE, are not observable. It is at this stage that the population regression is replaced by simple linear least squares using data. More on this below.

4.2Distributions

Any random variable xx on a given probability space (Ω,F,P)(\Omega, \fF, \PP) assigns to each Borel set B⊂RB \subset \RR a number P{x∈B}\PP\{x \in B\} indicating the probability that xx lies in BB. While this is an important construction, as a means of specifying probabilities for outcomes in R\RR, it is somewhat indirect. When building statistical models, it’s often more convenient to assign probabilities to subsets of R\RR directly. This is typically done by specifying a distribution over R\RR. In this section we look at how one might go about specifying such distributions.

4.2.1Defining Distributions on R\RR

How can we specify probabilities over subsets of R\RR? In Section 4.1.1.2–Section 4.1.2 we learned how to construct a set of events F\fF on an arbitrary sample space Ω\Omega and define a probability measure P\PP on F\fF. If we want to describe probabilities over R\RR, then the natural thing to do is to repeat the process with Ω\Omega specialized to R\RR. For the set of events over R\RR we take the Borel sets B(R)\bB(\RR), as discussed in Section 4.1.1.2. A probability measure defined over B(R)\bB(\RR) is called a law or distribution.

Distributions will be represented by symbols such as PP and QQ. Referring back to the definition, a distribution PP is a map from B(R)\bB(\RR) to [0,1][0, 1] such that

  1. P(R)=1P(\RR) = 1 and

  2. P(∪n=1∞Bn)=∑n=1∞P(Bn)P(\cup_{n=1}^{\infty} B_n) = \sum_{n=1}^\infty P(B_n) for any disjoint sequence {Bn}\{B_n\}.

Being a probability measure, PP satisfies all the properties in fact 4.1.1. If there exists a Borel set SS with P(S)=1P(S) = 1, then we say that PP is supported on SS.

Probability measures are both general and comprehensive. Each one pins down probabilistic information for every event in R\RR that we might care about in econometrics or statistics. At the same time, this kind of generality can also be a hindrance. For example, it’s not a trivial task to assign a specific value P(B)P(B) to every single Borel set.

Fortunately, we can characterize distributions more succinctly. To begin, we recall the notion of a cumulative distributed function, or CDF, which is any function F ⁣:R→[0,1]F \colon \RR \to [0, 1] satisfying

  1. monotonicity: s⩽s′s \leq s' implies F(s)⩽F(s′)F(s) \leq F(s'),

  2. right-continuity: F(sn)↓F(s)F(s_n) \downarrow F(s) whenever sn↓ss_n \downarrow s, and

  3. lim⁡s→−∞F(s)=0\lim_{s \to -\infty} F(s) = 0 and lim⁡s→∞F(s)=1\lim_{s \to \infty} F(s) = 1.

CDFs and distributions on R\RR can be put in one-to-one correspondence as follows: First, it’s true by definition that any two distributions QQ and PP satisfying Q(B)=P(B)Q(B) = P(B) for all B∈B(R)B \in \bB(\RR) are the same distribution, but it’s also true that if Q(B)=P(B)Q(B) = P(B) for all sets BB of the form (−∞,s](-\infty, s], then QQ and PP are again the same distribution. In other words, a distribution PP is entirely characterized by the values of the function

F(s):=P((−∞,s])(s∈R)F(s) := P( (-\infty, s] ) \qquad (s \in \RR)

Moreover this function turns out to have properties (i)–(iii) above. The next fact summarizes the relationship between FF and PP.

For a full proof, see Williams (1991), lemma 1.6, or Dudley (2002), theorem 9.1.1. Here let’s restrict ourselves to showing that the function FF in (4.24) satisfies part (i) of the definition of a CDF. To see why (i) holds for this FF, observe that s⩽s′s \leq s' implies (−∞,s]⊂(−∞,s′](-\infty, s] \subset (-\infty, s']. Part (ii) of fact 4.1.1 then gives P((−∞,s])⩽P((−∞,s′])P((-\infty, s]) \leq P((-\infty, s']). Hence F(s)⩽F(s′)F(s) \leq F(s') as claimed.

CDFs are relatively easy to specify and work with. Here are some examples.

Normal CDFs

Figure 4.4:Normal CDFs

Beta CDFs

Figure 4.5:Beta CDFs

Cauchy CDFs

Figure 4.6:Cauchy CDFs

4.2.2Densities and PMFs

There are two important sub-cases for distributions: the discrete case and the absolutely continuous case. As we’ll see, in these two sub-cases distributions have nice visual representations and expectations are easy to compute. Almost all "named" distributions fall into one of these two categories.

4.2.2.1The Discrete Case

A distribution PP is called discrete if it is supported on a countable set; that is, if there exists a countable set {sj}j⩾1\{s_j\}_{j \geq 1} with P({sj}j⩾1)=1P(\{s_j\}_{j \geq 1}) = 1. For such a PP let

pj:=P{sj}:=P({sj})=probability mass on the single point sjp_j := P\{s_j\} := P(\{s_j\}) = \text{probability mass on the single point } s_j

Property (ii) of PP and P({sj}j⩾1)=1P(\{s_j\}_{j \geq 1}) = 1 imply that ∑j⩾1pj=1\sum_{j \geq 1} p_j = 1 (ex. 4.4.15). Hence {pj}j⩾1\{p_j\}_{j \geq 1} is an example of a probability mass function, or PMF, which is any nonnegative sequence (finite or infinite) that sums to unity.

Together, {sj}j⩾1\{s_j\}_{j \geq 1} and {pj}j⩾1\{p_j\}_{j \geq 1} characterize the underlying distribution. For example, we can express the CDF corresponding to PP via (4.24) as

F(s)=∑j⩾11 ⁣ ⁣1{sj⩽s}pjF(s) = \sum_{j \geq 1} \1\{s_j \leq s\} p_j

This is intuitive: F(s)F(s) represents the probability of an outcome in (−∞,s](-\infty, s] under PP. Since PP puts all its probability mass on {sj}j⩾1\{s_j\}_{j\geq 1}, this should equal the sum of the probabilities of hitting sjs_j over all sj⩽ss_j \leq s.

Discrete CDF

Figure 4.7:Discrete CDF

Figure 4.7 gives a visualization when {sj}j⩾1={s1,s2}\{s_j\}_{j \geq 1} =\{s_1, s_2\}. FF is a step function, with a jump up of size pjp_j at point sjs_j. The CDF is right-continuous but not continuous.

Binomial PMFs

Figure 4.8:Binomial PMFs

4.2.2.2The Absolutely Continuous Case

Another case of interest is what elementary books on probability call the "continuous" case, where distributions can be described by densities. A density is a nonnegative function pp on R\RR that integrates to 1. We say that distribution PP is represented by density pp (or has density pp) if pp is a density and

P(B)=∫Bp(s) ⁣dsfor all B∈B(R)P(B) = \int_B p(s) \diff s \qquad \text{for all } B \in \bB(\RR)

Here the integral over BB can be understood as

∫Bp(s) ⁣ds:=∫−∞∞1 ⁣ ⁣1B(s)p(s) ⁣ds\int_B p(s) \diff s := \int_{-\infty}^\infty \1_B(s) p(s) \diff s

Recall from our discussion in Section 4.2.1 that distributions are characterized by their values on simple sets, like half lines of the form (−∞,s](-\infty, s]. Thus, if pp is a density and

P((−∞,s])=∫−∞sp(t) ⁣dtfor all s∈RP((-\infty, s]) = \int_{-\infty}^s p(t) \diff t \qquad \text{for all } s \in \RR

then (4.26) also holds.

Not every distribution has a density representation. An exact necessary and sufficient condition for existence is absolute continuity. A distribution PP on the Borel subsets of R\RR is called absolutely continuous if P(B)=0P(B) = 0 whenever BB has Lebesgue measure zero. A definition of the latter property is given in Section 15.3.1, although for us it is enough to know that any countable subset of R\RR has Lebesgue measure zero. This leads to the following fact:

Compare with the discrete distributions, which put all mass on a countable set. One important implication of fact 4.2.2 is that individual points receive no probability mass under absolute continuity, and the corresponding CDF contains no jumps. In fact, when (4.27) holds, the fundamental theorem of calculus tells us that F(s)=P((−∞,s])F(s) = P((-\infty, s]) is differentiable at all continuity points of pp, and, in particular,

F′(s)=p(s)for all s∈R such that p is continuous at sF'(s) = p(s) \qquad \text{for all } s \in \RR \text{ such that } p \text{ is continuous at } s
Normal densities

Figure 4.9:Normal densities

Cauchy densities

Figure 4.10:Cauchy densities

Chi-squared densities

Figure 4.11:Chi-squared densities

4.2.3Integrating with Distributions

We all understand what it means to take the ordinary integral ∫abh(s) ⁣ds\int_a^b h(s)\diff s of a well-behaved function hh on some interval [a,b][a, b]. Sometimes we want to weight this integral, assigning more mass to different regions of [a,b][a, b]. This leads to integrals such as ∫abh(s)p(s) ⁣ds\int_a^b h(s) p(s) \diff s. For example, hh could be a welfare function and pp might record the density of agents of a certain type. In a probabilistic context, pp might be a density indicating probabilities of outcomes, hh might be a payoff function and ∫abh(s)p(s) ⁣ds\int_a^b h(s) p(s) \diff s would be expected payoff.

We now wish to give meaning to expressions of the form ∫h(s)P( ⁣ds)\int h(s) P(\diff s) that can be viewed as generalizations of these integrals. The nature of the generalization is that the probability PP might not have a density, and yet we still want to compute a weighted integral using PP. As motivation we’ll continue with the previous example, where h(s)h(s) is the payoff from outcome s∈Rs \in \RR, and the likelihood of outcomes is determined by probability measure PP. To provide some basic regularity, we assume that hh is a B\bB-measurable function on R\RR.

Actually our task is straightforward given the foundations already laid. In particular, we already have a general notion of integration suitable for understanding the expression ∫h(s)P( ⁣ds)\int h(s) P(\diff s). In Section 4.1.4 we saw how to take an arbitrary probability space (Ω,F,P)(\Omega, \fF, \PP) and construct an expectation operator E \EE that assigns to any integrable random variable a notion of expectation. Expectations can be thought of as integrals, as suggested by the alternative notation ∫x(ω)P( ⁣dω)\int x(\omega) \PP(\diff \omega) for E x\EE x used in (4.16).

So now take our distribution PP on R\RR and consider (R,B(R),P)(\RR, \bB(\RR), P) as a probability space. This new probability space has its own expectation operator EP \EEP. (See fact 4.1.5 if you wish to refresh your memory on this point.) Moreover we can use it to take the expectation of the payoff function hh, which, being a B\bB-measurable function on R\RR, is by definition a random variable on (R,B(R),P)(\RR, \bB(\RR), P). This gives us a value EP h\EEP h, which is exactly the integral we’re after:

EP h:=:∫h(s)P( ⁣ds):=the expectation of h under P\EEP h :=: \int h(s) P(\diff s) := \text{the expectation of } h \text{ under } P

While the preceding discussion gives a neat definition of ∫h(s)P( ⁣ds)\int h(s) P(\diff s), it would be disappointing if this definition didn’t lead us back to familiar expressions like ∫h(s)p(s) ⁣ds\int h(s) p(s) \diff s when PP has a density. Fortunately, it does:

For a proof of fact 4.2.3, see §6.12 of Williams (1991).

4.2.4Distributions of Random Variables

In Section 4.1.3 we defined random variables. Over the last few sections we’ve defined and discussed distributions over the Borel subsets of R\RR. Our next job is to connect them. We’ll see that the connection runs in both directions: Every random variable defines a distribution on R\RR. Conversely, given any distribution, we can reverse engineer a random variable having that distribution.

To begin, let xx be a random variable on some probability space (Ω,F,P)(\Omega, \fF, \PP). By construction, the probability P{x∈B}\PP\{x \in B\} is well-defined for every B∈B(R)B \in \bB(\RR) (see (4.9)). The values obtained from this expression when xx is held fixed and BB is varied is called the distribution of xx. In particular, the set function PP defined by

P(B)=P{x∈B}(B∈B(R))P(B) = \PP\{x \in B\} \qquad (B \in \bB(\RR))

is both the distribution of xx and also a distribution in the sense of Section 4.1.3 (i.e., a probability measure over the Borel sets). It records the probabilities of all outcomes of interest for the variable xx when regarded as a single entity.[3] In what follows we write L(x)\lL(x) for the distribution (or "law") of xx. The relationship in (4.30) is summarized by writing L(x)=P\lL(x) = P.

By (4.24), the CDF corresponding to the distribution PP of xx satisfies

F(s)=P{x⩽s}(s∈R)F(s) = \PP \{x \leq s\} \qquad (s \in \RR)

Sometimes FF is called the distribution function or just distribution of xx. Since FF characterizes PP, we also write L(x)=F\lL(x) = F to indicate that FF represents the distribution of xx.

Indeed, if a⩽ba \leq b, then {a<x⩽b}={x⩽b}∖{x⩽a}\{a < x \leq b\} = \{x \leq b \} \setminus \{x \leq a\} and {x⩽a}⊂{x⩽b}\{x \leq a \} \subset \{x \leq b\}. Applying fact 4.1.1 gives

P{a<x⩽b}=P{x⩽b}−P{x⩽a}=F(b)−F(a)\PP\{a < x \leq b\} = \PP\{x \leq b\} - \PP\{x \leq a\} = F(b) - F(a)

From (4.31) we get for each random variable a uniquely defined CDF. It’s also true that for every CDF FF, there exists a probability space (Ω,F,P)(\Omega, \fF, \PP) and a random variable x ⁣:Ω→Rx \colon \Omega \to \RR such that L(x)=F\lL(x) = F; Section 7.4.1 outlines one construction.

In what follows, if L(x)=P\lL(x) = P and PP has density pp, we’ll say that xx has density pp. If the distribution of xx is discrete, we’ll call xx a discrete random variable. In the former case, where the distribution of xx is absolutely continuous, no probability mass is placed on finite sets, leading to the next fact.

4.2.4.1Distributions of Transformations

One often needs to obtain the distribution of the transform of a random variable. This is easy in the monotone case.

To see why, observe that under these hypotheses ψ−1\psi^{-1} exists and is (weakly) increasing. Hence

P{y⩽s}=P{ψ(x)⩽s}=P{x⩽ψ−1(s)}=F(ψ−1(s))\PP\{y \leq s\} = \PP\{\psi(x) \leq s\} = \PP\{x \leq \psi^{-1}(s) \} = F( \psi^{-1}(s) )

Note how monotonicity is used in the second equality. (A related result can be derived for the strictly decreasing case, where the direction of the inequality flips.)

An important related question is to determine when y=ψ(x)y = \psi(x) has a density, and what the form of this density is.

Exercise 5.4.1 asks you to confirm (4.32). The term diffeomorphism just means that ψ\psi is a bijection on R\RR and both ψ\psi and its inverse are differentiable.

When xx is standard normal, this implies that y=μ+σxy = \mu + \sigma x is N(μ,σ2)\nN(\mu, \sigma^2), as can be seen by taking pp to be the standard normal density ϕ\phi and comparing with the expression for the N(μ,σ2)\nN(\mu, \sigma^2) density.

Fact 4.2.7 can be generalized. See, for example, theorem 15.5 of Schilling (2005).

4.2.5Expectations from Distributions

Let xx be a random variable on probability space (Ω,F,P)(\Omega, \fF, \PP). The distribution of xx encodes all the information necessary to calculate expectations of xx or of any B\bB-measurable transformation h(x)h(x). This is clearest when xx is finite. For example, suppose that L(x)=P\lL(x) = P, that h ⁣:R→Rh \colon \RR \to \RR is any B\bB-measurable function, and that PP puts all mass on finite set {sj}j=1J\{s_j\}_{j=1}^J. Let {pj}\{p_j\} be the PMF of PP, so that pj=P{sj}p_j = P\{s_j\}. Applying the definition of expectations (see in particular (4.17)) and using P{x=sj}=P{sj}\PP\{x = s_j\} = P\{s_j\} gives

E h(x)=∑j=1Jh(sj)P{x=sj}=∑j=1Jh(sj)P{sj}=∑j=1Jh(sj)pj\EE h(x) = \sum_{j=1}^J h(s_j) \PP\{x = s_j\} = \sum_{j=1}^J h(s_j) P\{s_j\} = \sum_{j=1}^J h(s_j) p_j

Comparing this with (4.28), we can also write E h(x)=∫h(s)P( ⁣ds)\EE h(x) = \int h(s) P(\diff s). Put differently, the expectation of h(x)h(x) on (Ω,F,P)(\Omega, \fF, \PP) is equal to the expectation of hh on (R,B(R),P)(\RR, \bB(\RR), P). This is also true in the infinite case (see, e.g., theorem 5.2 of Çinlar (2011)), as stated in the next fact.

4.2.5.1Moments from Distributions

In Section 4.1.5 we defined moments of random variables. For example, E xk\EE x^k is the kkth moment of xx, assuming it exists. It is clear from fact 4.2.8 that any two random variables with the same distribution share the same moments. Hence moments are best thought of as a property of the distribution, not the random variable. Thus we define

and so on.

4.2.6Quantile Functions

In this section it will be convenient to describe distributions in terms of CDFs. So let FF be a CDF on R\RR, which, for the moment, we assume to be strictly increasing. Given τ∈(0,1)\tau \in (0, 1), the τ\tauth quantile of FF is the ξ∈R\xi \in \RR that solves F(ξ)=τF(\xi) = \tau. Under our assumptions on FF, such a ξ\xi exists and is uniquely defined. The 0.50.5th quantile is called the median of FF. It provides a measure of central tendency for the distribution.

We can of course express the τ\tauth quantile of FF using the inverse function:

F−1(τ):= the unique ξ such that F(ξ)=τ(0<τ<1)F^{-1}(\tau) := \text{ the unique } \xi \text{ such that } F(\xi) = \tau \qquad (0 < \tau < 1)

Not surprisingly, the inverse of FF is also called the quantile function.

Cauchy quantile function

Figure 4.12:Cauchy quantile function

If FF is not strictly increasing, then there exist at least two distinct points s,s′s, s' such that F(s)=F(s′)F(s) = F(s'), and hence F−1F^{-1} in (4.34) is not well-defined. This problem is negotiated by setting

F−1(τ):=inf⁡{s∈R:F(s)⩾τ}(0<τ<1)F^{-1}(\tau) := \inf \setntn{s \in \RR}{F(s) \geq \tau} \qquad (0 < \tau < 1)

(See Section 15.4.1 for a definition of inf.) In the case where FF is strictly increasing, (4.35) reduces to (4.34).

The quantile function is used in hypothesis testing to determine critical values. Let’s outline a common scenario.

Here symmetry of pp means that p(s)=p(−s)p(s) = p(-s) for all s∈Rs \in \RR. This is equivalent to F(s)=1−F(−s)F(s) = 1 - F(-s), as can be seen by differentiating or integrating. Exercise 4.4.18 asks you to prove fact 4.2.9.

Now take a random variable xx with L(x)=F\lL(x) = F and constant α∈(0,1)\alpha \in (0,1) as given, and consider the cc that solves P{−c⩽x⩽c}=1−α\PP\{-c \leq x \leq c \} = 1 - \alpha.

To see this, fix α∈(0,1)\alpha \in (0,1) and let cc be as in (4.36). From fact 4.2.9, we have

P{∣x∣⩽c}=2F(c)−1=2F[F−1(1−α/2)]−1=1−α\PP\{|x| \leq c\} = 2 F(c) - 1 = 2 F[F^{-1}(1 - \alpha/2)] - 1 = 1 - \alpha

In the case where FF is the standard normal CDF Φ\Phi, this value cc is usually denoted by zα/2z_{\alpha/2}. We will adopt the same notation:

zα/2:=Φ−1(1−α/2)z_{\alpha/2} := \Phi^{-1}(1 - \alpha/2)

See figure 4.13.

Critical values for the standard normal density

Figure 4.13:Critical values for the standard normal density

4.3Further Reading

The modern axiomatic treatment of probability based on measure theory was formulated in the 1930s by Andrei N. Kolmogorov. A discussion of his life and work can be found in Kendall et al. (1990). Nice introductory texts on measure-theoretic probability include Williams (1991) and Rosenthal (2006). Beautiful expositions at a slightly higher level can be found in Dudley (2002), Çinlar (2011), and Pollard (2002).

4.4Exercises

4.4.1Solutions to Selected Exercises

Footnotes
  1. If pp is a nonnegative number satisfying p⩾0p \geq 0 and p⩽ϵp \leq \epsilon for all ϵ>0\epsilon > 0, then p=0p=0 must hold.

  2. Is this true? If ω=ω0\omega = \omega_0 is an infinite sequence containing only zeros, then {n∈N:bn=1}=∅\setntn{n \in \NN}{b_n = 1} = \emptyset. What is x(ω0)x(\omega_0) in this case? The convention is min⁡∅=∞\min \emptyset = \infty, which is reasonable, but now xx can take the value ∞\infty. However, in most applications this event has probability zero. We could set x(ω0)=0x(\omega_0) = 0 without changing anything significant. Now we’re back to a well-defined function from Ω\Omega to R\RR.

  3. When we want to combine xx with other random variables we’ll need their joint distribution. See Section 5.1.3.

  4. Hint: See the rules concerning set-theoretic operations in fact 15.1.1.

  5. Hint: Sketching the Venn diagram, convince yourself that A=[(A∪B)∖B]∪(A∩B)A = [(A \cup B) \setminus B] \cup (A \cap B). Finish the proof using the definition of a probability and fact 4.1.1.

  6. Hint: Review the definition of a function in Section 15.2.

References
  1. Çinlar, E. (2011). Probability and Stochastics. New York: Springer.
  2. Dudley, R. M. (2002). Real Analysis and Probability (2nd ed.). Cambridge, UK: Cambridge University Press.
  3. Williams, D. (1991). Probability with Martingales. Cambridge, UK: Cambridge University Press.
  4. Schilling, R. L. (2005). Measures, Integrals and Martingales. Cambridge, UK: Cambridge University Press.
  5. Kendall, D., Batchelor, G., Bingham, N., Hayman, W., Hyland, J., Lorentz, G., Moffatt, H., Parry, W., Razborov, A., & Robinson, C. (1990). Andrei Nikolaevich Kolmogorov (1903–1987). Bulletin of the London Mathematical Society, 22(1), 31–100.
  6. Rosenthal, J. S. (2006). A first Look at Rigorous Probability Theory (2nd ed.). New Jersey: World Scientific.
  7. Pollard, D. (2002). A User’s Guide to Measure Theoretic Probability (Vol. 8). Cambridge, UK: Cambridge University Press.