Skip to content

Mathematics · Ch 9 — Probability

Conditional Probability

9.2

Conditional Probability

13.2 Conditional Probability

So far we have found probabilities of events using the entire sample space. But real life often gives us partial information: if we know one event has already occurred, does that change the chance of another? This is the central question of conditional probability.

Motivating Example: Tossing Three Fair Coins

Consider tossing three fair coins. The sample space is:

S={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}S = \{HHH, HHT, HTH, THH, HTT, THT, TTH, TTT\}

Each outcome is equally likely, with probability 18\frac{1}{8}.

Define two events:

  • E: "at least two heads appear"
  • F: "first coin shows tail"

Then:

E={HHH,HHT,HTH,THH}E = \{HHH, HHT, HTH, THH\}

F={THH,THT,TTH,TTT}F = \{THH, THT, TTH, TTT\}

So P(E)=48=12P(E) = \frac{4}{8} = \frac{1}{2} and P(F)=48=12P(F) = \frac{4}{8} = \frac{1}{2}. The intersection E∩FE \cap F contains only THH, so:

P(E∩F)=18P(E \cap F) = \frac{1}{8}

Now suppose we are told the first coin shows tail — event F has occurred. The sample space is no longer S: since we know F happened, we restrict attention to the outcomes in F. Within F, only one outcome (THH) is favourable to E, so:

Probability of E given F=14\text{Probability of E given F} = \frac{1}{4}

This is the conditional probability of E given F, denoted P(E∣F)P(E|F).

Note

The 14\frac{1}{4} comes from counting: among the 4 outcomes of F, only 1 (THH) belongs to E. So P(E∣F)=n(E∩F)n(F)=14P(E|F) = \frac{n(E \cap F)}{n(F)} = \frac{1}{4}.

Formal Definition of Conditional Probability

From the example:

P(E∣F)=Number of elementary events favourable to E∩FNumber of elementary events favourable to F=n(E∩F)n(F)P(E|F) = \frac{\text{Number of elementary events favourable to } E \cap F}{\text{Number of elementary events favourable to } F} = \frac{n(E \cap F)}{n(F)}

Dividing numerator and denominator by n(S)n(S):

P(E∣F)=n(E∩F)n(S)n(F)n(S)=P(E∩F)P(F)P(E|F) = \frac{\frac{n(E \cap F)}{n(S)}}{\frac{n(F)}{n(S)}} = \frac{P(E \cap F)}{P(F)}

This is valid only when P(F)≠0P(F) \neq 0.

Conditional Probability

P(E∣F)=P(E∩F)P(F),provided P(F)≠0P(E|F) = \frac{P(E \cap F)}{P(F)}, \quad \text{provided } P(F) \neq 0

Watch out

A common mistake is to forget the condition P(F)≠0P(F) \neq 0. If P(F)=0P(F) = 0, event F is impossible and the conditional probability is undefined — always check this before applying the formula.

Properties of Conditional Probability

Property 1: Probability of the Sample Space

P(S∣F)=1P(S|F) = 1

Proof: Since S∩F=FS \cap F = F,

P(S∣F)=P(S∩F)P(F)=P(F)P(F)=1P(S|F) = \frac{P(S \cap F)}{P(F)} = \frac{P(F)}{P(F)} = 1

Property 2: Probability of the Empty Event

P(ϕ∣F)=0P(\phi|F) = 0

Proof: Since ϕ∩F=ϕ\phi \cap F = \phi and P(ϕ)=0P(\phi) = 0,

P(ϕ∣F)=P(ϕ∩F)P(F)=0P(F)=0P(\phi|F) = \frac{P(\phi \cap F)}{P(F)} = \frac{0}{P(F)} = 0

Property 3: Conditional Probability of a Union

For any two events A and B:

P(A∪B∣F)=P(A∣F)+P(B∣F)−P(A∩B∣F)P(A \cup B | F) = P(A|F) + P(B|F) - P(A \cap B | F)

Proof:

P(A∪B∣F)=P((A∪B)∩F)P(F)P(A \cup B | F) = \frac{P((A \cup B) \cap F)}{P(F)}

Using (A∪B)∩F=(A∩F)∪(B∩F)(A \cup B) \cap F = (A \cap F) \cup (B \cap F) and the addition theorem, with (A∩F)∩(B∩F)=A∩B∩F(A \cap F) \cap (B \cap F) = A \cap B \cap F:

P((A∩F)∪(B∩F))=P(A∩F)+P(B∩F)−P(A∩B∩F)P((A \cap F) \cup (B \cap F)) = P(A \cap F) + P(B \cap F) - P(A \cap B \cap F)

Dividing through by P(F)P(F) and writing each term as a conditional probability:

P(A∪B∣F)=P(A∣F)+P(B∣F)−P(A∩B∣F)P(A \cup B | F) = P(A|F) + P(B|F) - P(A \cap B | F)

Tip

This mirrors the ordinary addition rule P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B), with everything conditioned on F — just add "|F" to every term. …

Definition 1Conditional Probability

Definition

If EE and FF are two events associated with the same sample space of a random experiment, then the conditional probability of EE given that FF has occurred, denoted by P(E∣F)P(E|F), is defined as:

P(E∣F)=P(E∩F)P(F)P(E|F) = \frac{P(E \cap F)}{P(F)}

provided P(F)≠0P(F) \neq 0 (i.e., FF is not an impossible event).


Intuition

When we know that FF has occurred, the sample space effectively shrinks from the original SS to just FF. Among these outcomes, only those that also belong to EE (i.e., E∩FE \cap F) are favourable. So P(E∣F)P(E|F) is the proportion of FF that is inside EE.


Concrete Example

Toss three fair coins.

Let EE = "at least two heads" and FF = "first coin shows tail".

  • SS has 8 equally likely outcomes.
  • F={THH,THT,TTH,TTT}F = \{THH, THT, TTH, TTT\}, so P(F)=48=12P(F) = \frac{4}{8} = \frac{1}{2}.
  • E∩F={THH}E \cap F = \{THH\}, so P(E∩F)=18P(E \cap F) = \frac{1}{8}.

Then: …