Docsity

Probability and Random Processes Lecture Notes, Lecture notes of Probability and Statistics

Partial preview of the text

Download Probability and Random Processes Lecture Notes and more Lecture notes Probability and Statistics in PDF only on Docsity!

Ramon van Handel

Probability and

Random Processes

ORF 309/MAT 380 Lecture Notes

Princeton University

This version: February 22, 2016

Contents

0

Introduction

0.1 What is probability?

Most simply stated, probability is the study of randomness. Randomness is of course everywhere around us—this statement surely needs no justification! One of the remarkable aspects of this subject is that it touches almost ev- ery area of the natural sciences, engineering, social sciences, and even pure mathematics. The following random examples are only a drop in the bucket.

- Physics: quantities such as temperature and pressure arise as a direct con- sequence of the random motion of atoms and molecules. Quantum me- chanics tells us that the world is random at an even more basic level. - Biology and medicine: random mutations are the key driving force behind evolution, which has led to the amazing diversity of life that we see today. Random models are essential in understanding the spread of disease, both in a population (epidemics) or in the human body (cancer). - Chemistry: chemical reactions happen when molecules randomly meet. Random models of chemical kinetics are particularly important in systems with very low concentrations, such as biochemical reactions in a single cell. - Electrical engineering: noise is the universal bane of accurate transmission of information. The effect of random noise must be well understood in order to design reliable communication protocols that you use on a daily basis in your cell phones. The modelling of data, such as English text, using random models is a key ingredient in many data compression schemes. - Computer science: randomness is an important resource in the design of algorithms. In many situations, randomized algorithms provide the best known methods to solve hard problems. - Civil engineering: the design of buildings and structures that can reliably withstand unpredictable effects, such as vibrations, variable rainfall and wind, etc., requires one to take randomness into account.

2 0 Introduction

- Finance and economics: stock and bond prices are inherently unpre- dictable; as such, random models form the basis for almost all work in the financial industry. The modelling of randomly occurring rare events forms the basis for all insurance policies, and for risk management in banks. - Sociology: random models provide basic understanding of the formation of social networks and of the nature of voting schemes, and form the basis for principled methodology for surveys and other data collection methods. - Statistics and machine learning: random models form the foundation for almost all of data science. The random nature of data must be well under- stood in order to draw reliable conclusions from large data sets. - Pure mathematics: probability theory is a mathematical field in its own right, but is also widely used in many problems throughout pure mathe- matics in areas such as combinatorics, analysis, and number theory. -... (insert your favorite subject here)

As a probabilist^1 , I find it fascinating that the same basic principles lie at the heart of such a diverse list of interesting phenomena: probability theory is the foundation that ties all these and innumerable other areas together. This should already be enough motivation in its own right to convince you (in case you were not already convinced) that we are on to an exciting topic. Before we can have a meaningful discussion, we should at least have a basic idea of what randomness means. Let us first consider the opposite notion. Suppose I throw a ball many times at exactly the same angle and speed and under exactly the same conditions. Every time we run this experiment, the ball will land in exactly the same place: we can predict exactly what is going to happen. This is an example of a deterministic system. Randomness is the opposite of determinism: a random phenomenon is one that can yield different outcomes in repeated experiments, even if we use exactly the same conditions in each experiment. For example, if we flip a coin, we know in advance that it will either come up heads or tails, but we cannot predict before any given experiment which of these outcomes will occur. Our challenge is to develop a framework to reason precisely about random phenomena.

0.2 Why do we need a mathematical theory?

It is not at all obvious at first sight that it is possible to develop a rigorous the- ory of probability: how can one make precise predictions about a phenomenon whose behavior is inherently unpredictable? This philosophical hurdle ham- pered the development of probability theory for many centuries.

(^1) Official definition from the Oxford English Dictionary: “probabilist, n. An expert or specialist in the mathematical theory of probability.”

4 0 Introduction

This correspondence marked the first serious attempt at understanding prob- abilities mathematically, and led to important works by Christiaan Huygens, Jacob Bernoulli, Abraham de Moivre, and Pierre-Simon de Laplace in the next two centuries. It was only in 1933, however, that a truly satisfactory mathematical foundation to probability theory was developed by the eminent Russian mathematician Andrey Kolmogorov. With this solid foundation in place, the door was finally open to the systematic development of probability theory and its applications. It is Kolmogorov’s theory that is used universally today, and this will also be the starting point for our course.

0.3 This course

