Counting nodes in Smolyak grids

Jocelyn Minini1, Micha Wasem2
1School of Engineering and Architecture, HES-SO University of Applied Sciences and Arts Western Switzerland, P\’erolles 80, 1700 Fribourg, Switzerland
2Faculty of Mathematics and Computer Science, UniDistance Suisse, Schinerstrasse 18, 3900 Brig, Switzerland

Abstract

Using generating functions, we are proposing a unified approach to produce explicit formulas, which count the number of nodes in Smolyak grids based on various univariate quadrature or interpolation rules. Our approach yields, for instance, a new formula for the cardinality of a Smolyak grid, which is based on Chebyshev nodes of the first kind and it allows to recover certain counting-formulas previously found by Bungartz-Griebel, Kaarnioja, Müller-Gronbach, Novak-Ritter and Ullrich.

Keywords: smolyak rule, smolyak grid, generating functions

1. Introduction

The aim of this article is to fill a gap in the literature by presenting a general framework which allows to produce explicit formulas for the number of nodes in a Smolyak grid.

Let Ui be a quadrature rule on [1,1], i.e. Ui:C0([1,1])R or an interpolation rule i.e. Ui:C0([1,1])C0([1,1]) which evaluates an unknown function g:[1,1]R on a finite set Si[1,1]. The Smolyak rule turns a sequence of univariate quadrature or interpolation rules U1,U2, into a quadrature or interpolation rule on [1,1]d. Here, |Si||Si+1| for all iN1 and the Smolyak rule in d dimensions of level μN is defined as (1)Qμd=d|i|d+μk=1dΔik, where Δi=UiUi1 as long as i>2 and Δ1=U1, iN1d is a multi-index with positive entries and |i|:=i1++id denotes its 1-norm (see [10]). [5] shows that (1) includes a lot of cancellation and can be expressed as (see also [11], Lemma 1).

Qμd=max{d,μ+1}|i|d+μ(1)d+μ|i|(d1d+μ|i|)k=1dUik.

This last expression implies in which nodes an unknown function u:[1,1]dR needs to be evaluated, if Qμd(u) is computed: We attach to the sequence U1,U2, of univariate quadrature or interpolation rules the sequence S=S1,S2, of sets Si[1,1] of evaluation nodes such that f(i)=|Si| is a non-decreasing function f:N1N1, called growth function of S. The Smolyak grid in d dimensions with level μ is then given by Γd(μ)=max{d,μ+1}|i|d+μ×k=1dSik.

If the sequence S is nested, i.e. if SkSk+1 for all kN1, then Γd(μ)=|i|=d+μ×k=1dSik.

Since the Smolyak rule has been introduced to overcome the curse of dimensionality, there is great interest in determining its computational cost i.e. to count the number of nodes in such a grid for a given sequence S, a given dimension d and a level μ. This number will be denoted by Nd(μ), where the growth function f of the sequence S will be clear from the context. For our purposes, we consider isotropic grids but we remark that our counting argument at no point needs spatial isotropy but only that the sets used in each dimension share the same growth function.

For practical implementation, it might be of interest to count the number of nodes needed during the generating process of such grids, before duplicates are deleted, i.e. there might be interest in finding a simpler formula for NdΣ(μ)=max{d,μ+1}|i|d+μk=1df(ik), which doesn’t require to compute all the multi-indices iN1d such that max{d,μ+1}|i|d+μ. The number NdΣ(μ) is of course independent of the nestedness or non-nestedness of the sequence S, however, if the sequence is nested, counting points in the Smolyak grid with duplicates boils down to finding a formula for Nd(μ)=|i|=d+μk=1df(ik).

We will provide formulas for the quantities Nd(μ) for the case of S being nested and Nd(μ) for general S only as NdΣ(μ)=k=max{0,μ+1d}μNd(k).

For some specific growth functions, there are explicit formulas for Nd(μ) available in the literature, see for instance [5,9, 2]. Also, a lot is known about upper bounds for Nd(μ) or asymptotic formulas [9,5, 12,7, 11,8]. The contribution of [3] provides tables with values for Nd(μ) and code which allows to generate them. Also, in [4], tables with values are provided.

