I'm reading Think Bayes By Allen B. Downey.
He introduces a simple conditional probability problem.
You have two bowl's of cookies.
Bowl 1 has 30 vanilla and 10 chocolate cookies Bowl 2 has 20 vanilla and 20 chocolate cookies
If you select a cookie and it is vanilla, what is the probability that it came from bowl 1? Assuming that you have an equal probability of selecting from either bowl (0.5).
You can use the formula for conditional probability to solve this.
P(Bowl 1 | Vanilla) = P(Bowl 1 ∩ Vanilla) / P(Vanilla)
There appear to be two ways to solve for the numerator: P(Bowl 1 ∩ Vanilla)
I understand that intersecting probabilities (∩) can be calculated by multiplying the probability of each event. Thus, to calculate the numerator you would multiply P(Bowl 1) * P(Vanilla)
Which would be (0.5 * (Probability of selecting vanilla from bowl 1)
Or (0.5 * 0.75) = 0.375
Plugging that into the conditional probability formula gives 0.375/0.625 = 0.6
Claude (the AI Chatbot) presented this calculation to determine the numerator.
Vanilla cookies in Bowl 1 / Total cookies, which is 30/80 or 0.375
Is this a more accurate way to calculate the numerator than what I assumed? P(Bowl 1) * P(Vanilla)