8 reputation
bio website github.com/mindprince
location India
visits member for 2 years, 3 months
seen Oct 27 '13 at 10:14

I am a Software Engineer. I studied Computer Science and Engineering at Indian Institute of Technology Ropar.

I blog at blog.mindprince.in and note some of my experiences at notes.mindprince.in

comment Probability that the ball is red
Thanks, Henry! I now understand the question. Yes, the balls are sampled without replacement. That's why I think the probability of there having been X red balls out of N initially and R were found when P were drawn would not be $$\frac{1}{N+1} {P \choose R}\left(\frac{X}{N}\right)^R\left(\frac{N-X}{N}\right)^{P-R}$$ It should be $$\frac{\binom{X}{R} \binom{N - X}{P-R}}{\binom{N}{P}}\cdot \frac{1}{N+1}$$ as @Alex said.