Monte Carlo approximation for an expected value is given as:

\mu\approx\tilde{\mu}_{K}:=\frac{1}{k}\sum_{i=1}^{K}y^{(i)}=\frac{1}{k}\sum_{i=1}^{K}\mathcal{M}(x^{(i)})}
  • Total number of samples generated
  • Random sample input which are independent and identically distributed (i.i.d.) realizations of the input random variable .
  • Model, , when evaluated at the th random input sample,

Note:

Multi-dimensional Case

\mu=\mathbb{E}[\gamma] \approx \tilde{\mu}_K=\frac{1}{K} \sum_{i=1}^K y^{(i)}=\frac{1}{K} \sum_{i=1}^K \mathcal{M}\left(\mathbf{x}^{(i)}\right)}

The sample now contains vectors.

  1. If are independent: Generate independently of each other
  2. If are dependent: Draw directly from the joint PDF

Calculation Steps

  1. Generate a sample of model inputs .
  2. Compute the corresponding model output sample .
  3. Estimate the expected value using the mean of the output sample.

Mean-Square Error of the Monte-Carlo Method

There holds:

where,

  • True but unknown Expected value
  • is called the bias.
  1. The Monte Carlo method is unbiased, i.e.,
  1. If , the mean-square error (MSE) satisfies Where,
    • is the Variance of the model’s output random variable
    • The MSE is independent of the number of uncertain input parameters.
    • There are different ways to reduce the error:
    • Increase sample size (can be very expensive if the model is complex)
    • Decrease variance (Quasi-Monte Carlo, control variate method, multilevel Monte Carlo)