Quick Answer: A Monte Carlo simulation uses a large number of random trials to estimate the probability or expected value of a complex outcome. By running thousands of random experiments and observing the distribution of results, you can approximate answers to problems that would be analytically intractable.
The Core Idea
Monte Carlo methods are named after the Monte Carlo Casino in Monaco — a reference to randomness. The fundamental idea: if you cannot calculate an answer analytically, simulate the problem thousands of times with random inputs and observe what fraction of results fall within the desired category.
Classic Example: Estimating Pi Using Random Numbers
Imagine a unit square (sides of length 1) with an inscribed quarter-circle (radius 1). The area of the quarter-circle is π/4. If you randomly drop points into the square, the fraction that falls inside the quarter-circle approximates π/4. Monte Carlo: generate millions of random (x,y) coordinate pairs where 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1. Count points where x² + y² ≤ 1 (inside circle). π ≈ 4 × (points inside ÷ total points). With 1 million points, you get π accurate to about 3 decimal places.
Real-World Applications of Monte Carlo
- Finance: Simulating thousands of market scenarios to estimate portfolio risk
- Engineering: Testing structural integrity under thousands of random load scenarios
- Physics: Simulating particle interactions in nuclear and particle physics
- Weather forecasting: Running thousands of slightly different model runs to estimate forecast uncertainty
- Medical research: Estimating drug efficacy distributions across variable patient populations
- Game design: Calculating expected win rates across millions of simulated games
Why More Trials = Better Accuracy
Monte Carlo accuracy improves with more trials following the Law of Large Numbers. The standard error of a Monte Carlo estimate scales as 1/√n — doubling accuracy requires quadrupling the number of trials. Modern computers can run millions of simulations in seconds, making Monte Carlo viable for complex real-world problems.