We flip a coin until a taild or five heads in a row occur. What is the number of expected flips?
I have tried to solve this by first defining 2 random variables: X which is 1/2 if head and 1/2 if tail. Then I build the distribution table for this random variable. I don't know exactly how to define the second radom variable.
How would you approach this problem?
If I understand the problem correctly, there are only six possible sequences:
T; HT; HHT; HHHT; HHHHT; or HHHHH.
It should be simple enough to build a probability distribution for the number of flips until you are done, and then find the expected value.