Solution

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

The finite-partition form of the law of total expectation states
Because the events form a partition of a sample space of the sample space, pointwise. Multiply by and use linearity of expectation to obtain
An event of zero probability contributes zero to the middle expression and is omitted from the final expression, so no undefined conditional expectation is multiplied by zero.

New to topics? Read the docs here!