3

Suppose a guy has a die with $n$ faces. He can go on rolling it as many times as possible and add the sum of each outcome. What is the expected number of rolls after which the sum is at least $n$?

learner
  • 133
  • Try some simple cases: $n=1,2,3,4$. Do the results follow a simple pattern? – Empy2 Nov 08 '13 at 09:14
  • n faces and sum n – learner Nov 08 '13 at 09:14
  • @Michael No, there is not a simple pattern. But for large number of N (greater than 300) result gets stable to 2.7 – Thanos Darkadakis Nov 08 '13 at 09:34
  • @ThanosDarkadakis Are you sure about $2.7$? It would mean that on average, I expect that in each of my three rolls of a 600-face dice, I will score no less than $200$, which hits me as a bit surprising... Could you perhaps implemented the solution I provided below, to see what probabilities does it give? – Alecos Papadopoulos Nov 08 '13 at 20:58
  • A simulation of $10^7$ throws with a 600-sided die yielded an average of 2.71. Let me know if you want the code. Cheers! – Matthew Conroy Nov 08 '13 at 21:10
  • 1
    I would like to thank you for re-allocating your Green check to my answer, BUT: @Matthew Conroy 's answer may have been narrower in scope than mine, but it answered exactly what you were asking, and it provided an obviously much easier computational algorithm. So I believe you owe it to Matthew to explain why you decided to switch back. – Alecos Papadopoulos Nov 10 '13 at 19:06
  • @AlecosPapadopoulos actually both answers served my purpose but you have given a detailed approach that I was looking for, Matthew's answer was no doubt answering my query but I want to accept both answer but this website do not allow me to do such a thing so I choose the one I was finding more satisfactory. – learner Nov 11 '13 at 04:14