📘 CodingMarble Learn

Conditional Probability, Multiplication Rule and Independent Events

Conditional probability is the chance of A when we already know B has happened. We throw away every outcome outside B and count again: P(A|B) = P(A ∩ B) ÷ P(B). Turned around, this gives the multiplication rule P(A ∩ B) = P(B)·P(A|B). If knowing B does not change the chance of A, the events are independent and P(A ∩ B) = P(A)·P(B).

🎬 Step-by-step story

  1. Two dice make 36 squares. Each square is one outcome, and all are equally likely.
  2. Event A = "sum is 8". It covers 5 squares, so P(A) = 5/36.
  3. Someone tells us "die 1 is even" (event B). Only 18 squares are left. 3 of them are in A. So P(A|B) = 3/18.
  4. Multiplication rule: P(A and B) = P(B) × P(A|B) = 18/36 × 3/18 = 3/36.
  5. Independent: "die 1 even" and "die 2 is 5 or 6". Knowing one does not change the other: P(A|B) = P(A).
  6. Free play: choose any two events, switch on "Given B" and test if they are independent.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do we divide by P(B) and not by 1?

Once B is known, B is the whole world. Its total chance P(B) plays the role of 1, so we measure A∩B as a part of B. In the 3D the non-B squares drop away.

Why is P(A|B) bigger or smaller than P(A)?

The news removes outcomes. If it removes more "not A" squares than A squares, the share of A goes up; otherwise it goes down. Here P(A) = 5/36 ≈ 0.14 but P(A|B) = 1/6 ≈ 0.17.

Where does the multiplication rule come from?

Just multiply P(A|B) = P(A∩B)/P(B) by P(B). First pick B (18/36), then A inside B (3/18): 3/36.

How can I see independence?

After the news, the share of A stays the same. In the 3D, A fills half of the grid before and half of the remaining B squares after.

Are "sum = 7" and "die 1 = 6" independent?

Try it in free play. P(sum 7) = 6/36 = 1/6, and given die 1 = 6, only (6,1) works: 1/6. Same, so yes!

Is the sample space always 36 here?

For two dice, yes: 6 choices for die 1 times 6 for die 2. Each square is one ordered pair.

What is conditional probability?

Sometimes we get extra news before we guess. The news is an event B that has already happened. Then every outcome outside B is impossible now. B becomes the new sample space (the list of all possible outcomes).

The chance of A given B is written P(A|B). Read the bar "|" as "given".

P(A|B) = P(A ∩ B) ÷ P(B), where P(B) ≠ 0.

With equally likely outcomes you can simply count: P(A|B) = n(A ∩ B) ÷ n(B).

Properties of conditional probability

Multiplication theorem of probability

Multiply both sides of the definition by P(B). You get the multiplication rule:

P(A ∩ B) = P(B) · P(A|B) = P(A) · P(B|A)

Use it when things happen one after another, like drawing two cards without putting the first one back. First chance × chance of the second, given the first.

For three events: P(A ∩ B ∩ C) = P(A) · P(B|A) · P(C|A ∩ B).

Independent events

A and B are independent if knowing one tells you nothing about the other: P(A|B) = P(A) (and P(B|A) = P(B)).

Put this in the multiplication rule and you get the test: P(A ∩ B) = P(A) · P(B).

Independent is not the same as mutually exclusive

Mutually exclusive means A and B cannot happen together: P(A ∩ B) = 0. Independent means they do not affect each other. If both have a non-zero chance, they cannot be both: if A happens, a mutually exclusive B becomes impossible, so the news clearly changed B.

Try it at home

Take a pack of 10 cards: 1 to 10. Guess the chance a card is more than 6 (it is 4/10). Now a friend peeks and says "it is even". Remove the odd cards. Only 2, 4, 6, 8, 10 are left, and 8 and 10 are more than 6: 2/5. Same number 0.4! So "more than 6" and "even" are independent here. Try "more than 5" and see the chance change.

Key formulas and definitions

Worked examples

1. P(A) = 0.6, P(B) = 0.5 and P(A ∩ B) = 0.2. Find P(A|B) and P(B|A).

Step 1: P(A|B) = P(A ∩ B)/P(B) = 0.2/0.5 = 0.4. Step 2: P(B|A) = P(A ∩ B)/P(A) = 0.2/0.6 = 1/3. Note: the two answers are different.

2. Two fair dice are thrown. Find the chance that the sum is 8, given that the first die shows an even number.

Step 1: B = first die even → 3 × 6 = 18 outcomes. Step 2: A ∩ B = (2,6), (4,4), (6,2) → 3 outcomes. Step 3: P(A|B) = 3/18 = 1/6.

