Hacker News new | ask | show | jobs
by grayclhn 3746 days ago
Not to be an asshole but, unless you replace the first candy after taking it out, your formula's wrong.

If you start w/ 50 red candies and 50 non-red candies, the chance of the first one red is 1/2 (from 50/100) but the chance the second one is red after first drawing a red candy is now 49/99. After removing one red candy, there are now 49 red candies and 99 total candies.

So, P(red) * P(red | removed 1 red) = 49/198

1 comments

XD okay, fair enough. I was thinking of the ideal candy bowl, which is self-refilling. Do you grade undergraduate stats quizzes, by the way?