An unbiased coin is tossed 5 times. Suppose that a variable X is assigned the value k when k consecutive heads are obtained for , otherwise X takes the value . Then the expected value of X, is
We begin by recalling the fundamental fact that tossing an unbiased coin five times produces equally likely sequences.
The random variable takes only four possible values:
if the sequence contains five consecutive heads,
if it contains four but not five consecutive heads,
if it contains exactly three consecutive heads and never four or five in a row,
in every other case.
We now find the probability of each of these four mutually exclusive events.
1. Probability that
Five consecutive heads can occur in only one way, namely the single sequence . Thus
2. Probability that
We need four heads in a row but not five. The block of four heads can start either at the first toss or at the second toss.
• If it starts at toss 1 we have
• If it starts at toss 2 we have
There are exactly two such sequences and none of them equals the string of five heads already counted, so
3. Probability that
We require a block of exactly three consecutive heads while forbidding any block of four or five. Let the block HHH start at position k.
(i) k = 1 pattern
To avoid four heads, The fifth toss can be either H or T, giving the two strings
(ii) k = 2 pattern
Here (otherwise we would have four heads) and for the same reason, yielding the single string
(iii) k = 3 pattern
To avoid a block of four heads, The first toss can be H or T, giving
Counting them all, we have
sequences: \;$
Thus
4. Probability that
This is simply the complement of the three cases already counted:
$
5. Expected value of
By definition, the expectation of a discrete random variable is Substituting our four values we get
$
Hence, the correct answer is Option B.
Tagged Random variables, mean and variance. Machine-assigned, so read it as a strong shortlist rather than a verdict.