I would like to show or see a proof that the conditional expected value $ E[X|Y] $ is a function of $Y$ for arbitrary random variables $X,Y$ (especially not discrete or continuous).
I think for discrete random variables this is easy to see however I cannot seem to wrap my head around the general case. I have read that the Doob-Dynkin lemma should do the trick however I do not see how.
Any help would be very much appreciated.