Variance components and generalized Sobol' indices

Art B. Owen

Introduction

Sobol’ indices are certain sums of variance components in an ANOVA decomposition. They are used to understand the importance of various subsets of variables in global sensitivity analysis. Saltelli et al., (2008) give an extensive introduction to Sobol’ indices and variance based methods in general for investigating computer models. Linear combinations of Sobol’ indices are also used to measure the effective dimension of functions for quasi-Monte Carlo integration.

This article reviews Sobol’ indices for a statistical audience, relating them to well known ideas in experimental design, particularly crossed random effects. Moving from physical experiments to computer experiments brings important changes in both the costs and goals of the analysis. In physical experiments one may be interested in all components of variance, or at least all of the low order ones. In computer experiments interest centers instead on sums of variance components. While the ANOVA for computer experiments is essentially the same as that for physical ones, the experimental designs are different.

Of particular interest are what are known as ‘fixing methods’ for estimation of Sobol’ indices. These evaluate the function at two points. Those two points have identical random values for some of the input components (the ones that are ‘fixed’) but have independently sampled values for the other components. Sample variances and covariances of point pairs are then used to estimate the Sobol’ indices.

As a basic example, let ff be a deterministic function on 5^{5}. One kind of Sobol’ index estimate takes a form like

An example of the second kind of Sobol’ index is

The sampling design to estimate (2) is that same as that for (1), but the quantity estimated is now the sum of all variance components that involve any of the first three variables. The difference between (1) and (2) is that the latter includes interactions between the first three and last two variables while the former excludes them.

The great convenience of Sobol’s measures is that they can be directly estimated by integration, without explicitly estimating all of the necessary interaction effects, squaring them, integrating their squares and summing those integrated squared estimates. Sobol’ provides a kind of tomography: integrals of cross-products of ff reveal facts about the internal structure of ff.

The goal of this paper is to exhibit the entire space of linear combinations of cross-moments of function evaluations with some variables fixed and others independently sampled. Such a linear combination is a generalized Sobol’ index, or GSI. Then, using this space of functions, we make a systematic search for estimators of interpretable quantities with desirable computational or statistical properties.

This systematic approach yields some new and useful estimators. Some have reduced cost compared to previously known ones. Some have reduced sampling variance. It also encompasses some earlier work. In particular, an efficient strategy to estimate all two factor interaction mean squares due to Saltelli, (2002) appears as a special case.

Section 2 introduces some notation and reviews the ANOVA of d^{d} and Sobol’ indices. A compact notation is necessary to avoid cumbersome expressions with many indices. Section 3 defines the generalized Sobol’ indices and gives an expression for their value. It also defines several special classes of GSI based on interpretability, computational efficiency, or statistical considerations. These are contrasts, squares, sums of squares and bilinear GSIs. Section 4 shows that many GSIs including the Sobol’ index (1) cannot be estimated by unbiased sums of squares. Section 5 considers estimation of a specific variance component for a proper subset containing kk of the variables. A direct approach requires 2k2^{k} function evaluations per Monte Carlo sample, while a bilinear estimate reduces the cost to 2⌊k/2⌋+2k−⌊k/2⌋2^{\lfloor k/2\rfloor}+2^{k-\lfloor k/2\rfloor}. That section also introduces a bilinear estimate for the superset importance measure defined in Section 2. Section 6 considers some GSIs for high dimensional problems. It includes a contrast GSI which estimates the mean square dimension of a function of dd variables using only d+1d+1 function evaluations per Monte Carlo trial as well as some estimators of the mean dimension in the truncation sense. Section 7 presents a bias correction for GSIs that are not contrasts. Section 8 makes some comparisons among alternative methods and Section 9 has conclusions.

Background and notation

The analysis of variance originates with Fisher and Mackenzie, (1923). It partitions the variance of a quantity among all non-empty subsets of factors, defined on a finite Cartesian grid.

The ANOVA was generalized by Hoeffding, (1948) to functions in L^{2}^{d} for integer d⩾1d\geqslant 1. That generalization extends the one for factorial experimental designs in a natural way, and can be applied to L2L^{2} functions on any tensor product domain. For d=∞d=\infty, see Owen, (1998).

The ANOVA of L^{2}^{d} is also attributed to Sobol’, (1969). For historical interest, we note that Sobol’ used a different approach than Hoeffding. He represented ff by an expansion in a complete orthonormal basis (tensor products of Haar functions) and gathered together terms corresponding to each subset of variables. That is, where Hoeffding has an analysis, Sobol’ has a synthesis.

We use x=(x1,x2,…,xd)\boldsymbol{x}=(x_{1},x_{2},\dots,x_{d}) to represent a typical point in d^{d}. The set of indices is D={1,2,…,d}{\cal D}=\{1,2,\dots,d\}. We write u⊂vu\subset v to denote a proper subset, that is u⊊vu\subsetneq v. For u⊆Du\subseteq{\cal D} we use ∣u∣|u| to denote the cardinality of uu, and either −u-u or ucu^{c} (depending on typographical clarity) to represent the complementary set D−u{\cal D}-u. The expression u+vu+v means u∪vu\cup v where uu and vv are understood to be disjoint.

