Drawing from a set

Not sure if I am allowed to ask a probability problem here or not, but anyways here it goes. This isn’t homework, it’s a dice game question my board game group and I haven’t been able to figure out.

If I roll 10 6-sided dice, what are the odds that I won’t have at least one of each possible number face (1,2,3,4,5,6).

Thanks!

Posted Feb 8, 2022, 4:27 AM UTC

28
Team_Brisket•

Off the top of my head use the Principal of Inclusion-Exclusion. Here there are 6 events for which you are trying to include-exclude: no 1’s, no 2’s, no 3’s, no 4’s, no 5’s, and no 6’s. But because of symmetry, eg P(no 1’s) is the same as P(no 2’s) is the same as P(no 3’s) etc, it makes it easier to compute:

6(5/6)^10 - 15(4/6)^10 + 20(3/6)^10 - 15(2/6)^10 + 6(1/6)^10

Which comes out to be 72.8187… percent and aligns with the experimental data from the other commenters above.

4
efriquePhD (statistics)•

Complete enumeration of cases gives 44030736/60466176 = 72.818787%

now 6*5^10 - 15*4^10 + 20*3^10 - 15*2^10 + 6*1^10 is exactly 44030736

so yes, you have it exactly right.

1
[deleted]•

[deleted]

1
DoctorFuu•

In case you're just interested in the result:

import random

def throw_dies(n):
  return {random.randint(0, 5) for i in range(n)}

N = 1000000
successes = 0

for i in range(N):
  successes += int({0, 1, 2, 3, 4, 5} == throw_dies(10))

print(1 - successes / N)
0.728557
1
SemiotericOP•

Interesting, thanks for this. I thought I had figured it out but I guess I didn't.

The odds of you not seeing a 1 are 5^10/6^10 or ~0.16%. The odds are the same to not see a 2, 3, 4, 5 or 6. So I figured it was just ~0.16%*6 or ~97%. Seems high, but I don't know why that wouldn't work.

Edit: upon further reflection this clearly can't be correct, as you can get an answer greater than 1 for certain numbers of rolls.

1
DoctorFuu•

My initial post was very dry as I was getting a piece of paper to try and solve it exactly, hoping to edit the post after with also the exact solution.

However I don't manage to find it hehe, woops! I'll put this problem on my list and get back to probability basics this week end.

1
efriquePhD (statistics)•

The probability (NOT odds) of seeing at least one "1" is 1-(5/6)^(10), sure.

However, the probability of seeing a "2" given you saw at least one "1" is NOT 1-(5/6)^(10), because some of those ten values are now "1"; they cannot also be "2".

1
efriquePhD (statistics)•

Not sure if I am allowed to ask a probability problem here or not,

Yes, 100% okay.

If I roll 10 6-sided dice, what are the odds that I won’t have at least one of each possible number face (1,2,3,4,5,6).

I assume you mean probability rather than odds (they are not the same thing, but almost always people that ask these questions actually want probabilities rather than what they asked for)

From a million simulations, there's about a 73% chance (or just a bit under) you don't get one of each and about 27% chance you do get one of each.

Do you need it more accurate than that?

R code:

mean(replicate(1000000,length(unique(sample(6,10,replace=TRUE))))<6)
1
IAmZenoix•

Now that I've been struggling to figure out how to calculate it, I also want to know how someone would figure it out without simulating the probability. I think the easiest way is to figure out 1 - (number of ways to have at least one of each number / total number of ways), but I can't for the life of me figure it out.

1