$$f(x,y)=4 e^{-2(x+y)}$$ with $x,y > 0$.
What would be $$E(X\mid X+Y= 4), ?$$ I tried by putting Y=$4$-X and then using usual formula of conditional expectation but that doesn't seem to be correct. Do we have to use transformation? I know here $X$ and $Y$ are independent so $X\mid X+Y$ would follow $Beta(1,1)$ or uniform $(0,1)$, so do we need to use this?
In general how do we proceed in these type of questions. It's simple in discrete cases but what about continuous ones?