Write down P(red∣A) and P(red∣B) before combining them.
Apply Bayes' theorem with equal priors of 1/2 for each box.
P(red∣A)=2/3 and P(red∣B)=1/3, with priors P(A)=P(B)=1/2.
P(A∣red)=(2/3)(1/2)+(1/3)(1/2)(2/3)(1/2)=1/21/3=32.
Answer: 2/3
Related roles: Browse quant jobs