-1
$\begingroup$

fX(x) = 1/3*x^2 for x in [-1,2] and 0 otherwise

Y = X^2 Find E(Y)

My solution:

$$fX(x) = 1/3*x^2 So FX(x) = x^3/9$$

$$p(Y < y) =$$

$$p(x^2 < y) =$$

$$p (x < √y) =$$

$$FX(√y) = (√y^3)/9 = FY(y)$$ So

$$fY(y) = 1/9*y^(1/2) = 1/6 * y ^(1/2) $$

so $E(x) = \int (1/6y^(1/2)y dy) = 1/15$

What's wrong with this?

$\endgroup$
1
  • $\begingroup$ As for the math question, note that $X$ can be negative. $\endgroup$ Apr 8, 2019 at 1:09

1 Answer 1

2
$\begingroup$

Your calculation of $F_X(x) = \Pr[X \le x]$ is wrong because $X \in [-1,2]$. Instead, $$\int_{t=\color{red}{-1}}^x f_X(t) \, dt = \int_{t=-1}^x \frac{t^2}{3} \, dt = \left[\frac{t^3}{9} \right]_{t=-1}^x = \frac{x^3 + 1}{9},$$ consequently $$F_X(x) = \begin{cases} 0, & x < -1 \\ \frac{x^3 + 1}{9}, & -1 \le x \le 2 \\ 1, & x > 2. \end{cases}$$

You calculation of $F_Y$ is also incorrect for the same reason; i.e. $X$ may be negative. However, it is not necessary to compute $f_Y$ or $F_Y$ explicitly. We simply compute $$\operatorname{E}[Y] = \operatorname{E}[X^2] = \int_{x=-1}^2 x^2 f_X(x) \, dx = \int_{x=-1}^2 \frac{x^4}{3} \, dx = \left[ \frac{x^5}{15} \right]_{x=-1}^2 = \frac{33}{15} = \frac{11}{5}.$$

$\endgroup$
3
  • $\begingroup$ 6Thank you so much. But how fx became x^3/3? $\endgroup$ Apr 8, 2019 at 20:52
  • $\begingroup$ @Fatemehhh My apologies: that was a typographical error. I will fix it shortly. $\endgroup$
    – heropup
    Apr 9, 2019 at 1:07
  • $\begingroup$ I really appreciate your time. $\endgroup$ Apr 9, 2019 at 1:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .