Monte Carlo That Converges
Monte Carlo problems are a fixture of quant developer assessments, usually as a pricing or probability question with a simulation attached. The code is short. What is being tested is whether you know how accurate the answer is, because a simulation without an error estimate is a number with no claim attached to it.
The square-root law
Average independent draws of a quantity with standard deviation . The standard error of the mean is
Everything about Monte Carlo follows from the square root in that denominator. One more digit of accuracy costs a hundred times the paths. Doubling the paths reduces the error by 29 per cent, not by half. A million paths on a payoff with a standard deviation of 10 gives a standard error of 0.01, which is fine for a price quoted in cents and useless for one quoted in basis points.
The rest of this lesson is for subscribers
Unlock every lesson in Programming for Quantitative Developers, and every other premium course.
Subscribe to continueTest your knowledge
Keep reading Programming for Quantitative Developers
25 lessons in this course, and every other premium course, on one subscription.
- Every lesson in every course, with the worked examples and interactive simulators
- Graded questions on every lesson, with explanations for the wrong answers as well as the right one
- The trainers, timed assessments and brainteaser library that go with them