Algorithm Search⌘K

Theoremcore

Hoeffding-Sobol decomposition

Also called functional ANOVA decomposition.

A square integrable function of independent inputs splits uniquely into orthogonal terms of growing interaction order, whose variances add up.

Statement

Let x=(x1,…,xd)x = (x_1, \ldots, x_d) have independent components, with the product law μ=μ1⊗⋯⊗μd\mu = \mu_1 \otimes \cdots \otimes \mu_d, and let f∈L2(μ)f \in L^2(\mu). For a set u⊆{1,…,d}u \subseteq \{1, \ldots, d\}, write xux_u for the components with index in uu and x∼ux_{\sim u} for the rest.

Theorem. There is a unique family of functions fu∈L2(μ)f_u \in L^2(\mu), one for each u⊆{1,…,d}u \subseteq \{1, \ldots, d\}, such that

  1. f(x)=∑ufu(xu)f(x) = \sum_{u} f_u(x_u) for μ\mu-almost every xx, where fuf_u depends only on xux_u and f∅f_\emptyset is a constant;
  2. for every nonempty uu and every j∈uj \in u, ∫fu(xu) dμj(xj)=0\int f_u(x_u)\, d\mu_j(x_j) = 0 for almost every value of the other components of xux_u.

The terms are

fu(xu)=∑v⊆u(−1)∣u∣−∣v∣ gv(xv),gv(xv)=E[f(x)∣xv],f_u(x_u) = \sum_{v \subseteq u} (-1)^{|u| - |v|}\, g_v(x_v), \qquad g_v(x_v) = \mathbb{E}[f(x) \mid x_v],

so f∅=E[f]f_\emptyset = \mathbb{E}[f]. They are orthogonal: E[fufv]=0\mathbb{E}[f_u f_v] = 0 for u≠vu \ne v, and E[fu]=0\mathbb{E}[f_u] = 0 for u≠∅u \ne \emptyset. Hence the variances add up:

Var(f)=∑u≠∅Var(fu),E[f∣xu]=∑v⊆ufv.\mathrm{Var}(f) = \sum_{u \ne \emptyset} \mathrm{Var}(f_u), \qquad \mathbb{E}[f \mid x_u] = \sum_{v \subseteq u} f_v.

The terms with ∣u∣=1|u| = 1 are the main effects, the terms with ∣u∣=2|u| = 2 are the two-way interactions, and so on up to the single term of order dd. The ratios Var(fu)/Var(f)\mathrm{Var}(f_u)/\mathrm{Var}(f) are the Sobol indices.

In plain words

Take any model output that depends on several independent random inputs. You can write it, in exactly one way, as a constant plus a part that each input causes alone, plus a part that each pair of inputs causes together beyond their separate parts, plus a part for each triple, and so on. Each part averages to zero when you average over any one of its own inputs.

These parts do not overlap. Because of this, the spread of the output is simply the sum of the spreads of the parts. You can then say what share of the spread comes from each input, each pair or each larger group. This is the base of variance-based sensitivity analysis.

Proof

Write D={1,…,d}D = \{1, \ldots, d\}. By independence, the conditional expectation integrates out the other components: gv(xv)=∫f(xv,x∼v) dμ∼v(x∼v)g_v(x_v) = \int f(x_v, x_{\sim v})\, d\mu_{\sim v}(x_{\sim v}), where μ∼v\mu_{\sim v} is the product of the μj\mu_j for j∉vj \notin v. By Jensen's inequality for conditional expectation, E[gv2]≤E[f2]\mathbb{E}[g_v^2] \le \mathbb{E}[f^2], so each gvg_v and each fuf_u is in L2(μ)L^2(\mu).

Step 1 (the sum is f). The formula for fuf_u is the Möbius inversion of gu=∑v⊆ufvg_u = \sum_{v \subseteq u} f_v on the lattice of subsets. To see the inversion, substitute: ∑v⊆ufv=∑v⊆u∑w⊆v(−1)∣v∣−∣w∣gw=∑w⊆ugw∑w⊆v⊆u(−1)∣v∣−∣w∣\sum_{v \subseteq u} f_v = \sum_{v \subseteq u} \sum_{w \subseteq v} (-1)^{|v| - |w|} g_w = \sum_{w \subseteq u} g_w \sum_{w \subseteq v \subseteq u} (-1)^{|v| - |w|}. The inner sum is (1−1)∣u∣−∣w∣(1 - 1)^{|u| - |w|}, which is 1 for w=uw = u and 0 otherwise. So ∑v⊆ufv=gu\sum_{v \subseteq u} f_v = g_u for every uu. With u=Du = D, gD=E[f∣x]=fg_D = \mathbb{E}[f \mid x] = f, which is condition 1. It also proves E[f∣xu]=∑v⊆ufv\mathbb{E}[f \mid x_u] = \sum_{v \subseteq u} f_v.

