Author-reviewedEvidence: highv1.0.1

Sobol Sequence

A Sobol sequence is a deterministic low-discrepancy sequence that spreads parameter values evenly for quasi-Monte Carlo runs of health economic models.

Last reviewed byDr Darrin Baines

Concept Architecture

Sobol Sequence in Quasi-Monte Carlo Health Economic Models

In a health economic model, a Sobol sequence is a reproducible list of parameter sets that replaces the random draws of a probabilistic sensitivity analysis, each new point falling in the gaps left by earlier ones across all inputs at once. Averaging model outputs over these points is quasi-Monte Carlo integration, which can estimate expected costs, QALYs and net monetary benefit with much less noise than as many pseudo-random numbers. The gain rests on choices that ordinary Monte Carlo simulation never faces, above all a power-of-two sample size and a random scramble that lets the error be estimated. The name is shared with Sobol indices, the variance shares of global sensitivity analysis, which are a separate idea.

Expected model outputs as integrals over the unit cube

A probabilistic analysis estimates an expectation. Fang and colleagues describe how a uniform value between 0 and 1 becomes a parameter value through the inverse cumulative distribution function, so the model output is a function on the unit cube and its mean an integral over the cube.

μ=∫[0,1]df(F1−1(u1),…,Fd−1(ud))du,μ^n=1n∑i=1nf(F1−1(ui1),…,Fd−1(uid))\mu = \int_{[0,1]^d} f\left(F_1^{-1}(u_1), \ldots, F_d^{-1}(u_d)\right) du, \qquad \hat{\mu}_n = \frac{1}{n} \sum_{i=1}^{n} f\left(F_1^{-1}(u_{i1}), \ldots, F_d^{-1}(u_{id})\right)

where μ\mu is the expected output, ff is the model, Fj−1F_j^{-1} is the inverse cumulative distribution function of input jj, u=(u1,…,ud)u = (u_1, \ldots, u_d) is a point in the unit cube, ui=(ui1,…,uid)u_i = (u_{i1}, \ldots, u_{id}) is the iith point used, nn is the number of model runs and dd is the number of uncertain inputs.

Plain Monte Carlo integration picks the points at random, with a standard error falling with the square root of nn. The NICE manual (PMG36, section 4.7.11) asks that enough simulations be used to minimise the effect of Monte Carlo error. Fang and colleagues note that random points leave clusters and gaps that reduce efficiency, which quasi-random sequences are designed to avoid.

Measuring evenness with discrepancy

Quasi-Monte Carlo needs a measure of how far a point set is from uniform. Owen defines the star discrepancy as the largest gap, over boxes anchored at the origin, between the share of points in a box and its volume.

Dn∗=sup⁡a∈[0,1)d∣1n∑i=1n1{ui∈[0,a)}−∏j=1daj∣D_n^{*} = \sup_{a \in [0,1)^d} \left| \frac{1}{n} \sum_{i=1}^{n} \mathbf{1}\left\{u_i \in [0, a)\right\} - \prod_{j=1}^{d} a_j \right|

where aa is the far corner of the box [0,a)[0, a), 1{⋅}\mathbf{1}\{\cdot\} is 1 for a point inside the box and 0 otherwise, and aja_j is the box length in dimension jj.

Owen calls a sequence low discrepancy when Dn∗D_n^{*} is of order (log⁡n)d/n(\log n)^d/n, and the Koksma-Hlawka inequality turns this into an error bound.

∣μ^n−μ∣≤Dn∗ VHK(f)\left| \hat{\mu}_n - \mu \right| \le D_n^{*} \, V_{\mathrm{HK}}(f)

where VHK(f)V_{\mathrm{HK}}(f) is the total variation, in the sense of Hardy and Krause, of the model output taken as a function of uu on the unit cube.

The bound shows that quasi-Monte Carlo should eventually beat random sampling when the variation is finite. Owen stresses that neither term is known in practice, so the bound gives no usable interval, and that the worst case is so pessimistic at ten inputs that real errors are better explained by low-dimensional projections.

Building the points from binary digits

Owen records that Sobol published the first multidimensional digital sequences in 1967 under the name LP sequences, and that they are digital sequences in base 2. In the recipe set out by Joe and Kuo, each dimension jj gets a primitive polynomial over the binary field and odd integers mk,jm_{k,j} extended by a bitwise recurrence.

