Finding probability yellow M&M came from bag 1 using Bayes

  • Context: Undergrad 
  • Thread starter Thread starter ParisSpart
  • Start date Start date
  • Tags Tags
    Probability
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
ParisSpart
Messages
129
Reaction score
0
Two bags of M & M chocolates are within:

the first 20% yellow, 20% red and 60% green, and
the second 40% yellow, 40% red and 20% green.
Pull a chocolate M & M from each bag and put them in a container. If at the end of the container contains one yellow and one green chocolate then what is the probability that the yellow came from the first bag?

i must use the type of Bayes : P(A/B)=P(AandB)/P(B) like that
(20/100*20/100*20/100)/(20/100*20/100*20/100+20/100*40/100*40/100) but i don't take the correct answer where i did mistake?
 
Physics news on Phys.org
How did you get that expression? I would expect different factors, but it is hard to see where you made a mistake without intermediate steps or explanations.