A Jar has 4 chocolate Candies and 6 Strawberry flavored candies wrapped in same shape and same color. A greedy pig comes in eats 3 candies. After pig goes you go to the Jar and fetch a candy. What is probability that the candy you got is Chocolate Candy.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I also did the same way
This is a conditional probability problem. First we find out the probabilities q(n) that the greedy pig has taken n (0, 1, 2 or 3) chocolate candies. They are given by:
q ( 0 ) = C 3 1 0 C 3 6 = 6 1 q ( 1 ) = C 3 1 0 C 1 4 C 2 6 = 2 1 q ( 2 ) = C 3 1 0 C 2 4 C 1 6 = 1 0 3 q ( 3 ) = C 3 1 0 C 3 4 = 3 0 1
Please note that:
q ( 0 ) + q ( 1 ) + q ( 2 ) + q ( 3 ) = 1
Now we find out the probabilities p(n) the candy you pick is chocolate for each case of n or for (4-n) chocolate candies left. They are given by:
p ( n ) = C 1 7 C 1 4 − n = 7 4 − n
The probability p that the candy you pick is chocolate is:
p = p ( 0 ) q ( 0 ) + p ( 1 ) q ( 1 ) + p ( 2 ) q ( 2 ) + p ( 3 ) q ( 3 ) = 7 4 × 6 1 + 7 3 × 2 1 + 7 2 × 1 0 3 + 7 1 × 3 0 1 = 5 2 = 0 . 4
The stochastic systems are memory less systems, so we are not interested in the event that happened before the experiment. Even the Pig has eaten 3 Candies, the prob of getting Choc. Candy is 4/10 = .4.
Sorry there was mistake..... I corrected it.
Why is it 1/4? Shouldn't it be 4/(4+6)?
Log in to reply
Thanks Calvin for your review. Yeah it was typing mistake , I was also going to post A Marylin Problem and I posted it answer with this this problem.
Log in to reply
I have updated the answer to 0.4.
Log in to reply
@Calvin Lin – Thanks, I will be careful in posting the answer , next time. By the way what is "Staff" following your name :P
Calvin, is it perfectly acceptable to use the method Charlz Charlizard used in his solution, namely 'the pig ate on average 1.2 chocolate candies and 1.8 strawberry candies, therefore on average there are 4-1.2=2.8 chocolate and 6-1.8=4.2 strawberry candies left, hence the probability of me getting the chocolate candy is 2.8 / 7 = 0.4'? Would this solution, word for word, be accepted on a, e.g., final graduation exam?
Problem Loading...
Note Loading...
Set Loading...
At the begin. the prob. of getting a choc. candy from jar is 4/10. and of strawberry candy is 6/10.now pig ate 3 candies.it means theoritically it ate 1.2 choc. candy and 1.8 strawberry candy so 4-1.2=2.8 and 6-1.8=4.2 so now total 2.8+4.2 =7 candies r there of which 2.8 are choc. candies so prob of choc.candy is 2.8/7=0.4.