We use the backward Kolmogorov equation approach to understand the apparently paradoxical feature that the mean waiting time to encounter distinct fixed-length sequences of heads and tails upon repeated fair coin flips can be different. For sequences of length 2, the mean time until the sequence HH (heads-heads) appears equals 6, while the waiting time for the sequence HT (heads-tails) equals 4. We give complete results for the waiting times of sequences of lengths 3, 4, and 5; the extension to longer sequences is straightforward (albeit more tedious). We also derive the moment generating functions, from which any moment of the mean waiting time for specific sequences can be found. Finally, we compute the mean waiting times $T_{2n\rm H}2nT_{n\rm(HT)}n$ alternating heads and tails. For large , . Thus distinct sequences of coin flips of the same length can have very different mean waiting times.

生成讲解博客的中文版本

生成AI智能校验的中文版本