Basic Prerequisites: 03 · Monte Carlo and Econometrics & Time Series.
1. Intuition & Practical Objective
The five primitives all have a breaking point: Monte Carlo’s is slow; grids die above ; plain iteration ignores correlated structure. This page collects the techniques that answer those limits - each one is a targeted extension, not a replacement:
- Quasi-Monte Carlo replaces random points by deterministic low-discrepancy points to beat for smooth integrands.
- Markov Chain Monte Carlo draws samples from a distribution you can evaluate but not sample - the engine of Bayesian estimation.
- State-space / Kalman filters recursively extract a hidden signal from noisy observations.
- High-dimensional methods (operator splitting, sparse grids, dimension reduction) fight the curse of dimensionality where grids exist at all.
- Discretisation of SDEs removes the bias left by simulating a continuous process on a coarse time grid.
- Sensitivity estimation (pathwise / likelihood-ratio) computes derivatives without the finite-difference noise.
The one-sentence essence. “When the primitive is ‘good enough but not optimal’, the extension changes the kind of approximation - deterministic points instead of random ones, a Markov chain instead of i.i.d. draws, a low-dimensional embedding instead of a full grid.”
2. Mathematical Ground Truth & Derivations
2.1 Quasi-Monte Carlo (Glasserman Ch 5). Formulate the integral as over and average over deterministic low-discrepancy points:
The error is governed by the Koksma–Hlawka inequality:
where is the Hardy–Krause variation and the star discrepancy. The van der Corput radical inverse (digit reversal) is the 1-D seed; Halton takes with the first primes; Sobol’ (base 2) is built from primitive polynomials and is generated one point at a time by a Gray-code XOR: ; a rank-1 lattice is and is optimal for smooth periodic integrands. Error for good point sets: - asymptotically faster than for smooth . Randomized QMC (a random shift or Owen scrambling) restores unbiasedness and error bars, with scrambled-net variance for smooth - faster than plain MC.
2.2 Markov Chain Monte Carlo (Tsay Ch 12). To sample from a target known up to a constant:
- Metropolis–Hastings. Propose , accept with
For a symmetric proposal this simplifies to (Metropolis).
- Gibbs sampling. Cycle through coordinates, drawing each from its full conditional - no rejection, and after a burn-in of draws the remaining are (approximately) a posterior sample; the point estimate is .
- Griddy Gibbs for a non-standard 1-D conditional: evaluate it on a grid, invert the approximate CDF, draw. Forward-filtering backward-sampling (FFBS) draws the whole latent path of a state-space model jointly.
Every MCMC output is autocorrelated; the effective sample size, not the raw count, is what determines the error.
2.3 State-space models and the Kalman filter (Tsay Ch 11). A linear Gaussian state-space model is
The Kalman filter is the exact recursive posterior; in its one-step-ahead form:
Parameters are estimated by maximum likelihood via the prediction-error decomposition, (Tsay eq. 11.25) - a numerical optimisation (page 04) over the parameters. In steady state the Riccati recursion for converges to a constant, giving a fixed gain.
2.4 High dimension and SDE discretisation.
- Curse of dimensionality. A full grid costs ; FDM is practical only for . Beyond that use operator splitting / ADI (turn a -dimensional solve into one-dimensional solves per step; Duffy Ch 19–20), sparse grids, or Monte Carlo, which is dimension-free (page 03).
- SDE discretisation (Glasserman Ch 6). For the Euler–Maruyama scheme is
with strong order and weak order ; the Milstein refinement adds for strong order 1. Pricing needs only the weak order (only conditional moments of the increments matter). Richardson/extrapolation upgrades Euler to weak order 2 - the practical benchmark.
- MSE balancing (Glasserman §6.3.3). Bias , variance , work : the optimal split gives
2.5 Sensitivities without differencing (Glasserman Ch 7). Differentiate the path (pathwise / IPA), or the density (likelihood ratio):
Pathwise is unbiased for Lipschitz payoffs and is essentially free (no re-simulation) but gives a zero, uninformative derivative for discontinuous payoffs (digitals, barriers) and for second derivatives; the likelihood ratio handles those but has higher variance (growing with the number of time steps). Finite differences, if used, obey with the optimal , and need common random numbers to keep the variance small.
3. Computational Implementation - QMC beats MC, and MCMC samples the unsamplable
At in , scrambled Sobol’ beats plain Monte Carlo by on this smooth integrand, and Halton by - the deterministic low-discrepancy points simply fill the cube more evenly. The Metropolis–Hastings chain recovers the standard normal’s mean and variance to three decimals (the acceptance rate is high because the proposal step matches the target scale).
4. Failure Modes & First-Principles Breakdowns
- QMC’s advantage is a smoothness promise, not a guarantee. Koksma–Hlawka requires finite variation ; discontinuous integrands (barrier indicators, digital payoffs, non-axis-aligned regions) have infinite variation and QMC can be worse than MC. Always randomize (RQMC) to get error bars.
- Plateau false convergence in QMC. QMC error can appear to stall and then jump (Glasserman Fig. 5.17); ad-hoc stopping rules on a single deterministic point set are unsafe - skip the initial points and use randomized replicates.
- MCMC output is correlated. Treating the samples as i.i.d. underestimates the error by the autocorrelation factor; report effective sample size, not the raw count, and always discard a burn-in and run multiple chains from different starts to diagnose non-convergence.
- Poorly scaled proposals. A too-large MH step gives near-zero acceptance (the chain freezes); a too-small step gives near-1 acceptance but tiny moves (a random walk that never explores). Tune the proposal to a target acceptance rate (~0.23–0.44).
- The Kalman filter’s assumptions are load-bearing. It is exactly optimal only for linear-Gaussian models with known ; nonlinear or non-Gaussian systems require the extended/unscented filter or particle methods, and mis-specified noise matrices produce confident nonsense (the same class of failure as GARCH mis-specification).
- Simulation bias is invisible in the variance. Adding paths shrinks the standard error while the discretisation bias sits unchanged; a tight confidence interval around a biased estimate is still wrong (Glasserman §6.3.3).
- Pathwise sensitivity silently returns zero on digitals/barriers. The derivative exists a.s. but the payoff is discontinuous, so the strike-crossing contribution is missed entirely - the estimator is unbiased-looking and wrong. Use the likelihood ratio or a conditional-MC smoothing there.
5. References
- Glasserman, Paul: Monte Carlo Methods in Financial Engineering
- Tsay, Ruey S.: Analysis of Financial Time Series
- Duffy, Finite Difference Methods in Financial Engineering
- Robert, C. P. & Casella, G.: Monte Carlo Statistical Methods
6. Connected Graph Bridges
- Base: 03 · Monte Carlo · 02 · Finite Differences · Econometrics & Time Series
- Continue / hub: Index Hub · 05 · Linear Algebra (the solve inside every Kalman step)
- Cross-link (pricing-specific application - the same tools applied to derivative pricing): Pricing Numerical Methods · Pricing · Advanced Extensions (American, multidimensional, QMC)
- Forward links: Advanced Extensions (pricing) · Ergodicity & Statistical Mechanics (MCMC and the ergodic theorem)