Solution

ID: past-exam-of-the-simulation-and-statistical-programming-course-of-the-university-of-oxford/2023/1/a/i/solution

Generate independent and identically distributed random variables with probability density function , evaluate for each draw, and return the Monte Carlo estimator
Linearity of expectation makes this an unbiased estimator: . Independence and the specified variance give . Its Monte Carlo standard error is therefore , and the strong law of large numbers gives convergence to almost surely.

New to topics? Read the docs here!