The random variable whose probability density function is given by
$$
f(x)=\left\{\begin{array}{ll}
\frac{1}{2} \lambda e^{\lambda x}, & \text { if } x \leqslant 0 \\
\frac{1}{2} \lambda e^{-\lambda x}, & \text { if } x>0
\end{array}\right.
$$
is said to have a Laplace, sometimes called a double exponential, distribution.
(a) Verify that the preceding is a probability density function.
(b) Show that the distribution function of a Laplace random variable is
$$
F(x)=\left\{\begin{array}{ll}
\frac{1}{2} e^{\lambda x}, & \text { if } x \leqslant 0 \\
1-\frac{1}{2} e^{-\lambda x}, & \text { if } x>0
\end{array}\right.
$$
Let $X$ and $Y$ be independent exponential random variables with parameter $\lambda$. Also, let $I$ be independent of $X$ and $Y$ and let it be equally likely to be 1 or $-1$.
(c) Show that $X-Y$ is a Laplace random variable.
(d) Show that $I X$ is a Laplace random variable.
(e) Show that $W$ is a Laplace random variable, where
$$
W=\left\{\begin{array}{ll}
X, & \text { if } I=1 \\
-Y, & \text { if } I=-1
\end{array}\right.
$$