What's the density of $Z=\max(X,Y)-\min(X,Y)$ with $X,Y$ exponentials of parameter $\lambda$?

1.5k Views Asked by At

Let be $X,Y$ two independent exponential random variables with parameter $\lambda$. What is the pdf of $Z=\max(X,Y)-\min(X,Y)$? Thanks for your help.

2

There are 2 best solutions below

1
On BEST ANSWER

A less elegant but equally valid approach is to note that we may equivalently write $$Z = |X - Y|,$$ so that $$\begin{align*} f_Z(z) &= \int_{y=0}^\infty f_X(y+z)f_Y(y) \, dy + \int_{y=z}^\infty f_X(y-z)f_Y(y) \, dy \\ &= \int_{y=0}^\infty \lambda e^{-\lambda(y+z)} \lambda e^{-\lambda y} \, dy + \int_{y=z}^\infty \lambda e^{-\lambda(y-z)} \lambda e^{-\lambda y} \, dy \\ &= \lambda e^{-\lambda z}.\end{align*}$$

3
On

By symmetry we can assume that $X\lt Y$, so $Z=Y-X$. Now from the memorylessness of the exponential, we have that given that $Y\gt X$, the distribution of $Y-X$ is exponential with parameter $\lambda$.