Lecture 2

Robin Sandquist Robin Sandquist

Conditional probabilities

Let A and B be events. Recall that A∩B= {both A and B occur}.

Assume we now find out that B occurs. Given this information, what is the probability that A occurs?

Definition

The conditional probability for the event A given B is calculated by P(A|B)=P(A∩B)P(B),ifP(B)>0.

Note that if A∩B=∅, then P(A|B)=0. Also if B⊆A, then P(A|B)=1.

Example

When throwing dice, we know that the probability of getting 5 dots: P(5)=16. But P(5|odd number of dots)=1/61/2=13.

Independant events

Definition

We say that A and B are unconditional events if P(A∩B)=P(A)P(B).

Note that if A and B are independant, and the probability P(B)>0, then P(A|B)=P(A∩B)P(B)=P(A)P(B)P(B)=P(A).

Independence of Three Events

The events A, B, and C are said to be pairwise independent if

P(A∩B)=P(A)P(B), P(A∩C)=P(A)P(C),

and

P(B∩C)=P(B)P(C).

The events A, B, and C are said to be mutually independent if they are pairwise independent and

P(A∩B∩C)=P(A)P(B)P(C).

Pairwise independence does not necessarily imply mutual independence. However, mutual independence always implies pairwise independence.

Example

Example of a situation where we have pairwise independence but not mutual independence:

Let Ω=1,2,3,4 and P be the uniform measurement on Ω.

Let A=1,2,B=1,3,andC=1,4⟹P(A)=P(B)=P(C)=12.

P(A∩B)=14,P(A∩C)=14,and P(B∩C)=14.But P(A∩B∩C)=14≠(12)3=18. So these three events are pairwise independent, but not mutually independent.

The law of total probability

Recall: If A and B are events, then P(A|B) is the conditional probability for A given B.

Definition

Let Ω be a sample space. The events A1,…,An form a partition of Ω if

Ai∩Aj=∅whenever i≠j,

and

⋃i=1nAi=Ω.
Theorem (Law of Total Probability)

Let A1,…,An be a partition of Ω such that P(Ai)>0 for every i. If B is an event, then

P(B)=∑i=1nP(B|Ai)P(Ai).

Proof.

Write

B=⋃i=1n(B∩Ai)⏟pairwise disjoint.

We see that

P(B)=P(⋃i=1n(B∩Ai))=Kolmogorov’s axioms∑i=1nP(B∩Ai)=definition of conditional probability∑i=1nP(B|Ai)P(Ai).□
Theorem (Bayes theorem)

Let A1,…,An be a partition of Ω, and let B be an event with P(B)>0. For i=1,2,…,n, we have:

P(Ai|B)=P(B|Ai)P(Ai)∑j=1nP(B|Aj)P(Aj).

Proof.

For i=1,…,n, we have

P(Ai|B)=P(Ai∩B)P(B)(definition of conditional probability)=P(B|Ai)P(Ai)P(B)(definition of conditional probability)=P(B|Ai)P(Ai)∑j=1nP(B|Aj)P(Aj)(law of total probability).□