2
$\begingroup$

Possible Duplicate:
A Question About Dice

You have a weighted n-sided die. Every side of the die is weighted differently where side n1 has a weight of w1, n2 has a weight of w2, ...

Estimate the average number of rolls needed to see every face at least once.

  • 0
    Voting to close as duplicate: although that question is a special case of this one, the answers address the general case.2012-10-30

1 Answers 1

1

This is a variant of the coupon collector's problem

Formula (14a) is what you need.

Updated after comments.

  • 0
    It's correct that this is the coupon collector's problem, but that expected number can't be right - consider the case where all of the weights are 1 (or so nearly so as to be negligibly different, while still meeting the 'weighted differently' constraint). The formula would suggest that it takes only $n$ rolls to 'collect' all $n$ sides.2012-10-29
  • 0
    Is it still the coupon's collectors problem if the sides are weighted differently? Meaning each side has a different probability of showing up.2012-10-29
  • 0
    @toobsco42 It's still a variant thereof, and I would start with 'weighted coupon collector's problem' as a search term - though a bit of research suggests that the problem may not have any closed-form solution.2012-10-29
  • 0
    But it can't be correct, because the original problem has $w_k=\frac{1}{n}$ and your answer would give us $n^2$ in that case, when it should be $nH_n = O(n\log n)$2012-10-29
  • 0
    Thanks. I was thinking it was a variant. I just thought it had a closed-form solution because I was asked to create a method in Java to help me solve this problem.2012-10-29
  • 0
    @toobsco42 Given that the question says 'estimate', I suspect what your teacher is after is a _simulation_ where you actually do the collecting and tally how many rolls it takes, over several thousand (or million) runs of the simulation...2012-10-29
  • 0
    I think this may be along the lines of what i was looking for: http://programworlds.blogspot.com/2012/07/coupon-collector-simulation.html But I am trying to determine the Big O complexity with the random number generator.2012-10-29