Two parents decide to have children until they have 3 children of the same gender one after another (3 in a row). If p(boy)=p(girl)=1/2, how many children are they expected to have?
I have tried to draw a tree diagram to analyse the problem, but i can't generate a useful expression for the probability that a 'success' will happen on the nth trial.
So far P(3)=1/4, P(4)=1/8, P(5)=1/8, P(6)=3/32, P(7)=3/64, P(8)=5/128 and P(9)=1/32.
I have read a similar article on this forum about finding E(x) and Var(x) for 2 consecutive successes, but generating an expression here is far more difficult. In the case of first 2 consecutive successes in k trials, every success must be followed by a failure until the (k-1)th trial. Here not every success needs to be followed by a failure, though 2 consecutive successes must be followed by a failure until the (k-2)th trial.
many thanks, Yun Fei