Conditional expectation calculation.