The ANOVA decomposition represents f(x)f(\boldsymbol{x}) via

where the functions fuf_{u} are defined recursively by

In statistical language, uu is a set of factors and fuf_{u} is the corresponding effect. We get fuf_{u} by subtracting sub-effects of fuf_{u} from ff and then averaging the residual over xjx_{j} for j∉uj\not\in u.

This section introduces the Sobol’ indices that we generalize, and mentions some of the methods for their estimation.

There are various ways that one might define the importance of a variable xjx_{j}. The importance of variable j∈{1,…,d}j\in\{1,\dots,d\} is due in part to σ{j}2\sigma^{2}_{\{j\}}, but also due to σu2\sigma^{2}_{u} for other sets uu with j∈uj\in u. More generally, we may be interested in the importance of xu\boldsymbol{x}_{u} for a subset uu of the variables.

Sobol’, (1993) introduced two measures of variable subset importance, which we denote

The upper index counts every ANOVA component that touches the set uu in any way. If τ‾u2\underline{\tau}_{u}^{2} is large then the subset uu is clearly important. If τ‾u2\overline{\tau}_{u}^{2} is small, then the subset uu is not important and Sobol’ et al., (2007) investigate the effects of fixing such xu\boldsymbol{x}_{u} at some specific values. The second measure includes interactions between xu\boldsymbol{x}_{u} and x−u\boldsymbol{x}_{-u} while the first measure does not.

These Sobol’ indices satisfy τ‾u2⩽τ‾u2\underline{\tau}_{u}^{2}\leqslant\overline{\tau}_{u}^{2} and τ‾u2+τ‾−u2=σ2\underline{\tau}_{u}^{2}+\overline{\tau}_{-u}^{2}=\sigma^{2}. Sobol’ usually normalizes these quantities, yielding global sensitivity indices τ‾u2/σ2\underline{\tau}_{u}^{2}/\sigma^{2} and τ‾u2/σ2\overline{\tau}_{u}^{2}/\sigma^{2}. In this paper we work mostly with unnormalized versions.

Sobol’s original work was published in Sobol’, (1990) before being translated in Sobol’, (1993). Ishigami and Homma, (1990) independently considered computation of τ‾{j}2\underline{\tau}^{2}_{\{j\}}.

To estimate Sobol’ indices, one pairs the point x\boldsymbol{x} with a hybrid point y\boldsymbol{y} that shares some but not all of the components of x\boldsymbol{x}. We denote the hybrid point by y=xu:z−u\boldsymbol{y}=\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u} where yj=xjy_{j}=x_{j} for j∈uj\in u and yu=zjy_{u}=z_{j} for j∉uj\not\in u.

From the ANOVA properties one can show directly that

Mauntz, (2002) and Kucherenko et al., (2011) use an estimator for τ‾u2\underline{\tau}^{2}_{u} derived as a sample version of the identity

There are 2d−12^{d}-1 variance components σu2\sigma^{2}_{u} as well as 2d−12^{d}-1 Sobol’ indices τ‾u2\underline{\tau}^{2}_{u} and τ‾u2\overline{\tau}^{2}_{u} of each type. We can recover any desired σu2\sigma^{2}_{u} as a linear combination of τ‾v2\underline{\tau}^{2}_{v}. For example σ{1,2,3}2=τ‾{1,2,3}2−τ‾{1,2}2−τ‾{1,3}2−τ‾{2,3}2+τ‾{1}2+τ‾{2}2+τ‾{3}2\sigma^{2}_{\{1,2,3\}}=\underline{\tau}^{2}_{\{1,2,3\}}-\underline{\tau}^{2}_{\{1,2\}}-\underline{\tau}^{2}_{\{1,3\}}-\underline{\tau}^{2}_{\{2,3\}}+\underline{\tau}^{2}_{\{1\}}+\underline{\tau}^{2}_{\{2\}}+\underline{\tau}^{2}_{\{3\}}. More generally, we have the Moebius-type relation

Because ff is defined on a unit cube and can be computed at any desired point, methods other than simple Monte Carlo can be applied. Quasi-Monte Carlo (QMC) sampling (see Niederreiter, (1992)) can be used instead of plain Monte Carlo, and Sobol’, (2001) reports that QMC is more effective. For functions ff that are very expensive, a Bayesian numerical analysis approach (Oakley and O’Hagan,, 2004) based on a Gaussian process model for ff is an attractive way to compute Sobol’ indices.

2 Related indices

Another measure of the importance of xu\boldsymbol{x}_{u} is the superset importance measure

used by Hooker, (2004) to quantify the effect of dropping all interactions containing the set uu of variables from a black box function.

Sums of ANOVA components are also used in quasi-Monte Carlo sampling. QMC is, in general, more effective on integrands ff that are dominated by their low order ANOVA components. Two versions of ff that are equivalent in Monte Carlo sampling may behave quite differently in QMC. For example the basis used to sample Brownian paths has been seen to affect the accuracy of QMC integrals (Caflisch et al.,, 1997; Acworth et al.,, 1997; Imai and Tan,, 2002).

