44
02407 Stochastic Processes Elements of basic probability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables F X , the cumulated distribution function (cdf) Discrete and continuous variables Conditional expectation The Bernoulli process Summary 1 / 39 Recap of Basic Probability Theory Uffe Høgsbro Thygesen Informatics and Mathematical Modelling Technical University of Denmark 2800 Kgs. Lyngby – Denmark Email: [email protected]

Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

02407 Stochastic Processes

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

1 / 39

Recap of Basic ProbabilityTheoryUffe Høgsbro ThygesenInformatics and Mathematical ModellingTechnical University of Denmark2800 Kgs. Lyngby – DenmarkEmail: [email protected]

Page 2: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Elements of basic probability theory

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

2 / 39

Stochastic experiments

The probability triple (Ω,F ,P):

Ω: The sample space, ω ∈ Ω

F : The set of events, A ∈ F ⇒ A ⊂ Ω

P: The probability measure, A ∈ F ⇒ P(A) ∈ [0, 1]

Random variables

Distribution functions

Conditioning

Page 3: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Why recap probability theory?

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

3 / 39

Stochastic processes is applied probability

A firm understanding of probability (as taught in e.g. 02405)will get you far

We need a more solid basis than most students develop ine.g. 02405.

What to recap?The concepts are most important: What is a stochastic variable,what is conditioning, etc.Specific models and formulas: That a binomial distributionappears as the sum of Bernoulli variates, etc.

Page 4: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

The set-up of probability theory

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

4 / 39

We perform a stochastic experiment.

We use ω to denote the outcome.The sample space Ω is the set of all possible outcomes.

ω

Ω

Page 5: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

The sample space Ω

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

5 / 39

Ω can be a very simple set, e.g.

H,T (tossing a coin a.k.a. Bernouilli experiment)

1, 2, 3, 4, 5, 6 (throwing a die once).

N (typical for single discrete stochastic variables)

Rd (typical for multivariate continuous stochastic variables)

or a more complicated set, e.g.

The set of all functions R 7→ Rd with some regularity

properties.

Often we will not need to specify what Ω is.

Page 6: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Events

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

6 / 39

Events are sets of outcomes/subsets of ΩEvents correspond to statements about the outcome.

For a die thrown once, theevent

A = 1, 2, 3

corresponds to the statement“the die showed no more thanthree”.

ω

ΩA

Page 7: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Probability

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

7 / 39

A Probability is a set measure of an eventIf A is an event, then

P(A)

is the probability that the event A occurs in the stochasticexperiment - a number between 0 and 1.(What exactly does this mean? C.f. G&S p 5, and appendix III)Regardless of interpretation, we can pose simle conditions formathematical consistency.

Page 8: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Logical operators as set operators

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

8 / 39

An important question: Which events are “measurable”, i.e.have a probability assigned to them?We want our usual logical reasoning to work!So: If A and B are legal statements, represented by measurablesubsets of Ω, then so are

Not A, i.e. Ac = Ω\A

A or B, i.e. A ∪B.

Page 9: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Parallels between statements and sets

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

9 / 39

Set Statement

A “The event A occured” (ω ∈ A)Ac Not A

A ∩B A and BA ∪B A or B

(A ∪B)\(A ∩B) A exclusive-or B

See also table 1.1 in Grimmett & Stirzaker, page 3

Page 10: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

An infinite, but countable, number of statements

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

10 / 39

For the Bernoulli experiment, we need statements like

At least one experiment shows heads

or

In the long run, every other experiment shows heads.

So: If Ai are events for i ∈ N, then so is ∪i∈NAi.

Page 11: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

All events considered form a σ-field F

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

11 / 39

Definition:

1. The empty set is an event, ∅ ∈ F

2. Given a countable set of events A1, A2, . . ., its union is alsoan event, ∪i∈NAi ∈ F

3. If A is an event, then so is the complementary set Ac.

Page 12: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

(Trivial) examples of σ-fields

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

12 / 39