In the following chapter, we are going to develop the basic mathematical principles of probability. This solid mathematical foundation will allow us to systematically build ever more complex random models, and to analyze the behavior of such models, without running any risk of the type of ambiguous conclusions that we saw in the example above. With precision comes nec- essarily a bit of abstraction, but this is nothing to worry about: the basic principles of probability are little more than “common sense” properly for- mulated in mathematical language. In the end, the success of Kolmogorov’s theory is due to the fact that it genuinely captures our real-world observations about randomness. Once we are comfortable with the basic framework of probability theory, we will start developing increasingly sophisticated models of random phenom- ena. We will pay particular attention to models of random processes where the randomness develops over time. The notion of time is intimately related with randomness: one can argue that the future is random, but the past is not. Indeed, we already know what happened in the past, and thus it is per- fectly predictable; on the other hand, we typically cannot predict what will happen in the future, and thus the future is random. While this idea might seem somewhat philosophical now, it will lead us to notions such as random walks, branching processes, Poisson processes, Brownian motion, and Markov chains, which form the basis for many complex models that are used in nu- merous applications. At the end of the course, you might want to look back at the humble point at which we started. I hope you will find yourself convinced that a mathematical theory of probability is worth the effort.

· · ·

This course is aimed at a broad audience and is not a theorem-proof style course.^2 That does not mean, however, that this course does not require rig- orous thinking. The goal of this course is to teach you how to reason precisely about randomness and, most importantly of all, how to think probabilistically.

(^2) Students seeking a mathematician’s approach to probability should take ORF 526.

1

Basic Principles of Probability

The goal of this chapter is to introduce the basic ingredients of a mathematical theory of probability that will form the basis for all further developments. As was emphasized in the introduction, these ingredients are little more than “common sense” expressed in mathematical form. You will quickly become comfortable with this basic machinery as we start using it in the sequel.

1.1 Sample space

A random experiment is an experiment whose outcome cannot be predicted before the experiment is performed. We do, however, know in advance what outcomes are possible in the experiment. For example, if you flip a coin, you know it will come up either heads or tails; you just do not know which of these outcomes will actually occur in a given experiment. The first ingredient of any probability model is the specification of all possible outcomes of a random experiment.

Definition 1.1.1. The sample space Ω is the set of all possible outcomes of a random experiment.

Example 1.1.2 (Two dice). Consider the random experiment of throwing one red die and one blue die. We denote by ( i, j ) the outcome that the red die comes up i and the blue die comes up j. Hence, we define the sample space

Ω = { ( i, j ) : 1 ≤ i, j ≤ 6 }.

In this experiment, there are only 62 = 36 possible outcomes.

1.2 Events 7

Note that this event occurs in a given experiment if and only if the outcome of the experiment happens to lie in the following subset of all possible outcomes:

{ (1 , 6) , (2 , 5) , (3 , 4) , (4 , 3) , (5 , 2) , (6 , 1) } ⊂ Ω.

We cannot predict in advance whether this event will occur, but we can de- termine whether it has occured once the outcome of the experiment is known.

Example 1.2.2 (Bus). In Example 1.1.3, consider the following event:

“The bus comes within the first hour.”

Note that this event occurs in a given experiment if and only if the outcome of the experiment happens to lie in the following subset of all possible outcomes:

[0 , 1] ⊂ Ω.

Example 1.2.3 (Bumblebee). In Example 1.1.4, suppose there is an object (say, a wall or a chair) that takes up some volume A ⊂ R^3 of space. We want to know whether or not the bee will hit this object in the first second of its flight. For example, we can consider the following event:

“The bumblebee stays outside the set A in the first second.”

Note that this event occurs in a given experiment if and only if the outcome of the experiment happens to lie in the following subset of all possible outcomes:

{ continuous paths ω : [0 , 5] → R^3 : ω ( t ) 6 ∈ A for all t ∈ [0 , 1] } ⊂ Ω.

As the above examples show, every event can be naturally identified with the subset of all possible outcomes of the random experiment for which the event is true. Indeed, take a moment to convince yourself that the verbal description of events (such as “the bus comes within an hour”) is completely equivalent to the mathematical description as a subset of the sample space (such as [0 , 1]). This observation allows us to give a formal definition.

Definition 1.2.4. An event is a subset A of the sample space Ω.

The formal definition allows us to translate our common sense reasoning about events into mathematical language.

Example 1.2.5 (Combining events). Consider two events A, B.

- The intersection A∩B is the event that A and B occur simultaneously. It might be helpful to draw a picture:

8 1 Basic Principles of Probability

A B

A ∩ B

The set A ⊂ Ω consists of all outcomes for which the event A occurs, while B ⊂ Ω consists of all outcomes for which the event B occurs. Thus A ∩ B is the set of all outcomes for which both A and B occur.

- The union A ∪ B is the event that A or B occurs:

A B

A ∪ B

(When we say A or B , we mean that either A or B or both occur.)