The function ff has effective dimension ss in the superposition sense (Caflisch et al.,, 1997), if ∑∣u∣⩽sσu2⩾(1−ϵ)σ2\sum_{|u|\leqslant s}\sigma^{2}_{u}\geqslant(1-\epsilon)\sigma^{2}. Typically ϵ=0.01\epsilon=0.01 is used as a default. Similarly, ff has effective dimension ss in the truncation sense (Caflisch et al.,, 1997), if ∑u⊆{1,2,…,s}σu2=τ‾{1,2,…,s}2⩾(1−ϵ)σ2\sum_{u\subseteq\{1,2,\dots,s\}}\sigma^{2}_{u}=\underline{\tau}^{2}_{\{1,2,\dots,s\}}\geqslant(1-\epsilon)\sigma^{2}.

It is much easier to estimate the mean dimension (superposition sense) defined as ∑u∣u∣σu2/σ2\sum_{u}|u|\sigma^{2}_{u}/\sigma^{2} than the effective dimension, because the mean dimension is a linear combination of variance components. The mean dimension also offers better resolution than effective dimension. For instance, two functions having identical effective dimension 22 might have different mean dimensions, say 1.031.03 and 1.051.05. Similarly one can estimate a mean square dimension ∑u∣u∣2σu2/σ2\sum_{u}|u|^{2}\sigma^{2}_{u}/\sigma^{2}:

This follows from Theorem 2 of Liu and Owen, (2006). ∎

Generalized Sobol’ indices

Here we consider a general family of quadratic indices similar to those of Sobol’. The general form of these indices is

for coefficients Ωuv\Omega_{uv}. If we think of f(x)f(\boldsymbol{x}) as being the standard evaluation, then the generalized Sobol’ indices (9) are linear combinations of all possible second order moments of ff based on fixing two subsets, uu and vv, of input variables.

The Sobol’ matrix is symmetric. It also satisfies Θuv=Θucvc\Theta_{uv}=\Theta_{u^{c}v^{c}}. Theorem 2 gives the general form of a Sobol’ matrix entry.

Equation (9) describes a 22d2^{2d} dimensional family of linear combinations of pairwise function products. There are only 2d−12^{d}-1 ANOVA components to estimate. Accordingly we are interested in special cases of (9) with desirable properties.

A generalized Sobol’ index is a square if it takes the form

Squares and sums of squares have the advantage that they are non-negative and hence avoid the problems associated with negative sample variance components. A square GSI can be written compactly as tr(λλTΘ)=λTΘλ{\text{tr}}(\lambda\lambda^{\mathsf{T}}\Theta)=\lambda^{\mathsf{T}}\Theta\lambda where λ\lambda is a vector of 2d2^{d} coefficients. If λu\lambda_{u} is sparse (mostly zeros) then a square index is inexpensive to compute.

A generalized Sobol’ index is bilinear if it takes the form

Bilinear estimates have the advantage of being rapidly computable. If there are ∥λ∥0\|\lambda\|_{0} nonzero elements in λ\lambda and ∥γ∥0\|\gamma\|_{0} nonzero elements in γ\gamma then the integrand in a bilinear generalized Sobol’ index can be computed with at most ∥γ∥0+∥λ∥0\|\gamma\|_{0}+\|\lambda\|_{0} function calls and sometimes fewer (see Section 3.3) even though it combines values from ∥γ∥0×∥λ∥0\|\gamma\|_{0}\times\|\lambda\|_{0} function pairs. We can write the bilinear GSI as tr(λγTΘ)=γTΘλ{\text{tr}}(\lambda\gamma^{\mathsf{T}}\Theta)=\gamma^{\mathsf{T}}\Theta\lambda. The sum of a small number of bilinear GSIs is a low rank GSI.

A GSI is simple if it is written as a linear combination of entries in just one row or just one column of Θ\Theta, such as

It is convenient if the chosen row or column corresponds to uu or vv equal to ∅\varnothing or D{\cal D}. Any linear combination ∑uδu(μ2+τ‾u2)\sum_{u}\delta_{u}(\mu^{2}+\underline{\tau}^{2}_{u}) of variance components and μ2\mu^{2} can be written as a simple GSI taking λu=δ−u\lambda_{u}=\delta_{-u}. There are computational advantages to some non-simple representations.

2 Sample GSIs

We can derive a matrix expression for the estimator by introducing the vectors

The vectors FiF_{i} have covariance Θ−μ2\Theta-\mu^{2}. Then

3 Cost per (𝒙,𝒛)𝒙𝒛(\boldsymbol{x},\boldsymbol{z}) pair

We suppose that the cost of computing a sample GSI is dominated by the number of function evaluations required. If the GSI requires C(Ω)C(\Omega) (defined below) distinct function evaluations per pair (xi,zi)(\boldsymbol{x}_{i},\boldsymbol{z}_{i}) for i=1,…,ni=1,\dots,n, then the cost of the sample GSI is proportional to nC(Ω)nC(\Omega).

If the row Ωuv\Omega_{uv} for given uu and all values of vv is not entirely zero then we need the value f(xu:z−u)f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u}). Let

