I toss a fair coin 100 times in a row. If the variance of the number of times that two Heads are tossed consecutively is equal to b a , where a and b are coprime positive integers, what is the value of a + b ?
Clarification : A run of three or more Heads in a row will contribute more than one instance of consecutive Heads. If three Heads are tossed in a row, then two Heads have been tossed consecutively twice. If six Heads are tossed in a row, then two Heads have been tossed consecutively five times, and so on. For example, two Heads have been tossed consecutively 11 times in the following sequence of 30 tosses:
T H H T H H H H T H H H T H T H H H H H T T T T H H T H T T
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Sorry to be picky, but the final fraction in numbered bullet point 3 should be 1 6 1 , and the fraction 8 1 in the final formula for V a r ( X ) should also be 1 6 1 .
Relevant wiki: Expected Value - Problem Solving
Suppose that I toss a coin n times in a row. For any 1 ≤ j ≤ n − 1 , let X j be the random variable which is equal to 1 if Heads is tossed by the j t h and ( j + 1 ) s t coins, and 0 otherwise, so that the total number of occurrences of consecutive Heads is X = X 1 + X 2 + ⋯ + X n − 1 . It is clear that E [ X j ] = P [ X j = 1 ] = 4 1 for each 1 ≤ j ≤ n − 1 , and hence that N = E [ X ] = E [ X 1 ] + E [ X 2 ] + ⋯ + E [ X n − 1 ] = 4 1 ( n − 1 ) . Now suppose that 1 ≤ i , j ≤ n − 1 and consider E [ X i X j ] = P [ X i = X j = 1 ] . If i = j , this is just the probability that X i = 1 , namely the probability of tossing two Heads in a row. If i and j are consecutive, this is the probability of tossing three Heads in a row; otherwise this is the probability that four coins come up Heads. In other words E [ X i X j ] = ⎩ ⎨ ⎧ 4 1 8 1 1 6 1 i = j ∣ i − j ∣ = 1 ∣ i − j ∣ ≥ 2 and hence E [ X 2 ] = i , j ∑ E [ X i X j ] = = 4 1 × ( n − 1 ) + 8 1 × 2 ( n − 2 ) + 1 6 1 × ( n − 2 ) ( n − 3 ) 1 6 1 ( n 2 + 3 n − 6 ) so that V a r [ X ] = E [ X 2 ] − E [ X ] 2 = 1 6 1 ( 5 n − 7 ) With n = 1 0 0 , the variance is 1 6 4 9 3 , and so the answer is 5 0 9 .
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Discrete Random Variables - Indicator Variables
We use the indicator variables as stated by Mark, where X i is the RV that is equal to 1 if Heads is tossed by both the j and j + 1 coins, and 0 otherwise. We have X = ∑ X i . We calculate the variance as follows:
V a r ( X ) = ∑ V a r ( X i ) + 2 i < j ∑ C o v ( X i , X j )
Hence, V a r ( X ) = ( n − 1 ) × 1 6 3 + 2 ( n − 2 ) × 8 1 + 0 = 1 6 5 n − 7 .