Step 2 (zero integrals). Fix u≠∅u \ne \emptyset and j∈uj \in u. Split the subsets of uu into pairs (v,v∪{j})(v, v \cup \{j\}) with j∉vj \notin v. The function gvg_v does not depend on xjx_j, so its integral over xjx_j is gvg_v. By Fubini's theorem, the integral of gv∪{j}g_{v \cup \{j\}} over xjx_j is also gvg_v, since integrating out first xjx_j and then x∼(v∪{j})x_{\sim(v \cup \{j\})} integrates out x∼vx_{\sim v}. The two members of the pair have opposite signs (−1)∣u∣−∣v∣(-1)^{|u| - |v|} and (−1)∣u∣−∣v∣−1(-1)^{|u| - |v| - 1}, so

∫fu dμj=∑v⊆u, j∉v(−1)∣u∣−∣v∣(gv−gv)=0.\int f_u\, d\mu_j = \sum_{v \subseteq u,\ j \notin v} (-1)^{|u| - |v|}\big(g_v - g_v\big) = 0.

This is condition 2.

Step 3 (orthogonality). Let u≠vu \ne v, and pick jj in one set but not the other, say j∈u∖vj \in u \setminus v. The product fufvf_u f_v is integrable by the Cauchy-Schwarz inequality. Integrate over xjx_j first: fvf_v does not depend on xjx_j, so by Fubini's theorem and Step 2

E[fufv]=∫fv(∫fu dμj) dμ∼j=0.\mathbb{E}[f_u f_v] = \int f_v \Big(\int f_u\, d\mu_j\Big)\, d\mu_{\sim j} = 0.

With v=∅v = \emptyset and the constant f∅f_\emptyset, this gives E[fu]=0\mathbb{E}[f_u] = 0 for u≠∅u \ne \emptyset.