indicate whether f(xu:z−u)f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u}) is needed as the ‘left side’ of a product f(xu:z−u)f(xv:z−v)f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u})f(\boldsymbol{x}_{v}{:}\boldsymbol{z}_{-v}). The number of function evaluations required for the GSI tr(ΩTΘ){\text{tr}}(\Omega^{\mathsf{T}}\Theta) is:

We count the number of rows of Ω\Omega for which f(xu:z−u)f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u}) is needed, add the number of columns and then subtract the number of double counted sets uu.

Squares and sums of squares

A square or sum of squares yields a nonnegative estimate. An unbiased and nonnegative estimate is especially valuable. When the true GSI is zero, an unbiased nonnegative estimate will always return exactly zero as Fruth et al., (2012) remark. The Sobol’ index τ‾u2\overline{\tau}^{2}_{u} is of square form, but τ‾u2\underline{\tau}^{2}_{u} is not. Theorem 1 leads to a sum of squares for ∑u∣u∣σu2\sum_{u}|u|\sigma^{2}_{u}.

Liu and Owen, (2006) express the superset importance measure as a square:

Fruth et al., (2012) find that a sample version of (11) is the best among four estimators of Υu2\Upsilon^{2}_{u}.

In classical crossed mixed effects models (Montgomery,, 1998) every ANOVA expected mean square has a contribution from the highest order variance component, typically containing measurement error. A similar phenomenon applies for Sobol’ indices. In particular, no square GSI or sum of squares will yield τ‾u2\underline{\tau}^{2}_{u} for ∣u∣<d|u|<d, as the next proposition shows.

It is enough to show this for R=1R=1 with λ1,u=λu\lambda_{1,u}=\lambda_{u}. First,

Next, the only elements of Θ\Theta containing σD2\sigma^{2}_{{\cal D}} are the diagonal ones, equal to σ2\sigma^{2}. Therefore the coefficient of σD2\sigma_{{\cal D}}^{2} in (12) is ∑uλu2\sum_{u}\lambda^{2}_{u}. ∎

For a square or sum of squares to be free of σD2\sigma^{2}_{{\cal D}} it is necessary to have ∑r=1R∑uλr,u2=0\sum_{r=1}^{R}\sum_{u}\lambda_{r,u}^{2}=0. That in turn requires all the λr,u\lambda_{r,u} to vanish, leading to the degenerate case Ω=0\Omega=0. As a result, we cannot get an unbiased sum of squares for any GSI that does not include σD2\sigma^{2}_{{\cal D}}. In particular, τ‾u2\underline{\tau}^{2}_{u} cannot have an unbiased sum of squares estimate for ∣u∣<d|u|<d.

Specific variance components

For any w⊆Dw\subseteq{\cal D} the variance component for ww is given in (5) as an alternating sum of 2∣w∣2^{|w|} lower Sobol’ indices. It can thus be estimated by a simple GSI,

where λv=(−1)∣w−v∣\lambda_{v}=(-1)^{|w-v|}. The cost of this simple GSI is C=2∣w∣+1∣w∣<dC=2^{|w|}+1_{|w|<d}. If w=Dw={\cal D}, then f(x)f(\boldsymbol{x}) appears twice, but otherwise it is only used once. The GSI can also be estimated by some bilinear GSIs using fewer function evaluations as we show here.

We begin by noting that for u,v⊆wu,v\subseteq w,

To illustrate, suppose that w={1,2,3}w=\{1,2,3\}. Let u,v⊆wu,v\subseteq w. Then we can work out a 2×82\times 8 submatrix of the Sobol’ matrix using

where we omit braces and commas from the set notation.

It follows now that we can use a non-simple bilinear GSI, λTΘγ\lambda^{\mathsf{T}}\Theta\gamma, where λ\lambda and γ\gamma are given by

with uu and v−wcv-w^{c} given along the top labels in (17) while the remaining 2d−82^{d}-8 elements of λ\lambda and γ\gamma are all zero. Specifically, the expected value of

is σ{1,2,3}2\sigma^{2}_{\{1,2,3\}}. While equation (13) for w={1,2,3}w=\{1,2,3\} requires 99 function evaluations per (x,z)(\boldsymbol{x},\boldsymbol{z}) pair, equation (18) only requires 66 function evaluations. For ∣w∣<d|w|<d, the u=∅u=\varnothing and v=∅v=\varnothing evaluations are different due to the presence of wcw^{c}, so no evaluations are common to both the λ\lambda and γ\gamma expressions. There are also two variants of (17) that single out variables 22 and 33 respectively, analogously to the way that (18) treats variable 11.

In general, bilinear GSIs let us estimate σw2\sigma^{2}_{w} using 2k+2∣w∣−k2^{k}+2^{|w|-k} function evaluations per (x,z)(\boldsymbol{x},\boldsymbol{z}) pair for integer 1⩽k<∣w∣1\leqslant k<|w| instead of the 2∣w∣2^{|w|} evaluations that a simple GSI requires.

Let ww be a nonempty subset of D{\cal D} for d⩾1d\geqslant 1. Let f\in L^{2}^{d}. Choose w1⊆ww_{1}\subseteq w and put w2=w−w1w_{2}=w-w_{1}. Then

