‹ Class 12 · Ch 13
Probability · Principle 10 of 12

From the result back to the cause

P(Eᵢ|A) = P(Eᵢ) P(A|Eᵢ) / Σ P(Eⱼ) P(A|Eⱼ).

Stuck? Ask Guru

NCERT: 13.5 Bayes' Theorem

Think

Which bag?

Example 16: Bag I has 3 red and 4 black balls; Bag II has 5 red and 6 black. A bag is chosen at random and a ball drawn: it is red.

Which bag is the red ball more likely to have come from?

What this lesson covers

The idea

If E₁, …, Eₙ partition S and A is an event with P(A) ≠ 0, then P(Eᵢ|A) = P(Eᵢ)P(A|Eᵢ) / Σⱼ P(Eⱼ)P(A|Eⱼ): it finds the probability of a cause given the observed result.

Which bag?

Example 16: Bag I has 3 red and 4 black balls; Bag II has 5 red and 6 black. A bag is chosen at random and a ball drawn: it is red.

Which bag is the red ball more likely to have come from?

  • Bag II
  • Bag I
  • both equally

Keep only what happened

Add up the red pieces, then switch on “given A”: only the red pieces are left.

Bayes’ theorem

If E₁, E₂, …, Eₙ form a partition of S and P(A) ≠ 0, then for each i P(Eᵢ|A) = P(Eᵢ) P(A|Eᵢ) / [P(E₁) P(A|E₁) + … + P(Eₙ) P(A|Eₙ)].

Why: P(Eᵢ|A) = P(A ∩ Eᵢ)/P(A); the top is the multiplication rule and the bottom is total probability.

It finds the probability of a cause Eᵢ, given the result A. Example 16: P(E₂|A) = 35/68, a little more than 1/2.

Notes

P(Eᵢ|A) = P(Eᵢ) P(A|Eᵢ) / Σ P(Eⱼ) P(A|Eⱼ): the probability of a cause, given the result.

Check yourself

Example 17: boxes with two gold, two silver, and one gold and one silver coin. A random box gives a gold coin. P(the other coin is gold) is …

Exercise 13.3, Q2: bag 1 has 4 red and 4 black balls, bag 2 has 2 red and 6 black. A random bag gives a red ball. Find P(bag 1).

Answer: 2/3

(1/2 × 1/2)/(1/2 × 1/2 + 1/2 × 1/4) = (1/4)/(3/8) = 2/3.

Example 21: a man speaks the truth 3 times out of 4. He throws a die and says it is a six. Find P(it is actually a six).

Answer: 3/8

(1/8)/(1/8 + 5/24) = (3/24)/(8/24) = 3/8.

  • 1/2. It is not “gold box or mixed box, half each”: the gold box gives gold twice as often.
  • 2/3 — correct. Yes! (1/3 × 1)/(1/3 × 1 + 1/3 × 0 + 1/3 × 1/2) = 2/3.
  • 1/3. That is P(the gold box) before the coin was seen.