Hi,
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...