Conditional Probability — When Context Changes Everything

Learn conditional probability with clear explanations, worked examples, and practice problems.

CBSE JEE-MAIN NEET 11 min read

Probability already feels tricky. Conditional probability feels like someone moved the goalposts mid-game. But here’s the truth: it’s not a different game — it’s the same game played with updated information.

When you know that something has already happened, the sample space shrinks. Conditional probability is just regular probability inside a smaller, restricted sample space.

The formula is P(AB)=P(AB)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}. Read "P(AB)P(A|B)" as “probability of A given that B has already occurred.” The denominator P(B)P(B) normalises everything to the new, reduced sample space.

This concept shows up in Class 12 boards (3–5 marks, often combined with Bayes’ theorem), JEE Main (1–2 questions per session), and is foundational for NEET reasoning questions.


Key Terms & Definitions

Sample Space (S): The set of all possible outcomes of an experiment.

Event: A subset of the sample space.

Conditional Probability: P(AB)P(A|B) — the probability of event A occurring, given that event B has already occurred.

P(AB)=P(AB)P(B),P(B)>0P(A|B) = \frac{P(A \cap B)}{P(B)}, \quad P(B) > 0

Independent Events: Two events A and B are independent if P(AB)=P(A)P(A|B) = P(A), equivalently P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B). Knowledge of B doesn’t change A’s probability.

Multiplication Rule: Directly from the conditional probability formula:

P(AB)=P(AB)P(B)=P(BA)P(A)P(A \cap B) = P(A|B) \cdot P(B) = P(B|A) \cdot P(A)

Total Probability Theorem: If B1,B2,,BnB_1, B_2, \ldots, B_n are mutually exclusive exhaustive events:

P(A)=i=1nP(ABi)P(Bi)P(A) = \sum_{i=1}^{n} P(A|B_i) \cdot P(B_i)

Bayes’ Theorem: Reverses conditional probability — given effect, find cause:

P(BiA)=P(ABi)P(Bi)j=1nP(ABj)P(Bj)P(B_i|A) = \frac{P(A|B_i) \cdot P(B_i)}{\sum_{j=1}^{n} P(A|B_j) \cdot P(B_j)}

Core Concepts

Why the Denominator is P(B)

When we know B has occurred, we’re no longer working in the full sample space S. We’re working inside B. So the total “space” is now P(B)P(B), and we want to know what fraction of that space also includes A — which is P(AB)P(A \cap B).

Dividing by P(B)P(B) re-scales the probability so everything sums to 1 within the new restricted space. This is the geometric intuition.

Multiplication Rule

Rearranging the conditional probability formula:

P(AB)=P(AB)P(B)P(A \cap B) = P(A|B) \cdot P(B)

This is enormously useful. When you’re computing the probability of two events happening in sequence, multiply: “probability B happens” × “probability A happens given B has happened.”

Example: Drawing two aces from a deck without replacement.

P(both aces)=P(1st ace)×P(2nd ace1st ace drawn)P(\text{both aces}) = P(\text{1st ace}) \times P(\text{2nd ace} | \text{1st ace drawn}) =452×351=122652=1221= \frac{4}{52} \times \frac{3}{51} = \frac{12}{2652} = \frac{1}{221}

Chain Rule (Extended Multiplication)

For three events:

P(ABC)=P(A)P(BA)P(CAB)P(A \cap B \cap C) = P(A) \cdot P(B|A) \cdot P(C|A \cap B)

Independence vs. Mutual Exclusivity

Students constantly confuse these. They are almost opposites:

  • Mutually exclusive: AB=A \cap B = \emptyset. They can’t both happen. If AA occurs, B definitely doesn’t. So P(AB)=0P(A|B) = 0 (unless both have zero probability). These events are highly dependent.

  • Independent: P(AB)=P(A)P(A|B) = P(A). Knowing B tells you nothing about A. They can both happen — in fact, P(AB)=P(A)P(B)0P(A \cap B) = P(A) \cdot P(B) \neq 0 typically.


