Here is the question:
Consider the probability density function $f(x)=2(x-1)$, for $0<x<1$, and $=0$ otherwise
Find $\sigma^2_y$ where $Y=3X-1$
I have the final answer with no steps and it is equal to $\frac{1}{2}$ but I can't seem to reach it.
Here is my attempt:
First, we need to find the expected value, we get $\int_0^1 (3x-1)2(1-x)dx=0$
For the variance we apply the general formula $\int_0^1 (x-\mu)^2\ f(x)dx$ with $\mu=0$ , and here comes the trouble, I tried doing $\int_0^1 (x)^2\ (3x-1)dx$ and it didn't give the desired answer
I also tried $\int_0^1 (x)^2\ 3[(2(1-x)]-1dx$ and it was also wrong (this one was just a random attempt, I do not think it is logically correct since it is more like $g(f(x))$, I have tried looking around the book for a formula to apply this with no luck, any help?
Simply use variance property that is
$$\mathbb{V}[aX+b]=a^2\mathbb{V}[X]$$
there is an evident typo in the exercise and the correct one is
$$f_X(x)=2(1-x)$$
thus
$$\mathbb{V}[X]=\mathbb{E}[X^2]-\mathbb{E}^2[X]=\frac{3}{54}$$
and finally
$$\mathbb{V}[Y]=9\mathbb{V}[X]=\frac{1}{2}$$