Our approach allows to find closed formulas for the quantities Nd(μ) and Nd(μ) by using generating functions and dimension-wise induction, thus generalizing previous formulas obtained by of [8,7, 2] and [9]. To this end, we define Gd(x)=μ=0Nd(μ)xμ and Gd(x)=μ=0Nd(μ)xμ.

We are now ready to state our main result which will be restated for the convenience of the reader in Propositions 2.1 and 2.2:

Theorem 1.1. It holds that Gd(x)=G1(x)d(1x)d1 and Gd(x)=G1(x)d, where G1(x)=G1(x)==0f(+1)x.

We will include explicit formulas for some specific growth functions f related to usual sequences S which are used in practice. Such sequences are for example based on:

1. Equidistant nodes without boundary: E˚(n)={2kn+11|k{1,,n}},nN1.

For these points, the sequence given by Sk=E˚(f(k)) is nested if f(k)=mk1 for mN2.

2. Equidistant nodes with boundary and Chebyshev nodes of the second kind: E(n)={2(k1)n11|k{1,,n}},nN2, C2(n)={cos(k1n1π)|k{1,,n}},nN2.

The sequences Sk=E(f(k)) and Sk=C2(f(k)) respectively become nested if f(k)=mk+1, mN2. Sometimes it is convenient to define E(1)=C2(1)={0}.

3. Chebyshev nodes of the first kind:

C1(n)={cos(2k12nπ)|k{1,,n}},nN1.

Here, the sequence Sk=C1(f(k)) is nested if f(k)=3k or f(k)=3k1.

4. Leja nodes (see [6]): Any sequence (xn)nN1 such that x1[1,1] and xnargmaxx[1,1]j=1n1|xxj|,n>1, is called a Leja-sequence. For such a sequence, we let L(n)={xk|k{1,,n}}.

Note that Sk=L(f(k)) is nested for every choice of a non-decreasing growth function f, in particular, for f(k)=k. There is a symmetrized version of Leja nodes available which become nested for the growth function f(k)=2k1 (see [1]).

Example 1.2. Consider a Smolyak grid based on the sequence S, where Sk=C1(3k). As we show below, according to (3), one obtains N2(μ)=3μ+1(2μ+3),N3(μ)=3μ+1(2μ2+10μ+9), so that the cardinalities in Figure 1 can be computed.

Figure 1 Smolyak grids with cardinality for d = 2: (a) 9, (b) 45 (c) 189 and in d = 3: (d) 27, (e) 189, (f) 999 respectively

2. Counting nodes

We first consider a nested sequence S with growth function f(k)=|Sk|. Then we have the following proposition:

Proposition 2.1. The generating function Gd(x)=μ=0Nd(μ)xμ, satisfies Gd(x)=G1(x)d(1x)d1, where G1(x)==0f(+1)x.

Proof. We have Γd+1(μ)=|i|=d+1+μ×k=1d+1Sik==0μΓd(μ)×S+1,=Γd(μ)×S1=1μΓd(μ)×S+1,=Γd(μ)×S1=1μΓd(μ)×(S+1S), where the key point is that the last line writes Γd+1(μ) as a disjoint union because of the nestedness of S. This idea already appears in [7,8,9]. It follows that (2)Nd+1(μ)=f(1)Nd(μ)+=1μ(f(+1)f())Nd(μ), from which we deduce using the Cauchy product, since Nd(k)=0 provided k<0, Gd+1(x)=f(1)Gd(x)+μ=1(=0μ1(f(+2)f(+1))Nd(μ1))xμ,=f(1)Gd(x)+xμ=0(=0μ(f(+2)f(+1))Nd(μ))xμ,=f(1)Gd(x)+x(=0(f(+2)f(+1))x)(μ=0Nd(μ)xμ).

Since =0(f(+2)f(+1))x=G1(x)f(1)xG1(x), we conclude that Gd+1(x)=f(1)Gd(x)+(G1(x)f(1)xG1(x))Gd(x),=Gd(x)G1(x)(1x), from which the claim follows by induction on d◻

Let now S be a (not necessarily nested) sequence with growth function f and consider the generating function Gd(x)=μ=0Nd(μ)xμ.

Proposition 2.2. It holds that Gd(x)=G1(x)d, where G1(x)=μ=0f(μ+1)xμ.

Proof. We start by observing that Nd+1(μ)=|i|=d+1+μk=1d+1f(ik)=|i|=d+1+μ(k=1df(ik))f(id+1),==1μ+1f()Nd(μ+1), so that using the Cauchy product Gd+1(x)=μ=0=0μf(+1)Nd(μ)xμ=(=0f(+1)x)(μ=0Nd(μ)xμ),=G1(x)Gd(x), and hence the claim follows by induction on d◻

When discussing the applications of our main result, we will focus on nested sequences S but note that the formulas Nd(μ) and NdΣ(μ) do not depend on the nestedness or non-nestedness of S. The general recipe for obtaining an expression for Nd(μ) or Nd(μ) consists in evaluating Gd and Gd respectively and then – for the growth functions under consideration – one can use Newton’s binomial theorem and the Cauchy product in order read off Nd(μ) or Nd(μ). We will provide the details for the first three growth functions under consideration – the others being obtained similarly:

2.1. Growth Function f(k)=nk1

In this case, G1(x)=n1(1x)(1nx), so that using Newton’s binomial theorem Gd(x)=(n1)d(11nx)d11x,=(n1)d(k=0(d+k1k)(nx)k)(=0x).

Reading off the coefficient of xμ using the Cauchy product yields Nd(μ)=(n1)dk=0μ(d+k1k)nk.

Remark 2.3. If n=2, one can recover the formula given by [, Lemma] by exploting the fact that (d1+kk)=(d1+kd1), and observing that there, the formula is stated for μ1.

Smiliarly we obtain Gd(x)=(n1)d(11x)d(11nx)d,=(n1)d(k=0(d+k1k)(nx)k)(=0(d+1)x).

The coefficient of the term xμ is therefore Nd(μ)=(n1)dk=0μ(d+k1k)(d+μk1μk)nk.

2.2. Growth function f(k)=nk

Here, G1(x)=n1nx, so that Gd(x)=nd(11nx)d(1x)d1,=nd(k=0d1(d1k)(1)kxk)(=0(d+1)(nx)).

Reading off the coefficient of xμ leads to (3)Nd(μ)=ndk=0min{d1,μ}(d1k)(1)k(d+μk1μk)nμk, which can be shown to be equivalent to (4)Nd(μ)=k=0min{d1,μ}(d1k)(μk)nμ+dk(n1)k.

Remark 2.4. 1. If one takes f(k)=nk1 in (4), then one obtains the same result up to a factor nd so that in this case, if n=2, one obtains

Nd(μ)=k=0min{d1,μ}(d1k)(μk)2μk, which equals exactly the formula found by [9].

2. Formula (4) with n=3 gives an explicit expression for Nd(μ) for the case of a Smolyak-grid constructed with Chebyshev points of the first kind. If f(k)=3k1 is used instead, one obtains the same formula up to a factor 3d.

Similarly, Gd(x)=nd(11nx)d=nd(k=0(d+k1k)(nx)k), so that the coefficient of xμ can be read off and one obtains Nd(μ)=nd+μ(d+μ1μ).

Remark 2.5. This formula can be obtained in a much simpler way: If f(k)=nk one has Nd(μ)=|i|=d+μn|i|=nd+μ|{iN1d||i|=d+μ}|, and the equality |{iN1d||i|=d+μ}|=(d+μ1μ), can be obtained using a stars and bars argument.

2.3. Growth function f(k)=nk+1

Here, G1(x)=n+12nx(1x)(1nx),Nd(μ)=k=0min{d,μ}(dk)(2n)k(n+1)dk=0μk(d+1)n.

Remark 2.6. Note that for the case n=2 and f(k)=2k+1, a formula is already available in [2] which thinks of this case as upgrading the case of the growth function g(k)=2k1 by two boundary points. Counting the j-skeleta of the d-dimensional hypercube yields (dj)2dj for fixed j. Then the formula for f is obtained by building the sum of the formula for g over all j-skeleta as j=0,,d. This approach – for general n – yields the equivalent formula Nd(μ)=k=0d(dk)2dk(n1)k=0μ(k+1k1)n.

