An unbiased coin is tossed 5 times. Suppose that a variable X is assigned the value k when k consecutive heads are obtained for k = 3, 4, 5, other wise X takes the value -1.The expected value of X, is:
The possibilities for getting one consecutive head are 12 ways
The possibilities for getting two consecutive heads are
11 ways
The possibilities for getting three consecutive heads are
, 5 ways
The possibilities for getting four consecutive heads are
2 ways
The possibilities for getting five consecutive heads is
k = no. of times head occur consecutively
Now expectation