Algorithm Search⌘K

Techniquecore

Polynomial chaos expansion

Also called Wiener chaos expansion, PCE, Hermite chaos expansion.

Expands a random model output in polynomials orthogonal for the input distribution, so the mean and variance come from the coefficients.

A polynomial chaos expansion (PCE) writes a random model output Y=q(ξ)Y = q(\xi), a function of a vector ξ\xi of independent random inputs with law ρ\rho, as a series

q(ξ)=∑αcαΨα(ξ),cα=E[q(ξ)Ψα(ξ)],q(\xi) = \sum_{\alpha} c_\alpha \Psi_\alpha(\xi), \qquad c_\alpha = \mathbb{E}[q(\xi) \Psi_\alpha(\xi)],

in polynomials Ψα\Psi_\alpha that are orthonormal for ρ\rho: E[ΨαΨβ]=1\mathbb{E}[\Psi_\alpha \Psi_\beta] = 1 if α=β\alpha = \beta and 0 otherwise. Each Ψα\Psi_\alpha is a product of one dimensional orthogonal polynomials, Ψα(ξ)=∏kψαk(ξk)\Psi_\alpha(\xi) = \prod_k \psi_{\alpha_k}(\xi_k), so α\alpha is a multi-index of degrees. Because Ψ0=1\Psi_0 = 1, the mean is c0c_0 and the variance is ∑α≠0cα2\sum_{\alpha \neq 0} c_\alpha^2. A truncated expansion is a cheap surrogate of the model, and grouping the squared coefficients by the inputs they involve gives the Sobol indices. Wiener introduced the expansion for Gaussian inputs in 1938, with Hermite polynomials; Cameron and Martin proved its mean square convergence in 1947; Ghanem and Spanos made it a tool of engineering in 1991. The technique has two choices: the polynomial family, which generalized polynomial chaos matches to the input law, and the way to compute the coefficients, which gives the methods listed below.

In plain words

An uncertain input makes the output uncertain. Instead of running the model thousands of times and looking at the spread of results, write the output as a sum of simple polynomials of the input, chosen so that they do not overlap on average. Then each coefficient is the part of the output that its polynomial explains. The first coefficient is the average output. The squares of the others add up to the variance, and the ones that involve only one input tell you how much that input matters. For a smooth model a few dozen terms are often enough, and once you know them, the polynomial replaces the model.

When it applies

  • The inputs are finitely many independent random variables ξ1,…,ξd\xi_1, \ldots, \xi_d, or have been reduced to such variables, for example by the Karhunen-Loeve theorem for a random field. Dependent inputs are mapped to independent ones first.
  • The output has finite variance, E[q(ξ)2]<∞\mathbb{E}[q(\xi)^2] < \infty, so it lies in the Hilbert space Lρ2L^2_\rho where the expansion lives.
  • The polynomials must be dense in Lρ2L^2_\rho, or the series converges to the wrong function. For a Gaussian law this is the theorem of Cameron and Martin. For one input with all moments finite, Ernst, Mugler, Starkloff and Ullmann relate density to the determinacy of the moment problem: it holds for the uniform, Gaussian, gamma and beta laws, and it fails for polynomials in a lognormal variable.
  • The output is a smooth function of the inputs. Then the coefficients decay fast and a low degree is enough. Kinks, jumps and bifurcations make the coefficients decay slowly.
  • The number of inputs is moderate: the total degree basis of degree pp in dd inputs has (d+pp)\binom{d+p}{p} terms.

The template

Notation. ψn(k)\psi^{(k)}_n is the orthonormal polynomial of degree nn for the law of ξk\xi_k. A\mathcal{A} is a finite set of multi-indices that contains 0. The truncated expansion is qA=∑α∈AcαΨαq_{\mathcal{A}} = \sum_{\alpha \in \mathcal{A}} c_\alpha \Psi_\alpha.

  1. POLYNOMIAL-CHAOS(q, ρ, 𝒜)
  2. 1for each input k, choose the orthonormal family ψ^(k) for the law of ξ_k ▷ hole: the family (Askey scheme)
  3. 2choose the index set 𝒜 ▷ hole: total degree, hyperbolic, adaptive
  4. 3compute c_α ≈ E[q Ψ_α] for α in 𝒜 ▷ hole: Galerkin, projection, regression, l1
  5. 4mean ← c_0; variance ← Σ_{α ≠ 0} c_α^2
  6. 5S_k ← Σ over α that involve only ξ_k of c_α^2 / variance ▷ first-order Sobol indices
  7. 6return the surrogate Σ c_α Ψ_α, the moments and the indices

