Techniqueadvanced
Generalized polynomial chaos
Also called Wiener-Askey polynomial chaos, gPC.
Matches the polynomial family to the input law by the Askey scheme, such as Hermite for Gaussian and Legendre for uniform inputs.
Generalized polynomial chaos (gPC) is the polynomial chaos expansion with the polynomial family chosen to match the law of each input. If has density , the expansion uses the polynomials orthogonal for the weight , so that . Wiener's original chaos used Hermite polynomials, which are orthogonal for the Gaussian law. Xiu and Karniadakis observed in 2002 that the classical families of the Askey scheme are orthogonal for other standard laws: Legendre for the uniform law, Laguerre for the gamma law, Jacobi for the beta law, and Charlier, Krawtchouk, Meixner and Hahn polynomials for discrete laws. Expanding in the matched family avoids a nonlinear change of variables, and for a smooth output it keeps the fast decay of the coefficients. For a uniform input and , the matched Legendre expansion of degree 8 has a relative error of , while a Hermite expansion of the same output after a map to a Gaussian variable has .
In plain words
A polynomial chaos expansion works best when its polynomials fit the shape of the input's distribution. Hermite polynomials fit the bell curve. If the input is spread evenly over an interval, Legendre polynomials fit it, and if it is a waiting time, Laguerre polynomials fit it. A table, the Askey scheme, gives the right family for the common distributions. With the right family, the output is a simple polynomial of the input, and the expansion converges fast. With the wrong family, you must first bend the input into the shape the polynomials expect, and the bend makes the output harder to approximate.
When it applies
- The inputs are independent, and each has a law whose moments are all finite.
- The polynomials must be dense in of that law. For laws on a bounded interval this always holds. On unbounded supports it holds for the Gaussian and gamma laws, but Ernst, Mugler, Starkloff and Ullmann show that it fails for the lognormal law, whose moments do not determine it.
- The law is one of the standard families of the Askey scheme, or its moments can be computed, so that the orthogonal polynomials can be built numerically.
- The output is smooth in each input. Then the matched expansion converges at the rate set by the smoothness of the output as a function of , without a loss from a change of variables.
The template
Notation. is the law of input . Monic orthogonal polynomials satisfy the three-term recurrence , with . The orthonormal polynomials are when is a probability law.
GPC-BASIS(ρ_1..ρ_d, 𝒜)- 1
for k ← 1 to d do - 2
if ρ_k is in the Askey table then take its family and the known recurrence a_n, b_n ▷ hole: the table entry - 3
else compute a_n, b_n from the moments or a discretization of ρ_k ▷ hole: Stieltjes, Chebyshev, Lanczos - 4
ψ^(k)_n ← the orthonormal polynomials from the recurrence - 5
Ψ_α(ξ) ← Π_k ψ^(k)_{α_k}(ξ_k) for α in 𝒜 - 6
return the basis {Ψ_α} and the Gauss rules of each ρ_k ▷ for the coefficient methods
The Askey table for the standard laws is:
| input law | support | weight | family |
|---|---|---|---|
| Gaussian | Hermite | ||
| gamma | Laguerre | ||
| beta | Jacobi | ||
| uniform | 1 | Legendre | |
| Poisson | Charlier | ||
| binomial | Krawtchouk | ||
| negative binomial | negative binomial mass | Meixner | |
| hypergeometric | hypergeometric mass | Hahn |
Other intervals follow by an affine map. The recurrence of line L3 also gives the Gauss quadrature rule of by the Golub-Welsch algorithm, which non-intrusive spectral projection and the stochastic Galerkin method use.
Orthonormality of the product basis (proved). If the inputs are independent and each family is orthonormal for its law, then .
Proof. By independence, , which is 1 if and 0 otherwise.
For dependent inputs the product is not orthogonal, which is why dependent inputs are first mapped to independent ones.
Classic examples
Legendre against Hermite for a uniform input. Let be uniform on and . The Legendre expansion uses . A Hermite expansion needs a Gaussian variable: write with and expand in Hermite polynomials of . Both expansions have the exact mean at degree 0. The relative errors , from coefficients computed by a fine quadrature, are
| Legendre in | Hermite in | |
|---|---|---|
| 1 | 0.247 | 0.298 |
| 2 | 0.208 | |
| 3 | 0.124 | |
| 4 | ||
| 6 | ||
| 8 | ||
| 10 | ||
| 20 |
The Legendre error falls faster than geometrically, because is entire. The Hermite error falls much more slowly: it drops by a factor of 10 from to , while the Legendre error drops by a factor of more than 100 for every two degrees. The nonlinear map makes the output a harder function to approximate by polynomials, even though it is the same random variable.
Gaussian inputs. For the matched family is Hermite, which is the original Wiener chaos; the polynomial chaos expansion page expands in it. The Gauss rules are the Gauss-Hermite rules.
Stochastic Galerkin and collocation. The stochastic Galerkin method with Legendre chaos for uniform coefficients of a diffusion equation, and the stochastic collocation method on the nodes of the matched law, are the standard gPC solvers of Xiu and Karniadakis and later authors.
Chebyshev weights. For the arcsine law on , with density , the matched family is the Chebyshev polynomials, a Jacobi case with .
Variations
- Arbitrary polynomial chaos. Build the recurrence from moments of data or a histogram when the law has no closed form. The moment map is badly conditioned, so the discretized Stieltjes or Lanczos procedures are preferred for high degrees.
- Mixed families. Each input gets its own family, for example Hermite for a Gaussian load and Legendre for a uniform stiffness.
- Multi-element gPC. Split the support into cells and build the orthogonal polynomials of the restricted law in each cell, for outputs with jumps or for laws with long tails.
- Isoprobabilistic maps. If the family of the law is unknown or not dense, map the input to a Gaussian or uniform variable and expand in that variable, as with the lognormal law.
- Dependent inputs. Use a Rosenblatt map to independent variables, or a basis orthonormalized by Gram-Schmidt for the joint law.
Pitfalls
- Polynomials in a lognormal variable. The lognormal law is not determined by its moments, and its orthogonal polynomials are not dense in , so an expansion in them need not converge to the output. Write the lognormal input as and expand in Hermite polynomials of .
- A mismatched family. A Hermite expansion of a bounded input converges slowly, as the table shows, and its truncations have unbounded tails that the true output does not have.
- Parameter conventions. The beta law and the Jacobi weight use different parameter names; the Jacobi weight corresponds to a beta law with shape parameters and on . Check the normalization numerically.
- Unnormalized polynomials. Formulas for the mean and variance from coefficients assume orthonormal polynomials. Standard Legendre have for the uniform law on .
- Ill-conditioned moments. Building polynomials from raw moments loses digits fast as the degree grows, because the map from moments to recurrence coefficients is badly conditioned. Use a stable recurrence method.
Exercises
- Show that are orthonormal for the uniform law on , and give the orthonormal family for the uniform law on .
- Find the first three orthonormal polynomials for the exponential law with mean 1, and check that they are Laguerre polynomials up to sign.
- Compute the Legendre coefficients of for and compare the variance from them with .
- Compute the Hermite coefficients of by quadrature up to degree 20, and fit a rate to the error table.
- A model has a Gaussian input and a Poisson input. Write the six basis functions of the total degree 2 product basis.
References
- Dongbin Xiu and George Em Karniadakis, The Wiener-Askey polynomial chaos for stochastic differential equations, SIAM Journal on Scientific Computing 24(2), 2002, 619-644, the correspondence between the laws of the inputs and the orthogonal polynomials of the Askey scheme, and the exponential convergence of the matched expansions in examples
- Dongbin Xiu, Numerical Methods for Stochastic Computations, A Spectral Method Approach, Princeton University Press, 2010, the chapters on orthogonal polynomials, generalized polynomial chaos in one and several variables, and the Galerkin and collocation methods built on it
- Oliver G. Ernst, Antje Mugler, Hans-Jorg Starkloff and Elisabeth Ullmann, On the convergence of generalized polynomial chaos expansions, ESAIM Mathematical Modelling and Numerical Analysis 46(2), 2012, 317-339, the density of polynomials in the space of square integrable functions of a random variable, the determinacy of the moment problem, and the failure of density for the lognormal law
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag A8KFH6 Edit this page History Report an error Markdown