Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a certain day care class, $30\%$ of the children have grey eyes, $50\%$ of them have blue and the other $20\%$'s eyes are in other colors. One day they play a game together. In the first run, $65\%$ of the grey eye ones, $82\%$ of the blue eyed ones and $50\%$ of the children with other eye color were selected. Now, if a child is selected randomly from the class, and we know that he/she was not in the first game, what is the probability that the child has blue eyes?

My solution

Let's say $B =$ blue, $G =$ grey and $O =$ "Other color" and $NR =$ "not selected for the first run"

$$P(B \mid NR) = \frac{P(NR \mid B)P(B)}{P(G)P(NR \mid G) + P(B)P(NR \mid B) + P(O)P(NR \mid O)}$$

On substituting values $$P(B \mid NR) = \frac{0.5 \cdot (1-0.82)}{(0.3 \cdot (1-0.65)) + (0.5 \cdot (1-0.82)) + (0.2 \cdot (1-0.5))}$$

$$P(B \mid NR) = 0.305$$

Is this the right way to use bayes theorem?

share|cite|improve this question
up vote 3 down vote accepted

Yes, this is correct.

The general form of Bayes' rule is

$$P(A_i|B)= \frac{P(B|A_i)P(A_i)}{\sum_jP(B|A_j)P(A_j)}$$

as you've used above.

share|cite|improve this answer
Thanks for the generalized version of Bayes' theorem. Do you see anything wrong with the way I have arrived at the individual probabilities? – naresh Nov 16 '12 at 17:12
Nothing wrong that I can see... – Simon Hayward Nov 16 '12 at 18:49
Has that helped, do you have the answer now? – Simon Hayward Nov 16 '12 at 19:23

$$p(\textrm{not game 1} \mid \textrm{blue}) \div p(\textrm{not game 1}) = 0.18×0.50 \div (0.18×0.50+0.5×0.2+0.35×0.30) =0.3051$$

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.