A reinsurer needs the 99.5% VaR of next year's aggregate losses, and the distribution has no closed form. You write a loop that draws uniform numbers, converts each one into a claim, sums portfolios, and reads off an empirical quantile. That loop is Monte Carlo, and the conversion step is inversion.
Why inversion works. Define the generalized inverse (needed for step CDFs). If , then . So has the target distribution.
KEY: One uniform draw produces exactly one target draw. Inversion is the gold-standard method when is available in closed form or by quick numeric search.
Because is also uniform, programmers often write ; both are valid. For Weibull: . For Pareto: .
Discrete inversion. Order the support and form cumulative probabilities. Draw , then return the smallest with .
EXAMPLE: A claim count is 0 w.p. 0.5, 1 w.p. 0.3, 2 w.p. 0.2. Cumulative: 0.5, 0.8, 1.0. If , return 1. If , return 2.
Common mistakes
- Using instead of . Applying the CDF to a uniform returns another uniform, not a draw from . Always invert.
- Forgetting the generalized inverse for discrete . Take the smallest with . Strict inequality or interpolation produces wrong support points.
- Reporting as the standard error. Monte Carlo SE is . Dividing by understates uncertainty by .
Bottom line
- Inversion method: if , then has CDF ; works for any , continuous or discrete, using the generalized inverse (smallest with ) at jumps.
- Exponential inversion is the building block for Weibull and Pareto draws.
- Monte Carlo mean estimator: ; unbiased, with standard error .
- Convergence rate is : to halve the error you quadruple the sample.
Exam shortcut
When a question hands you a CDF and a uniform, write symbolically and solve before computing; exponential, Pareto, Weibull, and uniform on all have one-line inverses. To size a Monte Carlo run, use with the pilot SD whenever a target half-width is given.
The full lesson (about 1,395 words, 9 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.
Learning objectives
- A7
Browse all free MAS-I lessons or jump into free MAS-I practice questions.