Concept Architecture
What Gaussian quadrature does
Unlike equally spaced rules, it selects the points to maximise polynomial exactness for a specified number of function evaluations.
For a weighted integral, the general -point rule is
where are the quadrature nodes and are the quadrature weights. The word Gaussian refers to Carl Friedrich Gauss and the optimal-node construction, not to an assumption that the integrand or model inputs follow a normal distribution.
Why the nodes are different from equally spaced rules
Gaussian quadrature chooses nodes as the roots of an orthogonal polynomial associated with the interval and weight function. This construction uses both the node locations and their weights as degrees of freedom, allowing an -point rule to integrate every polynomial of degree at most exactly under its defining weight.
For Gauss–Legendre quadrature on , the weight function is and the nodes are the roots of the Legendre polynomial . The approximation is
The Gauss–Legendre weights can be written as
The exactness result applies to polynomials, but smooth non-polynomial functions are also often approximated accurately because they can be represented well by polynomials over a suitable interval. It does not mean that every smooth function is integrated exactly.
Common Gaussian quadrature families
The integration domain and any natural weight function determine the appropriate family of orthogonal polynomials. Choosing the family to match the mathematical form can avoid inefficient transformations and improve numerical behaviour.
| Rule | Domain | Weight function | Orthogonal polynomial | Typical use |
|---|---|---|---|---|
| Gauss–Legendre | Legendre | Finite, unweighted integrals | ||
| Gauss–Laguerre | Laguerre | Semi-infinite integrals with exponential weighting | ||
| Gauss–Hermite | Hermite | Normal-like expectations after correct rescaling | ||
| Gauss–Jacobi | Jacobi | Endpoint-weighted finite integrals |
The weight function is part of the quadrature definition and must not be counted twice. For example, Gauss–Hermite approximates an integral containing ; a normal expectation requires the correct change of variables and normalising constant.
Mapping a finite interval to the standard domain
Gauss–Legendre nodes and weights are normally tabulated on . An affine transformation maps them to any finite interval without recomputing the standard nodes.
and
The factor is the Jacobian of the transformation. Omitting it is a common implementation error that changes the scale of the integral.
A three-point worked calculation
The three-point Gauss–Legendre rule provides a compact example with auditable values. Its nodes are , , and , with corresponding weights , , and .
For , the calculation is
This equals the analytical integral . The exact result is expected because a three-point Gaussian rule is exact through polynomial degree five.
A health-economic present-value example
Continuous-time health-economic models may integrate a flow of costs, health outcomes, hazards, or occupancy over time. Gaussian quadrature can evaluate such integrals efficiently when the integrand is smooth but repeated analytical integration is inconvenient.
Suppose a constant cost flow of £1,000 per year is discounted continuously at rate over five years. The present value is
Using the three-point Gauss–Legendre nodes and weights , transform each node as and calculate
The analytical value is
The absolute difference is approximately in currency units. This accuracy reflects the smooth integrand and should not be assumed for functions with discontinuities, sharp thresholds, or singular behaviour.
Error and convergence
For sufficiently smooth , the Gauss–Legendre error depends on a derivative of order . The formal expression explains the high polynomial exactness, but it is rarely a convenient practical error estimate because the derivative may be unavailable or poorly bounded.
For some , the -point remainder has the form
In practice, convergence is commonly assessed by repeating the calculation with a higher order and comparing results. Agreement between orders is evidence of numerical stability, not a proof of accuracy, so difficult integrands also require structural diagnostics or an independent method.
Composite and adaptive use
Increasing the order is not always the best response to a difficult integrand. Composite Gaussian quadrature divides the domain into subintervals and applies a fixed-order rule within each part, while adaptive schemes refine regions where estimated error is greatest.
A composite calculation can be written as
Known discontinuities, kinks, treatment thresholds, or changes in hazard functions should usually become subinterval boundaries. Blindly raising across the whole interval can waste evaluations and may hide local numerical problems.
Expectations and multiple dimensions
Many model quantities are expectations rather than simple finite-interval integrals. Gaussian quadrature can approximate them by pairing a distribution-specific transformation or weight function with deterministic evaluations of the model.
For a continuous random variable with density ,
Independent dimensions can be combined using tensor-product rules. If each of dimensions uses nodes, however, the full grid requires evaluations, which is the curse of dimensionality.
Sparse grids, dimension reduction, quasi-Monte Carlo methods, or ordinary Monte Carlo simulation may be preferable when dimensionality is high. Gaussian quadrature is deterministic and should not be described as a sampling distribution or a probabilistic sensitivity analysis by itself.
Choosing and implementing a rule
A reliable implementation starts with the integral's mathematical structure rather than a default order. The analyst should identify the domain, weight, smoothness, transformations, and required accuracy before selecting a quadrature family.
- Define the integral, its units, and the decision output it contributes to.
- Inspect the domain for infinite limits, singularities, discontinuities, and sharp changes.
- Choose the Gaussian family whose domain and weight match the integral.
- Transform the interval or random variable and retain every Jacobian and normalising factor.
- Select an initial order and obtain validated nodes and weights.
- Evaluate the integrand at each transformed node using consistent units and parameters.
- Multiply each evaluation by its weight and sum the weighted values.
- Increase the order or subdivide the interval and compare the resulting estimates.
- Validate against an analytical case or an independent integration method.
- Record the rule, order, transformation, tolerances, software, and convergence evidence.
In a spreadsheet, store one row per node with columns for the standard node, weight, transformed node, function value, and weighted contribution. The final integral should use an explicit sum of weighted contributions multiplied by the interval scale, which makes the Jacobian and every model evaluation auditable.
Validation checks for a model
Quadrature code should be tested independently of the health-economic model in which it is embedded. Simple functions with known integrals reveal incorrect nodes, weights, transformations, and normalisation before those errors affect a decision result.
- The weights for an -point Gauss–Legendre rule on should sum to .
- The rule should reproduce monomials through degree to numerical precision.
- Symmetric nodes and weights should cancel odd functions over a symmetric interval.
- Increasing the order or refining subintervals should stabilise the decision-relevant output.
- An independent adaptive integrator should give a compatible result within the required tolerance.
- Boundary cases and known discontinuities should be tested separately rather than averaged into a global check.
Validation must cover downstream results as well as the integral itself. A numerically small integration error may still matter when an incremental cost-effectiveness result is close to a decision threshold or when two strategies have nearly equal outcomes.
When Gaussian quadrature works poorly
Gaussian quadrature is most effective for smooth integrands that can be evaluated at arbitrary points. It is less suitable when only tabulated observations are available at fixed locations, because the method cannot freely choose its optimal nodes.
Performance may deteriorate with discontinuities, endpoint singularities, highly oscillatory functions, extremely narrow peaks, or expensive high-dimensional models. Appropriate remedies include splitting the interval, transforming the integrand, using a specialised weighted rule, applying adaptive integration, or selecting a different numerical method.
How to report the result
Transparent reporting allows another analyst to reproduce both the integral and its role in the model. Reporting only the final number conceals choices that can materially affect accuracy.
State the quadrature family, order, interval or distributional transformation, nodes-and-weights source, composite or adaptive strategy, stopping criterion, and validation method. Also report the model quantity being integrated, its units, any discounting convention, and whether numerical error was negligible relative to parameter uncertainty and the decision margin.
Related Concepts (3)
Library
Publications
1
Decision Modelling for Health Economic Evaluation — Briggs, Claxton & Sculpher, 1st Edition ed., 2006 (Oxford University Press)
Foundational textbook on decision-analytic modelling for economic evaluation, covering decision trees, Markov models, handling parameter and structural uncertainty, probabilistic sensitivity analysis, and value of information. Volume 1 in the Handbooks in Health Economic Evaluation series.
BookView source →
Frequently Asked Questions (6)
What is Gaussian quadrature?
A numerical integration technique approximating a definite integral using a weighted sum of function values at strategically chosen points.
Source: Press et al. 2007
What problem does Gaussian quadrature solve?
Many quantities in modelling are integrals that cannot be worked out with a formula, such as an expected value taken over a continuous distribution. Gaussian quadrature approximates such an integral numerically by evaluating the function at a small number of carefully chosen points and combining the results with matched weights. Choosing the points well lets it reach high accuracy with few evaluations, which matters when each evaluation is costly. It is a tool for computing integrals that resist exact solution. Press and colleagues (2007) describe the technique.
Source: Press et al. 2007
How does Gaussian quadrature work?
Gaussian quadrature works by approximating an integral as a sum of the function's values at specific nodes, each multiplied by a weight, where the nodes and weights are chosen so the rule is exact for polynomials up to a certain degree. Because both the positions and the weights are optimised, a Gaussian rule with a given number of points achieves higher accuracy than methods using fixed, evenly spaced points. The function need only be evaluated at the chosen nodes to obtain the approximation.
Source: Press et al. 2007
Why is Gaussian quadrature efficient?
Gaussian quadrature is efficient because it chooses the evaluation points and weights optimally, so that a rule with a given number of points integrates polynomials of as high a degree as possible exactly, and approximates smooth functions accurately with few evaluations. Methods that fix the points, such as evenly spaced rules, need more points for the same accuracy. This efficiency matters when each function evaluation is costly, so achieving accuracy with few points saves computation, which is why Gaussian quadrature is widely used.
Source: Press et al. 2007
Where is Gaussian quadrature used in modelling?
In modelling, Gaussian quadrature is used to compute integrals that arise where analytical solutions are unavailable, such as integrating over a distribution of parameters or patient characteristics, computing expected values, or evaluating likelihoods in statistical estimation. In health economic and statistical models, such integrals occur in handling uncertainty and heterogeneity, and Gaussian quadrature provides an accurate and efficient way to approximate them. It is one of several numerical integration methods chosen for their accuracy and efficiency in such calculations.
Source: Press et al. 2007
What are the limitations of Gaussian quadrature?
Gaussian quadrature is most accurate for smooth functions, and it can perform poorly for functions with sharp features, discontinuities, or singularities, where the chosen nodes may miss important behaviour. It also becomes difficult in high dimensions, since the number of points needed grows rapidly with the number of variables, a form of the curse of dimensionality. For such cases, other methods, such as adaptive quadrature or simulation-based integration, may be preferred, so the method is chosen to suit the integral.
Source: Press et al. 2007
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 23 Sep 2026
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/gaussian-quadrature
- Term code
- HE-EM-DM-037
Stable URI · Machine-readable · Resolvable · CC BY 4.0
