Hi,(adsbygoogle = window.adsbygoogle || []).push({});

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. Given this information, compute E[X] and Var[X].

I cannot understand how to set up the indicator method that will allow me to solve this problem quickly.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Method of Indicators for computing expectation

**Physics Forums | Science Articles, Homework Help, Discussion**