Greedy Pig

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.


The answer is 0.4.

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.

3 solutions

Charlz Charlizard
Jun 13, 2014

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.

I also did the same way

mihir raj - 6 years ago
Chew-Seong Cheong
Jun 13, 2014

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 6 C 3 10 = 1 6 q(0)=\frac { { C }_{ 3 }^{ 6 } }{ { C }_{ 3 }^{ 10 } } =\frac { 1 }{ 6 } q ( 1 ) = C 1 4 C 2 6 C 3 10 = 1 2 q(1)=\frac { { { C }_{ 1 }^{ 4 }C }_{ 2 }^{ 6 } }{ { C }_{ 3 }^{ 10 } } =\frac { 1 }{ 2 } q ( 2 ) = C 2 4 C 1 6 C 3 10 = 3 10 q(2)=\frac { { { C }_{ 2 }^{ 4 }C }_{ 1 }^{ 6 } }{ { C }_{ 3 }^{ 10 } } =\frac { 3}{ 10 } q ( 3 ) = C 3 4 C 3 10 = 1 30 q(3)=\frac { { C }_{ 3 }^{ 4 } }{ { C }_{ 3 }^{ 10 } } =\frac { 1 }{ 30}

Please note that:

q ( 0 ) + q ( 1 ) + q ( 2 ) + q ( 3 ) = 1 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 4 n C 1 7 = 4 n 7 p(n)=\frac { { C }_{ 1 }^{ 4-n } }{ { C }_{ 1 }^{ 7 } } =\frac { 4-n }{ 7 }

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 ) p=p(0)q(0)+p(1)q(1)+p(2)q(2)+p(3)q(3) = 4 7 × 1 6 + 3 7 × 1 2 + 2 7 × 3 10 + 1 7 × 1 30 =\frac { 4 }{ 7 } \times \frac { 1 }{ 6 } +\frac { 3 }{ 7 } \times \frac { 1 }{ 2 } +\frac { 2 }{ 7 } \times \frac { 3 }{ 10 } +\frac { 1 }{ 7 } \times \frac { 1 }{ 30 } = 2 5 = 0.4 =\frac {2}{5}=\boxed{0.4}

Faizan Bhatty
Jun 5, 2014

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)?

Calvin Lin Staff - 7 years ago

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.

Faizan Bhatty - 7 years ago

Log in to reply

I have updated the answer to 0.4.

Calvin Lin Staff - 7 years ago

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

Faizan Bhatty - 7 years ago

Log in to reply

@Faizan Bhatty It means that I work at Brilliant.

Calvin Lin Staff - 7 years ago

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?

mathh mathh - 6 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...