Solved Examples

Example 1 — Easy (CBSE Level)

A bag contains 5 red and 3 blue balls. A ball is drawn at random. Given that it is red, what is the probability the next draw (without replacement) is also red?

Solution: Let A = second ball red, B = first ball red.

P(AB)=red balls remainingtotal balls remaining=47P(A|B) = \frac{\text{red balls remaining}}{\text{total balls remaining}} = \frac{4}{7}

After one red ball is removed: 4 red, 3 blue → 7 balls total.

Answer: 47\dfrac{4}{7}

Example 2 — Medium (CBSE Class 12)

A die is thrown twice. Find the probability that the sum is at least 9, given that the first throw shows a 4.

Solution: Let B = first throw shows 4. Let A = sum \geq 9.

Given first throw = 4, the second throw must give at least 5 (since 4+5=94 + 5 = 9).

Favourable outcomes for second throw: 5, 6 → 2 outcomes.

P(AB)=26=13P(A|B) = \frac{2}{6} = \frac{1}{3}

Example 3 — Hard (JEE Main Level)

Two cards are drawn successively without replacement from a pack of 52. Find the probability that both are kings.

Solution:

P(both kings)=P(1st king)×P(2nd king1st king)P(\text{both kings}) = P(\text{1st king}) \times P(\text{2nd king} | \text{1st king}) =452×351=122652=1221= \frac{4}{52} \times \frac{3}{51} = \frac{12}{2652} = \frac{1}{221}

Example 4 — Advanced (Bayes’ Theorem)

Factory I produces 30% of total items, factory II produces 70%. Defect rate: factory I = 2%, factory II = 1%. An item is found defective. What is the probability it came from factory I?

Solution: Let B1B_1 = from factory I, B2B_2 = from factory II, A = defective.

P(B1A)=P(AB1)P(B1)P(AB1)P(B1)+P(AB2)P(B2)P(B_1|A) = \frac{P(A|B_1) \cdot P(B_1)}{P(A|B_1) \cdot P(B_1) + P(A|B_2) \cdot P(B_2)} =0.02×0.300.02×0.30+0.01×0.70=0.0060.006+0.007=0.0060.013=613= \frac{0.02 \times 0.30}{0.02 \times 0.30 + 0.01 \times 0.70} = \frac{0.006}{0.006 + 0.007} = \frac{0.006}{0.013} = \frac{6}{13}

Exam-Specific Tips

CBSE Class 12: Bayes’ theorem questions are standard 5-mark LA questions. They always give you a table of conditional probabilities and ask you to reverse one. Practise setting up the Bayes fraction carefully — the denominator is total probability using all branches.

JEE Main: Conditional probability appears in 1–2 questions per session. A JEE 2024 Shift 1 question asked about independence of events — know that P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B) is both the definition and the test for independence.

For problems involving cards, dice, or balls — always identify the reduced sample space explicitly. Write it out if needed. The biggest source of errors is computing P(AB)P(A \cap B) incorrectly because students forget to update the denominator.


Common Mistakes to Avoid

Mistake 1: Forgetting to reduce the sample space. When computing P(sum>8first die=5)P(\text{sum} > 8 | \text{first die} = 5), students still divide by 36 instead of 6. Once you condition on first die = 5, the sample space is only 6 outcomes (second die outcomes), not 36.

Mistake 2: Treating independent events as mutually exclusive. If A and B are independent, P(AB)=P(A)P(B)0P(A \cap B) = P(A) \cdot P(B) \neq 0 (usually). Mutually exclusive means they can’t happen together. These are different properties.

Mistake 3: Reversing the conditioning direction. P(AB)P(BA)P(A|B) \neq P(B|A) in general. This is a critical distinction. Bayes’ theorem is specifically designed to go from P(AB)P(A|B) to P(BA)P(B|A).