after a change of variable from uju_{j} to wj−ujw_{j}-u_{j} for j=1,2j=1,2. We may write the above as

Consider the set v⊆Dv\subseteq{\cal D}. The coefficient of σv2\sigma^{2}_{v} in (20) is if v∩wc≠∅v\cap w^{c}\neq\varnothing. Otherwise, we may write v=v1+v2v=v_{1}+v_{2} where vj⊆wjv_{j}\subseteq w_{j}, j=1,2j=1,2. Then the coefficient of σv2\sigma^{2}_{v} in (20) is

These alternating sums over uju_{j} with vj⊆uj⊆wjv_{j}\subseteq u_{j}\subseteq w_{j} equal 11 if vj=wjv_{j}=w_{j} but otherwise they are zero. Therefore the coefficient of σv2\sigma^{2}_{v} in (20) is 11 if v=wv=w and is otherwise. ∎

We can use Theorem 3 to get a bilinear (but not square) estimator of σD2=ΥD2\sigma^{2}_{{\cal D}}=\Upsilon^{2}_{{\cal D}}. A similar argument to that in Theorem 3 yields a bilinear estimator of superset importance Υw2\Upsilon^{2}_{w} for a general set ww.

Let ww be a nonempty subset of D{\cal D} for d⩾1d\geqslant 1. Let f\in L^{2}^{d}. Choose w1⊆ww_{1}\subseteq w and put w2=w−w1w_{2}=w-w_{1}. Then

Now write v=(v∩wc)+v1+v2v=(v\cap w^{c})+v_{1}+v_{2} with vj⊆wjv_{j}\subseteq w_{j}, j=1,2j=1,2. The coefficient of σv2\sigma^{2}_{v} is

which vanishes unless w1=v1w_{1}=v_{1} and otherwise equals 11. Therefore the coefficient of σv2\sigma^{2}_{v} is 11 if v⊇wv\supseteq w and is otherwise. ∎

The cost of the estimator (21) is C=2∣w1∣+2∣w2∣−1C=2^{|w_{1}|}+2^{|w_{2}|}-1, because the evaluation f(xwc:zw)f(\boldsymbol{x}_{w^{c}}{:}\boldsymbol{z}_{w}) can be used for both u1=∅u_{1}=\varnothing and u2=∅u_{2}=\varnothing.

GSIs with O​(d)𝑂𝑑O(d) function evaluations per pair

Some problems, like computing mean dimension, can be solved with O(d)O(d) different integrals instead of the O(2d)O(2^{d}) required to estimate all ANOVA components. In this section we enumerate what can be estimated by certain GSIs based on only O(d)O(d) carefully chosen function evaluations per (xi,zi)(\boldsymbol{x}_{i},\boldsymbol{z}_{i}) pair.

and hence the accessible elements of the Sobol’ matrix are:

Using (23) we can construct estimates of ∑u∣u∣σu2=∑jτ‾{j}2\sum_{u}|u|\sigma^{2}_{u}=\sum_{j}\overline{\tau}^{2}_{\{j\}} and ∑∣u∣=1σu2=∑jτ‾{j}2\sum_{|u|=1}\sigma^{2}_{u}=\sum_{j}\underline{\tau}^{2}_{\{j\}} at cost C=d+1C=d+1. Simple GSI estimates are available using u=∅u=\varnothing and either v={j}v=\{j\} or v=−{j}v=-\{j\} for j=1,…,dj=1,\dots,d. More interestingly, it is possible to compute all d(d−1)/2d(d-1)/2 indices τ‾{j,k}2\overline{\tau}^{2}_{\{j,k\}} along with all τ‾{j}2\underline{\tau}^{2}_{\{j\}} and τ‾{j}2\overline{\tau}^{2}_{\{j\}} for j=1,…,dj=1,\dots,d, at total cost C=d+2C=d+2 as was first shown by Saltelli, (2002, Theorem 1). Given C=2d+2C=2d+2 evaluations one can also compute all of the τ‾{j,k}2\underline{\tau}^{2}_{\{j,k\}} indices by pairing up u={j}u=\{j\} and v=−{k}v=-\{k\} (Saltelli,, 2002, Theorem 2).

For the remainder of this section we present some contrast estimators. The estimate

is both a contrast and a sum of squares. It has expected value ∑u∣u∣σu2\sum_{u}|u|\sigma^{2}_{u} and cost C=d+1C=d+1.

Next, to estimate ∑u1∣u∣=1σu2\sum_{u}1_{|u|=1}\sigma^{2}_{u} by a contrast using d+2d+2 function evaluations per (xi,zi)(\boldsymbol{x}_{i},\boldsymbol{z}_{i}) pair, let

Then the contrast ∑uλuf(xu:z−u)f(z)\sum_{u}\lambda_{u}f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u})f(\boldsymbol{z}) has expected value

The total of second order interactions can be estimated with a contrast at cost C=2d+2C=2d+2. Taking

Thus λTΘ^γ/2\lambda^{\mathsf{T}}\widehat{\Theta}\gamma/2 estimates ∑∣u∣=2σu2\sum_{|u|=2}\sigma^{2}_{u}, at cost C=2d+2C=2d+2.

