I have not really seen any probability books calculate conditional expectation, except for $\sigma$-algebras generated by a discrete random variable. They simply state the existence of conditional expectation, along with its properties, and leave it at that. I find this a little upsetting and am trying to find a method to compute it. This is what I think it "ought to be".
Let $(\Omega, \mathscr{F},\mu)$ be a probability space with $\mathscr{G}\subseteq \mathscr{F}$ a $\sigma$-algebra. Let $\xi:\Omega\to \mathbb{R}$ be a random variable. Our goal is to compute $E[\xi|\mathscr{G}]$.
Fix $\omega\in \Omega$, we need to compute $E[\xi|\mathscr{G}](\omega)$. Let $A\in \mathscr{G}$ be such $\omega\in A$. Intuition says that $E[\xi|A] = \frac1{\mu(A)}\int_A \xi$ is an approximation to the value of $E[\xi|\mathscr{G}](\omega)$, provided of course that $\mu(A) \not = 0$ which we now assume.
Intuition also says that, if we can find a smaller event $B\subseteq A$, with $\omega\in B$, and $\mu(B) \not = 0$, then $E[\xi|B]$ is a better approximation of $E[\xi|\mathscr{G}](\omega)$ than $E[\xi|A]$.
Hence the optimal such approximation of $E[\xi|\mathscr{G}](\omega)$ should be $E[\xi|M]$ where $M\in \mathscr{G}$, with $\omega\in M$, and with the minimum property. The minimum property here is simply if $A\in \mathscr{G}$ with $\omega\in A$, then $M\subseteq A$.
But there are two issues:
(i) Does such an $M$ even exist? If $\mathscr{G}$ is at most countable this is trivially true. Thus, let us assume that $\mathscr{G}$ is indeed countable.
(ii) What if $\mu(M) = 0$, then $E[\xi|M]$ is undefined! In this case we will assume that we can produce a sequence of events $M_n\in \mathscr{G}$, such that $M_n \downarrow M$ and $\mu(M_n) > 0$.
Intuition says that, $$E[\xi|\mathscr{G}](\omega) = \lim_{n\to \infty} \frac{1}{\mu(M_n)}\int_{M_n}\xi =\lim_{n\to \infty} \frac{1}{\mu(M_n)}\int_{\Omega} \xi.\mathbf{1}_{M_n} $$
As a reality-check, the Monotone Convergence Theorem implies, $$ \int_{\Omega} \xi.\mathbf{1}_{M_n} \to \int_{\Omega} \xi.\mathbf{1}_{M} = \int_{\Omega} 0 = 0 $$ Continuity in measure implies, $$\mu(M_n) \to \mu(M) = 0$$ Thus, our limit is of the indeterminate form "$\frac{0}{0}$", which is what we want.
1) Will this computation correctly compute conditional expectation?
2) What are some assumptions on the probability space for this to hold?