Mistake 4: Using conditional probability when events are independent. If A and B are independent, P(AB)=P(A)P(A|B) = P(A) — the condition is irrelevant. Don’t do extra computation when you know events are independent.

Mistake 5: Dividing by the wrong probability in Bayes’ theorem. The denominator in Bayes’ theorem is P(A)P(A) computed via total probability — sum over ALL branches. Missing even one branch gives a wrong answer.


Practice Questions

Q1. A card is drawn from a pack of 52. Given that it is a face card, what is the probability it is a king?

There are 12 face cards (J, Q, K × 4 suits) and 4 kings. P(kingface card)=412=13P(\text{king} | \text{face card}) = \dfrac{4}{12} = \dfrac{1}{3}

Q2. P(A) = 0.4, P(B) = 0.5, P(A ∩ B) = 0.2. Find P(A|B) and P(B|A).

P(AB)=0.20.5=0.4P(A|B) = \dfrac{0.2}{0.5} = 0.4. Since P(AB)=P(A)=0.4P(A|B) = P(A) = 0.4, events A and B are independent.

P(BA)=0.20.4=0.5=P(B)P(B|A) = \dfrac{0.2}{0.4} = 0.5 = P(B). Confirms independence.

Q3. A box has 4 defective and 6 good items. Two items drawn without replacement. Find P(both defective).

P=410×39=1290=215P = \dfrac{4}{10} \times \dfrac{3}{9} = \dfrac{12}{90} = \dfrac{2}{15}

Q4. Given P(A) = 1/3, P(B) = 1/4, and A and B are independent. Find P(A ∪ B).

P(AB)=13×14=112P(A \cap B) = \dfrac{1}{3} \times \dfrac{1}{4} = \dfrac{1}{12}

P(AB)=P(A)+P(B)P(AB)=13+14112=4+3112=612=12P(A \cup B) = P(A) + P(B) - P(A \cap B) = \dfrac{1}{3} + \dfrac{1}{4} - \dfrac{1}{12} = \dfrac{4+3-1}{12} = \dfrac{6}{12} = \dfrac{1}{2}

Q5. Three coins tossed. Given at least one head, find probability of all three heads.

Let B = at least one head, A = all three heads.

P(B)=1P(no heads)=118=78P(B) = 1 - P(\text{no heads}) = 1 - \dfrac{1}{8} = \dfrac{7}{8}

P(AB)=P(all three heads)=18P(A \cap B) = P(\text{all three heads}) = \dfrac{1}{8} (HHH satisfies both)

P(AB)=1/87/8=17P(A|B) = \dfrac{1/8}{7/8} = \dfrac{1}{7}

Q6. Events A and B: P(A) = 0.5, P(B) = 0.3, P(A|B) = 0.4. Are they independent?

For independence: P(AB)P(A|B) should equal P(A)=0.5P(A) = 0.5.

But P(AB)=0.40.5=P(A)P(A|B) = 0.4 \neq 0.5 = P(A).

Therefore, A and B are not independent.

Q7. In a group, 40% have diabetes. Among diabetics, 70% have high BP. Among non-diabetics, 20% have high BP. A person selected randomly has high BP. Find probability they have diabetes.

Let DD = has diabetes, HH = has high BP.

P(D)=0.4P(D) = 0.4, P(D)=0.6P(D') = 0.6, P(HD)=0.7P(H|D) = 0.7, P(HD)=0.2P(H|D') = 0.2

P(H)=0.7(0.4)+0.2(0.6)=0.28+0.12=0.40P(H) = 0.7(0.4) + 0.2(0.6) = 0.28 + 0.12 = 0.40

P(DH)=0.280.40=0.7P(D|H) = \dfrac{0.28}{0.40} = 0.7

Q8. A die thrown twice. P(sum = 7 | first throw is 3)?

Given first = 3, need second = 4 for sum = 7.

P=16P = \dfrac{1}{6}


FAQs

What is the difference between P(A|B) and P(B|A)?

