Let X be uniform on $[0,1]$, and let $Y=\sqrt{x}$. Find $E(Y)$ by
a) finding density of $Y$ and then finding the expectation, and
b) by using definition $\mathbb{E}[g(x)]=\int g(x)f(x)dx$.
attempted SOLUTION:
$$f^{-1}(x): x=y^2$$
$$ \frac {d}{dy} f^{-1}(y) = 2y $$
According to the denity transfornation theorem:
$$ f(y) = f_x(f^{-1}(y))|\frac{d}{dy}f^{-1}(y)|= y \space 2y$$
Provided SOLUTION:
$$f(y)= 2y$$
I have not finished the exercise because i need the correct expression for $f(y)$ in order to calculate the $\mathbb{E}[Y]$. Where is my mistake?
Density of uniform distribution is $1$ on $(0,1)$. So $f_x(f^{-1} (y))=1$. Now you should be able to use either of the two methods to get $EY=\frac 2 3 $