Gauss–Hermite quadrature
From Infogalactic: the planetary knowledge core
File:Gauss-Hermite quadrature weights.svg
Weights versus xi for four choices of n
In numerical analysis, Gauss–Hermite quadrature is a form of Gaussian quadrature for approximating the value of integrals of the following kind:
In this case
where n is the number of sample points used. The xi are the roots of the physicists' version of the Hermite polynomial Hn(x) (i = 1,2,...,n), and the associated weights wi are given by [1]
Example with change of variable
Let's take a function h which variable y is Normally distributed . The expectation of h corresponds to the following integral:
As this doesn't exactly correspond to the Hermite polynomial, we need a change of variable:
Coupled with the integration by substitution, we obtain:
leading to:
References
- ↑ Abramowitz, M & Stegun, I A, Handbook of Mathematical Functions, 10th printing with corrections (1972), Dover, ISBN 978-0-486-61272-0. Equation 25.4.46.
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
External links
- For tables of Gauss-Hermite abscissae and weights up to order n = 32 see http://www.efunda.com/math/num_integration/findgausshermite.cfm.
- Generalized Gauss–Hermite quadrature, free software in C++, Fortran, and Matlab