I have a PDF of X defined as $f(x) = e^{-x}\text{ for } x \geq 0,$ 0 otherwise, and a RV $Y$ defined as X if X $\leq 1$, and $\frac{1}{X}$ if X>1. I need to find a pdf of Y. I graphed Y versus X, and can see that Y varies from 0 to 1, the curve goes as y=x for x between 0 and 1, and $\frac{1}{x}$ from 1 onwards. Could someone show how to get to the pdfs? I tried doing pdf of y = $F_x(t)' + F_x(\frac{1}{t})'$ at t between 0 and 1, but I don't know -- should I be adding them or subtracting them? This is in preparation for the test tomorrow morning, many thanks.
Tell me more
×
Mathematics Stack Exchange is a question and answer site for
people studying math at any level and professionals in related fields. It's 100% free, no registration required.
|
|
Here's one way. For $0<y\le1$, $$ \begin{align} f_Y(y) & = \frac{d}{dy} F_Y(y) = \frac{d}{dy}\Pr(Y\le y) = \frac{d}{dy}\Pr\left( X \le y \text{ or }X\ge\frac1y \right) = \frac{d}{dy}\left( (1-e^{-y}) + e^{-1/y} \right) \\ \\ & = e^{-y} + \frac{e^{-1/y}}{y^2}. \end{align} $$ (And of course $f_Y(y) = 0$ if $y>1$ or $y<0$.) |
|||
|
|
|
I think that You should use following formula: $f_Y(y)=|\frac{1}{g'(x)}|f_X(x)$ , where $Y=g(X)$ $a)$ $x<0 , f_X(x)=0 , g(x)=x$ $f_Y(y)=1 \cdot 0=0$ $b)$ $x\in [0,1] , f_X(x)=e^{-x} , g(x)=x$ $f_Y(y)=1 \cdot e^{-x}=e^{-x}$ $c)$ $x>1 , f_X(x)=e^{-x} , g(x)=\frac{1}{x}$ $f_Y(y)=\frac{1}{x^2} \cdot e^{-x}$ |
|||||||
|