Q.7.11
Question
Consider independent flips of a coin having probability of landing on heads. Say that a changeover occurs whenever an outcome differs from the one preceding it. For instance, if and the outcome is, then there are changeovers. Find the expected number of changeovers. Hint: Express the number of changeovers as the sum of Bernoulli random variables.
Step-by-Step Solution
VerifiedThe expected number of changeovers is .
Let independent flips of a coin have probability of landing on heads.
Define indicator random variables that marks if there was a changeover between and st flip, . Observe that if and only if we have Head in flip and Tail in st flip or if we have Tail in flip and Head in st flip.
So, we have that
Define as the total number of changeovers. We have that and using the linearity of the expectation, we have that
.
The expected number of changeovers is .