math concept
12 topics use this
Math concept
Monte Carlo Methods
Core equation
$$\hat\mu = \frac{1}{N}\sum_{i=1}^N f(X_i), \quad X_i \sim p$$
Monte Carlo methods use random sampling to compute numerical results — integrals, expectations, rare event probabilities, and optimisation. They are indispensable in finance, physics, chemistry, and ML where exact computation is intractable.
Basic Monte Carlo integration
To estimate $\mu = \int f(x)p(x)\,dx$, draw $X_1,\ldots,X_N \sim p$ and average:
\[\hat\mu = \frac{1}{N}\sum_{i=1}^N f(X_i) \xrightarrow{a.s.} \mu\]Error falls as $O(1/\sqrt{N})$ regardless of dimension — Monte Carlo’s key advantage over quadrature in high dimensions.
Markov Chain Monte Carlo (MCMC)
When $p$ is known only up to a normalising constant (Bayesian posterior), use MCMC:
| Metropolis–Hastings: propose $x’ \sim q(x’ | x)$, accept with probability $\min!\left(1, \frac{p(x’)q(x | x’)}{p(x)q(x’ | x)}\right)$. |
The chain converges to $p$ under mild conditions.
Variance reduction
- Importance sampling: draw from $q$, reweight: $\hat\mu = \frac{1}{N}\sum \frac{f(X_i)p(X_i)}{q(X_i)}$
- Control variates: subtract a correlated known-mean quantity
- Antithetic variates: use $(U_i, 1-U_i)$ pairs for uniform samples
Fields that use this concept
Life sciences
Bioinformatics
Life sciences
Biostatistics
Earth sciences
Climate modeling
Physical sciences
Computational chemistry
Monte Carlo Methods in Chemistry
Stochastic sampling techniques for computing thermodynamic averages and solving high-dimensional quantum problems.
Path Integral Molecular Dynamics
Feynman's imaginary-time path integral formulation extended to finite-temperature MD, capturing nuclear quantum effects such as tunnelling and zero-point energy.
Earth sciences
Meteorology
Engineering & CS
Operations research
Discrete-Event Simulation
Modeling stochastic systems by advancing a simulation clock through events and analyzing steady-state and transient behavior.
Stochastic Optimization
Optimization under uncertainty using probability distributions over parameters, covering two-stage programs and stochastic gradient methods.
Finance & economics
Quant finance
Monte Carlo Methods in Finance
Simulating asset paths to price exotic derivatives and compute risk measures. The workhorse of quantitative trading desks.
Value at Risk
The loss level not exceeded with a given probability over a given horizon. The industry-standard risk measure for regulatory capital.
Life sciences
Quant genetics
Engineering & CS
Robotics