2 Consecutive index GSIs

A second way to reduce function evaluations to O(d)O(d) is to consider only subsets uu and vv of the form {1,2,…,j}\{1,2,\dots,j\} and {j+1,…,d}\{j+1,\dots,d\}. We write these as (0,j](0,j] and (j,d](j,d] respectively. If f(x)f(\boldsymbol{x}) is the result of a process evolving in discrete time then (0,j](0,j] represents the effects of inputs up to time jj and (j,d](j,d] represents those after time jj. A small value of τ‾(0,j]2\overline{\tau}^{2}_{(0,j]} then means that the first jj inputs are nearly forgotten while a large value for τ‾(0,j]2\underline{\tau}^{2}_{(0,j]} means the initial conditions have a lasting effect.

and hence the accessible elements of the Sobol’ matrix are μ2+τ‾u2\mu^{2}+\underline{\tau}^{2}_{u} for the sets uu in the array above.

The same strategies used on singletons and their complements can be applied to consecutive indices. They yield interesting quantities related to mean dimension in the truncation sense. To describe them, we write ⌊u⌋=min⁡{j∣j∈u}\lfloor u\rfloor=\min\{j\mid j\in u\} and ⌈u⌉=max⁡{j∣j∈u}\lceil u\rceil=\max\{j\mid j\in u\} for the least and greatest indices in the non-empty set uu.

Let f\in L^{2}^{d} have variance components σu2\sigma^{2}_{u}. Then

Since these are contrasts, we may suppose that μ=0\mu=0. Then, using (25)

Next, Θ∅,D=0\Theta_{\varnothing,{\cal D}}=0, and

Combining these yields the first result. The second is similar. ∎

Using Proposition 2 we can obtain an estimate of ∑u⌈u⌉σu2/σ2\sum_{u}\lceil u\rceil\sigma^{2}_{u}/\sigma^{2}, the mean dimension of ff in the truncation sense. We also obtain a contrast

which measures the extent to which indices at distant time lags contribute important interactions.

We can also construct GSIs based on pairs of segments. For example,

Bias corrected GSIs

When we are interested in estimating a linear combination of variance components, then the corresponding GSI is a contrast. Sometimes estimating a contrast requires an additional function evaluation per (xi,zi)(\boldsymbol{x}_{i},\boldsymbol{z}_{i}) pair. For instance the unbiased estimator (4) of τ‾u2\underline{\tau}^{2}_{u} requires three function evaluations per pair compared to the two required by the biased estimator of Janon et al., (2012).

Proposition 3 supplies a bias-corrected version of Janon et al.’s (2011) estimator of τ‾u2\underline{\tau}^{2}_{u} using only two function evaluations per (xi,zi)(\boldsymbol{x}_{i},\boldsymbol{z}_{i}) pair.

is an unbiased estimate of ∑u∑vΩuv(Θuv−μ2)\sum_{u}\sum_{v}\Omega_{uv}(\Theta_{uv}-\mu^{2}).

This follows by applying Proposition 3 term by term. ∎

The computational burden for the unbiased estimator in Proposition 4 is not much greater than that for the possibly biased estimator tr(ΩTΘ^){\text{tr}}(\Omega^{\mathsf{T}}\widehat{\Theta}). It requires no additional function evaluations. The quantities μ^u\hat{\mu}_{u} and su2s_{u}^{2} need only be computed for sets u⊆Du\subseteq{\cal D} for which Ωuv\Omega_{uv} or Ωvu\Omega_{vu} is nonzero for some vv. If Ω\Omega is a sum of bilinear estimators then the −∑u∑vΩuvμ^uμ^v/2-\sum_{u}\sum_{v}\Omega_{uv}\hat{\mu}_{u}\hat{\mu}_{v}/2 cross terms also have that property.

The bias correction in estimator (26) complicates calculation of confidence intervals for tr(ΩTΘ){\text{tr}}(\Omega^{\mathsf{T}}\Theta). Jackknife or bootstrap methods will work but confidence intervals for contrasts are much simpler because the estimators are simple averages.

Comparisons

There is a 22d2^{2d}–dimensional space of GSIs but only a 2d−12^{d}-1–dimensional space of linear combinations of variance components to estimate. As a result there is more than one way to estimate a desired linear combination of variance components.

As a case in point the Sobol’ index τ‾u2\underline{\tau}^{2}_{u} can be estimated by either the original method or by the contrast (4). Janon et al., (2012) prove that their estimate of μ^\hat{\mu} improves on the simpler one and establish asymptotic efficiency for their estimator within a class of methods based on exchangeability, but that class does not include the contrast. Similarly, inspecting the Sobol’ matrix yields at least four ways to estimate the variance component σ{1,2,3}2\sigma^{2}_{\{1,2,3\}}, and superset importance can be estimated via a square or a bilinear term.

Here we consider some theoretical aspects of the comparison, but they do not lead to unambiguous choices. Next we consider a small set of empirical investigations.

