Suppose $\Omega=[0,1]$, and $\mathcal P=$lebesgue Measure , and $\mathcal F=\mathcal B([0,1])$ and also Suppose X is random variable and $\mathcal G$ is $\sigma-$algebra Produced With intervals $ (\frac{j-1}{n},\frac{j}{n}]$ $\forall j=1,2,...,n$ .
show that $E(X|\mathcal G)(\omega)=n\int^{\frac{j}{n}}_{\frac{j-1}{n}}X(s)ds, \omega\in(\frac{j-1}{n},\frac{j}{n}].$
thanks in advance
$\mathcal B$ means Borel $\sigma-$algebra.
Minor technicality: We need $\{0\} $ in the collection of sets from which ${\cal G}$ is created, otherwise ${\cal G}$ would not be a sub-$\sigma$-field of ${ \cal F}$.
Let $I_0 = \{0\}$, and let $I_j$ be the intervals above. Then it is straightforward to show that ${\cal G} = \sigma \{I_j\} = \{ \cup_{j \in J} I_j | J \text{ is finite }\}$ (the empty union being $\emptyset$).
Let $Y$ be the formula to the right of $E( X | {\cal G})$ above, and note that $Y$ is simple. It is straightforward to verify that $Y$ is ${\cal G}$ measurable and $\int_{I_j} Y = \int_{I_j} X$ for all $I_j$. (Since $P\{0\} = 0$, we have $\int_{I_0} Y = \int_{I_0} X$.)
Let ${\cal C} = \{ C \in {\cal G} | \int_{C} Y = \int_{C} X \}$. Then we have $I_j \in {\cal C}$ for all $I_j$, and since the $I_j$ are disjoint, it follows immediately that $\cup_{j \in J} I_j \in {\cal G}$ for any finite $J$. Hence ${\cal C} = {\cal G}$.
It follows that $Y$ is a version of $E( X | {\cal G})$.
(Since $\{0\}$ is the only null set other than $\emptyset$, we can see that all versions of $E( X | {\cal G})$ have the form $Y+c\cdot 1_{\{0\}}$, where $c$ is some constant.)