folks!
I have the following problem:
Suppose you have a coin that has chance p of landing heads. Suppose you flip the coin N times and let
X denote the number of "head runs" in N flips. A "head run" is defined as any sequence of heads.
For example the sequence HHTHHHHHTTTTHHTHT contains 4 head runs. I want to compute E(X) and Var(X).
I have a difficulty especially with variance.
Thanks.