2
$\begingroup$

I am given a PDF:

$$ f_X(x) = \frac{\ell}{2}e^{-\ell |x|} $$ with boundaries $-\infty < x < \infty$ and $\ell > 0$.

I am asked to find $f_Y(y)$ if $Y = |X|$.


My try is: \begin{align} F_Y(y) &= P(Y \leq y)\\ &= P(-y \leq X \leq y)\\ &= F_X(y) - F_X(-y) \end{align}

Now I take the derivative of that, to find \begin{align} f_Y(y) &= f_X(y)\frac{dy}{dy} - f_X(-y)\frac{d(-y)}{dy}\\ &= f_X(y) + f_X(-y)\\ &= \frac{\ell}{2}e^{-\ell y} + \frac{\ell}{2}e^{-\ell y}\\ &= \ell e^{-\ell y} \end{align}

Is what I am doing correct?

$\endgroup$
1
  • 2
    $\begingroup$ If you were to sketch a graph of $f_X$ you should be able to write down the answer immediately, with no calculation at all, and know it is correct. $\endgroup$
    – whuber
    Commented Jan 8, 2022 at 20:14

1 Answer 1

1
$\begingroup$

Yes, that is correct. Also note that in the course of your calculations you effectively derived the general rule (for a continuous random variable):

$$f_{|X|}(x) = f_X(x) + f_X(-x).$$

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.