There are 2 companies, A and B. A pollutes 1/10 of the time while B pollutes 9/10 of the time. The difference between the discharge from the companies is that A usually has twice as many white jugs as black jugs while B has the exact reversed proportions.
Given a discharge with order - b, b, w, b, w, w, b, b, b, w, b - how likely is it that company A is the polluter?
I'm not sure if I'm plugging in things into Bayes Thm formula correctly, $ Pr(A|B) = \frac{Pr(B|A)Pr(A)}{Pr(B)} $
$ Pr((b,b,w,b,w,w,b,b,b,w,b)|company A) = \frac{Pr(company A|b,b,w,b,w,w,b,b,b,w,b)Pr(b,b,w,b,w,w,b,b,b,w,b)}{Pr(company A)} $
With $ Pr(company A) = 1/10 $, but I'm not sure how to calculate $ Pr(company A|b,b,w,b,w,w,b,b,b,w,b) $ and $ Pr(b,b,w,b,w,w,b,b,b,w,b) $. Also, once I have those calculations, do I just plug them in? I remember having to use to the law of total probability calculation but not sure how that factors in here.
Thanks!