Fraud Blocker
Skip to content
Home » The Monte Carlo Method

The Monte Carlo Method

    In 1946, Stanisław Ulam was recovering from brain surgery, playing solitaire in bed, when he asked a question that sounds trivial:

    “What are my chances of winning?”

    He could have tried to calculate the answer exactly by tracking every possible arrangement of 52 cards through a labyrinth of conditional probabilities. Instead, he realized something that would reshape science: just play a thousand games and count.

    That shift from demanding an exact answer to accepting a statistical one, replaced an absolute certainty with a practical “close enough.”. We are wired to prefer certainty. The Monte Carlo method asks us to trust randomness instead.

    The psychological concept that explains why this was so radical, and why it took until the mid-twentieth century to arrive, is ambiguity aversion: the human tendency to prefer known probabilities over unknown ones, even when the unknown option offers better expected outcomes.

    The core process

    Monte Carlo follows a remarkably simple structure:

    1. Define the input space. This could be the possible arrangements of cards, the potential paths of a neutron, the range of future stock prices, or the uncertain loads acting on a bridge.
    2. Sample randomly from that space according to a specified probability distribution. Each sample represents one possible realisation of the system.
    3. Evaluate deterministically for that realisation. There is no randomness in the evaluation itself. The randomness lies only in the input(s).
    4. Average the outcomes across many such realisations.

    What emerges from this repetition is an estimate of the expected value.

    The psychology of certainty

    Daniel Ellsberg first described ambiguity aversion in a 1961 experiment. He presented subjects with two urns. Urn A contained 50 red balls and 50 black balls. Urn B contained 100 balls in an unknown mix of red and black. Participants were asked to bet on drawing a red ball from one urn. Most chose Urn A. When asked to bet on black, most still chose Urn A. This is irrational. If you believe Urn B is more likely to be mostly black, you should prefer it for the black bet. Yet people consistently prefer the known distribution, even at the cost of expected value.

    This is the instinct Monte Carlo violated. For 300 years, the gold standard in mathematics and physics was the closed-form solution: an exact symbolic expression that leaves no uncertainty.

    The quadratic formula gives you the roots. Newton’s laws give you the trajectory. Fourier analysis gives you the frequencies. These methods satisfy our craving for certainty and produce a single, definitive answer.

    But most real problems resist this treatment. The governing equations for neutron transport through fissile material, for the pricing of complex financial derivatives, for the structural reliability of a bridge under random loads are systems where the inputs are uncertain and the mathematics is intractable.

    The closed-form solution does not exist, or exists only in principle, buried under combinatorial complexity no human lifetime could resolve.

    Ulam’s insight was to stop demanding certainty and start measuring uncertainty instead.

    Rather than solving equations, simulate the physical process many times using randomness, then count the outcomes.

    The dartboard principle

    A demonstration of the Monte Carlo method is estimating π. Draw a unit square. Inscribe a quarter circle of radius 1 inside it. The area of the square is 1. The area of the quarter circle is π/4. So the ratio of areas equals π/4.

    Monte Carlo method - The dartboard principle

    Now throw darts blindly at the square. The fraction that land inside the curved region approximates π/4. Multiply by 4, and you have an estimate of π:

    π ≈ 4 × (darts inside quarter circle) / (total darts)

    No infinite series or symbolic integration. Just counting. The mathematics behind the convergence is the Law of Large Numbers: if X₁, X₂, …, Xₙ are independent samples from the same distribution, then
    (1/n) Σ Xᵢ → E[X] as n → ∞

    The error shrinks on the order of 1/√n

    Meaning 10 times more accuracy requires roughly one hundred times more samples. This is the trade-off at the heart of every Monte Carlo simulation. Precision costs computation, but computation is exactly what machines are good at.

    Why we resisted this for 300 years

    The mathematics behind Monte Carlo, the Law of Large Numbers and the Central Limit Theorem, was available long before 1946. Jacob Bernoulli proved his version of the law in 1713. Pierre-Simon Laplace refined it. The tools were there. What was missing was not mathematical machinery but psychological permission.

    Science since Newton had defined rigour as exactness. A solution meant a formula. An answer meant a number with no error bars. This is ambiguity aversion written into the culture of a discipline. The preference for known, precise, closed-form results over statistical approximations, even when the approximation is the only path that works.

    Ellsberg’s experiments showed that people will accept worse expected outcomes to avoid ambiguity. Science did the same thing for centuries. Physicists and engineers attacked only problems that yielded exact solutions, or they simplified complex problems.

    Ulam’s contribution was not a new theorem. It was a new attitude.

    The acceptance that a statistical estimate with quantifiable uncertainty is not a lesser form of knowledge.

    The method generalised

    The dartboard trick is not limited to π. Any definite integral can be recast as an expectation:

    ∫ₐᵇ f(x) dx = (b − a) · E[f(X)]
    where X is uniformly distributed on [a, b]. The Monte Carlo estimator becomes:
    ∫ₐᵇ f(x) dx ≈ (b − a)/n · Σ f(xᵢ)

    Draw random points, evaluate the function, average, multiply by the interval width. No derivatives or antiderivatives. And the remarkable property: this convergence rate does not deteriorate as the number of dimensions increases. In 2 dimensions, 10 dimensions, or 1,000 dimensions, the error still shrinks as 1/√n.

    Classical numerical integration collapses under what’s called the curse of dimensionality. A grid with 100 points per dimension requires 100ᵈ evaluations in d dimensions. At d = 10, that is 10²⁰ evaluations. Monte Carlo requires the same number of samples regardless of dimension. In high-dimensional spaces, randomness is not just convenient — it is the only viable strategy.

    Where ambiguity aversion meets decision-making

    Monte Carlo’s deepest impact may not be in physics or engineering but in how it reshaped institutional decision-making. Consider finance. Before Monte Carlo pricing models, derivatives traders relied on the Black-Scholes model, a closed-form solution that assumes constant volatility and log-normal distributions. It is elegant and precise — and wrong. Real markets have fat tails, stochastic volatility and regime changes.

    Monte Carlo pricing simulates thousands of possible future price paths, each drawn from a distribution that can be as complex as needed. The output is not a single price but a distribution of prices complete with confidence intervals, tail risks and stress scenarios. It replaces false certainty with honest uncertainty.

    This is the antidote to ambiguity aversion at the institutional level. A bank that demands a single “correct” price for a complex derivative is choosing Ellsberg’s Urn A and the illusion of known risk. A bank that runs Monte Carlo simulations is choosing Urn B and accepting that the distribution is uncertain, but measuring that uncertainty instead of pretending it doesn’t exist.

    The same logic applies in engineering reliability (simulating structural failure under random loads), climate modelling (propagating parameter uncertainty through coupled differential equations), drug development (simulating pharmacokinetic variability across patient populations), and artificial intelligence (Monte Carlo Tree Search in game-playing systems like AlphaGo, where thousands of random future games are simulated from each position to estimate the value of a move).

    The bottom line

    Monte Carlo teaches us that uncertainty, properly measured, is more useful than certainty wrongly assumed. The method does not eliminate randomness. It domesticates it by converting raw noise into signal through disciplined repetition.

    For centuries, science pursued the deterministic ideal. If we know the initial conditions precisely enough, we can predict the outcome exactly. Monte Carlo accepts a humbler posture. We do not know the inputs precisely. We cannot solve the equations exactly. But we can simulate the system a million times and report what happened. We can say that the probability of failure is 0.003, with a 95% confidence interval of [0.001, 0.006]. That is not a failure of knowledge. It is knowledge of a different, more honest kind.

    Ambiguity aversion is not a quirk of laboratory experiments. It shapes how organisations allocate budgets, how engineers set safety factors, how policymakers evaluate risk. The instinct is always to demand a definitive number, a yes-or-no answer, a guarantee.

    Monte Carlo says that there are no guarantees. But here is a distribution, and here is how confident you should be in each region of it. Act accordingly.

    By asking how often he might win a card game Stanisław Ulam helped reshape what it means to know something. He replaced the demand for certainty with the discipline of probability.

    That shift remains one of the most consequential ideas of the twentieth century.