Let $X$ a random variable with the p.d.f.
$$ f_X(x) = \begin{cases} 3x^2, & \text{if } 0<x<1 \\ 0, & \text{otherwise} \end{cases}$$
and $W=-\frac{1}{2}\log(X) $. Find the p.d.f. $f_W$ for $W$.
I've been given this task and the answer to the question as well. So, my idea was to use the formula:
$$f_Y(y)=\frac{f_X(x_1)}{g'(x_1)}$$
where $\ g(x_1)=y$.
However, the answer that I am ending up with simply does not align with the answer given by the instructor. I am told that the answer should be $W \sim \operatorname{Exp}(6) $.
This is how I'm breaking the task down:
$$ f_X(x) = \begin{cases} 3x^2, & \text{if } 0<x<1 \\ 0, & \text{otherwise} \end{cases} \qquad \text{and} \qquad g(x) = -\frac{1}{2}\log(x)$$
are given by the task. So what I need to do is differentiate $g(x)$ and find the inverse function of $W$ and put it all together:
- Derivative: $g'(x) = -\frac{1}{2x} $.
- Inverse: $x_1 = g^{-1}(x) = e^{-2x}$.
Putting it together:
$$ f_W(x) = \frac{3 \cdot (e^{-2x})^2}{-1/(2 \cdot e^{-2x})} =-6(e^{-2x})^3 $$
As you can see this doesn't match the given answer. I've used hours trying other methods but cannot find the mistake. Any thoughts?
Best regards
The cdf of $W$ can be calsulated as follows
$$F_W(w)=P(W<w)=P\left(-\frac12\log(X)<w\right)=$$ $$=P\left(\log(X)>-2w\right)=P\left(X>e^{-2w}\right)=$$ $$=3\int_{e^{-2w}}^1x^2\ dx=\begin{cases}0&\text{ if } &w<0\\1-e^{-6w}&\text{ if } &0\leq w.\end{cases}$$
The density is then
$$f_W(w)=\frac{d F_W}{dw}=6e^{-6w}$$
if $w\geq 0$.