Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2014/discrete-mathematics-continuous-mathematics-and-probability/8/b/ii/solution

The law of total expectation gives . The law of total variance separates the two sources of randomness:
Substitution gives
The binomial thinning of a geometric random variable identity supplies a further check: itself has a zero-based geometric distribution with success probability .

New to topics? Read the docs here!