The Basel IRB formula gives the 99.9% VaR analytically — but only in the large-portfolio limit and for the restricted class of homogeneous-group Gaussian threshold models. For realistic heterogeneous portfolios — different exposures, LGDs, PDs, factor loadings, and non-Gaussian copulas — the loss distribution must be computed by simulation. The naive approach is wasteful: at , only 1 in 1,000 simulated scenarios produces a loss above the VaR threshold. With 100,000 scenarios you get roughly 100 exceedances, so the tail probability is estimated with a relative standard error of about 10%, and tail averages such as expected shortfall contributions are noisier still.
Importance sampling (IS) solves this by changing the sampling measure to oversample bad scenarios, then reweighting the results. For a Bernoulli mixture model, IS has a clean two-level structure:
-
Outer IS (factor level): shift the distribution of the common factor to concentrate draws in adverse macro states (the "tail region" where many defaults occur simultaneously). This is exponential tilting of a normal distribution — adding a mean shift to .
-
Inner IS (conditional default level): given each factor draw , inflate each firm's conditional default probability via exponential tilting of the individual Bernoulli variables, targeting the event .
Combining both levels (QRM Algorithm 11.25) achieves a large variance reduction: in QRM's Figure 11.3, for the probability of 20 or more defaults in a 100-firm portfolio, the full IS estimate is the only one of four competing estimators that has visibly converged to the true value after 10,000 factor draws.
Learning objectives. By the end of this note you should be able to:
- explain why naive Monte Carlo is inefficient for rare-event credit tail estimation;
- define the IS estimator and its likelihood ratio ;
- state the exponential tilting construction and explain how it shifts the mean of a distribution;
- describe Algorithm 2 (inner IS for conditional defaults) and Algorithm 3 (full two-level IS);
- explain how to choose the IS mean for the factor distribution by solving an optimisation problem, and why simple mean-matching over-shifts.
In this lesson
-
- The rare-event problem
-
- Importance sampling
-
- Exponential tilting
-
- Inner IS: tilting the conditional default probabilities
-
- Outer IS: tilting the factor distribution
-
- Implementation notes
Before you start
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or browse the Quantitative Risk Management syllabus.