Line L1 is the choice that generalized polynomial chaos makes by the Askey scheme: Hermite polynomials for Gaussian inputs, Legendre for uniform, Laguerre for gamma, Jacobi for beta. Line L2 fixes the truncation; the total degree set {∣α∣≤p}\{|\alpha| \le p\} is the default. Line L3 is the main hole, and the methods below fill it. Lines L4 and L5 need no more model runs.

Best approximation (proved). In Lρ2L^2_\rho, the truncated expansion with the exact coefficients is the orthogonal projection of qq onto span⁡{Ψα:α∈A}\operatorname{span}\{\Psi_\alpha : \alpha \in \mathcal{A}\}, so it is the best approximation there:

∥q−qA∥2=∑α∉Acα2=min⁡v∥q−v∥2.\|q - q_{\mathcal{A}}\|^2 = \sum_{\alpha \notin \mathcal{A}} c_\alpha^2 = \min_{v} \|q - v\|^2.

Proof. For v=∑α∈AvαΨαv = \sum_{\alpha \in \mathcal{A}} v_\alpha \Psi_\alpha, q−qAq - q_{\mathcal{A}} is orthogonal to every Ψα\Psi_\alpha with α∈A\alpha \in \mathcal{A}, so by Pythagoras ∥q−v∥2=∥q−qA∥2+∑α∈A(cα−vα)2\|q - v\|^2 = \|q - q_{\mathcal{A}}\|^2 + \sum_{\alpha \in \mathcal{A}} (c_\alpha - v_\alpha)^2. If the Ψα\Psi_\alpha are complete, Parseval's identity ∥q∥2=∑αcα2\|q\|^2 = \sum_\alpha c_\alpha^2 gives the tail sum. □\square

The moments of line L4 follow because E[Ψα]=E[ΨαΨ0]=0\mathbb{E}[\Psi_\alpha] = \mathbb{E}[\Psi_\alpha \Psi_0] = 0 for α≠0\alpha \neq 0, so E[q]=c0\mathbb{E}[q] = c_0 and Var⁡[q]=∥q∥2−c02=∑α≠0cα2\operatorname{Var}[q] = \|q\|^2 - c_0^2 = \sum_{\alpha \neq 0} c_\alpha^2.

Classic examples

The exponential of a Gaussian. Let ξ∼N(0,1)\xi \sim N(0, 1) and q=eξq = e^\xi, a lognormal output. With the orthonormal Hermite polynomials ψn=Hen/n!\psi_n = \mathrm{He}_n / \sqrt{n!}, the generating function etx−t2/2=∑nHen(x)tn/n!e^{t x - t^2/2} = \sum_n \mathrm{He}_n(x) t^n / n! at t=1t = 1 gives cn=e1/2/n!c_n = e^{1/2} / \sqrt{n!}. The mean is c0=e1/2=1.6487c_0 = e^{1/2} = 1.6487 and the variance is e2−e=4.6708e^2 - e = 4.6708. The relative error of the degree pp truncation, ∥q−qp∥/sd⁡(q)\|q - q_p\| / \operatorname{sd}(q), is

pp cpc_p relative error
1 1.6487 0.646
2 1.1658 0.356
3 0.6731 0.173
4 0.3365 0.0761
6 0.06144 0.0115
8 0.008211 0.00133

The coefficients decay faster than any geometric rate because eξe^\xi is an entire function.

A kink. For q=∣ξ∣q = |\xi| with the same input, every odd coefficient is 0 and the relative error is 0.352, 0.226, 0.139, 0.084 and 0.050 at p=2,4,8,16,32p = 2, 4, 8, 16, 32, so it falls only like p−3/4p^{-3/4}. A function that is not smooth needs many terms, and a quantity such as the probability of q>tq > t computed from the surrogate is worse.

Intrusive coefficients. The stochastic Galerkin method puts the expansion into the model equations and asks the residual to be orthogonal to every Ψα\Psi_\alpha, which gives one coupled system for all coefficients.

Projection by quadrature. Non-intrusive spectral projection computes each cα=E[qΨα]c_\alpha = \mathbb{E}[q \Psi_\alpha] by a Gaussian quadrature rule on the input law, with one model run per node.

