Lecture Ps
Lecture Ps
1
Example
Alice and Bob toss two fair coins separately. Denote the event that Alice gets a
H by EA and the event that Bob gets a H by EB .
We know that P(EA ) = P(EB ) = 1/2.
2
Example
Alice and Bob toss two fair coins separately. Denote the event that Alice gets a
H by EA and the event that Bob gets a H by EB .
We know that P(EA ) = P(EB ) = 1/2.
The sample space you are considering is: HT, TH, TT, HH. So EA = {HT,
HH} and EB = { TH , HH} .
2
Example
Alice and Bob toss two fair coins separately. Denote the event that Alice gets a
H by EA and the event that Bob gets a H by EB .
We know that P(EA ) = P(EB ) = 1/2.
The sample space you are considering is: HT, TH, TT, HH. So EA = {HT,
HH} and EB = { TH , HH} .
So the union is really
P(EA ∪ EB ) = P(EA ) + P(EB ) − P(EA ∩ EB ) = 3/4.
2
Example
Alice and Bob toss two fair coins separately. Denote the event that Alice gets a
H by EA and the event that Bob gets a H by EB .
We know that P(EA ) = P(EB ) = 1/2.
The sample space you are considering is: HT, TH, TT, HH. So EA = {HT,
HH} and EB = { TH , HH} .
So the union is really
P(EA ∪ EB ) = P(EA ) + P(EB ) − P(EA ∩ EB ) = 3/4.
May be what you are really thinking about is independent and not
disjoint events.
2
Partial information
3
Conditional Probability
Original problem:
What is the probability of some event A.
e.g. What is the probability that we roll a number less than 4?
In other words, what is P(A)?
This is given by our probability law.
4
Conditional Probability
Original problem:
What is the probability of some event A.
e.g., What is the probability that we roll a number less than 4?
In other words, what is P(A)?
This is given by our probability law.
New problem:
Assuming event B (equivalently given event B ), what is the
probability of event A?
e.g., Given that the number rolled is an odd number, what is the
probability that it is less than 4?
We call this the conditional distribution of A given B .
We write this as P(A|B)
Read | as “given” or “conditioned on the fact that”.
Our conditional probability is still describing “the probability of
something”, so we expect it to behave like a probability distribution.
4
Conditional Probability
5
Conditional Probability
6
Conditional Probability
6
Conditional Probability
6
Conditional Probability
P(A ∩ B)
More generally, P(A|B) = .
P(B)
6
Conditional Probability
P(A ∩ B)
More generally, P(A|B) = .
P(B)
A conditional probability is only defined if P(B) > 0.
6
Conditional Probability Axioms
Nonnegativity – Check.
Normalization –
Additivity –
7
Conditional Probability Axioms
Nonnegativity – Check.
Normalization – Your new universe is now B , and we know that
P(B|B) = 1.
Additivity –
7
Conditional Probability Axioms
Nonnegativity – Check.
Normalization – Your new universe is now B , and we know that
P(B|B) = 1.
Additivity – P(A 1 ∪ A2|B) = P(A 1|B) + P(A 2|B) for two disjoint sets,
A1 and A2.
7
Conditional Probability Axioms
Nonnegativity – Check.
Normalization – Your new universe is now B , and we know that
P(B|B) = 1.
Additivity – P(A 1 ∪ A2|B) = P(A 1|B) + P(A 2|B) for two disjoint sets,
A1 and A2.
Ω
B Conditioning on B
— − − − − − − −→ B
A1 A2
A2 ∩ B A1 ∩ B
7
Conditional Probability Axioms
Nonnegativity – Check.
Normalization – Your new universe is now B , and we know that
P(B|B) = 1.
Additivity – P(A 1 ∪ A2|B) = P(A 1|B) + P(A 2|B) for two disjoint sets,
A1 and A2.
Ω
B Conditioning on B
— − − − − − − −→ B
A1 A2
A2 ∩ B A1 ∩ B
7
Properties of conditional probability
If P(B) > 0,
𝑛
𝑃 ¿ 𝑖=1 ¿ 𝑛 𝐴 𝑖∨ 𝐵=∑ 𝑃 ( 𝐴¿ ¿ 𝑖∨ 𝐵) ¿
𝑖 =1
8
Properties of conditional probability
If P(B) > 0,
8
Properties of conditional probability
If P(B) > 0,
8
Properties of conditional probability
If P(B) > 0,
8
Properties of conditional probability
If P(B) > 0,
8
Example: Coin toss
Consider the experiment of tossing a fair coin three times. What is the probability
of getting alternating heads and tails conditioned on the event that your first
toss gives a head?
Notation: Let A := {Tosses yield alternating tails and heads} and
B := { The first toss is a head}.
We want P(A|B) .
What if you wanted to follow the formula?
9
Example: Coin toss
Consider the experiment of tossing a fair coin three times. What is the probability
of getting alternating heads and tails conditioned on the event that your first
toss gives a head?
Notation: Let A := {Tosses yield alternating tails and heads} and
B := { The first toss is a head}.
We want P(A|B) .
What if you wanted to follow the formula?
Sample space for three coin tosses
{ HHH, HHT , HTH , HTT , THH , THT , TTH , T T T } .
9
Example: Coin toss
Consider the experiment of tossing a fair coin three times. What is the probability
of getting alternating heads and tails conditioned on the event that your first
toss gives a head?
Notation: Let A := {Tosses yield alternating tails and heads} and
B := { The first toss is a head}.
We want P(A|B) .
What if you wanted to follow the formula?
Sample space for three coin tosses
{ HHH, HHT , HTH , HTT , THH , THT , TTH , T T T } .
A = { HTH , THT } and A ∩ B = { HTH } .
9
Example: Coin toss
Consider the experiment of tossing a fair coin three times. What is the probability
of getting alternating heads and tails conditioned on the event that your first
toss gives a head?
Notation: Let A := {Tosses yield alternating tails and heads} and
B := { The first toss is a head}.
We want P(A|B) .
What if you wanted to follow the formula?
Sample space for three coin tosses
{ HHH, HHT , HTH , HTT , THH , THT , TTH , T T T } .
A = { HTH , THT } and A ∩ B = { HTH } .
We have P(B) = 4/8 and P(A ∩ B) = 1/8 and so P(A|B) = 1/4.
9
Example: Coin toss
Consider the experiment of tossing a fair coin three times. What is the probability
of getting alternating heads and tails conditioned on the event that your first
toss gives a head?
Notation: Let A := {Tosses yield alternating tails and heads} and
B := { The first toss is a head}.
We want P(A|B) .
What if you wanted to follow the formula?
Sample space for three coin tosses
{ HHH, HHT , HTH , HTT , THH , THT , TTH , T T T } .
A = { HTH , THT } and A ∩ B = { HTH } .
We have P(B) = 4/8 and P(A ∩ B) = 1/8 and so P(A|B) = 1/4.
9
Example: Coin toss
Consider the experiment of tossing a fair coin three times. What is the probability
of getting alternating heads and tails conditioned on the event that your first
toss gives a head?
Notation: Let A := {Tosses yield alternating tails and heads} and
B := { The first toss is a head}.
We want P(A|B) .
What if you wanted to follow the formula?
Sample space for three coin tosses
{ HHH, HHT , HTH , HTT , THH , THT , TTH , T T T } .
A = { HTH , THT } and A ∩ B = { HTH } .
We have P(B) = 4/8 and P(A ∩ B) = 1/8 and so P(A|B) = 1/4.