What's the sample space for a conditional expectation?

Define a probability space $(\Omega,\cal F,\Bbb P)$ and a $\cal F$ measurable random variable $X$, the conditional expectation given a sub $\sigma$-algebra $\cal F_0 \subseteq \cal F$ is a random variable $X_0=\Bbb E(X|\cal F_0)$ satisfying the following two conditions:

1. $X_0$ is $\cal F_0$ measurable.
2. For any $E\in \cal F_0$, it holds that $\int_E {X} d\Bbb P =\int_E {X_0} d\Bbb P$.

My confusion is that, since $X_0$ is a random variable, it must be a function defined on a sample space, then what is the sample space for $X_0$? Further the sample space must be equipped with a $\sigma$-algebra to form a measurable space, so what is the $\sigma$-algebra? Since $X_0$ is $\cal F_0$ measurable, so I suppose the $\sigma$-algebra associated with the sample space is $\cal F_0$?

Thank you!

• Yes, assuming that $X_0\colon F_0 \to \mathbf{R}$ is sensible. Stronger assumptions can make the definition vacuous. – nomen Aug 28 '15 at 18:31
• Conditional expectation $X_0 \colon \Omega \to \mathbb{R}$ is random variable defined on the same probability space $(\Omega,\cal F,\Bbb P)$ as random variable $X$. – Zoran Loncarevic Aug 28 '15 at 19:32
• @ZoranLoncarevic Thank you for the reply! But I am still confused. If the sample space is still $\Omega$, how does $X_0$ map elements of $\Omega$ to $\Bbb{R}$? For example, suppose $\Omega$ is the outcome of a dice, i.e. $\Omega=\{1,2,3,4,5,6\}$, and $X(\omega) = \omega$ for any $\omega \in \Omega$. If $\cal F_0$ $=\{\emptyset,\Omega, A,A^C \}$ where $A=\{1,3,5\}$, then how $X_0$ should look like? – Tony Aug 28 '15 at 20:11
• @ZoranLoncarevic $X(\omega)=\omega$ for every $\omega$ in $\Omega$. – Tony Aug 28 '15 at 20:22
• You can check for yourself that this function satisfies the conditions 1 and 2 from your own definition of conditional expectation. – Zoran Loncarevic Aug 28 '15 at 21:52