AMC 12 Mock Exam 7 Problem 18
Problem 18 of 25
Ana tosses a fair coin times and writes down the results as a string of H's and T's. A run is a maximal block of consecutive identical letters in the string; for example, has the four runs , , , . What is the expected number of runs of length exactly in Ana's string?
Answer choices
Show solution
Solution
Each run of length exactly starts at a unique position with . Let be if a run of length exactly starts at position , and otherwise; the answer is by linearity of expectation.
- : tosses and match toss and toss differs: probability .
- : toss differs from toss and tosses match it: probability .
- : toss differs, tosses match toss , and toss differs: probability , for positions.
The expected number is .
(Using for all starting positions gives ; counting only the interior gives .)
Tagged: linearity of expectation: runs of exact length in coin tosses