According to the Bayes' theorem
P(A∣B)=P(B)P(B∣A)P(A)
where P(A∣B) - cake failed to raise that was cooked by Khurram;
P(B) - picked cake failed to raise;
P(A) - probability that Khurram was cooking it;
P(B∣A) - probability that Khurram will fail any cake.
P(B) can be found by the law of total probability:
P(B)=0.03∗0.55+0.02∗0.25+0.05∗0.2=0.0315.
P(A)=0.25
P(B∣A)=0.02
Hence if the picked cake fails to rise, the probability it was baked by Khurram equals
P(A∣B)=0.03150.02∗0.25=0.03150.005=0.159=15.9%.
Comments