Monte Carlo simulation
Monte Carlo simulation estimates the outcome of an uncertain process by drawing random inputs from assumed probability distributions, running a model on each draw, and reading the spread of results. It is used when no closed formula gives the answer.
What it is
Monte Carlo simulation is a numerical method that estimates a result by repeated random sampling. A model takes uncertain inputs, such as asset returns or claim counts. The analyst assigns each input a probability distribution, draws a random value for each, runs the model, and records the output. Repeating this many times produces a distribution of outcomes.
The main parts are:
- Inputs and distributions: the uncertain variables and the assumed shape of each, with any dependence between them.
- Random draws: pseudo-random numbers turned into values from those distributions.
- Model: the calculation that maps one set of draws to one outcome, such as a portfolio loss or a payoff.
- Trials: the number of repetitions. Each trial is one simulated path or scenario.
- Output distribution: the set of outcomes, summarised by its mean, percentiles or tail.
The estimate of an expected value is the average over the trials. The error of that estimate shrinks as the number of trials grows.
estimate = (1 / N) x sum of f(x_i), for i = 1 to N
Here N is the number of trials, x_i is the i-th set of random draws, and f is the model that returns one outcome.
Why it matters
Many financial quantities have no closed formula: the payoff depends on a path, the inputs are correlated, or the distribution is far from normal. Simulation handles these cases by running the model rather than solving it. The IMF notes in a working paper on value at risk that the method is computationally heavier than the delta-normal approach, which is the cost of that flexibility.
A simulation with poor inputs produces precise-looking but wrong answers.
Worked example
Illustrative numbers. A portfolio loses an amount that depends on one random return. The return is assumed to follow a bell-shaped distribution with a mean of 0% and a standard deviation of 10% over the period. The portfolio is worth 1,000 euro.
- Draw 10,000 random returns from that distribution.
- For each draw, compute the gain or loss on 1,000 euro. A draw of minus 12% gives a loss of 120 euro.
- Sort the 10,000 losses from smallest to largest.
- Read the 95th percentile: the loss that 9,500 of the trials do not exceed.
If that percentile is about 165 euro, the simulated 95% value at risk is about 165 euro. A second run with fresh draws gives a slightly different figure, because the draws are random.
How to read it
The output is an estimate with sampling error, not an exact value. More trials narrow the error slowly: reducing it to a tenth takes about a hundred times as many trials. A run is repeated with a different seed to check that the answer is stable. Tail percentiles need more trials than averages, because few trials fall in the tail.
Assumptions
- The input distributions describe the real uncertainty. If they do not, the output inherits the error.
- The dependence between inputs is modelled. Ignoring correlation understates joint extremes.
- The model reproduces the process. A wrong payoff or cash flow rule is repeated in every trial.
- Enough trials are run for the result to settle.
Who uses it
- Quantitative analysts price products with path-dependent payoffs by averaging simulated payoffs.
- Market and investment risk analysts simulate portfolio losses to read value at risk and tail measures.
- Actuaries project insurance and pension cash flows under many simulated economic scenarios. EIOPA publishes the documentation of a stochastic model for the pan-European personal pension product.
- Model validators test the distributions, the number of trials and the stability of results.
Common confusions
- Random does not mean arbitrary. The draws follow stated distributions, and the answer depends on them.
- More trials reduce sampling error, not model error. A wrong model stays wrong at any trial count.
- Monte Carlo simulation and historical simulation differ. The first draws from assumed distributions; the second replays observed past changes.
- A simulation is not a forecast. It shows the range of outcomes implied by its assumptions.