xi,j=i1v1,j⊕i2v2,j⊕i3v3,j⊕⋯ ,vk,j=mk,j2kx_{i,j} = i_1 v_{1,j} \oplus i_2 v_{2,j} \oplus i_3 v_{3,j} \oplus \cdots, \qquad v_{k,j} = \frac{m_{k,j}}{2^k}

where xi,jx_{i,j} is coordinate jj of point ii, iki_k is the kkth binary digit of ii counted from the right, vk,jv_{k,j} is a direction number, mk,jm_{k,j} is the odd integer that defines it, and ⊕\oplus is the bitwise exclusive-or of the binary expansions.

In the example of Joe and Kuo, the polynomial x3+x+1x^3 + x + 1 gives the coordinates 0, 0.5, 0.75, 0.25, 0.875 and 0.375 for the first six points. The faster Gray code version of Antonov and Saleev reorders the points only within blocks whose size is a power of two, so uniformity is unchanged.

Owen notes that adding a dimension leaves the earlier ones unchanged, and earlier dimensions are better spread. When nn is a power of two, each coordinate of the first nn points has exactly one value in every interval of width one over nn. Some pairs of later dimensions show poor patterns, which vary with the direction numbers. Those of Bratley and Fox cover 40 dimensions, while Joe and Kuo, whose set SciPy uses, searched for good two-dimensional projections up to 21,201 dimensions.

Scrambling and replicate error estimates

An unscrambled sequence is deterministic, so it has no standard error. Randomised quasi-Monte Carlo applies a scramble that keeps the net structure while making each point uniform on the cube, and Owen shows that the estimate is then unbiased. Running RR independent scrambles gives an error estimate.

μ^pool=1R∑r=1Rμ^r,SE(μ^pool)=∑r=1R(μ^r−μ^pool)2R(R−1)\hat{\mu}_{\mathrm{pool}} = \frac{1}{R} \sum_{r=1}^{R} \hat{\mu}_r, \qquad \mathrm{SE}\left(\hat{\mu}_{\mathrm{pool}}\right) = \sqrt{\frac{\sum_{r=1}^{R} \left(\hat{\mu}_r - \hat{\mu}_{\mathrm{pool}}\right)^2}{R(R-1)}}

where μ^r\hat{\mu}_r is the estimate from scramble rr of nn points, RR is the number of scrambles and μ^pool\hat{\mu}_{\mathrm{pool}} is the pooled estimate, with an interval from the t distribution on R−1R-1 degrees of freedom.

Owen suggests 5 or 10 replicates when a rough error estimate will do, and Fang and colleagues cite 8 to 32 as empirically sufficient. Owen reports that for smooth outputs scrambled nets reach a root mean squared error of order n−3/2n^{-3/2} apart from logarithmic factors.

Worked example with two and then three uncertain inputs

All numbers in this example are illustrative. Incremental net monetary benefit is INMB=λpg−C\mathrm{INMB} = \lambda p g - C, with λ\lambda = GBP 25,000 per QALY, one of the two values PMG36 (section 4.2.16) uses for net health benefit. First, the response probability pp is uniform between 0.20 and 0.60, the QALY gain per responder gg uniform between 0.50 and 1.00, and the cost CC fixed at GBP 3,000, so the true mean is 25,000 × 0.40 × 0.75 − 3,000 = GBP 4,500.

1. Take the first eight unscrambled points. These are the points shown in the SciPy documentation, with p=0.20+0.40u1p = 0.20 + 0.40 u_1 and g=0.50+0.50u2g = 0.50 + 0.50 u_2.

Pointu1u_1u2u_2ppggINMB (GBP)
1000.200.5−500.00
20.50.50.400.754,500.00
30.750.250.500.6254,812.50
40.250.750.300.8753,562.50
50.3750.3750.350.68753,015.63
60.8750.8750.550.93759,890.63
70.6250.1250.450.56253,328.13
80.1250.6250.250.81252,078.13

2. Check the balance. Each coordinate takes each multiple of 0.125 below 1 once, so every eighth of each range holds one point, and each quarter of the square holds two.

3. Run the model. For point 3, 25,000 × 0.50 × 0.625 = 7,812.50, less GBP 3,000, gives GBP 4,812.50. The eight values sum to GBP 30,687.50, so the estimate is GBP 3,835.94, an error of −GBP 664.06. The bias arises because the unscrambled points sit at the left ends of their intervals, so each coordinate averages 0.4375, not 0.5. A random sample of eight would have a standard error of GBP 931.7, since the variance of pp times gg is 1/90, giving an output variance of 625,000,000 × 1/90 = 6,944,444.

