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/8/a/solution

For the discrete uniform distribution, each value has probability . Using the given finite sums,
Subtracting the square of the expected value gives the variance:
Hence

New to topics? Read the docs here!