I have some elementary problem understanging conditional probabliity and expectation with reference to different measure spaces, and maybe the whole theory.
Let's take this problem as an example for attention:
$X,Y$ are iid exponentially distributed random variables with parameter $\lambda$ on probability space $(\Omega, \mathrm F, \mathrm P)$. Let $Z=\min\{X,Y\}$. Compute $\mathrm E(Z|X+Y=M)$ for given M.
It is straightforward to compute PDF $g(x, y)$ of $(X,Y)$, since they are independent, and it's just $g_x \cdot g_y$ if $g_x, g_y$ are $X, Y$ densities respectively. Rewriting $ Z=f(X,Y)=\min\{X, Y\}$, given that, expectation of $Z|X+Y=M$ would be
$$\mathrm E(Z|X+Y=M)=\mathrm E(f(X, Y)|X+Y=M)=\frac{\int_{\{(x,y): x+y=M\}}{f(x,y) \cdot g(x,y) \mathrm d(x,y)}}{ \mathrm P(X+Y=M)}$$
and $$ \mathrm P(X+Y=M) = \int_{\{\omega: X(\omega)+Y(\omega)=M\}}{\mathrm dP_{(X,Y)}} $$
where $ \mathrm dP_{(X,Y)} $ is measure over the space on which $(X,Y)$ is defined.
But now, integral $\int_{\{(x,y): x+y=M\}}{f(x,y) \cdot g(x,y) \mathrm d(x,y)}$ should be equals to zero, because we are integrating over line which has zero Lebesgue measure, and the same with the denominator.
Could you please explain me or give some pdf with theory where i'm making mistake while switching to different measure space? eg. from $P$ to (implicitly) lebesgue? Or link some of these ideas above to Analysis Course which i think i understand more intuitively (at least when it comes to switching from integrals on manifolds to basic integrals)