Allday Education

Conditional Probability & Independence

Conditional probability answers questions with extra information baked in: given that the card drawn is a face card, what's the chance it's a king? The notation P(AB)P(A \mid B) reads "the probability of AA given BB," and the given part changes the game — it shrinks the sample space down to only the outcomes where BB happened.

Independence is the special case where the extra information changes nothing. Two events are independent when knowing one occurred does not affect the probability of the other — like two separate coin flips. For independent events, probabilities simply multiply: P(A and B)=P(A)P(B)P(A \text{ and } B) = P(A) \cdot P(B).

The conditional probability formula

The formula is P(AB)=P(AB)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)} — the probability both events happen, divided by the probability of the given event. The given event becomes the new denominator because the condition throws away every outcome where BB didn't happen.

You can often skip the formula and just restrict the sample space directly. Given that a card is a face card, the world shrinks to the 1212 face cards. Four of them are kings, so P(kingface card)=412=13P(\text{king} \mid \text{face card}) = \dfrac{4}{12} = \dfrac{1}{3}. Count inside the condition, then divide by the size of the condition.

Testing for independence

Events AA and BB are independent exactly when P(AB)=P(A)P(A \mid B) = P(A) — the condition told you nothing new. Equivalently, AA and BB are independent when P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B). Check either equation with the numbers you're given; if it holds, the events are independent.

Physical separation is the usual tell: separate coin flips, separate spins, a die roll and a card draw. Drawing twice without replacement is the classic dependent situation — the first draw changes what's left for the second. The tree below shows two independent coin flips branching into four equally likely outcomes.

First FlipSecond FlipHeadsHeadsTailsTailsHeadsTailsHeads HeadsHeads TailsTails HeadsTails Tails

Independent is not mutually exclusive

These two words get swapped constantly, and they mean nearly opposite things. Mutually exclusive events cannot both happen: P(AB)=0P(A \cap B) = 0. Independent events can both happen — their probabilities just multiply: P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B), which is not 00 unless one of the events was impossible to begin with.

In fact, two events with nonzero probabilities that are mutually exclusive are automatically dependent: if one happens, the other's probability drops to 00, which is a change.

Worked examples

Example 1: using the formula

Events AA and BB satisfy P(AB)=0.12P(A \cap B) = 0.12 and P(B)=0.4P(B) = 0.4. Find P(AB)P(A \mid B).

Write the conditional probability formulaP(AB)=P(AB)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}
SubstituteP(AB)=0.120.4P(A \mid B) = \dfrac{0.12}{0.4}
SimplifyP(AB)=0.3P(A \mid B) = 0.3

Answer: P(AB)=0.3P(A \mid B) = 0.3

Example 2: restricting the sample space

One card is drawn from a standard deck of 5252. Given that the card is red, what is the probability it is a heart?

Restrict the sample space to red cards26 red cards26 \text{ red cards}
Count the hearts among them1313
Divide favorable by the restricted totalP=1326=12P = \dfrac{13}{26} = \dfrac{1}{2}

Answer: P=12P = \dfrac{1}{2}

Example 3: multiplying independent events

A fair coin is flipped twice. Find P(heads, then heads)P(\text{heads, then heads}).

The flips are separate, so the events are independent
Multiply the probabilitiesP=1212P = \dfrac{1}{2} \cdot \dfrac{1}{2}
SimplifyP=14P = \dfrac{1}{4}

Answer: P=14P = \dfrac{1}{4}

Try one yourself

Common questions

What does P(AB)P(A \mid B) actually mean?

It's the probability of AA in a world where BB definitely happened. The condition BB shrinks the sample space: only outcomes inside BB survive, and P(B)P(B) becomes the new denominator.

How do I check whether two events are independent?

Test P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B), or equivalently P(AB)=P(A)P(A \mid B) = P(A). If the numbers match, the events are independent; if not, they're dependent.

Are independent and mutually exclusive the same thing?

No — they're close to opposites. Mutually exclusive means the events can't both happen (P(AB)=0P(A \cap B) = 0). Independent means both can happen and knowing one changes nothing, so P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B).

Does drawing without replacement make events dependent?

Yes. Removing an object changes the counts for the next draw, so the second probability depends on the first result. With replacement, the situation resets each time and the draws are independent.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1