4. Move to a fuller model. The same formula now takes pp from a beta distribution Beta(8, 12), gg from a gamma distribution with shape 9 and scale 1/12, and CC from a gamma distribution with shape 16 and scale 312.5. The means are 0.40, 0.75 and GBP 5,000, so the true mean INMB is 25,000 × 0.40 × 0.75 − 5,000 = GBP 2,500. With independent inputs, the variance of pp times gg is 3/175, so the output variance is 625,000,000 × 3/175 = 10,714,286 plus 1,562,500 for CC, a total of 12,276,786. One random sample of 1,024 runs has a standard error of 12,276,786/1,024\sqrt{12{,}276{,}786/1{,}024} = GBP 109.5.

5. Run ten scrambles of 1,024 points. A script using SciPy 1.18 gave replicate means of 2,499.4, 2,501.1, 2,500.9, 2,500.3, 2,497.3, 2,500.3, 2,499.9, 2,497.9, 2,499.7 and 2,498.0. They sum to 24,994.8, so the pooled mean is GBP 2,499.48. The squared deviations sum to 15.656, so SE=15.656/90\mathrm{SE} = \sqrt{15.656/90} = GBP 0.42, and with t=2.262t = 2.262 the 95% interval is 2,499.48 ± 0.94. One random sample of all 10,240 runs would have a standard error of GBP 34.6.

6. Repeat for the probability of cost-effectiveness. The output is now 1 when INMB is positive and 0 otherwise, with a true mean of about 0.754. Over 500 repetitions at 1,024 runs, scrambled points cut the variance of the mean INMB about 3,600-fold against random sampling, but that of the probability only about 10-fold.

7. Interpret. This small, smooth model is close to ideal for quasi-Monte Carlo, and a large Markov or patient-level model will usually gain far less. The jump at zero INMB explains the weaker gain on the probability, since Owen notes that an indicator usually has infinite variation unless its set has edges parallel to the axes. Both designs estimate the same expected INMB.

Choices that change the result

Most errors come from habits that are harmless with random draws. Owen compares quasi-Monte Carlo with antibiotics, since in both it is best to finish the course.

  • Sample size. Owen warns that 100,000 points could be much worse than 131,072, which is two to the power 17, and even worse than 65,536. SciPy warns that balance is lost with other sizes, a skipped first point or thinning, and Owen finds that skipping the first scrambled point can raise the error by a factor proportional to n\sqrt{n}.
  • Input order. Because the first coordinates are the best spread, Owen advises giving them to the most important inputs.
  • The first point. The unscrambled sequence starts at the origin, where an inverse normal cumulative distribution function is infinite. Owen notes that making each point uniform, as scrambling does, avoids such singularities without knowing where they lie.
  • Correlated inputs. PMG36 (section 4.7.19) asks that correlation between parameters be reflected, and Fang and colleagues note that correlated inputs can be handled with a Cholesky decomposition once the uniform points are generated.
  • Adding runs. SciPy can extend a design to the next power of two, while Kucherenko and colleagues note that a Latin hypercube cannot take new points one at a time.

Evidence from health economic and test applications

Fang and colleagues tested scrambled Sobol sequences on EVPPI, where the nested calculation is costly. They report a cost of order ε−2\varepsilon^{-2} for a mean squared error of ε2\varepsilon^2, against ε−3\varepsilon^{-3} for nested Monte Carlo. For EVPI in a simplified depression decision tree, the root mean squared error was 2.37 against 3.12 with standard Monte Carlo. They found that quasi-Monte Carlo worked less well in highly complex models such as Markov models.

For metamodelling, Degeling and colleagues note that Sobol sequences may be more efficient than Latin hypercube designs in problems with few inputs. On test functions, Kucherenko and colleagues found errors falling close to one over nn when a few inputs or low-order interactions dominated, smaller gains under high-order interactions, and some cases where Latin hypercube sampling did better at small sample sizes. They judged Sobol points the safest choice for functions of unknown type.

Where Sobol points sit among sampling designs

Pseudo-random draws give a simple standard error at the cost of chance clusters and gaps. Latin hypercube sampling, another form of variance reduction, stratifies each input separately but leaves the joint spread to random pairing. Fang and colleagues describe rank-1 lattice rules as the other common route to low discrepancy.

Limitations and common misreadings