1. F = ∅,ΩThis is the deterministic case: All statements are either true(∀ω) or false (∀ω).

2. F = ∅, A,Ac,ΩThis corresponds to the Bernoulli experiment or tossing acoin: The event A corresponds to “heads”.

3. F = 2Ω = set of all subsets of Ω.

When Ω is finite or enumerable, we can actually work with 2Ω;otherwise not.

Page 13: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Define probabilities P(A) for all events A

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

13 / 39

1. P(∅) = 0 , P(Ω) = 1

2. If A1, A2, . . . are mutually excluding events (ie. Ai ∩Aj = ∅for i 6= j), then

P(∪∞i=1Ai) =

∞∑

i=1

P(Ai)

A P : F 7→ [0, 1] satisfying these is called a probability measure.The triple (Ω,F ,P) is called a probability space.

Page 14: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Conditional probabilities

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

14 / 39

In stochastic processes, we want to know what to expect fromthe future, conditional on our past observations.

Ω

BAA^B

BA^B

P(A|B) =P(A ∩B)

P(B)

Page 15: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Be careful when conditioning!

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

15 / 39

If you are not careful about specifying the events involved, youcan easily obtain wrong conclusions.

Example: A family has two children. Each child is a boy withprobability 1/2, independently of the other. Given that at leastone is a boy, what is the probability that they are both boys?

Page 16: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Be careful when conditioning!

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

15 / 39

If you are not careful about specifying the events involved, youcan easily obtain wrong conclusions.

Example: A family has two children. Each child is a boy withprobability 1/2, independently of the other. Given that at leastone is a boy, what is the probability that they are both boys?

The meaningless answer:

P(two boys|at least one boy) = P(other child is a boy) =1

2

Page 17: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Be careful when conditioning!

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

15 / 39

If you are not careful about specifying the events involved, youcan easily obtain wrong conclusions.

Example: A family has two children. Each child is a boy withprobability 1/2, independently of the other. Given that at leastone is a boy, what is the probability that they are both boys?

The meaningless answer:

P(two boys|at least one boy) = P(other child is a boy) =1

2

The right answer:

P(two boys|at least one boy) =P(two boys)

P(at least one boy)=

1/4

3/4=

1

3

Page 18: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Lemma: The law of total probability

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

16 / 39

Let B1, . . . , Bn be a partition of Ω

(ie., mutually disjoint and ∪ni=1Bi = Ω)

Then

P (A) =

n∑

i=1

P(A|Bi)P(Bi)

Page 19: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Independence

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

17 / 39

Events A and B are called independent if

P(A ∩B) = P(A)P(B)

When 0 < P(B) < 1, this is the same as

P(A|B) = P(A) = P(A|Bc)

A family Ai : i ∈ I of events is called independent if

P(∩i∈JAi) =∏

i∈J

P(Ai)

for any finite subset J of I.

Page 20: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Stochastic variables

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

18 / 39

Informally: A quantity which is assigned by a stochasticexperiment.Formally: A mapping X : Ω 7→ R.

Page 21: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Stochastic variables

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

18 / 39

Informally: A quantity which is assigned by a stochasticexperiment.Formally: A mapping X : Ω 7→ R.

A Technical comment We want the probabilities P(X ≤ x) tobe well defined. So we require

∀x ∈ R : ω : X(ω) ≤ x ∈ F

Page 22: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Examples of stochastic variables

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

19 / 39

Indicator functions:

X(ω) = IA(ω) =

1 when ω ∈ A,0 else.

Bernoulli variables:

Ω = H,T, X(H) = 1, X(T ) = 0.

Page 23: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

FX , the cumulated distribution function (cdf)

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

20 / 39

F (x) = P(X ≤ x)

Properties:

1. limx→−∞ F (x) = 0, limx→+∞ F (x) = 1.

2. x < y ⇒ F (x) ≤ F (y)

3. F is right-continuous, ie. F (x+ h) → F (x) as h ↓ 0.

Page 24: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Discrete and continuous variables

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

21 / 39

