Thursday, 15 September 2016

probability - A box with 3 types of colored balls.



In a box there are 15 white balls, 8 black balls, and 12 red balls. We extract 6 balls, without putting them back.



(a) What is the probability that the first ball is red, the second and third are black, and last three are white ?



p=11235+2835+31535




(b) Knowing the second ball was black, which is the probability that the first ball was red?



p=1835+11235+41535



I'm terrible at this problems. Can someone help me and explain if my answers are correct. Thank you for your help!


Answer



I see you're fairly new in probability mathematics, so I try to proceed through the idea of things slowly. I hope this doesn't make my answer too long for you.



a. In general, P(AB)=P(A|B)×P(B). The probability of both A and B happening is the probability of B happening multiplied by the probability of A happening in case B happened. This simple rule goes a long way in many probability problems and can be extended to longer chains as well.




In this case, we denote colours as R,W,B and different outcomes as R1 "first ball is red", B2 "second ball is black", etc. The question in part a is finding P(R1B2B3W4W5W6).



The probability of R1 is simple: we have 35 balls in total and 12 are red, hence P(R1)=1235. But now things start to get interesting. We need to compute P(B2|R1) next: "the probability of getting a black ball second if the first ball was red". If the first ball was red, there are only 34 balls left and 8 of them are black, so P(B2|R1)=834.



Next, we want P(B3|B2R1), "the probability of getting a black ball third if first ball was red and second was black". Now we have 33 balls left, 7 of them black, so P(B3|B2R1)=833. Notice how the probability changes?



Using the same logic we can get the final three probabilities:



P(W4|B3B2R1)=1532




P(W5|W4B3B2R1)=1431



P(W6|W5W4B3B2R1)=1330



Multiply the six probabilities together to get the result.



On to part b.



Here we want P(R1|B2). Here it's natural to use a well-known probability equation known as Bayes' Theorem: P(X|Y)=P(Y|X)×P(X)P(Y). So our problem becomes:




P(R1|B2)=P(B2|R1)×P(R1)P(B2)



Now we just need to fill in the correct values:



P(R1)=1235



P(B2)=P(B2|B1)×P(B1)+P(B2|¬B1)×(1P(B1))



P(B2|R1) you can probably figure out from the a section.




Now all you need to do is solve for the given values.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...