The method reduces simulation noise only. It leaves parameter uncertainty and structural choices untouched.

  1. Treating Sobol points as random draws. Unscrambled points are a quadrature rule, so their spread is not a sample standard error.
  2. Using round sample sizes. Powers of ten or a dropped first point break the balance the method relies on.
  3. Expecting the toy gain in every model. Gains shrink when many inputs interact or the output jumps, as decision indicators do.
  4. Reading even coverage as less uncertainty. A cost-effectiveness acceptability curve shows the same decision uncertainty under either design, estimated more precisely.

Sources

Library

Publications

1
  • Journal article

    Parameter Estimation and Uncertainty: A Report of the ISPOR-SMDM Modeling Good Research Practices Task Force-6 — Briggs, Weinstein, Fenwick, Karnon, Sculpher & Paltiel, Task Force Report 6 ed., 2012 (Value in Health / Medical Decision Making)

    Best-practice guidance on parameter estimation and the characterisation of uncertainty in decision models, covering probabilistic sensitivity analysis, distributional choices, and correlation between parameters.

Frequently Asked Questions (6)

  • What is a Sobol sequence?

    A Sobol sequence is a deterministic low-discrepancy sequence that spreads parameter values evenly for quasi-Monte Carlo runs of health economic models.

    Source: Fang et al. 2022

  • Why does a Sobol sequence fill space more evenly than random sampling?

    Sobol points form a digital sequence in base 2, built from the binary digits of each point's index so that new points fall in the gaps left by earlier ones. When the number of points is a power of two, each coordinate of the first n points has exactly one value in every interval of width one over n, which independent random draws never guarantee. Owen measures evenness by the star discrepancy, the largest gap between the share of points in a box anchored at the origin and its volume. A Sobol sequence keeps this gap of order (log n) to the power d over n, while random points leave clusters and gaps by chance.

    Source: Owen 2019

  • How does a Sobol sequence improve simulation efficiency?

    The expected cost, QALYs or net monetary benefit of a health economic model is an integral over the unit cube, which averaging the output over Sobol points estimates by quasi-Monte Carlo integration. The Koksma-Hlawka inequality bounds the error by the discrepancy of the points times the Hardy-Krause variation of the output, so with finite variation a Sobol sequence should eventually beat random sampling. Owen notes that neither term is known in practice. For smooth outputs, randomly scrambled Sobol points can reach a root mean squared error of order n to the power minus three halves, apart from logarithmic factors, against one over the square root of n for random sampling.

    Source: Owen 2019

  • How does a Sobol sequence differ from random sampling?

    Random sampling draws each parameter set independently, so the spread of model outputs gives a simple standard error, at the cost of chance clusters and gaps. An unscrambled Sobol sequence is a fixed, reproducible quadrature rule, so the spread of outputs across its points is not a sample standard error and the method carries no error estimate of its own. Randomised quasi-Monte Carlo applies a scramble that keeps the net structure of the Sobol points while making each point uniform on the unit cube, and Owen shows that the estimate is then unbiased. Running several independent scrambles, with 5 or 10 enough for a rough error estimate, gives a standard error and an interval from the t distribution.

    Source: Owen 2019

  • Where are Sobol sequences used?

    In health economics, Sobol points can replace the random parameter draws used to estimate expected costs, QALYs and net benefit, and Fang and colleagues applied scrambled Sobol sequences to the expected value of partial perfect information, where the nested calculation is costly. They report a computational cost of order epsilon to the power minus two for a mean squared error of epsilon squared, against minus three for nested Monte Carlo. In a simplified depression decision tree, the root mean squared error of the expected value of perfect information was 2.37 against 3.12 with standard Monte Carlo. They found that quasi-Monte Carlo worked less well in highly complex models such as Markov models.

    Source: Fang et al. 2022

  • What are the limitations of Sobol sequences?

    Sobol sequences reduce simulation noise only, and leave parameter uncertainty and structural choices in a health economic model untouched. Their balance depends on using the complete sequence in power-of-two sizes, and Owen warns that 100,000 points could be much worse than 131,072, which is two to the power 17. Gains shrink when the output jumps, since an indicator such as whether net benefit is positive usually has infinite variation unless the edges of its set are parallel to the axes. Some pairs of later dimensions show poor patterns, while the earlier dimensions are better spread, so Owen advises giving the first coordinates to the most important inputs.

    Source: Owen 2019

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 29 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-EM-UA-068

Stable URI · Machine-readable · Resolvable · CC BY 4.0