Monte Carlo approximation for an expected value is given as:

Where,

  • 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.