Discrete variables: ImX is a countable set. So FX is a stepfunction. Typically ImX ⊂ Z.Continuous variables: X has a probability density function

(pdf) f , i.e.

F (x) =

∫ x

−∞f(u) du

so F is differentiable.

Page 25: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

A variable which is neither continuous nor discrete

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

22 / 39

Let X ∼ U(0, 1), i.e. uniform on [0, 1] so that

FX(x) = x for 0 ≤ x ≤ 1.

Toss a fair coin. If heads, then set Y = X. If tails, then setY = 0.

FY (y) =1

2+

1

2x for 0 ≤ y ≤ 1.

We say that Y has an atom at 0.

Page 26: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Mean and variance

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

23 / 39

The mean of a stochastic variable is

EX =∑

i∈Z

iP(X = i)

in the discrete case, and

EX =

∫ +∞

−∞f(x) dx

in the continuous case. In both cases we assume that thesum/integral exists absolutely.The variance of X is

VX = E(X − Ex)2 = EX2 − (EX)2

Page 27: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Conditional expectation

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

24 / 39

The conditional expectation is the mean in the conditionaldistribution

E(Y |X = x) =∑

y

yfY |X(y|x)

It can be seen as a stochastic variable: Let ψ(x) = E(Y |X = x),then ψ(X) is the conditional expectation of Y given X

ψ(X) = E(Y |X)

We haveE(E(Y |X)) = EY

Page 28: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Conditional variance V(Y |X)

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

25 / 39

is the variance in the conditional distribution.

V(Y |X = x) =∑

y

(y − ψ(x))2fY |X(y|x)

This can also be written as

V(Y |X) = E(Y 2|X) − (E(Y |X))2

and can be manipulated into (try it!)

VY = EV(Y |X) + VE(Y |X)

which partitions the variance of Y .

Page 29: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Random vectors

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

26 / 39

When a single stochastic experiment defines the value of severalstochastic variables.Example: Throw a dart. Record both vertical and horizontaldistance to center.

X = (X1, . . . , Xn) : Ω 7→ Rn

Also random vectors are characterised by the distributionfunction F : Rn 7→ [0, 1]:

F (x) = P(X1 ≤ x1, . . . , Xn ≤ xn)

where x = (x1, . . . , xn).

Page 30: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Example

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

27 / 39

In one experiment, we toss two fair coins and assign the resultsto V and X.

In another experiment, we toss one fair coin and assign theresult to both Y and Z.

V , X, Y and Z are all identically distributed.

But (V,X) and (Y, Z) are not identically distributed.

E.g. P(V = X = heads) = 1/4 while P(Y = Z = heads) = 1/2.

Page 31: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

The Bernoulli process

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

28 / 39

Start with working out one single Bernoulli experiment.

Then consider a finite number of Bernoulli experiments: Thebinomial distribution

Next, a sequence of Bernoulli experiments: The Bernoulliprocess.

Waiting times in the Bernoulli process: The negative binomialdistribution.

Page 32: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

The Bernoulli experiment

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

29 / 39

A Bernoulli experiment models e.g. tossing a coin.

The sample space is Ω = H,T.

Events are F = ∅, H, T,Ω = 2Ω = 0, 1Ω.

The probability P : F 7→ [0, 1] is defined by (!)

P(H) = p .

The stochastic variable X : Ω 7→ R with

X(H) = 1 X(T ) = 0

is Bernoulli distributed with parameter p.

Page 33: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

A finite number of Bernoulli variables

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

30 / 39

We toss a coin n times.

The sample space is Ω = H,Tn.

For the case n = 2, this is TT, TH,HT,HH.

Events are F = 2Ω = 0, 1Ω.

How many events are there? |F| = 2|Ω| = 2(2n) (a lot).

Introduce Ai for the event “the i’th toss showed heads”.

Page 34: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

31 / 39

The probability P : F 7→ [0, 1] is defined by

P(Ai) = p

and by requiring that

the events Ai : i = 1, . . . , n are independent.

From this we derive

