





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















The aim of this chapter is to revise the basic rules of probability. By the end of this chapter, you should be comfortable with:
2.1 Sample spaces and events
Example:
Random experiment: Pick a person in this class at random.
2.2 Probability Reference List
The following properties hold for all events A, B.
If A and B are mutually exclusive, then P(A ∪ B) = P(A) + P(B).
∑^ m
i=
P(A ∩ Bi) =
∑^ m
i=
P(A | Bi)P(Bi) for any event A.
As a special case, B and B partition Ω, so: P(A) = P(A ∩ B) + P(A ∩ B) = P(A | B)P(B) + P(A | B)P(B) for any A, B.
More generally, if B 1 , B 2 ,... , Bm form a partition of Ω, then
P(Bj | A) =
P(A | Bj )P(Bj) ∑m i=1 P(A^ |^ Bi)P(Bi)^
for any j.
P(A 1 ∩A 2 ∩.. .∩An) = P(A 1 )P(A 2 | A 1 )P(A 3 | A 2 ∩A 1 )... P(An | An− 1 ∩.. .∩A 1 ).
In the above example, we could replace ‘skiing’ with any attribute B. We have:
P(skis) =
; P(skis | female) =
so:
P(B) =
total # people in class
and:
P(B | female) =
total # females in class
Likewise, we could replace ‘female’ with any attribute A:
P(B | A) =
number in class who are B and A number in class who are A
This is how we get the definition of conditional probability:
P(B | A) =
P(B and A) P(A).
By conditioning on event A, we have changed the sample space to the set of A’s only.
Definition: Let A and B be events on the same sample space: so A ⊆ Ω and B ⊆ Ω. The conditional probability of event B, given event A, is
Multiplication Rule: (Immediate from above). For any events A and B,
Conditioning as ‘changing the sample space’ The idea that “conditioning” = “changing the sample space” can be very helpful in understanding how to manipulate conditional probabilities.
Any ‘unconditional’ probability can be written as a conditional probability:
P(B) = P(B | Ω).
Writing P(B) = P(B | Ω) just means that we are looking for the probability of event B, out of all possible outcomes in the set Ω.
In fact, the symbol P belongs to the set Ω: it has no meaning without Ω. To remind ourselves of this, we can write P = PΩ.
Then P(B) = P(B | Ω) = PΩ(B).
Similarly, P(B | A) means that we are looking for the probability of event B, out of all possible outcomes in the set A.
So A is just another sample space. Thus we can manipulate conditional probabilities P( · | A) just like any other probabilities, as long as we always stay inside the same sample space A.
The trick: Because we can think of A as just another sample space, let’s write
P( · | A) = PA( · ) Note: NOT standard notation!
Then we can use PA just like P, as long as we remember to keep the A subscript on EVERY P that we write.
Solution:
P(B | A) = PA(B) = 1 − PA(B) = 1 − P(B | A).
Thus the correct answer is (a).
Solution:
Thus the correct answer is (a).
Answer: False. P(B | A) = PA(B). Once we have PA, we are stuck with it! There is no easy way of converting from PA to P (^) A: or anything else. Probabilities in one sample space (PA) cannot tell us anything about probabilities in a different sample space (P (^) A).
Exercise: if we wish to express P(B | A) in terms of only B and A, show that
P(B | A) =
. Note that this does not simplify nicely!
2.4 The Partition Theorem (Law of Total Probability)
Definition: Events A and B are mutually exclusive, or disjoint, if A ∩ B = ∅.
This means events A and B cannot happen together. If A happens, it excludes B from happening, and vice-versa.
If A and B are mutually exclusive, P(A ∪ B) = P(A) + P(B). For all other A and B, P(A ∪ B) = P(A) + P(B) − P(A ∩ B).
Definition: Any number of events B 1 , B 2 ,... , Bk are mutually exclusive if every
Definition: A partition of Ω is a collection of mutually exclusive events whose union is Ω.
That is, sets B 1 , B 2 ,... , Bk form a partition of Ω if
Bi ∩ Bj = ∅ for all i, j with i 6 = j ,
and
⋃^ k
i=
Bi = B 1 ∪ B 2 ∪... ∪ Bk = Ω.
B 1 ,... , Bk form a partition of Ω if they have no overlap and collectively cover all possible outcomes.
Intuition behind the Partition Theorem:
The Partition Theorem is easy to understand because it simply states that “the whole is the sum of its parts.”
A
A ∩ B 1 A^ ∩^ B 2
A ∩ B 3 A ∩ B 4
2.5 Bayes’ Theorem: inverting conditional probabilities
Theorem 2.5: Bayes’ Theorem
For any events A and B: P(B | A) =
Proof: P(B ∩ A) = P(A ∩ B) P(B | A)P(A) = P(A | B)P(B) (multiplication rule)
Extension of Bayes’ Theorem Suppose that B 1 , B 2 ,... , Bm form a partition of Ω. By the Partition Theorem,
∑^ m
i=
P(A | Bi)P(Bi).
Thus, for any single partition member Bj , put B = Bj in Bayes’ Theorem to obtain:
P(Bj | A) = P(A | Bj )P(Bj) P(A)
∑P(A^ |^ Bj)P(Bj^ ) m i=1 P(A^ |^ Bi)P(Bi)
A
B 1 B 2
B 3 B 4
Special case: m = 2
Given any event B, the events B and B form a partition of Ω. Thus:
Example: In screening for a certain disease, the probability that a healthy person wrongly gets a positive result is 0.05. The probability that a diseased person wrongly gets a negative result is 0.002. The overall rate of the disease in the population being screened is 1%. If my test gives a positive result, what is the probability I actually have the disease?
2.6 First-Step Analysis for calculating probabilities in a process
In a stochastic process, what happens at the next step depends upon the cur- rent state of the process. We often wish to know the probability of eventually reaching some particular state, given our current position.
Throughout this course, we will tackle this sort of problem using a technique called First-Step Analysis.
The idea is to consider all possible first steps away from the current state. We derive a system of equations that specify the probability of the eventual outcome given each of the possible first steps. We then try to solve these equations for the probability of interest.
First-Step Analysis depends upon conditional probability and the Partition Theorem. Let S 1 ,... , Sk be the k possible first steps we can take away from our current state. We wish to find the probability that event E happens eventually. First-Step Analysis calculates P(E) as follows:
P(E) = P(E|S 1 )P(S 1 ) +... + P(E|Sk)P(Sk).
Here, P(S 1 ),... , P(Sk) give the probabilities of taking the different first steps 1 , 2 ,... , k.
Example: Tennis game at Deuce. Venus and Serena are playing tennis, and have reached the score Deuce (40-40). (Deuce comes from the French word Deux for ‘two’, meaning that each player needs to win two consecutive points to win the game.)
For each point, let:
p = P(Venus wins point), q = 1 − p = P(Serena wins point).
Assume that all points are independent.
Let v be the probability that Venus wins the game eventually, starting from Deuce. Find v.
VENUS WINS (W)
VENUS AHEAD (A)
VENUS BEHIND (B)
p
q
p p
q q
VENUS LOSES (L)
DEUCE (D)
Use First-step analysis. The possible steps starting from Deuce are:
Let V be the event that Venus wins EVENTUALLY starting from Deuce, so v = P(V | D). Starting from Deuce (D), the possible steps are to states A and B. So: v = P(Venus wins | D) = P(V | D) = PD(V ) = PD(V | A)PD(A) + PD(V | B)PD(B) = P(V | A)p + P(V | B)q. (⋆)
Now we need to find P(V | A), and P(V | B), again using First-step analysis:
P(V | A) = P(V | W )p + P(V | D)q = 1 × p + v × q = p + qv. (a)
Similarly,
P(V | B) = P(V | L)q + P(V | D)p = 0 × q + v × p = pv. (b)
Substituting (a) and (b) into (⋆), v = (p + qv)p + (pv)q v = p^2 + 2pqv v(1 − 2 pq) = p^2
v = p^2 1 − 2 pq
Note: Because p + q = 1, we have:
1 = (p + q)^2 = p^2 + q^2 + 2pq. So the final probability that Venus wins the game is:
v =
p^2 1 − 2 pq
p^2 p^2 + q^2
Note how this result makes intuitive sense. For the game to finish from Deuce, either Venus has to win two points in a row (probability p^2 ), or Serena does (probability q^2 ). The ratio p^2 /(p^2 + q^2 ) describes Venus’s ‘share’ of the winning probability.
First-step analysis as the Partition Theorem:
Our approach to finding v = P(Venus wins) can be summarized as: P(Venus wins) = v =
first steps
P(V | first step)P(first step).
First-step analysis is just the Partition Theorem:
The sample space is Ω = { all possible routes from Deuce to the end }.
An example of a sample point is: D → A → D → B → D → B → L. Another example is: D → B → D → A → W.
The partition of the sample space that we use in first-step analysis is: R 1 = { all possible routes from Deuce to the end that start with D → A} R 2 = { all possible routes from Deuce to the end that start with D → B}
Then first-step analysis simply states: P(V ) = P(V | R 1 )P(R 1 ) + P(V | R 2 )P(R 2 ) = PD(V | A)PD(A) + PD(V | B)PD(B).
Notation for quick solutions of first-step analysis problems
Defining a helpful notation is central to modelling with stochastic processes. Setting up well-defined notation helps you to solve problems quickly and easily. Defining your notation is one of the most important steps in modelling, because it provides the conversion from words (which is how your problem starts) to mathematics (which is how your problem is solved).
Several marks are allotted on first-step analysis questions for setting up a well-defined and helpful notation.
VENUS WINS (W) VENUS AHEAD (A) VENUS BEHIND (B) p
q
p p
q (^) q LOSES (L)^ VENUS
DEUCE (D)
Here is the correct way to formulate and solve this first-step analysis problem.
Need the probability that Venus wins eventually, starting from Deuce.
Information given: p 0 = P(R | currently has $0) = 1 , pN = P(R | currently has $N ) = 0.
First-step analysis:
px = P(R | has $x)
= 12 P
R | has $(x + 1)
R | has $(x − 1)
= 12 px+1 + 12 px− 1 (⋆)
True for x = 1, 2 ,... , N − 1 , with boundary conditions p 0 = 1, pN = 0.
Solution of difference equation (⋆):
px = 12 px+1 + 12 px− 1 for x = 1, 2 ,... , N − 1 ; p 0 = 1 (⋆) pN = 0.
We usually solve equations like this using the theory of 2nd-order difference equations. For this special case we will also verify the answer by two other methods.
px = A + Bx for constants A and B and for x = 0, 1 ,... , N.
So
p 0 = A + B × 0 = 1 ⇒ A = 1 ; pN = A + B × N = 1 + BN = 0 ⇒ B = −
So our solution is: px = A + B x = 1 −
x N
for x = 0, 1 ,... , N.
For Stats 325, you will be told the general solution of the 2nd-order difference equation and expected to solve it using the boundary conditions.
For Stats 721, we will study the theory of 2nd-order difference equations. You will be able to derive the general solution for yourself before solving it.
Question: What is the probability that the gambler wins (ends with $N), starting with $x?
ends with $N
ends with $ 0
= 1−px =
x N
for x = 0, 1 ,... , N.
The problem shown in this section is the symmetric Gambler’s Ruin, where the probability is 12 of moving up or down on any step. For this special case, we can solve the difference equation by inspection.
px = 12 px+1 + 12 px− 1 1 2 px^ +^
1 2 px^ =^
1 2 px+1^ +^
1 2 px−^1
1 2 N
(^1) ( − p ) same size for each
p =N 0
0
px−1 x
p = 0 1
x
px = 1 −
x N