0
$\begingroup$

I'm attempting to solve this problem, and I'm not sure how to (sort of) backtrack the PDF when I have the expectation.

Let $Y$ be a continuous R.V. given by the PDF: $f_Y(y)=2(1-y)$ where $y\in [0,1]$

Let $U=Y^2$

I'm asked to find the PDF and expected value of $U$.

I found the expected value using the following: $$ E[g(x)]=\int g(x)\cdot f(x)dx \rightarrow E[Y^2]=\int_0^1y^2f_Y(y)dy=2\int_0^1 (y^2-y^3)dy $$ $$ = \ldots =\frac{1}{6}=E[U] $$

However, I'm not completely sure I know how to get to $U$'s PDF,

What I've got so far is the understanding that the support of $U$ is the same as of $Y$ ($[0,1]$) and so we can write that $$ E[U]=\frac{1}{6}=\int_0^1 uf_U(u)du $$

$\endgroup$

2 Answers 2

3
$\begingroup$

In general knowing the expectation will not help you determine the density of a random variable.

For this example, finding the CDF of $U$ and then taking the derivative is straightforward.

$$P(U \le u) = P(Y^2 \le u) = P(Y \le \sqrt{u}) = \int_0^{\sqrt{u}} 2(1-y) \, dy = 2\sqrt{u} - u.$$ $$\frac{d}{du} P(U \le u) = \frac{1}{\sqrt{u}} - 1.$$

As a sanity check, the expectation is $$\int_0^1 u (u^{-1/2} - 1) \, du = \left[\frac{2}{3}u^{3/2} - \frac{1}{2}u^2\right]_{u=0}^1 = \frac{1}{6}.$$

$\endgroup$
1
  • $\begingroup$ I see, this is the missing piece in what I needed. Thank you very much for your contribution! $\endgroup$
    – Aishgadol
    Jan 1, 2023 at 16:47
1
$\begingroup$

Alternatively to @angryavian's fine answer, you can resort to the transformation variables formula: if $u=g(y)$ and $g()$ is invertible, then

$$f_U(u)={\frac{f_Y(y)}{|g'(y)|}}\bigg|_{y=g^{-1}(u)}$$

In our case $u=g(y)=y^2$ is indeed invertible for $y\in [0,1]$. Further $g'(y)=2y$ and $g^{-1}(u)=\sqrt{u}$

Hence

$$f_U(u)= \frac{2(1−y)}{2y}\bigg|_{y=g^{-1}(u)} = \frac{2(1-\sqrt{u})}{2 \sqrt{u}} = \frac{1}{\sqrt{u}}-1$$

for $u\in[0,1]$.

$\endgroup$

You must log in to answer this question.

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