Finding pdf of y when knowing pdf of x

378 Views Asked by At

I am trying to solve a problem which is quite easy but I just can't get the needed result.

Task: $x$~${Exp}(1)$. Therefore, pdf: $f_x(x)=e^{-x}$ and $y=lnx$.

I need to show that pdf of ${y=f_y(y)}=Exp(y-e^{y})$, y continues from minus infinity to plus infinity (standard extreme value type I distribution).

Formula in use: $$f_Y(y)=f_x(g^{-1}(y))\frac{1}{\lvert\frac{dy}{dx}\rvert}$$

Solving the problem gives me: $f_Y(y)=f_x(e^{y})\frac{1}{\lvert\frac{dy}{dx}\rvert}=(e^{-e^{y}}x)$

If I plug in the $x=e^{y}$ then I get the right result, but can I do that? Or maybe there is another way of achieving the ${y=f_y(y)}=Exp(y-e^{y})$ result?

1

There are 1 best solutions below

2
On BEST ANSWER

Ok so $$F_Y(y) = P(Y \leq y) = P(ln (x) \leq y) = \int_{0}^{e^y} f_x(x) dx= \int_{0}^{e^y} e^{-x} dx = -e^{-e^{y}} + 1$$ Then $$f_Y(y)=F'_Y(y) = e^{y}e^{-e^y} = e^{y - e^y}$$