Skip to content
LaTeX (KaTeX) templates

Math — Monte Carlo Methods

Estimating integrals by random sampling.

Template previewLaTeX (KaTeX)
μ^=1N∑i=1Nf(xi)\hat{\mu} = \frac{1}{N}\sum_{i=1}^N f(x_i)error∝1N\text{error} \propto \frac{1}{\sqrt{N}}π≈4 #inside circleN\pi \approx 4\,\frac{\#\text{inside circle}}{N}more samples→better estimate\text{more samples} \to \text{better estimate}

What this template contains

Equations
4
Source
4 lines

Make it your own.

\hat{\mu} = \frac{1}{N}\sum_{i=1}^N f(x_i)

\text{error} \propto \frac{1}{\sqrt{N}}

\pi \approx 4\,\frac{\#\text{inside circle}}{N}

\text{more samples} \to \text{better estimate}