Concept Architecture
Monte Carlo Integration in Health Economic Models
The expected cost per patient, the expected QALYs and the expected net benefit that a health economic model reports are integrals over the joint distribution of its uncertain inputs. Monte Carlo integration evaluates such an integral by drawing input sets at random from that distribution, running the model for each and taking the average. Its error shrinks with the number of draws at a rate that does not depend on how many parameters the model has, so it copes with many uncertain inputs where grids fail. The same averaging sits behind probabilistic sensitivity analysis, patient-level simulation and value of information analysis.
Expected costs and QALYs written as integrals
A model output depends on a vector of uncertain inputs, each given a distribution that represents the evidence. The expected value of the output is its probability-weighted average over every possible input combination. For continuous inputs it is written as follows.
where is the quantity sought, is the vector of uncertain inputs, is the model output for one input set (such as discounted cost or QALYs per patient) and is the joint probability density of the inputs.
An integral that is not already an expectation can be turned into one. Over a finite interval, Owen's textbook writes the integral as the interval length times the mean of the integrand at a uniformly distributed point.
where is the integrand, and are the limits and is a random point spread evenly over the interval. The area under a survival function and discounted cost accumulated over a time horizon fit this form as readily as an expectation over parameters.
The estimator, its error and its standard error
The estimate replaces the integral with an average over independent draws. Owen calls this simple Monte Carlo and shows that it is unbiased, so its expected value equals the target whatever the number of draws.
where is the estimate from draws, is the -th input set drawn independently from and is the variance of the output across draws. The law of large numbers guarantees that the average settles on as grows, provided the expectation exists. When is finite, the root mean squared error is , and the central limit theorem gives an approximate 95% interval of , where is the sample standard deviation of the outputs.
Owen spells out the exchange rate. One more decimal digit of accuracy needs a tenth of the error and so a hundredfold increase in computation, which makes simple Monte Carlo poorly suited to problems that need high precision. The draws themselves supply a rough error estimate, the Monte Carlo error checked when judging whether enough draws have been run.
Why the number of parameters does not enter the error
The formula contains no term for the dimension of . Owen stresses that the dimension can be 2 or 1,000 and the root mean squared error is still , whereas a straightforward extension of Simpson's rule to dimensions has error of order , which he calls useless for large . In one dimension the comparison runs the other way, since Simpson's rule achieves error of order for an integrand with a continuous fourth derivative.
Metropolis and Ulam gave the classic illustration in their 1949 paper on the method. Finding the volume of a region in a twenty-dimensional unit cube by dividing each coordinate into ten parts would mean examining ten to the power twenty lattice points, which they called obviously impossible, while about 10,000 random points would give an estimate valid within a few per cent with high probability. A probabilistic model with twenty uncertain inputs poses the same problem, and Owen shows that in worst-case terms any quadrature rule in high dimensions suffers this curse of dimensionality. Numerical integration by quadrature rules such as Gaussian quadrature therefore suits survival areas and other smooth low-dimensional integrals, while Monte Carlo suits expectations over many parameters.
Probabilistic sensitivity analysis as an integral over parameters
When a model is linear in its inputs, one run at the mean of every parameter returns the expected output. Otherwise that run is in general biased, and the expected output must be found by integrating over the parameter distribution. Doubilet and colleagues described such simulation for medical decision trees in 1985, assigning every probability and utility a random value from its distribution in each simulation and recording the mean and standard deviation of each strategy's expected utility.
The NICE manual (PMG36, section 4.7.12) states that the committee's preferred cost-effectiveness estimate should be derived from a probabilistic analysis when possible unless the model is linear. Section 4.7.11 asks that enough model simulations be used to minimise the effect of Monte Carlo error, and suggests reviewing the variance around net benefits or ICERs as the number of simulations increases. A Monte Carlo simulation of a cohort model studies the whole distribution of outputs, and its mean is a Monte Carlo integral whose integrand is the whole model, with one full run per draw. The probability that a strategy is cost-effective is also such an integral, the average of an indicator.
Patient-level models nest a second integral inside the first. In a microsimulation, each run averages over simulated patients for one parameter set, and the probabilistic analysis averages those runs over parameter sets. The ISPOR-SMDM task force report on parameter estimation (Briggs and colleagues, 2012) notes that assessing parameter uncertainty in such models requires the stochastic uncertainty, sometimes called Monte Carlo error, to be eliminated. O'Hagan, Stevenson and Madan noted that each run may simulate many thousands of patients, so only a relatively small number of runs is possible, and gave analysis-of-variance methods with formulae for optimal sample sizes.
Worked example with restricted mean survival over ten years
The numbers in this example are illustrative. A model needs the restricted mean survival time over a ten-year horizon for patients whose survival follows an exponential distribution with a hazard of 0.2 per year. The target has a closed form, so each Monte Carlo step can be checked against it.
where years is the horizon, per year is the hazard and is the probability of surviving to time . The exact value is life-years.
1. Write the integral as an expectation. With uniform on 0 to 10 years, the restricted mean equals , so each draw at time contributes , with as the integrand.
2. Take five draws. Suppose the random times are 1.2, 4.7, 8.1, 3.3 and 6.5 years. The survival probabilities are 0.7866, 0.3906, 0.1979, 0.5169 and 0.2725, and the contributions are 7.8663, 3.9063, 1.9790, 5.1685 and 2.7253.
3. Average. The contributions sum to 21.6454, so the estimate is 21.6454 / 5 = 4.3291 life-years, within 0.006 of the exact value.
4. Estimate the standard error. The sample standard deviation of the five contributions is 2.3179, so the standard error is 2.3179 / 2.2361 = 1.0366 life-years. The closeness in step 3 is luck, since five draws cannot be relied upon to land so near.
5. Scale up. The mean squared contribution is , so the true variance of one contribution is 24.542 minus 4.3233 squared, about 5.851, and its standard deviation about 2.419. With 10,000 draws the standard error is 2.419 / 100 = 0.0242 life-years, and a standard error of 0.01 would need about 5.851 / 0.0001, or roughly 58,500 draws.
6. Change the sampling density. A patient-level simulation estimates the same integral by drawing survival times from the exponential distribution itself and averaging the time lived within the horizon, . Its mean square is , so its variance is about 11.009, about 1.88 times the uniform version, and it needs roughly 110,100 draws for a standard error of 0.01. Both estimators are unbiased, and the choice of sampling density changes only their precision.
7. Compare a deterministic rule. The trapezoidal rule uses six survival values, 1.0000, 0.6703, 0.4493, 0.3012, 0.2019 and 0.1353, and with step years gives . Its error of 0.0575 is fixed and far smaller than the five-draw standard error, so for a smooth one-dimensional integral quadrature wins. The advantage reverses once the expectation runs over many uncertain parameters at once.
Nested integrals in value of information
The EVPI is a difference between two integrals over the same parameter distribution, and both are estimated from the same probabilistic draws. The first averages a maximum and the second maximises an average, so their gap is the expected loss from choosing before the uncertainty is resolved.
where is the net benefit of strategy for parameter set .
The partial value for a subset of parameters, the EVPPI, places one expectation inside a maximum inside another expectation. Brennan, Kharroubi, O'Hagan and Chilcott showed that its two nested expectations must be evaluated separately because of the maximum between them, and set out a two-level algorithm with an outer loop over the parameters of interest and an inner loop over the rest. They also showed that maxima of Monte Carlo estimates of expectations are biased upward, so small samples give biased EVPPI estimates. Monte Carlo error therefore enters value of information as bias as well as noise.
Sampling choices that change precision but not the target
Because sets the error, Owen notes that halving it while leaving the target unchanged gains as much as doubling . Variance reduction methods such as common random numbers across strategies and control variates work on this principle. Importance sampling draws from a different density and reweights, and Owen warns that it sometimes brings enormous variance reductions and in other circumstances delivers an estimate with infinite variance.
Other methods change how points are placed. Quasi-Monte Carlo uses evenly spread deterministic points such as a Sobol sequence, and Owen notes that its error is hard to estimate unless the points are randomised so that independent replicates can be compared. Latin hypercube sampling stratifies the range of each input. Markov chain Monte Carlo, including the Metropolis-Hastings algorithm, applies the same averaging when independent draws cannot be made, sampling instead from a Markov chain whose limiting distribution is the one wanted. Its draws are correlated, so the formula, which assumes independence, does not give its standard error.
Limits and common misreadings
The commonest errors come from treating the Monte Carlo average as more than an estimate of one stated integral. Each is avoided by naming the integral a reported number estimates.
- Taking precision for accuracy. More draws shrink Monte Carlo error only. Owen points out that model errors can be larger than Monte Carlo errors, and no number of draws corrects a wrong distribution or structure.
- Averaging ratios. Owen notes that the expectation of a ratio may not exist when the denominator has positive density at zero, and that ratios are ordinarily estimated as a ratio of sample averages. An ICER is therefore formed from mean incremental cost and mean incremental QALYs, not by averaging per-draw ratios whose QALY gain can be near zero.
- Assuming the expectation exists. Owen shows that when the mean is infinite the running average keeps jumping and the usual interval fails.
Sources
- Brennan A, Kharroubi S, O'Hagan A, Chilcott J. Calculating partial expected value of perfect information via Monte Carlo sampling algorithms. Medical Decision Making. 2007;27(4):448-470. https://doi.org/10.1177/0272989X07302555
- Briggs AH, Weinstein MC, Fenwick EAL, Karnon J, Sculpher MJ, Paltiel AD. Model parameter estimation and uncertainty analysis: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force Working Group-6. Medical Decision Making. 2012;32(5):722-732. https://doi.org/10.1177/0272989X12458348
- Doubilet P, Begg CB, Weinstein MC, Braun P, McNeil BJ. Probabilistic sensitivity analysis using Monte Carlo simulation: a practical approach. Medical Decision Making. 1985;5(2):157-177. https://doi.org/10.1177/0272989X8500500205
- Metropolis N, Ulam S. The Monte Carlo method. Journal of the American Statistical Association. 1949;44(247):335-341. https://doi.org/10.1080/01621459.1949.10483310
- National Institute for Health and Care Excellence. NICE technology appraisal and highly specialised technologies guidance: the manual (PMG36). Published 31 January 2022, last updated 13 October 2026. Sections 4.7.11 and 4.7.12. https://www.nice.org.uk/process/pmg36/chapter/economic-evaluation-2
- O'Hagan A, Stevenson M, Madan J. Monte Carlo probabilistic sensitivity analysis for patient level simulation models: efficient estimation of mean and variance using ANOVA. Health Economics. 2007;16(10):1009-1023. https://doi.org/10.1002/hec.1199
- Owen AB. Monte Carlo Theory, Methods and Examples. Stanford University; 2013. Chapters 1, 2 and 7. https://artowen.su.domains/mc/
Related Concepts (3)
Library
Tools & Resources
1
SAVI — Sheffield Accelerated Value of Information — Mark Strong, Jeremy Oakley & Penny Breeze (University of Sheffield), Web application ed., 2024 (University of Sheffield)
A free, open-access web calculator that computes value-of-information measures (EVPI, partial EVPI/EVPPI and EVSI) directly from a model’s probabilistic sensitivity analysis output — no need to re-run the model. Also reports payer strategy-specific and uncertainty burden.
Web Tool (R Shiny)View source →
Frequently Asked Questions (6)
What is Monte Carlo integration?
Monte Carlo integration estimates an integral, such as a model's expected cost or QALYs, by averaging the integrand over randomly sampled inputs.
Source: Metropolis & Ulam 1949
Why does Monte Carlo integration scale well with dimension?
The root mean squared error of a Monte Carlo average equals the standard deviation of the output divided by the square root of the number of draws, and that formula contains no term for the number of dimensions. Owen notes that the dimension can be 2 or 1,000 and the formula still holds, although the standard deviation itself differs between problems. A grid rule behaves very differently, since a straightforward extension of Simpson's rule to d dimensions has error of order n to the power minus 4/d, which Owen calls useless for large d. Monte Carlo integration therefore keeps a predictable error rate as a health economic model gains uncertain inputs.
Source: Owen 2013
How does Monte Carlo integration work?
Monte Carlo integration first writes the target as an expected value, for example the expected cost per patient taken over the joint distribution of a model's uncertain inputs. It then draws input sets independently from that distribution, runs the model for each and averages the outputs. An integral over a finite interval, such as the area under a survival curve, becomes the interval length times the mean of the integrand at uniformly distributed points. Owen shows that this simple Monte Carlo estimate is unbiased, and the law of large numbers ensures that the average settles on the true value as the draws increase, provided the expectation exists.
Source: Owen 2013
Why is Monte Carlo integration used for high-dimensional problems?
Grid methods need a number of evaluation points that multiplies with each added dimension. Metropolis and Ulam illustrated this in 1949 with the volume of a region in a twenty-dimensional cube, where dividing each coordinate into ten parts would mean examining ten to the power twenty lattice points, which they called obviously impossible. They judged that about 10,000 random points would instead give an estimate valid within a few per cent with high probability. A health economic model with twenty uncertain inputs poses the same problem when its expected cost or QALYs are averaged over the parameter distribution, so Monte Carlo integration is used there in place of a grid.
Source: Metropolis & Ulam 1949
How accurate is Monte Carlo integration?
The error of Monte Carlo integration falls in proportion to one over the square root of the number of draws, with the standard deviation of the output across draws setting its scale. Owen notes that one more decimal digit of accuracy therefore needs a hundredfold increase in computation, so the method is poorly suited to problems that need high precision. The draws themselves give a standard error, the sample standard deviation divided by the square root of the number of draws, and an approximate 95% interval of 1.96 standard errors either side of the estimate. Variance reduction methods improve precision for a given number of draws.
Source: Owen 2013
What are the limitations of Monte Carlo integration?
Monte Carlo integration buys precision slowly, because its error shrinks only with the square root of the number of draws, and for a smooth one-dimensional integral such as a survival area a quadrature rule is usually more accurate for the same effort. More draws reduce Monte Carlo error only, and Owen points out that model errors can be larger, so no sample size corrects a wrong distribution or model structure. The method also assumes that the expectation exists, and when the mean is infinite the running average keeps jumping and the usual interval fails. Per-draw ratios with a QALY gain near zero are unreliable to average, so an ICER is formed from mean incremental cost and mean incremental QALYs.
Source: Owen 2013
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 27 Oct 2026
Content version: 1.0.1
Canonical Identity
- Term code
- HE-EM-UA-038
Stable URI · Machine-readable · Resolvable · CC BY 4.0
