Posted by akshay on .
if 2 white balls are drawn a box of 5,find the probability that all are white using bayes theorem

probability 
David Q/R,
Okay  this is the first time I've ever tried to use Bayes Theorem...
P(AB) = P(BA).P(A) / Sum(P(BAj).P(Aj)
Let A be the event "All five balls are white".
Let Aj be the event "There are exactly j white balls". Let B be the event "I draw two white balls".
Then P(AB) = P(All five balls are white, given that I draw two white balls).
P(BA) = P(I draw two white balls, given that all five balls are white), and this obviously equals 1.
P(BA0) = P(I draw two white balls, given that no balls are white) = 0.
P(BA1) = P(I draw two white balls, given that exactly one is white) = 0.
P(BA2) = P(I draw two white balls, given that exactly two are white) = (2/5)x(1/4) = (1/10).
P(BA3) = P(I draw two white balls, given that exactly three are white) = (3/5)x(2/4) = (3/10).
P(BA4) = P(I draw two white balls, given that exactly four are white) = (4/5)x(3/4) = (6/10).
P(BA5) = P(I draw two white balls, given that all five are white) = 1.
Now, here's the subjective bit  because Bayes Theorem is all about subjectivity. I have no idea a priori how many white balls there are in the bag, so all possibilities are equally likely as far as I'm concerned. That means that P(A0) = P(A1) = P(A2) = P(A3) = P(A4) = P(A5) = (1/6). So in the original equation, all of the P(Aj)s in the numerator and the denominator are going to cancel out.
That leaves P(BA) in the numerator, and (P(BA0) + P(BA1) + P(BA2) + P(BA3) + P(BA4) + P(BA5)) in the denominator. The numerator = P(BA) = 1 (we worked it out above). The denominator is the sum of all those other fractions, which is 0 + 0 + (1/10) + (3/10) + (6/10) + 1 = (10/10) + 1 = 2. So the answer is (1/2), i.e. exactly one half.
Do you reckon I've got it right?