Step 4 (uniqueness). Let (fu′)(f'_u) be a second family with conditions 1 and 2, and put hu=fu−fu′h_u = f_u - f'_u. Each huh_u depends only on xux_u and has the zero integrals of condition 2, so Step 3 applies to the huh_u without change: they are orthogonal. By condition 1, ∑uhu=0\sum_u h_u = 0 almost everywhere. Then

0=E[(∑uhu)2]=∑uE[hu2],0 = \mathbb{E}\Big[\Big(\sum_u h_u\Big)^2\Big] = \sum_u \mathbb{E}[h_u^2],

so every hu=0h_u = 0 almost everywhere.

Step 5 (the variances add up). f−E[f]=∑u≠∅fuf - \mathbb{E}[f] = \sum_{u \ne \emptyset} f_u by Steps 1 and 3, and the terms are orthogonal with mean zero, so Var(f)=E[(∑u≠∅fu)2]=∑u≠∅E[fu2]=∑u≠∅Var(fu)\mathrm{Var}(f) = \mathbb{E}[(\sum_{u \ne \emptyset} f_u)^2] = \sum_{u \ne \emptyset} \mathbb{E}[f_u^2] = \sum_{u \ne \emptyset} \mathrm{Var}(f_u). ■\blacksquare

A worked case. Let f=x1+2x2+x1x2f = x_1 + 2x_2 + x_1x_2 with x1,x2x_1, x_2 independent and uniform on [−1,1][-1, 1]. Then g∅=0g_\emptyset = 0, g{1}=x1g_{\{1\}} = x_1, g{2}=2x2g_{\{2\}} = 2x_2 and g{1,2}=fg_{\{1,2\}} = f, so f∅=0f_\emptyset = 0, f1=x1f_1 = x_1, f2=2x2f_2 = 2x_2 and f12=x1x2f_{12} = x_1x_2. Their variances are 1/31/3, 4/34/3 and 1/91/9, which add up to Var(f)=16/9\mathrm{Var}(f) = 16/9. The shares are 3/163/16, 3/43/4 and 1/161/16.

Consequences

  • Sobol indices. The shares Su=Var(fu)/Var(f)S_u = \mathrm{Var}(f_u)/\mathrm{Var}(f) are nonnegative and add up to 1 over the 2d−12^d - 1 nonempty sets. The closed index of a group, Var(E[f∣xu])/Var(f)=∑∅≠v⊆uSv\mathrm{Var}(\mathbb{E}[f \mid x_u])/\mathrm{Var}(f) = \sum_{\emptyset \ne v \subseteq u} S_v, and the total index of input ii, ∑u∋iSu\sum_{u \ni i} S_u, follow from the identity E[f∣xu]=∑v⊆ufv\mathbb{E}[f \mid x_u] = \sum_{v \subseteq u} f_v. This is what the Saltelli sampling scheme, the Fourier amplitude sensitivity test and polynomial chaos estimate.
  • Additive models. The first order indices add up to 1 if and only if all terms with ∣u∣≥2|u| \ge 2 are zero, that is, if ff is additive.
  • Best low order approximation. Every function of at most kk of the inputs splits, by the theorem, into terms fuf_u with ∣u∣≤k|u| \le k. So the truncation ∑∣u∣≤kfu\sum_{|u| \le k} f_u is the orthogonal projection of ff onto the functions of at most kk inputs, and its error is ∑∣u∣>kVar(fu)\sum_{|u| > k} \mathrm{Var}(f_u). If this error is small for a small kk, ff has a low effective dimension in the superposition sense, which is one reason why quasi-Monte Carlo works in high dimension for some integrands.
  • The Efron-Stein inequality. E[Var(f∣x∼i)]=∑u∋iVar(fu)\mathbb{E}[\mathrm{Var}(f \mid x_{\sim i})] = \sum_{u \ni i} \mathrm{Var}(f_u), so ∑iE[Var(f∣x∼i)]=∑u∣u∣ Var(fu)≥Var(f)\sum_i \mathbb{E}[\mathrm{Var}(f \mid x_{\sim i})] = \sum_u |u|\, \mathrm{Var}(f_u) \ge \mathrm{Var}(f). In index form, the total indices add up to at least 1.
  • U-statistics. Applied to a symmetric kernel of independent and identically distributed variables, the decomposition gives the variance of a U-statistic and its leading term, which is how Hoeffding proved its asymptotic normality.
  • Polynomial chaos. If ff is expanded in products of orthonormal polynomials of the single inputs, the terms fuf_u are the sums of the products whose nonconstant factors are exactly the inputs in uu. So the Sobol indices are sums of squared coefficients.

Tightness

  • Independence is needed. Let x1,x2x_1, x_2 be standard normal with correlation ρ\rho, and f=x1+x2f = x_1 + x_2. The terms x1x_1 and x2x_2 have the zero integrals of condition 2 for the marginals, but E[x1x2]=ρ\mathbb{E}[x_1x_2] = \rho, so Var(f)=2+2ρ\mathrm{Var}(f) = 2 + 2\rho is not the sum 22 of their variances. The ratios Var(E[f∣xi])/Var(f)=(1+ρ)/2\mathrm{Var}(\mathbb{E}[f \mid x_i])/\mathrm{Var}(f) = (1 + \rho)/2 add up to 1+ρ1 + \rho, which is 1.51.5 for ρ=0.5\rho = 0.5, more than all of the variance, for an additive ff. Generalized decompositions for dependent inputs, such as that of Hooker (2007), give up either orthogonality or the simple variance split.
  • The zero integral conditions are needed for uniqueness. Without condition 2, x1+x2=(x1+c)+(x2−c)x_1 + x_2 = (x_1 + c) + (x_2 - c) for every constant cc, and the split is not unique.
  • The terms depend on the input law. On [0,1]2[0, 1]^2 with uniform inputs, x1x2=14+12(x1−12)+12(x2−12)+(x1−12)(x2−12)x_1x_2 = \frac{1}{4} + \frac{1}{2}(x_1 - \frac{1}{2}) + \frac{1}{2}(x_2 - \frac{1}{2}) + (x_1 - \frac{1}{2})(x_2 - \frac{1}{2}), with variances 1/481/48, 1/481/48 and 1/1441/144. On [−1,1]2[-1, 1]^2 the same function x1x2x_1x_2 is a pure interaction. So the indices are a property of the model together with the input law, not of the model alone.
  • Square integrability is needed. For f∉L2(μ)f \notin L^2(\mu), the variance is infinite and the split is not defined; the terms gvg_v may still exist if ff is integrable, but the orthogonality argument of Step 3 fails.

History

Hoeffding introduced the decomposition in 1948 for symmetric functions of independent variables, to find the variance and the limit law of U-statistics. Sobol used the expansion of a function on the unit cube into summands of different dimensions in his 1969 book on multidimensional quadrature, proved its uniqueness under the zero integral conditions, and in 1990 (English translation 1993) based his global sensitivity indices on it. Efron and Stein (1981) used it to prove their variance inequality for the jackknife. The name functional ANOVA comes from the analysis of variance of Fisher, of which the decomposition is the continuous form, and the double name Hoeffding-Sobol is common in the sensitivity analysis literature.

References

  1. Wassily Hoeffding, A class of statistics with asymptotically normal distribution, Annals of Mathematical Statistics 19(3), 1948, 293-325, the decomposition of a symmetric function of independent variables into uncorrelated parts of growing order, used for the variance of U-statistics
  2. I. M. Sobol, Sensitivity estimates for nonlinear mathematical models, the decomposition into summands of different dimensions on the unit cube, its uniqueness under the zero integral conditions, and the variance split
  3. Bradley Efron and Charles Stein, The jackknife estimate of variance, Annals of Statistics 9(3), 1981, 586-596, the orthogonal decomposition of a function of independent variables and the inequality of Efron and Stein that follows from it
  4. I. M. Sobol, Global sensitivity indices for nonlinear mathematical models and their Monte Carlo estimates, Mathematics and Computers in Simulation 55(1-3), 2001, 271-280, the ANOVA representation, the indices of groups of variables and the total indices

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)
WritingW0 stub
  • the lead paragraph