Ideally we would like to choose Ω\Omega to minimize the variance of the sample GSI. But, the variance of a GSI depends on fourth moments of ANOVA contributions which are ordinarily unknown and harder to estimate than the variance components themselves.

The same issue comes up in the estimation of variance components, where MINQE (minimum norm quadratic estimation) estimators were proposed in a series of papers by C. R. Rao in the 1970s. For a comprehensive treatment see Rao and Kleffe, (1988) who present MINQUE and MINQIE versions using unbiasedness or invariance as constraints. The idea in MINQUE estimation is to minimize a convenient quadratic norm as a proxy for the variance of the estimator.

The GSI context involves variance components for crossed random effects models with interactions of all orders. Even the two way crossed random effects model with an interaction is complicated enough that no closed form estimator appears to be known for that case. See Kleffe, (1980).

We can however generalize the idea behind MINQE estimators to the GSI setting. Writing

Using the proxy for variance suggests choosing the estimator which minimizes C(Ω)×V(Ω)C(\Omega)\times V(\Omega). The contrast estimator (4) of τ‾u2\underline{\tau}^{2}_{u} has C(Ω)×V(Ω)=3×2=6C(\Omega)\times V(\Omega)=3\times 2=6 while the original Sobol’ estimator has C(Ω)×V(Ω)=2×1=2C(\Omega)\times V(\Omega)=2\times 1=2. The estimators (13) and (18) for σ{1,2,3}2\sigma^{2}_{\{1,2,3\}} both have V(Ω)=8V(\Omega)=8. The former has cost C(Ω)=9C(\Omega)=9, while the latter costs C(Ω)=6C(\Omega)=6. As a result, the proxy arguments support the original Sobol’ estimator and the alternative estimator (18) for σ{1,2,3}2\sigma^{2}_{\{1,2,3\}}.

2 Test cases

To compare some estimators we use test functions of product form:

The third condition ensures that all GSIs have finite variance, while the first two allow us to write the variance components of ff as

We will compare Monte Carlo estimates and so smoothness or otherwise of gj(⋅)g_{j}(\cdot) play no role. Only μj\mu_{j}, τj\tau_{j} and the third and fourth moments of gg play a role. Monte Carlo estimation is suitable when ff is inexpensive to evaluate, like surrogate functions in computer experiments. For our examples we take gj(x)=12(x−1/2)g_{j}(x)=\sqrt{12}(x-1/2) for all jj.

For an example function of non-product form, we take the minimum,

for this function. Taking u=Du={\cal D}, gives σ2=d(d+1)−2(d+2)−1\sigma^{2}=d(d+1)^{-2}(d+2)^{-1}.

We considered both simple and bilinear estimators of σ{1,2,3}2\sigma^{2}_{\{1,2,3\}} in Section 5. The simple estimator requires 99 function evaluations per (x,z)(\boldsymbol{x},\boldsymbol{z}) pair, while three different bilinear ones each require only 66.

For a function of product form, all four of these estimators yield the same answer for any specific set of (xi,zi)(\boldsymbol{x}_{i},\boldsymbol{z}_{i}) pairs. As a result the bilinear formulas dominate the simple one for product functions.

For the minimum function, with d=5d=5 we find that by symmetry,

Because we are interested in comparing the variance of estimators of a variance, a larger sample is warranted than if we were simply estimating a variance component. Based on 1,000,0001{,}000{,}000 function evaluations we find the estimated means and standard errors are given in Table 1. We see that the bilinear estimators give about half the standard error of the simple estimator, corresponding to about (1.05/.571)2×9/6≐5.1(1.05/.571)^{2}\times 9/6\doteq 5.1 times the statistical efficiency.

We consider two estimators of τ‾u2\underline{\tau}^{2}_{u}. The estimator (4) is a bilinear contrast, averaging f(x)(f(xu:z−u)−f(z))f(\boldsymbol{x})(f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u})-f(\boldsymbol{z})). The estimator (3) using the estimator of μ^\hat{\mu} from Janon et al., (2012) is a modification of Sobol’s original simple estimator based on averaging f(x)f(xu:z−u)f(\boldsymbol{x})f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u}). The bias correction of Section 7 makes an asymptotically negligible difference, so we do not consider it here.

The contrast estimator requires 33 function evaluations per (x,z)(\boldsymbol{x},\boldsymbol{z}) pair, while Sobol’s only requires 22. Both estimators make an adjustment to compensate for the bias μ2\mu^{2}. Estimator (3) subtracts an estimate μ^2\hat{\mu}^{2} based on combining all 2n2n function evaluations, the square of the most natural way to estimate μ\mu from the available data. Estimator (4) subtracts (1/n2)∑i∑i′f(xi)f(xi,u:zi,−u)(1/n^{2})\sum_{i}\sum_{i^{\prime}}f(\boldsymbol{x}_{i})f(\boldsymbol{x}_{i,u}{:}\boldsymbol{z}_{i,-u}), which may be advantageous when the difference f(xu:z−u)−f(z)f(\boldsymbol{x}_{u}{:}\boldsymbol{z}_{-u})-f(\boldsymbol{z}) involves considerable cancellation, as it might if xu\boldsymbol{x}_{u} is unimportant. Thus we might expect (4) to be better when τ‾u2\underline{\tau}^{2}_{u} is small. We compare the estimators on a product function, looking at τ‾u2\underline{\tau}^{2}_{u} for three subsets uu of size 22 and varying importance.

