1
$\begingroup$

Suppose $X$ and $Y$ are two independent random variables with uniform distribution on $(-1,1)$.

What is $E(\mid X+Y\mid)$


I am really confused with the abs function. I could only graph the region such that $\mid X+Y\mid \le 1$ but I don't know how to start from here.

<span class=\mid X+Y\mid \le 1">

Is there a general way to solve random variables involved abs function?

  • 1
    The pdf of $X+Y$ is the convolution of two rectangles (the pdfs and $X$ and $Y$ and is thus a triangle (centered at $0$) of base $4$ and altitude $\frac{1}{2}$. The pdf of $|X+Y|$ is this folded over to give a triangle of base $2$ and altitude $1$. The center of mass of a triangle is $2/3$ of the way from apex to base, and so $E[|X+Y|] = \frac{2}{3}$.2011-12-11

1 Answers 1

1

If you have $ \int_{-1}^1\int_{-1}^1 |x+y| \frac{dy\;dx}{4}, $ you can look separately at the part of the square where $x+y>0$ and the part where $x+y<0$. The boundary is where $x+y=0$.

$ \int_{-1}^1 \left( \int_?^? (x+y) \;dy \right) dx/4. $ The bounds on the inside integral say $y$ goes from something to something, with $x$ fixed at some point between $0$ and $1$. Choose those bounds so that you're looking at the region where $x+y>0$.