[Math] Conditional Probability Cupcakes

probabilityprobability theory

This is a very interesting word problem that I came across in an old textbook of mine. So I know its got something to do with conditional probability, which yields the shortest, simplest proofs, but other than that, the textbook gave no hints really and I'm really not sure about how to approach it. Any guidance hints or help would be truly greatly appreciated. Thanks in advance 🙂 So anyway, here the problem goes:

Two boxes each contain $4$ cupcakes.

One box has $3$ chocolate and $1$ vanilla, and the other box has $2$ chocolate and $2$ vanilla.

A box is randomly selected, opened, and a cupcake is randomly selected.

This first cupcake is vanilla.

If one more cupcake is randomly selected from the same box, what is the probability that it will be vanilla ?

My working so far:

If we pick a box at random, and pick a vanilla cupcake,
then there is a $\frac23$ probability we picked the second box.
($2$ chances for having picked vanilla from there, against $1$ from $1$), and
$\frac13$ for the first box.

If we DID pick the first box, the chances of $2nd$ vanilla are $0$, since
there isn't one, so $\frac13 × 0$ for that.

Now I am stuck.

Best Answer

Defining events:

$v_1$: a vanilla cupcake is selected at first

$v_2$: a vanilla cupcake is selected at second

$b_1$: a vanilla cupcake is selected from box 1

$b_2$: a vanilla cupcake is selected from box 2

It is asked about $P(v_2|v_1)=\frac{P(v_1 \cap v_2)}{P(v_1)}$

$P(v_1 \cap v_2)$: Probability, that two vanilla cupcakes are selected.

It is impossible to select two cupcakes from box 1.

Thus $P(v_1 \cap v_2)=p(b_2)\cdot P(v_1)\cdot p(v_2|v_1)=0.5\cdot \frac{2}{4}\cdot \frac{1}{3}=\frac{1}{12}$

$P(v_1)=P(b_1)\cdot P(v_1|b_1)+ P(b_2)\cdot P(v_1|b_2)=\frac{1}{2}\cdot \frac{1}{4}+\frac{1}{2}\cdot \frac{1}{2}=\frac{3}{8}$

Therefore $P(v_2|v_1)=\frac{1}{12}\cdot \frac{8}{3}=\frac{2}{9}$

Related Question