Calculating the Probability of Pulling a Yellow M&M from Bag 1

  • Thread starter Thread starter ParisSpart
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
To calculate the probability that the yellow M&M came from the first bag, Bayes' theorem is applied. The initial probabilities for drawing a yellow M&M from each bag are 20% for Bag 1 and 40% for Bag 2. The combined probability of drawing one yellow and one green M&M must account for both scenarios: yellow from Bag 1 and green from Bag 2, or yellow from Bag 2 and green from Bag 1. The correct expression involves calculating the likelihood of both outcomes and their respective probabilities, ensuring all factors are correctly included. A detailed breakdown of the intermediate steps is necessary to identify any mistakes in the calculations.
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.
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top