Conditional Expectation as the $L^2$ Risk Minimizer