Joe looks for aliens. He finds female aliens with probability equal to $p$ ($p$ is not $0$ or $1$). Male aliens with probability $1-p$. He wants to breed alien so he wants male alien and female alien.
I want to find expectation and variance of aliens he will find before finding male and female pair with conditioning. I am having trouble with the set up. e
I suppose we can condition on the first alien like we normally condition. But I am not so sure how to move forward.
On the first draw, we will find either a male or a female alien. If it's a male alien (probability $1 - p$), we have to keep drawing aliens until we find a female one. This is a geometric distribution with expected number of remaining draws $\frac{1}{p}$. If the first alien is female (probability $p$), we have to keep drawing aliens until we find a male one. The expected number of remaining draws is then $\frac{1}{1-p}$. If $X$ is the number of required draws, we thus find:
$$E(X) = 1 + \frac{1 - p}{p} + \frac{p}{1-p}$$
As an example, if $p = \frac{1}{2}$, we find $E(X) = 1 + 1 + 1 = 3$.