MC Integration

Classical Monte Carlo Integration

Robert and Casella (2013) introduces the classical Monte Carlo integration:

Toy Example

为了计算积分 我们通常采用MC模拟:

  1. 计算区域的volume:

  2. 近似:

根据大数律有

并且由中心极限定理有

其中

另外,注意到

I=Dg(x)dx=DVg(x)1Vdx=Ef[Vg(x)],I = \int_Dg(\mathbf x)d\mathbf x = \int_D Vg(\mathbf x)\frac 1V d\mathbf x = {\mathbb E}_f[Vg(\mathbf x)],

则可以直接利用上一节的结论。

Polar Simulation

Note: Unless otherwise stated, the algorithms and the corresponding screenshots are adopted from Robert and Casella (2013).

The following Julia program can be used to do polar simulation.

Last updated