Let, $X,Y$ are independent rv with pdf.s
$f_X(x\mid \lambda)=\dfrac{1}{\lambda}e^{-x/\lambda}$, $x>0$ and $f_Y(y\mid \mu)=\dfrac{1}{\mu}e^{-x/\mu}$, $y>0$.
Let $Z=\min\{X,Y\}$ and
$W=1$ if $Z=X$ and $0$ if $Z=Y$
Find joint distribution of $(Z,W)$?
I found pmf of $W$ which is $f_W(w)=\Big(\dfrac{\mu}{\lambda+\mu}\Big)^w\Big(\dfrac{\lambda}{\lambda+\mu}\Big)^{1-w}$
But have problem while calculating $P(Z\leq z, W=1)$.
$P(Z\leq z, W=1)=P(Z\leq z\mid W=1)P(W=1)=P(X\leq z)P(W=1)$
The last line does not look right to me. What should I do? Thanks for any help!