On the approximation of a conditional expectation