I have this question in mind Say we flip a particular fair coin for 20 times and note down the sequences. Then what is the number of expected runs we can get?
Thought process: Let X = number of runs we can obtain (i.e. from 1 to 20 - since we are not asking for a "complete" run) probability of each run = 1/20
Expected # of runs = 1/20 [1+2+3+4...+20] = 10.5 Is my deduction correct or is there a flaw? Thank you!
The first flip starts a run. After that any given flip has a $0.5$ probability of starting a new run. So after the first flip we would expect half of the succeeding flips to start new runs.
So the expected number of runs is $1+\frac{19}{2}$