What is the expected number of random digits that should be generated to obtain three consecutive zeros?
Now how can i proceed with this problem using the Theorem for Conditioning on Random Variables?
I tried to start with $$E[X]=E[E(X|Y)]$$=$$\sum_{i=1}^\infty E(X|Y=i)P(Y=i)$$
So now, i am thinking how can i proceed using the formula. I know that there are 10 digits and the chance of 1 zero is 1/10 and 9/10 is no zero. But how can i make this into a general formula??
Can anybody explain in words and break down , what the book gives as an answer?