Math, C, Calculus, Numerical Analysis, Monte Carlo.
examine the expected value of an integral using Monte Carlo. Traditionally, the expected value of a function g(x) can be calculated by first multiplying by its probability density function, f(x), and taking the integral over the desired region: Alternatively, we can use a Monte Carlo approximation