For the product function with d=6d=6, τ=(1,1,1/2,1/2,1/4,1/4)\tau=(1,1,1/2,1/2,1/4,1/4), all μj=1\mu_{j}=1 for j=1,…,6j=1,\dots,6, and gj(xj)=12(xj−1/2)g_{j}(x_{j})=\sqrt{12}(x_{j}-1/2), we may compute τ‾{1,2}2=3≐0.50σ2\underline{\tau}^{2}_{\{1,2\}}=3\doteq 0.50\sigma^{2}, τ‾{3,4}2≐1.56≐0.093σ2\underline{\tau}^{2}_{\{3,4\}}\doteq 1.56\doteq 0.093\sigma^{2}, and τ‾{5,6}2≐0.13≐0.021σ2\underline{\tau}^{2}_{\{5,6\}}\doteq 0.13\doteq 0.021\sigma^{2}.

Results from R=10,000R=10{,}000 trials with n=10,000n=10{,}000 (xi,zi)(\boldsymbol{x}_{i},\boldsymbol{z}_{i}) pairs each, are shown in Table 2. The efficiency of the contrast estimator compared to the simple one ranges from about 0.50.5 to about 2.52.5 in this example, depending on the size of the effect being estimated, with the contrast being better for the small quantity τ‾{5,6}2\underline{\tau}^{2}_{\{5,6\}}. Sobol’ et al., (2007) also report superiority of the contrast estimator on a small τ‾u2\underline{\tau}^{2}_{u}.

Neither estimator is always more efficient than the other, hence no proxy based solely on Ω\Omega can reliably predict which of these is better for a specific problem.

The bias correction from Section 7 makes little difference here because for n=10,000n=10{,}000 there is very little bias to correct. It does make a difference when n=100n=100 (data not shown) but at such small sample sizes the standard deviation of ^τ‾u2\widehat{}\underline{\tau}^{2}_{u} can be comparable to or larger than τ‾u2\underline{\tau}^{2}_{u} itself for this function.

Here we compare two estimates of Υ{1,2,3,4}2\Upsilon^{2}_{\{1,2,3,4\}}, the square (11) and the bilinear estimator (21) from Theorem 4. For a product function, Υw2=∏j∈wτj2∏j∉w(μj2+τj2).\Upsilon^{2}_{w}=\prod_{j\in w}\tau^{2}_{j}\prod_{j\not\in w}(\mu_{j}^{2}+\tau^{2}_{j}). Squares have an advantage estimating small GSIs so we consider one small and one large (for a four way interaction) Υ2\Upsilon^{2}.

For d=8d=8, τ=c(4,4,3,3,2,2,1,1)/4\tau=c(4,4,3,3,2,2,1,1)/4 and all μj=1\mu_{j}=1 we find that Υ{1,2,3,4}2≐0.558≐0.0334σ2\Upsilon^{2}_{\{1,2,3,4\}}\doteq 0.558\doteq 0.0334\sigma^{2} and Υ{5,6,7,8}2≐0.00238≐0.000147σ2\Upsilon^{2}_{\{5,6,7,8\}}\doteq 0.00238\doteq 0.000147\sigma^{2}. The bilinear estimate (21) based on w1={1,2}w_{1}=\{1,2\} and w2={3,4}w_{2}=\{3,4\} for Υ{1,2,3,4}\Upsilon_{\{1,2,3,4\}} (respectively w1={5,6}w_{1}=\{5,6\} and w2={7,8}w_{2}=\{7,8\} for Υ{5,6,7,8}\Upsilon_{\{5,6,7,8\}}) requires C=7C=7 function evaluations, while the square (11) requires C=16C=16. From Table 3 we see that the square has an advantage that more than compensates for using a larger number of function evaluations and the advantage is overwhelming for the smaller effect.

The outlook for the bilinear estimator of Υw2\Upsilon^{2}_{w} is pessimistic. Its cost advantage grows with ∣w∣|w|; for ∣w∣=20|w|=20 it has cost 10231023 compared to 2202^{20} for the square. But Υw2\Upsilon^{2}_{w} for such a large ww will often be so small that the variance advantage from using a square will be extreme.

Conclusions

We have generalized Sobol’ indices to estimators of arbitrary linear combinations of variance components. Sometimes there are multiple ways to estimate a generalized Sobol’ index with important efficiency differences. Square GSIs where available are very effective. When no square or sum of squares is available a bilinear or low rank GSI can at least save some function evaluations. Contrasts are simpler to work than other GSIs, because they avoid bias corrections.

Acknowledgments

This work was supported by the U.S. National Science Foundation under grant DMS-0906056. I thank Alexandra Chouldechova for translating Sobol’s description of the analysis of variance. Thanks to Sergei Kucherenko for discussions on Sobol’ indices. I also thank the researchers of the GDR MASCOT NUM for an invitation to their 2012 meeting which lead to the research presented here.

References