Let $X: \Omega\to{\mathbb R}$ be a random variable. Is it always possible to modify it (i.e. change the value of $X$ on a subset of $\Omega$ of zero measure) so that the range of $X$ is a Borel set?
This is related to the following question: we know that $E(Y|X)$ can be written as a function of $X$, i.e. $E(Y|X)=\varphi(X)$ for some $\varphi: {\mathbb R}\to{\mathbb R}$. Is $\varphi$ (Borel) measurable? We can prove this if we know $X$ has Borel range.
I guess the answers might be negative, will there be (easy) counterexamples? Can we add some assumptions to make the conclusion true?