A problem on conditioning where I am completely lost.

53 Views Asked by At

The real random variables $X$ and $Y$ are independent and both have a uniform distribution $U([0,1])$. Find $$\mathbb{E}\left[e^{X+Y}|\quad |X-Y| \right]$$ Since $f(\cdot)=|\cdot|$ is not a monotone function, we can't remove it. I.e. if we had $\mathbb{E}\left[e^{X+Y}|\quad (|X-Y|)^2 \right]$ or $\mathbb{E}\left[e^{X+Y}|\quad e^{X-Y} \right]$ we'd be able to use the fact that the exponent and quadratic functions are monotone and simply rewrite the problem in the following form: $$\mathbb{E}\left[e^{X+Y}|\quad X-Y \right]$$ However, here it's impossible.

Is it a correct approach?

$$\mathbb{E}\left[ e^{X+Y}|\quad |X-Y|=s \right]=\mathbb{E}\left[ e^{X+Y}|\quad X-Y=s \right]+\mathbb{E}\left[ e^{X+Y}|\quad X-Y=-s \right]$$ and hence $$\mathbb{E}\left[ e^{X+Y}|\quad |X-Y| \right]=\mathbb{E}\left[ e^{X+Y}|\quad X-Y \right]+\mathbb{E}\left[ e^{X+Y}|\quad Y-X \right]$$

2

There are 2 best solutions below

0
On

No, that's not correct. It would work for probabilities, but not for expected values. (You can check this easily by noting that adding a constant to the function whose expected value is being taken adds the constant once on the left but twice on the right.)

But since the problem is symmetric with respect to interchange of $X$ and $Y$, the two cases $X-Y=s$ and $X-Y=-s$ are equiprobable, so you can get the expected value as the average of these two cases; i.e. you're merely missing a factor $\frac12$ in the penultimate line.

2
On

No, what you are doing is not correct. What would be correct is the following:

$$ \begin{aligned} \mathbb{E}\left[ e^{X+Y} \mid |X-Y|=s \right]=&\mathbb{E}\left[ e^{X+Y}\mid X-Y=s \right]\Pr\left[ X-Y \geq 0 \mid |X-Y|=s \right]\\ +&\mathbb{E}\left[ e^{X+Y}\mid X-Y=-s \right]\Pr\left[ X-Y < 0 \mid |X-Y|=s \right] \end{aligned} $$

As @joriki notes, in this case, out of symmetry reason, the probability factors are just $\frac{1}{2}$.

Nevertheless, because of the same symmetry, you can simplify your problem even more, to actually get what you originally wanted, namely:

$$\mathbb{E}\left[e^{X+Y} \mid X-Y \right] = \mathbb{E}\left[e^{X+Y} \mid |X-Y |\right]$$

This follows from the above result, since $$\mathbb{E}\left[e^{X+Y} \mid X-Y \right] = \mathbb{E}\left[e^{X+Y} \mid Y-X \right]$$

This in turn follows as in your previous question, simply by relabeling $X$ and $Y$.