Advertisement
usrv

Unique Faces on Dice

Jul 18th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. Problem:
  2. What is the expected number of rolls of a 6-sided die before u land on 3 unique faces?
  3.  
  4. Expansion:
  5. Given a fair n-sided die, what is the expected number of rolls before you land k <= n unique faces?
  6.  
  7. ===
  8.  
  9. Let e(k) = the expected number of rolls needed to land k unique faces. Then, e(k + 1) = e(k) + [expected number of rolls required before a new face is rolled]
  10.  
  11. For k = 1, e(1) = 1, regardless of the value of n
  12.  
  13. For k = 2, e(2) = e(1) + (n)/(n - 1) = 1 + n/(n - 1). This is because our probability of rolling a new face is p = (n - 1)/(n), and so the expected number of rolls required to roll a new face is 1/p = n/(n - 1)
  14.  
  15. Similarly, for k = 3, e(3) = e(2) + n/(n - 2) = 1 + n/(n - 1) + n/(n - 2).
  16.  
  17. Thus, for any arbitrary value of k > 1, our expected value is e(k) = e(k - 1) + n/(n - k - 1). Consolidating, we have e(k) = 1 + n/(n - 1) + n/(n - 2) + . . . + n/(n - k - 1)
  18.  
  19. There's probably some way to telescope or make that into a nice formula, but I'm too lazy to do it so rip.
  20.  
  21. But yeah for the original problem e(3) = 1 + 6/5 + 6/4 = 37/10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement