When modelling an experiment with uncertain results we often accumulate information during the process. When new information is available it is reasonable to re-evaluate the probabilities previously assigned: conditional probability is the tool to incorporate new information and update the probability measure. Typically the new information is the occurrence of an event connected to the event whose probability we want to re-evaluate.
Example. In an experiment on a new drug, let E= "the patient recovers" with original probability P(E). If now the event F= "the patient gets the drug" occurs we want to re-evaluate P(E). We call P(E∣F) the probability of E knowing that F has occurred.
By the same token [d2=red]=([d1=red]∩[d2=red])∪([d1=black]∩[d2=red]), which gives
P([d2=red])=100⋅9920⋅19+100⋅9980⋅20=10020.
This looks slightly "surprising" and does not correspond to an immediately intuitive computation, since it is not clear how to take into account the result of the first draw. If instead the outcome of the first draw is known, it becomes intuitive again:
P([d2=red] knowing that [d1=red] occurred)=9919,P([d2=red] knowing [d1=black])=9920.
Written briefly P([d2=red]∣[d1=red]) and P([d2=red]∣[d1=black]). Notice that
P([d2=red]∣[d1=red])=9919=P([d1=red])P([d1=red]∩[d2=red])=10020100⋅9920⋅19,P([d2=red]∣[d1=black])=9920=P([d1=black])P([d1=black]∩[d2=red])=10080100⋅9980⋅20.
(On the page the middle value in the second line appears as 20/100; the computation of the right-hand side gives 20/99, which is the value stated in the previous paragraph.)
Definition
Given E,F∈F with P(F)>0 define
P(E∣F)≜P(F)P(E∩F),
called the conditional probability of E given (the occurrence of) F.
Properties
(a) 0≤P(E∣F)≤1 for all E∈F. Indeed E∩F⊂F⇒0≤P(E∩F)≤P(F)⇒0≤P(E∣F)=P(F)P(E∩F)≤P(F)P(F)=1.
(b) If E∩F=∅ then P(E∣F)=0 (trivial).
(c) If P(E)=0 then P(E∣F)=0. Indeed E∩F⊂E⇒0≤P(E∣F)=P(F)P(E∩F)≤P(F)P(E)=0.
(d) If P(E)=1 then P(E∣F)=1. Indeed P(E∣F)=P(F)P(E∩F)≥P(F)P(E)+P(F)−1=1 (using P(E∩F)=P(E)+P(F)−P(E∪F)≥P(E)+P(F)−1).
(e) Remark: in general P(E∣F)≷P(E) depending on P,E,F. It is natural to compare the original probability P(E) with P(E∣F), the revised probability of E after the occurrence of F.
Lemma: P(⋅∣F) is a probability measure
Lemma. For fixed F with P(F)>0, the map P(⋅∣F):F→R is a probability measure.
Proof. (F is fixed once and for all.)
(i) P(E∣F)≥0 for all E, since P(E∣F)=P(E∩F)/P(F).
(ii) P(Ω∣F)=P(F)P(Ω∩F)=P(F)P(F)=1.
(iii) If (Ei) is a disjoint sequence of events, then (Ei∩F) is a disjoint sequence too and
P(i⋃EiF)=P(F)P((⋃iEi)∩F)=P(F)P(⋃i(Ei∩F))=i∑P(F)P(Ei∩F)=i∑P(Ei∣F).
Warning.P(E∣Fc) has no relation with P(E∣F) in general!
Empirical conditional probability
Suppose you need to evaluate the effectiveness of a new drug. You organize a clinical trial with n patients affected by the disease: some get the new drug, some the traditional treatment, some recover, some do not. Define
D = patient gets the new drug, Dˉ = patient does not get it;
R = patient recovers, Rˉ = patient does not recover.
Raw data: for each patient one records which of R,Rˉ and which of D,Dˉ hold. The summary is the contingency table
The new drug is effective if P^n(R∣D)>P^n(R∣Dˉ), which is equivalent to
detnRDnRˉDnRDˉnRˉDˉ>0.
These conditions are also equivalent to P^n(R∣D)>P^n(R).
Exercise (footnote on the page).P(E∣F)≥P(E∣Fc) is equivalent to P(E∣F)≥P(E). Hint: start by proving that
P(E∣F)−P(E∣Fc)=P(Fc)P(E∣F)−P(E).
Multiplication formula
If both P(E)>0 and P(F)>0 then P(E∣F)=P(F)P(E∩F) and P(F∣E)=P(E)P(E∩F), therefore
P(E∩F)=P(E∣F)P(F)=P(F∣E)P(E).
These are called multiplication formulas and are very useful for the evaluation of P(E∩F). Although mathematically equivalent, in practice one might be more convenient than the other.
Example (continuing the urn of 80 black and 20 red balls).P([d1=red]∩[d2=black])=P([d2=black]∣[d1=red])P([d1=red])=9980⋅10020.
More elaborate multiplication formulas involve 3 or more events:
P(E1∩E2∩E3)=P(E3∣E2∩E1)P(E2∩E1)=P(E3∣E2∩E1)P(E2∣E1)P(E1),etc.
Example (deck of cards). Poker deck of 52 cards, draw 3 cards without replacement. P("no clubs among the 3 cards") is the product, written right to left, of: P(first no club), P(second no club∣first no club), P(third no club∣first and second no clubs):
5252−13×5138×5037.
(52−13=39 cards that are not clubs at the first draw out of 52 in the deck; after the first draw 38 non-clubs remain among 51 cards; after two draws 37 non-clubs among 50.)
Example (Polya urn, good to model the spread of viruses). The urn contains 3 white and 5 red balls. Three draws; after each draw the ball is replaced in the urn together with 2 more balls of the same colour. (In the formulas a comma means ∩.)
P(d1=W,d2=W,d3=R)=P(d3=R∣d2=W,d1=W)P(d2=W∣d1=W)P(d1=W)=125×105×83.
(After one white draw the urn has 5 white and 5 red balls, after a second white draw 7 white and 5 red out of 12.)
Example (two tetrahedral dice). Throw two tetrahedral dice, one black one white. Compute P(4 occurs on the black die∣sum of the dice=i) for i=2,…,8. Represent Ω as the 4×4 table of pairs (black, white) with equiprobable measure P; the anti-diagonals are the sums 5,6,7,8 (and the corner cells give the sums 2,3,4). Let E= "4 on black", Fi= "sum =i". Then P(E∣Fi)=P(Fi)P(E∩Fi)=∣Fi∣∣E∩Fi∣ and:
Definition: for P(F)>0, P(E∣F)=P(F)P(E∩F) = probability of E knowing that F occurred.
Properties: 0≤P(E∣F)≤1; E∩F=∅⇒P(E∣F)=0; P(E)=0⇒P(E∣F)=0; P(E)=1⇒P(E∣F)=1; P(E∣F)≷P(E) in general.
Lemma: P(⋅∣F) is a probability measure (nonneg., P(Ω∣F)=1, σ-additive since Ei∩F disjoint); so P(Ec∣F)=1−P(E∣F). Warning: P(E∣Fc) is unrelated to P(E∣F).