What is it?
Approximating by a weighted sum of samples. Trapezoid (), Simpson () and Gaussian quadrature are excellent in one or a few dimensions; in high dimensions Monte Carlo takes over.
Formulas
- composite trapezoidal rule
- composite Simpson rule
Where it shows up in computing
Adaptive quadrature (e.g.
scipy.integrate.quad) is a standard tool of scientific software.FEM assembles element matrices by Gaussian quadrature on each element.
Where it shows up in AI
Low-dimensional posteriors and marginal likelihoods can be computed by quadrature.
Where is it used?
Computing topics reachable from here, through the chain of ideas that leads to them:
This page has the essentials. A fuller treatment (intuition, formal definition, worked example) is on the way.