Suppose you have a bag with 5 marbles (1 red, 3 green, 1 black). You pick one marble at time without replacement.
If the marble is red we call this successful pick.
If the marble is green you can keep on picking from the bag until you pick 3 green marbles (let's say you have 3 lives and 1 green picked => lose 1 life)
If you pick the black one, you have to stop picking marbles.
How can I know the average number of successful picks? I can calculate the average total picks.
I hope someone can point me in the right direction. Feel free to ask if the question is not clear enough.