P(AB)P(A|B) is probability of A given B has occurred. P(BA)P(B|A) is probability of B given A. They are generally not equal. Bayes’ theorem relates them: P(BA)=P(AB)P(B)P(A)P(B|A) = \dfrac{P(A|B) \cdot P(B)}{P(A)}.

When are two events independent?

Events A and B are independent when P(AB)=P(A)P(A|B) = P(A) — equivalently, P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B). This is the test you use in problems.

Can mutually exclusive events be independent?

Only if at least one of them has probability zero. If both A and B have non-zero probability and AB=A \cap B = \emptyset (mutually exclusive), then P(AB)=0P(A)P(A|B) = 0 \neq P(A), so they are dependent.

What is Bayes’ theorem used for?

Bayes’ theorem is used to “reverse” conditional probabilities — given that an effect (A) has occurred, find the probability of a particular cause (BiB_i). Classic applications: medical diagnosis, quality control, spam filters.

How is conditional probability different from regular probability?

Regular probability works on the full sample space. Conditional probability works on a restricted sample space — only the outcomes where B has occurred. The formula P(AB)=P(AB)/P(B)P(A|B) = P(A \cap B) / P(B) mathematically captures this restriction.

Is the multiplication rule always valid?

Yes, P(AB)=P(AB)P(B)P(A \cap B) = P(A|B) \cdot P(B) is always valid (as long as P(B)>0P(B) > 0). It simplifies to P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B) only when A and B are independent.

What does P(A|B) = 1 mean?

It means: whenever B occurs, A must also occur. In set terms: BAB \subseteq A.

Additional Worked Examples

Total Probability with Three Events

A company has three machines M₁, M₂, M₃ producing 30%, 45%, 25% of items. Defect rates: M₁ = 3%, M₂ = 4%, M₃ = 5%. An item is randomly selected and found defective. Find the probability it came from M₂.

P(M1)=0.3P(M_1) = 0.3, P(M2)=0.45P(M_2) = 0.45, P(M3)=0.25P(M_3) = 0.25

P(DM1)=0.03P(D|M_1) = 0.03, P(DM2)=0.04P(D|M_2) = 0.04, P(DM3)=0.05P(D|M_3) = 0.05

P(D)=0.3(0.03)+0.45(0.04)+0.25(0.05)=0.009+0.018+0.0125=0.0395P(D) = 0.3(0.03) + 0.45(0.04) + 0.25(0.05) = 0.009 + 0.018 + 0.0125 = 0.0395

P(M2D)=P(DM2)P(M2)P(D)=0.0180.0395=0.45570.456P(M_2|D) = \frac{P(D|M_2) \cdot P(M_2)}{P(D)} = \frac{0.018}{0.0395} = 0.4557 \approx 0.456

About 45.6% probability the defective item came from M₂.

CBSE Class 12 board exams 2023 and 2024 both had a Bayes’ theorem question worth 5 marks in Section E. The standard format: 3 factories/machines/bags with given probabilities, one conditional event, find the reverse conditional. Setting up the fraction correctly — with the denominator being the total probability sum — is where most marks are lost.

Repeated Independent Trials (Bernoulli Trials)

When an experiment with two outcomes (success/failure) is repeated independently, the probability of exactly kk successes in nn trials is:

P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}

where pp = probability of success in a single trial.

Example: A coin is tossed 5 times. Find P(exactly 3 heads).

P=(53)(12)3(12)2=10×132=1032=516P = \binom{5}{3}\left(\frac{1}{2}\right)^3\left(\frac{1}{2}\right)^2 = 10 \times \frac{1}{32} = \frac{10}{32} = \frac{5}{16}

P(X=k)=(nk)pkqnk,q=1pP(X = k) = \binom{n}{k} p^k q^{n-k}, \quad q = 1 - p

Mean =np= np, Variance =npq= npq

This connects counting (combinations) with conditional probability (independent trials).

Practice Questions