Let $(X,Y)$ be a random variable with PDF :
$$f(x,y)=\begin{cases} e^{-x-y} &if\;x,y\ge0 \\ 0&in \;other\;case \end{cases}$$
I want to calculate $E(X+Y|X<Y).$
$E(X+Y|X<Y)=E(X|X<Y)+E(Y|X<Y).$
Firstly let's count $P(X<Y)$.
$P(X<Y)=\int_0^{\infty}(\int_0^{y}e^{-x-y}dx)dy=\frac12.$
$E(X|X<Y)=\frac{1}{P(X<Y)}\cdot \int_{\{X<Y\}}X\;dP$
And now i have problem with meaning of $\int_{\{X<Y\}}X\;dP$. Im not sure what the exactly it is. I would say that it's some double integral of probability density function but i don't know what the upper and lower integration limit should be. Can you please help me with this ?
Shortcut:
The PDF betrays that $X$ and $Y$ are iid continuous random variables.
Then $\mathbb E[X+Y\mid X<Y]=\mathbb E[X+Y\mid Y<X]$ and $P(Y<X)=P(X<Y)=\frac12$
Now make use of:$$\mathbb E[X+Y]=\mathbb E[X+Y\mid X<Y]P(X<Y)+\mathbb E[X+Y\mid Y<X]P(Y<X)$$