There are 2 bags with 30 candies.
One has 15 red/15 yellow (Bag A) and one has 10 red/10 yellow/10 purple (Bag B). You pick a bag randomly, and pick 2 candies. The store has 100 of bag A, and 200 of Bag B. Given that both candies are red, what is the probability you picked bag Bag B?
So trying to use Bayes theorem:
Pr(Bag B|two candies were strawberry)= Pr(two strawberries|bag b)*Pr(bag b)/Pr(two candies are strawberry)
My solution isn't correct. Was hoping for some insight as to why.
Plugging in:
$$\frac{\frac{10}{30}\frac{9}{29}\frac{2}{3}}{\frac{25}{60}\frac{24}{59}}=\frac{2}{29}*\frac{59}{10}=\frac{59}{145}$$
It seems as if my idea was right, just the numbers used in the denominator were wrong
I didn't take into account the ways I could pick a red candy (since we have two bags with them.
The denominator should be:
$$\frac13\left(\frac{15}{30}\frac{14}{29}\right)+\frac{2}{3}\left(\frac{10}{30}\frac{9}{29}\right)$$ according to the law of total probability.