Solution

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

For the binomial distribution, the binomial theorem gives
Differentiation of the probability generating function recovers the first expected value and second factorial moment:
Since , the variance is
Thus
The formulas also hold for and the degenerate choices , with derivatives read directly from the resulting polynomial.

New to topics? Read the docs here!