Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2016/discrete-mathematics-continuous-mathematics-and-probability-resit/7/a/iii/solution

The conditional expectation given an event of positive probability is
Apply the law of total probability to each event :
This is the law of total expectation. Interchanging the sums is justified by nonnegative terms, for example by Tonelli theorem, so it remains valid when the expectation is infinite.

New to topics? Read the docs here!