Conditional expectation with respect to a continuous random variable

Suppose $X$ is a random point in the Euclidean space $R^3$ with some non-discrete distribution, for example, $X$ is uniform in a bounded area. $U$ is another random point which is uniform on the sphere $B(0,1)$ and independent of $X$, set $Y=X+U$. Set $Z_1=1/|X|$ and $Z_2=1/|Y|$, where $|X|$ is the distance of $X$ to the origin, $|Y|$ similarly. We want to compute the conditional expectation $E[Z_2|Z_1]$.

The computation goes as follows: If we know $Z_1=a$, then $Y$ is a uniform random point on the sphere S, where S has radius 1, and the distance between the center of S and the origin is $1/a$. Use some calculus, one can compute the value of $Z_2$ given the information $Z_1=a$:

$$E[Z_2|\ \{|Z_1|=a\}]=a\quad \text{if} \ a<1$$

and

$$E[Z_2|\ \{|Z_1|=a\}]=1\quad\text{if}\ a\geq 1$$

So it concludes that $E[Z_n|Z_{n-1}]\leq Z_{n-1}$. (supermartingale).

I can not understand why one can compute the conditional expectation with respect to a continuous random variable as above: If we want to compute $E[Z|Y]$ when $Y$ is a continuous r.v. and for every possible value $Y=y$, the conditional expectation of $Z$ given the event $E[Z|\{Y=y\}]$ happens to exist and can be computed (denote as $f(y)$), then one can assert that$$E[Z|Y]=f(Y).$$

I know this way coincides with the intuition of conditional expectation; but I can't see why it agrees with the formal definition of conditional expectation: for every event $A$ in $\sigma(Y)$, $$\int_A f(Y) \, dP=\int_A Z \, dP.$$

Can anyone explain why? Thanks.

-
I dont see how you can have: $$E[Z_2|\ \{|Z_1|=a\}]=a\quad \text{if} \ a<1$$ and $$E[Z_2|\ \{|Z_1|=a\}]=1\quad\text{if}\ a\geq 1$$ Let's say $X$ is uniform in $B(O,r)$, with $r<1$, you will then have $Z_1>1$, but I dont see why it implies that $E(Z_2|Z_1) = 1$. – S4M Aug 13 '12 at 20:35
You might want to explain what you call $E[Z|\{Y=y\}]$ when $\{Y=y\}$ has probability zero and how you compute this number without resorting to the random variable $E[Z|Y]$. This precise point is probably at the heart of the question. – Did Aug 13 '12 at 21:02
@did: this is an intuitive way to derive the conditional expectation: given the position of $Z_1$, one computes the expectaion value of $Z_2$ in this situation (a function of $Z_1$) and take this as the real conditional expectation. This is just why I can not understand. – zemora Aug 13 '12 at 21:13
Please tell me if my answer below helps. – Did Aug 13 '12 at 21:41
@S4M These values are correct (and follow from the fact that $x\mapsto1/|x|$ is harmonic on $\mathbb R^3\setminus\{0\}$). – Did Aug 14 '12 at 8:20

It seems the procedure to be explained is based on the independence structure of the random variables one considers. More specifically, $U$ is independent of $X$ and its distribution is rotationally invariant hence $(|X|,|Y|)$ is distributed like $(|X|,||X|e+U|)$, where $e$ is a given unit vector. Here is a classical result:
Let $\zeta$ and $\eta$ denote some independent random variables and $a$ a measurable function such that $a(\zeta,\eta)$ is integrable. Then $\mathrm E(a(\zeta,\eta)\mid\zeta)=b(\zeta)$, where the function $b$ is defined by $b(z)=\mathrm E(a(z,\eta))$ for every $z$.
Using this with $\zeta=1/|X|$, $\eta=U$, and the function $a$ defined on $\mathbb R_+^*\times\mathbb R^3$ by $a(z,y)=1/|z^{-1}e+y|=z/|e+zy|$ for every $(z,y)$, one gets $\mathrm E(Z_2\mid Z_1)=b(Z_1)$ with $b(z)=\mathrm E(a(z,U))$... a formula which seems to yield a rigorous foundation to the procedure you explained.
thank you for your commets and answer. when $Y=y$ is a zero probability event, $E[X|Y=y]$ cannot be expressed by "formula",but it does make sense in some cases,just as in the question. I still don't know how to understand the expression "$E[X|Y=y]$" in this case. – zemora Aug 13 '12 at 21:49
Well... yes, the fact that the answer does coincide is precisely what my post shows. // It is not clear to me yet what meaning $E(X\mid Y=y)$ has to you in some cases. For example, if you think that $E(X\mid Y=y)=y$ and I pretend that $E(X\mid Y=y)=5y$, how would you proceed to prove you are right and I am wrong? – Did Aug 13 '12 at 21:55
I mean if we derive $E[X|Y]$ in the intuitive way: for every $\omega$ and $y=Y(\omega)$, compute the expectaition value $E[X|Y=y]=f(y)$, and take $f(Y)$ as a version of $E[X|Y]$. Does this method work? Why does it coincides with the abstract one? – zemora Aug 13 '12 at 22:03
The problem is: how do you compute $f$ the intuitive way? – Did Aug 13 '12 at 22:08