- The complement Ac^ := Ω\A is the event that A does not occur:

A

Ac

Along the same lines, any common sense combination of events can be translated into mathematical language. For example, the event “ A occurs or at most one of B, C and D occur” can be written as (why?)

A ∪ (( B ∩ C ) c^ ∩ ( B ∩ D ) c^ ∩ ( C ∩ D ) c ).

After a bit of practice, you will get used to expressing common sense state- ments in terms of sets. Conversely, when you see such a statement in terms of sets, you should always keep the common sense meaning of the statement in the back of your mind: for example, when you see A ∩ B , you should au- tomatically read that as “the events A and B occur,” rather than the much less helpful “the intersection of sets A and B .”

10 1 Basic Principles of Probability

Remark 1.3.2 (Probabilities, frequencies, and common sense). You probably have an intuitive idea about what probability means. If we flip a coin many times, then the coin will come up heads roughly half the time. Thus we say that the probability that the coin will come up heads is one half. More generally, our common sense intuition about probabilities is in terms of frequency : if we repeated a random experiment many times, the probability of an event is the fraction of these experiments in which the event occurs. The problem with this idea is that it is not clear how to use it to define a precise mathematical theory: we saw in the introduction that a heuristic definition in terms of fractions can lead to ambiguous conclusions. This is why we do not define probabilities as frequencies. Instead, we make an unam- biguous mathematical definition of probability as a number P ( A ) assigned to every event A. We encode common sense into mathematics by insisting that these numbers must satisfy some rules that are precisely the properties that frequencies should have. What are these rules? a. The fraction of experiments in which an event occurs must obviously, by definition, be a number between 0 and 1.

b. As Ω is the set of all possible outcomes, the fraction of experiments where the outcome lies in Ω is obviously 1 by definition.

c. Let A and B be two events such that A ∩ B = ∅:

A B

This means that the events A and B can never occur in the same exper- iment: these events are mutually exclusive. Now suppose we repeated the experiment many times. As A and B cannot occur simultaneously in the same experiment, the number of experiments in which A or B occurs is precisely the sum of the number of experiments where A occurs and where B occurs. Thus the fraction of experiments in which A∪B occurs is the sum of the fraction of experiments in which A occurs and in which B occurs. A similar conclusion holds for mutually exclusive events E 1 , E 2 ,... These three properties of frequencies are precisely the rules that we require probability measures to satisfy in Definition 1.3.1. Once again, we see that the basic principles of probability theory are little more than common sense expressed in mathematical language. Some of you might be concerned at this point that we have traded mathe- matics for reality: by making a precise mathematical definition, we had to give up our intuitive interpretation of probabilities as frequencies. It turns out that

1.3 Probability measure 11

this is not a problem even at the philosophical level. Even though we have not defined probabilities in terms of frequencies, we will later be able to prove using our theory that when we repeat an experiment many times, an event of probability p will occur in a fraction p of the experiments! This important re- sult, called the law of large numbers , is an extremely convincing sign that have made the “right” definition of probabilities: our unambiguous mathematical theory manages to reproduce our common sense notion of probability, while avoiding the pitfalls of a heuristic definition (as in the introduction). We will prove the law of large numbers later in this course. In the meantime, you can rest assured that our mathematical definition of probability faithfully repro- duces our everyday experience with randomness.

Our definition of a probability measure requires that probabilities satisfy some common sense properties. However, there are many other common sense properties that are not listed in Definition 1.3.1. It turns out that the three rules of Definition 1.3.1 are sufficient: we can derive many other natural prop- erties as a consequence. Here are two simple examples.

Example 1.3.3. Let A be an event. Clearly A and its complement Ac^ are mu- tually exclusive, that is, A ∩ Ac^ = ∅ (an event cannot occur and not occur at the same time!) On the other hand, we have A ∪ Ac^ = Ω by definition (in any experiment, either A occurs or A does not occur; there are no other options!) Hence, by properties b and c in the definition of probability measure, we have

1 = P ( Ω ) = P ( A ∪ Ac ) = P ( A ) + P ( Ac ) ,

which implies the common sense rule

P ( Ac ) = 1 − P ( A ).

You can verify, for example, that this rule corresponds to your intuitive in- terpretation of probabilities as frequencies. As a special case, suppose that P ( A ) = 1, that is, we are certain that the event A will happen. Then the above rule shows that P ( Ac ) = 0, that is, we are certain that A will not not happen. That had better be true if our theory is to make any sense!