Furthermore, in this case, Gd(x)=(n+12nx)d(11nx)d(11x)d, so that

Nd(μ)==0min{d,μ}k=0μ(d)(1)(2n)(n+1)d(d+k1k)(d+μk1μk)nk.

2.4. Growth function f(k)=k

Here, G1(x)=1(1x)2 so that Gd(x)=1(1x)d+1=k=0(d+kk)xk, and hence Nd(μ)=(d+μμ).

Similarly, we obtain Gd(x)=1(1x)2d=k=0(2d+k1k)xk, and hence Nd(μ)=(2d+μ1μ).

In this case, we obtain setting m=max{0,μ+1d}: NdΣ(μ)=12d((1+μ)(2d+μμ+1)m(2d+m1m)).

2.5. Further remarks

If f(k)=2k1+1 for k>1 and f(1)=1, one can show by induction on d using (2) that Nd(μ)1=2μPd1(μ), where Pd1 is a polynomial of degree d1 with leading coefficient 1/(2d1(d1)!) so that one obtains the asymptotics Nd(μ)2μ2d1(d1)!μd1, for d fixed and μ, compare [7, Lemma 1].

Using f(k)=2k1 yields G1(x)=1+x(1x)2, so that Gd(x)=(1+x)d(1x)d+1, and hence Nd(μ)=k=0min{d,μ}(μk)(μ+dkμ), which is precisely Theorem 2 of [8]. We note that this formula is also obtained using generating functions.

Acknowledgments

This study has been financed by the “Ingénierie et Architecture” domain of HES-SO, University of Applied Sciences Western Switzerland, which is acknowledged. We further thank the referees for their careful reading and their valuable comments and suggestions.

References:

  1. L. Bos and M. Caliari. Application of modified leja sequences to polynomial interpolation. Dolomites Research Notes on Approximation, 8:66–74, 2015.
  2. H. Bungartz and M. Griebel. Sparse grids. Acta Numerica, 13:147–269, 2004. http://dx.doi.org/10.1017/S0962492904000182.
  3. J. Burkardt. Counting abscissas in sparse grids, 2014. https://people.math.sc.edu/Burkardt/presentations/sgmga_counting.pdf.
  4. K. Judd, L. Maliar, S. Maliar, and R. Valero. Smolyak method for solving dynamic economic models: lagrange interpolation, anisotropic grid and adaptive domain. Journal of Economic Dynamics and Control, 44:92–123, 2014. http://dx.doi.org/10.1016/j.jedc.2014.03.003.
  5. V. Kaarnoja. Smolyak quadrature, 2013. https://helda.helsinki.fi/bitstreams/a2d5bfe3-d2da-4d9e-b536-6383d99b5486/download. University of Helsinki, Department of Mathematics and Statistics.
  6. F. Leja. Sur certaines suites liées aux ensembles plans et leur application à la représentation conforme. Annales Polonici Mathematici, 4:8–13, 1957.
  1. T. Müller-Gronbach. Hyperbolic cross designs for approximation of random fields. Journal of Statistical Planning and Inference, 66:321–344, 1998. http://dx.doi.org/10.1016/S0378-3758(97)00088-8.
  2. E. Novak and K. Ritter. Simple cubature formulas with high polynomial exactness. Constructive Approximation, 15:499–522, 1999. https://doi.org/10.1007/s003659900119.
  3. W. Sickel and T. Ullrich. Smolyak’s algorithm, sampling on sparse grids and function spaces of dominating mixed smoothness. East Journal on Approximations, 13:1–57, Jan. 2007.
  4. S. Smolyak. Quadrature and interpolation formulas for tensor products of certain classes of functions. Doklady Akademii Nauk SSSR, 148:1042–1045, 1963.
  5. G. Wasilkowski and H. Wozniakowski. Explicit cost bounds of algorithms for multivariate tensor product problems. Journal of Complexity, 11:1–56, 1995. http://dx.doi.org/10.1006/jcom.1995.1001.
  6. G. Xu. On weak tractability of the smolyak algorithm for approximation problems. Journal of Approximation Theory, 192:347–361, 2015. http://dx.doi.org/10.1016/j.jat.2014.10.016.