3. A family has two children. Given that at least one is a girl, what is the chance both are girls?

Step 1: All cases: GG, GB, BG, BB (equally likely). Step 2: B = at least one girl → GG, GB, BG (3 cases). Step 3: A ∩ B = GG (1 case). Step 4: P = 1/3 (not 1/2!).

4. A box has 5 red and 3 blue pens. Two pens are taken out one after another without putting back. Find the chance both are red.

Step 1: P(first red) = 5/8. Step 2: Now 4 red out of 7: P(second red | first red) = 4/7. Step 3: Multiplication rule: 5/8 × 4/7 = 20/56 = 5/14.

5. Three cards are drawn one by one without replacement from a pack of 52. Find the chance all three are kings.

Step 1: P(K1) = 4/52. Step 2: P(K2 | K1) = 3/51. Step 3: P(K3 | K1 ∩ K2) = 2/50. Step 4: Multiply: 4/52 × 3/51 × 2/50 = 24/132600 = 1/5525.

6. A die is thrown. E = "multiple of 3", F = "even". Are E and F independent?

Step 1: E = {3, 6}, P(E) = 1/3. F = {2, 4, 6}, P(F) = 1/2. Step 2: E ∩ F = {6}, P(E ∩ F) = 1/6. Step 3: P(E)·P(F) = 1/3 × 1/2 = 1/6 = P(E ∩ F). So yes, they are independent.

7. A solves a problem with chance 1/2 and B with chance 1/3, working alone (independent). Find the chance the problem gets solved.

Step 1: P(A fails) = 1/2, P(B fails) = 2/3. Step 2: Both fail (independent): 1/2 × 2/3 = 1/3. Step 3: Solved = 1 − 1/3 = 2/3.

8. P(A) = 0.3, P(B) = 0.4, and A, B are independent. Find P(A ∪ B) and P(A′ ∩ B′).

Step 1: P(A ∩ B) = 0.3 × 0.4 = 0.12. Step 2: P(A ∪ B) = 0.3 + 0.4 − 0.12 = 0.58. Step 3: P(A′ ∩ B′) = 1 − P(A ∪ B) = 0.42 (check: 0.7 × 0.6 = 0.42 ✓).

Common mistakes

Practice quiz

1. P(A|B) is equal to:
2. If A and B are independent, P(A ∩ B) =
3. P(A) = 0.5, P(B) = 0.4, P(A ∩ B) = 0.2. Then P(A|B) =
4. Two cards drawn without replacement. Chance both are aces:
5. P(B|B) is always:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is conditional probability in simple words?

It is the chance of one event when you already know another event has happened. You shrink the list of outcomes to the known event and count again.

How do I check if two events are independent?

Find P(A), P(B) and P(A ∩ B). If P(A ∩ B) equals P(A) × P(B), they are independent. Otherwise they are dependent.

Is conditional probability in the CBSE Class 12 syllabus 2026-27?

Yes. The Probability unit covers conditional probability, the multiplication theorem, independent events, total probability and Bayes' theorem. The last two are in the next lesson.

Where this is taught

ItalySecondaria di secondo grado – classe 3ªData and prediction
ItalySecondaria di secondo grado – classe 3ªData and prediction
ItalySecondaria di secondo grado – classe 3ªData and prediction
ItalySecondaria di secondo grado – classe 4ªData and prediction
ItalySecondaria di secondo grado – classe 4ªData and prediction
ItalySecondaria di secondo grado – classe 4ªData and prediction
PolandLiceum ogólnokształcące, klasa IVProbability and statistics
Spain1º BachilleratoStochastic sense
Spain2º BachilleratoStochastic Sense
Spain2º BachilleratoStochastic Sense
Ukraine11 класAlgebra: probability theory (36 h)
Ukraine11 класAlgebra: combinatorics and probability (30 h)
CBSE (India)Class 12Probability
England (GCSE, A level)Year 13L-M Data and conditional probability
USA (Common Core, NGSS, AP)Grade 12Probability, Random Variables, and Probability Distributions
South Korea고등학교 2학년Probability
South Korea고등학교 3학년Classification and prediction
South Korea고등학교 3학년Probability
Germany (Bavaria)Jahrgangsstufe 11Conditional probability and independence
FranceSecondeStatistics and probability
FrancePremièreProbability and statistics
FrancePremièreMathematics (2026 programme)
FranceTerminaleStudy themes
Russia10 классProbability
Russia10 классRandom events
China高一Ch.10 Probability
China高三Ch.7 Random variables

Learn first

Learn next

Related lessons

All Maths lessons