Calculate marginal pdf of $Y$ when marginal pdf of $X$ and conditional distribution of $Y$ is given

density functionmarginal-distributionprobability distributions

The Question

enter image description here

So I have tried the formula
$f_{X,Y}(x,y)=f_{Y\mid X}(y\mid x)\cdot f_{X}(x)$ but I am not able to figure out the bounds and I am not sure what to do after the bounds are found

Please do let me know if you guys have any idea on how to solve this question

Best Answer

$$f_{XY}(x,y)=f_X(x)\cdot f_{Y|X}(y|x)=2x^2\mathbb{1}_{(0;1)}(x)\cdot\mathbb{1}_{(0;1/x)}(y)$$

now to calculate $f_Y(y)$ you have to integrate in X, that is

$$f_Y(y)=\int_0^1 2x^2dx=2/3$$

when $y \in[0;1]$

and

$$f_Y(y)=\int_0^{1/y} 2x^2 dx=\frac{2}{3y^3}$$

when $y>1$

To understand integral bounds it is useful to do a drawing of the integration area, first

Related Question