Description Usage Arguments Value References Examples
The value of this function answers the question:
"How long do I have to wait (on average) until every
value of a discrete distribution (with a finite set of values) appears
at least once?"
Uses the solution of Flajolet, Gardy and Thimonier (1992)
1 |
p |
|
[numeric(1)]
Mean waiting time.
Flajolet, Philippe, Daniele Gardy und Loys Thimonier. "Birthday Paradox, Coupon Collectors, Caching Algorithms and Self-Organizing Search". Discrete Applied Mathematics 39(3) (1992), 207–229. DOI:10.1016/0166-218X(92)90177-C.
1 2 | # How long until every side of a fair 40-sided dice appears at least once (on average)?
getWaitingTime2(rep(1/40, 40))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.