A bag contains $2$ white balls and $2$ black balls. Each instance a ball is taken from the bag, if it's white it's returned to the bag and if it's black it's replaced by a white ball. The game ends when no black balls remain in the bag. Let $Y$ be the number of instances of the game; calculate $\operatorname{var}(Y).$ Answer in the book: $14.$
I am not sure how to write the probability function of $Y;$ please help and thanks in advance!
Let $Y_1$ be the random variable who value is the number of draws until the first black ball is drawn. This is a geometrically-distributed random variable with probability of success $\frac12$.
Similarly, let $Y_2$ be the random variable who value is the number of draws until the second black ball is drawn, after the first black ball is replaced by a white ball. This is a geometrically-distributed random variable with probability of success $\frac14$.
Then $Y=Y_1+Y_2$.
Take it from here.