The number of heads has the binomial distribution. Choosing the head positions gives
Conditioned on exactly heads, every -element set of head positions is equally likely. There are such sets. A run containing all heads can begin at any of the positions
and each beginning determines one admissible set. Thus, for ,
For the process to stop on toss , the last toss must be the th head, while the first tosses must contain exactly heads. Hence the negative binomial distribution gives
Let be the expected additional number of tosses when the current terminal run contains consecutive heads. Then , and for ,
For , iterating this recurrence from down to gives
Solving,
When , the waiting time is deterministically , which is also the continuous limit of this formula as .

Articles by others on the same topic (0)

There are currently no matching articles.