Example 1.3.4. Let A, B be events such that A ⊆ B. The common sense interpretation of this assumption is that “ A implies B ”. Indeed, if A ⊆ B , then for every outcome for which A occurs necessarily also B occurs; thus occurrence of the event A implies the occurrence of the event B. If A implies B , then you naturally expect that B is at least as likely than A , so P ( B ) should not be smaller than P ( A ). We can derive this from Definition 1.3.1. To do that, note that we can write B = A ∪ ( B\A ), where A and B\A are mutually exclusive. Hence, by properties a and c of Definition 1.3.

1.4 Probabilistic modelling 13

It turns out that this is enough to define the probability measure for this model. To see this, let us use the rules that a probability measure must satisfy. First, note that the events { 1 },... , { 6 } are mutually exclusive (the die cannot come up both 1 and 2 simultaneously!) We therefore obtain

1 = P ( Ω ) = P ( { 1 } ∪ · · · ∪ { 6 } ) = P { 1 } + · · · + P { 6 } = 6 P { 1 },

where we used the modelling assumption in the last step. This implies

P { 1 } = P { 2 } = · · · = P { 6 } =

We have still only defined the probabilities of very special events {i} of the form “the die comes up i ”. In the definition of a probability measure, we must define the probability of any event (such as “the die comes up an even number” { 2 , 4 , 6 } ). However, we can again use the basic rules of probability measures to define these probabilities. Indeed, note that for any event A ⊆ Ω ,

P ( A ) = P

i∈A

{i}

i∈A

P {i} =

|A|

where |A| denotes the number of points in the set A (that is, the number of outcomes for which A is true). So, for example, we can compute

P { the die comes up an even number } =

In this example, we encountered a useful general fact.

Example 1.4.2 (Discrete probability models). If the sample space Ω is discrete (it contains a finite or countable number of points), then in order to specify the probability P ( A ) of any event it is enough to only specify for each outcome ω ∈ Ω the probability of the event {ω} that this outcome occurs: by Definition 1.3.1, we can then express the probability of any event A ⊆ Ω as

P ( A ) = P

ω∈A

{ω}

ω∈A

P {ω}.

We can in principle choose P {ω} to be any numbers, as long as they are non- negative and sum to 1 (as is required by rules a and b of Definition 1.3.1). In the special case that each outcome is equally likely, as in the previous example, the corresponding probability measure is called the uniform distribution.

This example may make you wonder why we bothered to define the proba- bility of every event A ⊆ Ω. Would it not be enough to specify the probability of every outcome ω ∈ Ω? In the next example, we will see that this is a bad idea: it is in general necessary to assign probabilities to events and not just to individual outcomes. This is why Definition 1.3.1 is the way it is.

14 1 Basic Principles of Probability

Example 1.4.3 (Waiting for the bus). We are waiting for a bus at the bus stop. Based on previous experience, we make the following modelling assumption: the bus always comes within at most one hour; but it is equally likely to come at any time within this hour. Of course, the natural sample space for this problem is Ω = [0 , 1]. The more interesting question is how to define the probability measure. To this end, consider for example the following subsets A and B of Ω :

0 x^ x^ +^ ε^ y^ y^ +^ ε 1

A B

Because our modelling assumption is that the bus is equally likely to come at any time in [0 , 1], the probability that the bus arrives at a time in the set A should be equal to the probability that the bus arrives at a time in B : these intervals contain the same length of time. In particular, this suggests that we should define the probability of any event A ⊆ Ω as

P ( A ) = length( A ).

We can check that this choice satisfies the properties of Definition 1.3.1: clearly P ( Ω ) = length([0 , 1]) = 1; P ( A ) = length( A ) ∈ [0 , 1] for every A ⊆ [0 , 1]; and the length of the union of two disjoint sets is the sum of their lengths.

In this example, the probability that the bus comes in an interval A = [ a, a + ε ] is P ( A ) = ε. For example, we can compute the probability

P (The bus comes within the first 15 minutes) = P ([0 , 0_._ 25]) = 0_._ 25_._

This has an interesting consequence, however: the probability that the bus comes exactly at a given time x ∈ [0 , 1] is

P (The bus comes at exactly time x ) = P {x} = 0_._

Thus if you guess in advance of the experiment that the bus will come at exactly time x , then you will always be wrong no matter what number x you chose. This may seem paradoxical, but that is the way it must be! There are infinitely many times in the interval [0 , 1], and each is equally likely; so each exact time must occur with probability zero. A good way to think about this phenomenon is as follows. Suppose you have a watch on which you are timing the arrival of the bus. No watch has infi- nite precision. An ordinary wristwatch can maybe determine the time within the precision of one second. A good stopwatch might be able to determine time with the precision of 10 milliseconds. If you want to measure even more precisely, you have to get your physicist buddy to rig up a timing device based on femtosecond lasers. For every positive amount of precision, the probability of measuring a given time to that precision is nonzero. For example,