Hi Members,

Let $ X_1,.....X_n $be a sequence of independent binary random variables, with each $ X_i $ being equal to 1 with probability $p$. A maximum consecutive subsequence of 1's is called a run. For instance,the sequence

1, 0,1,1,1,0,0,1,1,1,0

has 3 runs. With R equal to the number of runs, find E[R], and Var(R).

How to solve this question?