#209
The Longest Streak
Also asked as: The longest run of heads · expected longest streak in coin flips
One of the classic quant interview questions, free to read in full.
HardExpected Value
Problem
Flip a fair coin 100 times. What is the expected length of the longest run of consecutive heads? Give the number to two decimals (it's computable exactly) and a mental-math route that gets close.
Your answer
Accepts decimals, fractions (5/12), and percentages (25%).