Skip to content

Language

Sign in

Example 1: Bayes' theorem with two bags

Open one step at a time. Try the next step yourself first.

  1. Step 1. Bag I has 3 red and 1 black ball; Bag II has 1 red and 3 black. A bag is chosen at random and a ball drawn is red.
  2. Show step 2

    P(I) = P(II) = 1/2; P(red|I) = 3/4; P(red|II) = 1/4.

  3. Show step 3

    P(red) = (1/2)(3/4) + (1/2)(1/4) = 1/2.

  4. Show step 4

    P(I|red) = (3/8) ÷ (1/2) = 3/4.

Example 2: Mean score on a fair die

Open one step at a time. Try the next step yourself first.

  1. Step 1. X takes values 1 to 6, each with probability 1/6.
  2. Show step 2

    E(X) = (1 + 2 + 3 + 4 + 5 + 6)/6 = 21/6.

  3. Show step 3

    E(X) = 3.5, even though 3.5 can never be rolled.

Reviewed by EduFlint team on 1 Dec 2026 · version 1

Written by us for this site. Independent; not affiliated with NCERT or CBSE.

Report a mistake

Looking for another topic?