Know these first
- L2.5.06: Value at risk: the idea
Math Atoms
By the end you will be able to
- 1Simulate correlated factor moves with a Cholesky factor of the covariance matrix, with lognormal prices.
- 2Revalue a book in full on each path and read VaR off the simulated P&Ls.
- 3Measure Monte Carlo accuracy with the standard error of a quantile, and choose the number of paths.
- 4Explain how the model, not the number of paths, decides how close Monte Carlo gets to reality.
Why it matters
Historical simulation can only replay the days that happened: 750 of them here, and only 8 in the 1% tail. Monte Carlo draws as many days as you can afford from a model of the risk factors. On RiskAtoms Bank's desk, 10,000 simulated days take well under a second. The catch is twofold: the answer is only as good as the model, and it moves every time you change the seed.
Core explanation
Thousands of days that never happened
Illustrative dataRiskAtoms Bank plc's Markets desk
One made-up trading book on one made-up valuation day, in pounds: eight positions in four books, eight risk factors and 750 days of simulated factor moves. The levels (UK index 8,000, GBP/USD 1.30, Brent $80 and so on) are round illustrative numbers, not market data. The same book runs through every lesson in Module 3.2, so the figures agree from lesson to lesson.
Monte Carlo VaR keeps the full revaluation of L3.2.10: Historical simulation in practice but replaces the history with a model. Click through the recipe:
ExploreMonte Carlo VaR in five steps
Click a box to see what happens there.
1. Model
Choose a distribution for the day's factor moves. Here: the eight moves are jointly normal with the covariance matrix of L3.2.09: Parametric VaR for a portfolio. Log-return factors give lognormal prices.
Correlated draws: the Cholesky factor
Independent normals are easy to generate; correlated ones are not. The trick is a matrix square root. A Cholesky factor of the covariance matrix satisfies , and then has covariance . For the UK index, the US index and UK vol:
Read row by row. The UK index move is just 1% × . The US index gets 0.0066 × (its link to the UK) plus its own 0.0088 × . UK vol loads −0.60 on , so it rises when the UK index falls. The full 8 × 8 factor used for the desk:
| UK index | US index | 2y rate | 10y rate | GBP/USD | Brent | UK vol | IG spread | |
|---|---|---|---|---|---|---|---|---|
| UK index | 0.0100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| US index | 0.0066 | 0.0088 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2y rate | 0.60 | 0.30 | 5.96 | 0 | 0 | 0 | 0 | 0 |
| 10y rate | 1.05 | 0.53 | 5.15 | 4.59 | 0 | 0 | 0 | 0 |
| GBP/USD | −0.0010 | 0.0014 | 0.0010 | −0.0003 | 0.0046 | 0 | 0 | 0 |
| Brent | 0.0060 | 0.0030 | 0.0013 | 0.0014 | 0.0024 | 0.0186 | 0 | 0 |
| UK vol | −0.60 | −0.10 | −0.0151 | −0.0174 | −0.19 | 0.0212 | 0.48 | 0 |
| IG spread | −1.25 | −0.63 | −0.0943 | −0.11 | −0.48 | −0.23 | 0.41 | 1.96 |
Lognormal prices
The equity, FX and oil moves are log returns, so a simulated price is : a lognormal price (M-C07: The lognormal distribution). It cannot go below zero, and it is skewed: at the 1st and 99th percentiles the UK index ends the day at 7,816 and 8,188, a fall of 184 points against a rise of 188, and its mean is 8,000.40, a touch above 8,000. Rates, the spread and implied vol are moved by normal amounts in bp or vol points.
The desk's Monte Carlo VaR
| Method | 99% one-day VaR | What it assumes |
|---|---|---|
| Delta-normal (L3.2.09) | £1.944m | Normal moves, linear positions |
| Monte Carlo, deltas on the same paths | £1.944m | Normal moves, linear positions, sampled |
| Monte Carlo, full revaluation | £1.848m | Normal moves, positions repriced |
| Monte Carlo, stressed covariance | £4.160m | Normal moves at stressed vols and correlations |
| Historical simulation, 750 days (L3.2.10) | £2.274m | The past 750 days, repriced |
Two comparisons tell the story. Valued with deltas, the simulated paths give £1.944m, almost exactly delta-normal's £1.944m: on linear positions Monte Carlo just reproduces the formula, with noise. Revalued in full they give £1.848m: the puts' gamma cushions the big falls. And Monte Carlo sits well below historical simulation's £2.274m because the model has calm volatilities and normal tails. Feed it the stressed spell's covariance and it gives £4.160m. More paths will never fix the model.
How accurate is it?
Another seed gives another answer. The standard error of a simulated 99% quantile from paths is about , with the density of the P&L at the quantile. With the run's own standard deviation (£842,436) and a normal density, the 10,000-path VaR has a standard error of £31.5k: a 95% interval from £1.787m to £1.910m. A seed study confirms the formula:
| Paths per run | Runs | Mean VaR | Spread across runs (sd) | Formula | Lowest – highest |
|---|---|---|---|---|---|
| 1,000 | 160 | £1.885m | £98.8k | £99.5k | £1.59m – £2.14m |
| 4,000 | 40 | £1.877m | £50.9k | £49.7k | £1.72m – £1.96m |
| 16,000 | 10 | £1.877m | £25.3k | £24.9k | £1.83m – £1.92m |
Four times the paths halve the error. The module's run (£1.848m) sits about one standard error below the seed study's average, which is exactly the kind of difference a seed makes. To get the standard error down to 1% of the VaR would take about 28,953 paths.
Run time
The module's run is 10,000 paths × 8 positions = 80,000 revaluations; the Try it below times it in your browser. A real trading book has thousands of positions, some priced by models that are slow themselves, so banks run fewer paths, approximate the slow pricers (delta-gamma or pre-computed grids), share paths across desks and use variance reduction. M6.2: Market risk modelling covers those techniques.
Monte Carlo or historical?
The formal version
Covariance of the draws. With , so , and :
Finding L. Write out for a 3 × 3 matrix and solve entry by entry, top-left first:
For the example: , , , , and . Each square root must have a positive argument, which is exactly the condition that Σ is positive definite.
Standard error of the quantile. Let be the true 1% quantile of the P&L. The number of paths below it is binomial (M-C04: The binomial distribution) with mean and standard deviation , so the share below it varies by . Near , a change in the cut-off moves that share by about . Equating the two:
The error shrinks only with , and it grows as α moves into the tail, where is small.
Try it
Run 1,000 paths a few times and watch the dots spread. Switch to 20,000 and run again: the strip tightens by about √20 ≈ 4.5. Then switch to the stressed covariance. The paths run in chunks between frames, so the page stays responsive.
Try itRun the desk's Monte Carlo VaR
Paths per run
Covariance
Press Run to simulate 5,000 days for the desk.
Worked example
The first path of the module's run
One simulated day, by hand
Step 1 of 4- 1
Draw eight independent normals
Regulatory lens · looking ahead
Basel's internal models rules have never prescribed one method: historical simulation, Monte Carlo and parametric models are all allowed if the model meets the qualitative and quantitative standards and passes validation and backtesting. FRTB keeps that freedom for expected shortfall (M4.3: Market risk capital (FRTB) and CVA). A bank using simulation should document its number of paths and its seeds, and be able to show that the simulation error is small. Variance reduction and fat-tailed simulation models are in M6.2: Market risk modelling.
Spark Atoms
Spark AtomNamed after a casino
Spark AtomAn artillery officer's square root
Key takeaways
- Monte Carlo VaR draws many days from a model of the factors, revalues the book in full on each, and reads off the quantile.
- A Cholesky factor (LL′ = Σ) turns independent normals into correlated moves: x = Lz.
- Log-return factors give lognormal prices S₀eˣ: never negative, skewed up.
- On the desk: £1.85m from 10,000 paths, below delta-normal (the puts' gamma) and below historical simulation (calm normal model).
- The standard error of the quantile is about √(α(1−α)/N) / f(q): four times the paths halve it.
- More paths reduce noise, never model error.
Reaction
Check what stuck
Question 1 · objective 1
Σ = [[4, 2], [2, 5]]. Its Cholesky factor is L = [[2, 0], [l₂₁, l₂₂]]. What is l₂₂?
Question 2 · objective 3
A Monte Carlo VaR from 10,000 paths has a standard error of £30,000. Roughly what standard error would 2,500 paths give, in pounds?
Question 3 · objective 3
With 5,000 paths the standard error is £40,000. How many paths would bring it to £10,000?
Question 4 · objective 2
The desk's Monte Carlo VaR (£1.85m) is below its delta-normal VaR (£1.94m), with the same covariance matrix. Why?
Question 5 · objective 4
Historical simulation gives £2.27m on the same book. What would bring the Monte Carlo figure closer?
Glossary
- Monte Carlo VaR
- VaR read off the P&Ls of many simulated days, each drawn from a statistical model of the risk factors and revalued in full.
- Path
- One simulated day: a draw of all the factor moves, and the book's P&L for it.
- Cholesky factor
- A lower-triangular matrix L with L L′ = Σ. Multiplying independent standard normals by L gives draws with covariance Σ.
- Seed
- The starting value of a pseudo-random number generator. The same seed gives the same draws, so a run can be repeated exactly.
- Standard error
- The standard deviation of an estimate across repeated runs: how much the answer would change with a different seed.
- Lognormal price
- A price whose log return is normal: S = S₀eˣ. It cannot go negative and is skewed to the right.
- Variance reduction
- Ways to get the same accuracy with fewer paths: antithetic draws, control variates, importance sampling, quasi-random numbers.
Deep Dives & Origins
Deep Dives
- P. Glasserman, Monte Carlo Methods in Financial Engineering, Springer, 2003, the chapter on applications in risk management. Advanced.
- P. Jorion, Value at Risk: The New Benchmark for Managing Financial Risk, 3rd ed., McGraw-Hill, 2007, the chapter on Monte Carlo methods. Intermediate.
Origins
- N. Metropolis and S. Ulam, “The Monte Carlo Method”, Journal of the American Statistical Association 44(247), 1949.
- Commandant Benoît, “Note sur une méthode de résolution des équations normales… (Procédé du Commandant Cholesky)”, Bulletin Géodésique 2, 1924.
- K. Dowd, Measuring Market Risk, 2nd ed., Wiley, 2005, on the precision of quantile estimators.
Watch this lesson
Video version
Prefer to watch? The same lesson as a 12-minute video will sit here, made from this page's script.