Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2004/iii/paper-40/3/i/solution

Treat the supplied uniform variates as independent draws, as required for Monte Carlo simulation. Use of them and return
Each indicator has a Bernoulli distribution of parameter , and the indicators are independent. For any subset of successes the probability is ; there are such subsets. Thus , the binomial distribution. The construction includes the cases and .

New to topics? Read the docs here!