Monte Carlo Simulation
- Category
- Risk Management
- Level
- Expert
Simple definition
Running a strategy or a portfolio thousands of times on randomly generated outcomes, to see the range of results instead of the single history that happened to occur.
Professional definition
A numerical method that estimates the distribution of a quantity by drawing many random paths from an assumed process or by resampling observed returns, computing the quantity on each path, and reading the distribution of results. Common uses are drawdown distributions, terminal-wealth percentiles and option values with no closed form.
Technical definition
The estimator is the sample mean of the quantity across paths, and its standard error falls with the square root of the path count, so quadrupling the paths halves the error. Resampling historical returns independently preserves the marginal distribution but destroys autocorrelation and volatility clustering; block bootstrapping retains some dependence at the cost of a block-length parameter. Either way the output distribution inherits whatever the input assumption was.
Academic definition
A class of numerical integration techniques that approximate expectations and distributional quantities by averaging over pseudo-random realisations of a specified stochastic process, with convergence governed by the central limit theorem.
Mechanism
One realised history is a single draw from a distribution nobody can see. Simulation manufactures more draws so that quantities that depend on sequence, such as the worst drawdown or the chance of touching a ruin level, can be estimated at all. The method itself contributes no knowledge: it propagates the assumed process, so a generator calibrated on a benign sample returns benign tails.
In practice
- Who uses it
- Systematic developers estimating drawdown and ruin distributions, portfolio analysts projecting terminal-wealth ranges, and quants pricing instruments with path dependence.
- Why it matters
- It gives a distribution where a backtest gives one path, which is the only way to separate a strategy's expected behaviour from the particular sequence it happened to meet.
- Limitations
- The output is only as good as the input process. Resampling assumes the future distribution resembles the past, and i.i.d. resampling additionally assumes trades are independent, which they are not.
Common mistakes
- Running a simulation on parameters taken from an overfitted backtest.
- Resampling independently when returns show volatility clustering.
- Reporting a percentile without the path count or the standard error.
Examples
Resampling 200 recorded trade results into 10,000 sequences gives a spread of maximum drawdowns. If the per-path standard deviation is 12 percent, the standard error of the mean is 0.12 percent, so the central estimate is tight even though the spread is wide.
- 200 recorded trade results, sampled with replacement
- N = 10,000 simulated sequences
- standard deviation of maximum drawdown across paths = 12 percent
- standard error = 0.12 / sqrt(10,000)
- sqrt(10,000) = 100
- standard error = 0.12 / 100 = 0.0012
The error on the mean is small and the distribution is still wide. The spread is the finding; the precision of its centre is not a claim that the distribution is correct.
Two simulations of the same strategy differ only in whether trade results are drawn independently or in blocks of ten. The block version produces materially deeper drawdowns, because real losing runs cluster and independent draws break them up.
Mathematical foundation
Variables
| \hat{\theta} | Simulated estimate of the quantity of interest | same as the quantity |
| N | Number of simulated paths | count |
| X_i | The i-th simulated path | path |
| g(X_i) | The statistic computed on path i, such as its maximum drawdown or terminal equity | same as the quantity |
| s | Sample standard deviation of the statistic across paths | same as the quantity |
Procedure
Specify the data-generating process: either a parametric model with stated parameters, or resampling from an observed sample with replacement, choosing independent draws or blocks. Generate N paths of the required length. Compute the statistic on each path. Report its full distribution, not only the mean, together with N and the standard error. Then repeat with a different assumption to see how much of the answer came from the assumption.
Worked example
- N = 10,000 paths
- statistic = maximum drawdown per path
- sample standard deviation across paths, s = 0.12
- sqrt(N) = sqrt(10,000) = 100
- SE = 0.12 / 100 = 0.0012
- to halve the standard error, N must be quadrupled to 40,000
Interpretation
The simulation tells you what the assumed process implies, with a stated numerical precision. It does not tell you whether the process is right. Two things are therefore reportable: the distribution of outcomes, and how much that distribution moves when the assumption changes.
Assumptions
- The data-generating process is specified explicitly. Without it the output distribution has no interpretation.
- Independent resampling assumes trades are independent and identically distributed. Financial returns exhibit volatility clustering and serial dependence, which this destroys.
- Resampling from history assumes the future distribution resembles the sampled past, including its tails. An episode absent from the sample cannot appear in any path.
- Convergence of the standard error as one over the square root of the path count requires finite variance. For very heavy-tailed inputs this convergence is slow or fails.
- Pseudo-random number quality and a recorded seed are needed for the result to be reproducible.
- It cannot create information. Parameters estimated from a short or overfitted sample produce a confident-looking distribution around the wrong centre.
- The reported precision is the precision of the simulation, not of the forecast. A tiny standard error says nothing about model error.
- Path-dependent statistics such as maximum drawdown are highly sensitive to the dependence structure, which is exactly what simple resampling removes.
Related terminology
- related
- Stress Testing Risk of Ruin Drawdown Value at Risk Conditional Value at Risk Backtesting Overfitting Probability Distribution Stochastic Process Law of Large Numbers Walk-Forward Testing Fat Tails
Backtesting
A backtest replays the one sequence that happened. A Monte Carlo simulation generates many sequences from an assumption about the process. The first is a sample of size one for anything that depends on order; the second multiplies the sample without adding data.
Sources
McGraw-Hill · 2006 · treatment of simulation-based risk estimation and its sampling error
Print source
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