Regression. Regression polynomial chaos fits the coefficients by least squares to random model runs, and sparse polynomial chaos uses ℓ1\ell_1 minimization when there are fewer runs than terms.

Sensitivity. The Sobol indices of the output come from the coefficients: the total index of ξk\xi_k is the sum of cα2c_\alpha^2 over all α\alpha with αk>0\alpha_k > 0, divided by the variance (Sudret 2008).

Variations

  • Generalized polynomial chaos. Use the family orthogonal for the actual input law, from the Askey scheme or computed numerically.
  • Arbitrary polynomial chaos. Build orthonormal polynomials from the moments of data, by Gram-Schmidt or a three-term recurrence, when the law is known only through samples.
  • Index sets. Hyperbolic sets {α:(∑kαkq)1/q≤p}\{\alpha : (\sum_k \alpha_k^q)^{1/q} \le p\} with q<1q < 1 keep high degrees in one input and drop high order interactions.
  • Multi-element and local expansions. Split the input space into cells and use a separate expansion in each, for outputs with jumps.
  • Wiener chaos for random fields and processes. The original setting: a functional of Brownian motion expanded in Hermite polynomials of countably many Gaussian variables.
  • Vector outputs. Expand each output, or the leading modes of a principal component decomposition of the outputs, with the same basis.

Pitfalls

  • Wrong family. Hermite polynomials of a uniform input, or of a Gaussian input mapped from a uniform one, converge more slowly than the matched Legendre family; see generalized polynomial chaos.
  • Polynomials in a lognormal variable. They are not dense in L2L^2, so a series in them need not converge to the output. Expand in the underlying Gaussian variable instead, as in the first example.
  • The curse of dimension. (d+pp)\binom{d+p}{p} grows fast: 10 inputs at degree 5 give 3003 terms. Use sparse index sets or sparse recovery.
  • Non-smooth outputs. Kinks and jumps give slow convergence and oscillations, as in the second example.
  • Tails. Mean square convergence does not control the tails. A probability of 10−410^{-4} read from a surrogate can be wrong even when the variance is right; check with a reliability method on the true model.
  • Dependent inputs. The product basis is orthonormal only for independent inputs. Map dependent inputs to independent ones first.

Exercises

  1. Show that the orthonormal Hermite coefficients of eaξe^{a \xi} are ea2/2an/n!e^{a^2/2} a^n / \sqrt{n!}, and find the variance from them.
  2. Prove that E[q]=c0\mathbb{E}[q] = c_0 and Var⁡[q]=∑α≠0cα2\operatorname{Var}[q] = \sum_{\alpha \neq 0} c_\alpha^2 for every qq in Lρ2L^2_\rho when the basis is complete.
  3. For dd inputs and total degree pp, count the multi-indices with ∣α∣≤p|\alpha| \le p and show that the count is (d+pp)\binom{d+p}{p}.
  4. Compute the first-order Sobol indices of q=ξ1+ξ1ξ2q = \xi_1 + \xi_1 \xi_2 with independent standard normal inputs from its expansion.
  5. Explain why the odd coefficients of ∣ξ∣|\xi| vanish, and estimate the decay of the even coefficients from the error table.

References

  1. Norbert Wiener, The homogeneous chaos, American Journal of Mathematics 60(4), 1938, the homogeneous chaos, the expansion of functionals of a Gaussian random measure in multiple Wiener integrals
  2. Robert H. Cameron and William T. Martin, The orthogonal development of non-linear functionals in series of Fourier-Hermite functionals, Annals of Mathematics 48(2), 1947, the mean square convergence of the Fourier-Hermite series of every square integrable functional of Brownian motion
  3. Roger G. Ghanem and Pol D. Spanos, Stochastic Finite Elements, A Spectral Approach, revised edition, Dover, 2003, the Hermite polynomial chaos as a basis for the random solution of a finite element model, with the Karhunen-Loeve expansion of the random inputs
  4. 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 and its relation to the determinacy of the moment problem, with the lognormal counterexample
  5. Bruno Sudret, Global sensitivity analysis using polynomial chaos expansions, Reliability Engineering and System Safety 93(7), 2008, 964-979, the Sobol sensitivity indices computed as sums of squared chaos coefficients

Where this leads

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples