# probability

posted by .

if 2 white balls are drawn a box of 5,find the probability that all are white using bayes theorem

• probability -

Okay - this is the first time I've ever tried to use Bayes Theorem...

P(A|B) = P(B|A).P(A) / Sum(P(B|Aj).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(A|B) = P(All five balls are white, given that I draw two white balls).
P(B|A) = P(I draw two white balls, given that all five balls are white), and this obviously equals 1.
P(B|A0) = P(I draw two white balls, given that no balls are white) = 0.
P(B|A1) = P(I draw two white balls, given that exactly one is white) = 0.
P(B|A2) = P(I draw two white balls, given that exactly two are white) = (2/5)x(1/4) = (1/10).
P(B|A3) = P(I draw two white balls, given that exactly three are white) = (3/5)x(2/4) = (3/10).
P(B|A4) = P(I draw two white balls, given that exactly four are white) = (4/5)x(3/4) = (6/10).
P(B|A5) = 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(B|A) in the numerator, and (P(B|A0) + P(B|A1) + P(B|A2) + P(B|A3) + P(B|A4) + P(B|A5)) in the denominator. The numerator = P(B|A) = 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?

## Similar Questions

A box contains 6 red balls, 4 white balls, and 5 green balls. If three balls are drawn in succession without being replaced, what is the probability that they are drawn in the order red, white, green?
2. ### math

A box contains 6 red balls, 4 white balls, and 5 green balls. If three balls are drawn in succession without being replaced, what is the probability that they are drawn in the order red, white, green?
3. ### statistics

A box contains 3 white and 5 black balls. Four balls are drawn at random "with replacement" from the box (i.e. selected balls are returned to the box and mixed, before drawing the next ball). Let X be the number of black balls drawn. …
4. ### Finite Math-Probability

Suppose we have an urn with 10 white balls and 6 red balls, and we create an experiment by randomly selecting 6 balls from the urn. a) What is the probability that the sample has the same number of white balls as red balls?
5. ### Statistics

3 balls are drawn successively from a box containing 6red,4 white and 5 blue balls.Find the probability that they are drawn in order red,white and blue if:(a)each ball is replaced.(b)balls are not replaced
6. ### statistics

An urn contains 10 balls of which 6 are white, 3 are red and 1 is green. Two balls are drawn at random from the urn. Find the probability distribution of number of white balls drawn. Hence state the expected number of white balls one …
7. ### statistics

An urn contains 10 balls of which 6 are white, 3 are red and 1 is green. Two balls are drawn at random from the urn. Find the probability distribution of number of white balls drawn. Hence state the expected number of white balls one …
8. ### statistics /pure maths

A box contains N identical balls of which 4 are Red, 3 are Green and the rest are White . If 3 balls are drawn at random one after the other without replacement.the probability that all 3 balls are Whit is 1/22. 1.Find the number of …
9. ### stastastics

two balls are drawn in succession,without replacement, from the box containing 3 red and 2 white balls, what is the probability of drawing a white on the second draw?
10. ### probability theory

3 students; A, B and C, are in a swimming race. A and B have the same probability of winning and each is twice as likely to win as C. Find the probability that B or C wins the swimming race. 3) Given three boxes as follows: Box A contains …

More Similar Questions