Sum and Squares of Uniform Random Variables

1.1k Views Asked by At

Suppose I have $X\sim U(-1,1)$ and $Z\sim U(0,0.1)$ independently and want to work out the pdf of a new r.v. defined as such: $Y=X^2+Z$. How could I calculate its distribution? I have tried to work it out but seem to have contradictory things appearing.

I have been able to show that the distribution of $Y|X=x \sim U(x^2,x^2+0.1)$ and hence we can deduce the joint pdf of $X$ and $Y$ is given by $$f_{XY}(x,y)=f_{Y|X}(y|x)f_X(x)=10\, \cdot \frac{1}{2}=5$$ and this is valid over the support $\{(x,y):-1<x<1,\, x^2<y<x^2+0.1\}$.

Hence to find $f_Y$ all that I surely need to do is integrate the joint pdf above over its support of $X$, ie. $\{x:-1<x<1\}$.

Doing this we get that $f_Y(y)=10$, which is valid for $\{y:0<y<1.1\}$, but how can this be? Where is the error in my reasoning?

1

There are 1 best solutions below

0
On BEST ANSWER

I prefer to handle cumulative distribution functions, rather like this:

For $0\le y \le 0.1$ you can say $$\mathbb P(Y \le y) = \int_{z=0}^y 10\, \mathbb P(X^2 \le y-z) \,dz = \int_{z=0}^y 10\, \sqrt{y-z} \,dz = \frac{20}{3}y^{3/2}$$

and taking the derivative will give you $f_Y(y)=10 \sqrt{y}$.

For $0.1\le y \le 1$ you can say $$\mathbb P(Y \le y) = \int_{z=0}^{0.1} 10\, \mathbb P(X^2 \le y-z) \,dz = \frac{20}{3}y^{3/2} - \frac{20}{3}(y-0.1)^{3/2}$$

and taking the derivative will give you $f_Y(y)=10 \sqrt{y}-10 \sqrt{y-0.1}$.

For $1\le y \le 1.1$ you can say $$\mathbb P(Y \le y) = \int_{z=0}^{y-1} 10 \,dz + \int_{z=y-1}^{0.1} 10\, \mathbb P(X^2 \le y-z) \,dz = 10y -\frac{10}{3} - \frac{20}{3}(y-0.1)^{3/2}$$

and taking the derivative will give you $f_Y(y)=10-10 \sqrt{y-0.1}$.

The cumulative distribution function turns out to look like

enter image description here

and the probability density function (zero outside $[0,1.1]$) looks like

![enter image description here