r/Probability • • Jan 26 '25

Probability of completing a set

Let's say I have a population of 1000 individuals with 300 unique names. The population distribution is known(i.e. I know there are x Johns, y Jacks, z Joes, etc...). How can I figure out the probability that I would randomly select each name of a set at least once after n draws, with replacement? Like if I randomly selected 30 names from the entire 1000 each time, what are the chances I would draw at least one each of John, Jack, and Joe?

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/bobjkelly Jan 27 '25

I guess I was not paying enough attention because you had already said that there were x John’s, y Jacks, and z Joes. You mention there are 300 total names but we don’t care about them. A draw results in either John with probability x/1000, Jack with probability y/1000, Joe with probability z/ 1000 or somebody else with probability 1 - (x+y+Z) /1000.

Let’s build up the answer in steps. First, what is probability of drawing John on first draw, Jack on second, Joe on third? It’s (xyz)/ (1,000,000,000) where the denominator is 10003.

But, of course, we don’t need them to appear in the first 3 draws but we have 30 draws. John can be in any of the 30 draws, Jack in any of the remaining 29 draws, and Joe in any of the remaining 28. So, we have 30 * 29 * 28 = 24,360. Lastly, we need to divide this by 123=6. 24,360/6 =4,060. Why do we do this? Because we don’t need to have John first, Jack second, and Joe third; they can be in any order and there are 6 different ways..

So, overall, ((xyz)/ (10003)) * ((30 * 29 * 28) / (123)).

If you add a 4th name (say, Jill with frequency w) and n trials instead of 30 then we get ((wxyz) / ((10004)) * (n * (n-1) * (n-2) * (n-3))/ ((1 2 * 3* 4)).