Conditional Expectation as the $L^2$ Projection