Skip to main content

AMC 12 Mock Exam 7 Problem 18

Problem 18 of 25

Ana tosses a fair coin 2020 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, HHTHHHT\text{HHTHHHT} has the four runs HH\text{HH}, T\text{T}, HHH\text{HHH}, T\text{T}. What is the expected number of runs of length exactly 33 in Ana's string?

Answer choices

Show solution

Solution

Each run of length exactly 33 starts at a unique position ii with 1≤i≤181\le i\le18. Let XiX_i be 11 if a run of length exactly 33 starts at position ii, and 00 otherwise; the answer is ∑E[Xi]\sum E[X_i] by linearity of expectation.

  • i=1i=1: tosses 22 and 33 match toss 11 and toss 44 differs: probability 18\frac18.
  • i=18i=18: toss 1717 differs from toss 1818 and tosses 19,2019,20 match it: probability 18\frac18.
  • 2≤i≤172\le i\le17: toss i−1i-1 differs, tosses i+1,i+2i+1,i+2 match toss ii, and toss i+3i+3 differs: probability 116\frac1{16}, for 1616 positions.

The expected number is 18+18+16⋅116=54\frac18+\frac18+16\cdot\frac1{16}=\boxed{\tfrac54}.

(Using 116\frac1{16} for all 1818 starting positions gives 98\frac98; counting only the interior gives 11.)

Tagged: linearity of expectation: runs of exact length in coin tosses