P(ω) = pk(1 − p)n−k if ω has k heads and n− k tails.

and from that the probability of any event.

Page 35: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

32 / 39

Define the stochastic variable X as number of heads

X =

n∑

i=1

1(Ai)

To find its probability mass function, consider the events

P(X = x) which is shorthand for P(ω : X(ω) = x)

This event X = x has(

nx

)

elements. Each ω ∈ X = x hasprobability

P(ω) = px(1 − p)n−x

so the probability is

P(X = x) =

(

n

x

)

px(1 − p)n−x

Page 36: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Properties of B(n, p)

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

33 / 39

Probability mass functionfX(x) = P(X = x) =

(

n

x

)

px(1−p)n−x

Cumulated distribution function FX(x) = P(X ≤ x) =

x∑

i=0

fX(i)

Mean valueEX = E

n∑

i=1

1(Ai) =n

i=1

P(Ai) = np

VarianceVX =

n∑

i=1

V1(Ai) = np(1−p)

because Ai : i = 1, . . . n are (pairwise) independent.

Page 37: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Problem 3.11.8

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

34 / 39

Let X ∼ B(n, p) and Y ∼ B(m, p) be independent.Show that Z = X + Y ∼ B(n+m, p)

Page 38: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Problem 3.11.8

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

34 / 39

Let X ∼ B(n, p) and Y ∼ B(m, p) be independent.Show that Z = X + Y ∼ B(n+m, p)Solution:Consider m+ n independent Bernoulli trials, each w.p. p.

Set X =∑n

i=1 1(Ai) and Y =∑n+m

i=n+1 1(Ai).

Then X and Y are as in the problem, and

Z =n+m∑

i=1

1(Ai) ∼ B(n, p)

Page 39: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

The Bernoulli process

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

35 / 39

A sequence of Bernoulli experiments.

The sample space Ω is the set of functions N 7→ 0, 1.

Introduce events Ai for “the ith toss showed heads”.

Strictly: Ai = ω : ω(i) = 1

Let F be the smallest σ-field that contains all Ai.

Page 40: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Probabilities in the Bernoulli process

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

36 / 39

Define (!) P : F 7→ [0, 1] by

P(Ai) = p

andAi : i ∈ N are independent.

Page 41: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Probabilities in the Bernoulli process

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

36 / 39

Define (!) P : F 7→ [0, 1] by

P(Ai) = p

andAi : i ∈ N are independent.

Page 42: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Waiting times in the Bernoulli process

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

37 / 39

Let Wr be the waiting time for the rth succes:

Wt = mini :

i∑

j=1

1(Aj) = r

To find the probability mass function of Wr, note that Wr = k isthe same event as

(k−1∑

i=1

1(Ai) = r − 1) ∩Ak

Since the two events involved here are independent, we get

fW (k) = P(Wr = k) =

(

k − 1

r − 1

)

pr(1 − p)k−r

Page 43: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

The geometric distribution

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

38 / 39

The waiting time W to the first success

P(W = k) = (1 − p)k−1p

(First k − 1 failures and then one success)

The survival function is

GW (k) = P(W > k) = (1 − p)k

Page 44: Recap of Basic Probability Theoryprobability theory Why recap probability theory? The set-up of probability theory Conditional probabilities Stochastic variables FX, the cumulated

Summary

Elements of basicprobability theory

Why recapprobability theory?

The set-up ofprobability theory

Conditionalprobabilities

Stochastic variablesFX , the cumulateddistribution function(cdf)

Discrete andcontinuous variablesConditionalexpectation

The Bernoulliprocess

Summary

39 / 39

We need be precise in our use of probability theory, at least untilwe have developed intuition.

When in doubt, ask: What is the stochastic experiment? Whatis the probability triple? Which event am I considering?

Venn diagrams a very useful. This holds particularly forconditioning, which is central to stochastic processes.

Indicator functions are powerful tools, once mastered.

You need to know the distributions that can be derived from theBernoulli process: The binomial, geometric, and negativebinomial distribution.