Nonparametric Estimation of Renyi Divergence and Friends

Akshay Krishnamurthy, Kirthevasan Kandasamy, Barnabas Poczos, Larry Wasserman

Introduction

Given samples from two distributions, one fundamental and classical question to ask is: how close are the two distributions? First, one must specify what it means for two distributions to be close, for which a number of divergences have been proposed. Then there is the statistical question: how does one estimate divergence given samples from two distributions. In this paper, we propose and analyze estimators for three common divergences.

Divergence estimation has a number of applications across machine learning and statistics. In statistics, one can use these estimators to construct two-sample and independence tests . In machine learning, it is often convenient to view training data as a set of distributions and use divergences to estimate dissimilarity between examples. This idea has been used in neuroscience, where the neural response pattern of an individual is modeled as a distribution, and divergence is used to compare responses across subjects . It has also enjoyed success in computer vision, where features are computed for each patch of an image and these feature vectors are modeled as independent draws from an underlying distribution .

For these applications and others, it is crucial to accurately estimate divergences given samples drawn independently from each distribution. In the nonparametric setting, a number of authors have proposed various estimators which are provably consistent. However, apart from a few examples, the actual rates of convergence of these estimators and the minimax optimal rates are still unknown.

In this work, we propose three estimators for the L22L_{2}^{2}, Rényi-α\alpha, and Tsallis-α\alpha divergence between two continuous distributions. Our strategy is to correct an initial plug-in estimator by estimates of the higher order terms in the von Mises expansion of the divergence functional. We establish the rates of convergence for these estimators under the assumption that both densities belong to a Hölder class of smoothness ss. Concretely, we show that the plug-in estimator achieves rate ns2s+dn^{\frac{-s}{2s+d}} while correcting by the first order terms in the expansion results in an nmin{2s2s+d,1/2}n^{-\min\{\frac{2s}{2s+d},1/2\}}-estimator and correcting further by the second order terms gives an nmin{3s2s+d,1/2}n^{-\min\{\frac{3s}{2s+d},1/2\}}-estimator. These last two estimators achieve the parametric n1/2n^{-1/2} rate as long as the smoothness ss is larger than d/2,d/4d/2,d/4, respectively, where dd is the dimension. Moreover the first-order estimator, while worse statistically than the second-order estimator, is computationally very elegant. These results contribute to our fairly limited knowledge on this important problems .

We also address the issue of statistical optimality by deriving a minimax lower bound on the convergence rate. Specifically, we show that one cannot estimate these quantities at better than n4s4s+dn^{\frac{-4s}{4s+d}}-rate when sd/4s\leq d/4 and n1/2n^{-1/2}-rate otherwise. This establishes the optimality of our best estimator in the smooth regime and also that d/4d/4 is the critical smoothness for this problem.

The remainder of this manuscript is organized as follows. After discussing some related work on divergence estimation and the closely-related entropy estimation in Section 2, we present our estimators and main results in Sections 3 and 4. We provide proof sketches in Section 5. We present some numerical simulations in Section 6 and conclude with some open questions in Section 7. We defer many proof details and several calculations to the appendices.

Technically, these divergences are functionals on distributions, rather than densities, but we will abuse notation and write them as above. As a unification, we consider estimating functionals of the form, T(p,q)=pα(x)qβ(x)dμ(x)T(p,q)=\int p^{\alpha}(x)q^{\beta}(x)d\mu(x) for given α,β\alpha,\beta. Various settings of α,β\alpha,\beta yield the main terms in the divergences, and we will verify that estimators for T(p,q)T(p,q) result in good divergence estimators.

The sine qua non of our work is the von Mises expansionSee Chapter 20 of van der Vaart’s book for an introduction to von Mises calculus .. Given a functional TT mapping distributions to the reals, the first-order von Mises expansion is:

where FF and GG are distributions, R2R_{2} is a remainder term, and dT(G;FG)dT(G;F-G) is the Gateaux derivative of TT at GG in the direction of FGF-G:

In our work, TT is always of the form T(F)=ϕ(f)dμT(F)=\int\phi(f)d\mu where f=dF/dμf=dF/d\mu is the Radon-Nikodym derivative and ϕ\phi is differentiable. In this case, the von Mises expansion reduces to a functional Taylor expansion on the densitiesSee Lemma 8 in the Appendix.:

We generalize these ideas to functionals of two distributions and with higher order expansions analogous to the Taylor expansion. We often write T(f)T(f) instead of T(F)T(F).

Related Work

Divergence estimation and its applications have received considerable attention over the past several decades. Pardo provides a fairly comprehensive discussion of methods and applications in the context of discrete distributions .

Only recently has attention shifted to the continuous, nonparametric setting, where a number of efforts have established consistent estimators. Many of the approaches are based on nearest-neighbor graphs . For example, Póczos and Schneider use a kk-nearest-neighbor estimator and show that one does not need a consistent density estimator to consistently estimate Rényi-α\alpha and Tsallis-α\alpha divergences. A number of other authors have also proposed consistent estimators via the empirical CDF or histograms . Unfortunately, the rates of convergence for all of these methods are still unknown.

Singh and Poczos recently established a rate of convergence for an estimator based on simply plugging kernel density estimates into the divergence functional. Their estimator converges at nss+dn^{\frac{-s}{s+d}}-rate when s<ds<d and n1/2n^{-1/2} otherwise which matches some existing results on estimating entropy functionals . In comparison, we show that corrections of the plug-in estimator lead to faster convergence rates and that the n1/2n^{-1/2} rate can be achieved at the much lower smoothness of s>d/4s>d/4. Moreover we establish a minimax lower bound for this problem, which shows that d/4d/4 is the critical smoothness index.

Källberg and Seleznjev study an ϵ\epsilon-nearest neighbor estimator for the L22L_{2}^{2}-divergence that enjoys the same rate of convergence as our projection-based estimator. They prove that the estimator is asymptotically normal in the s>d/4s>d/4 regime, which one can also show for our estimator. In the more general setting of estimating polynomial functionals of the densities, they only show consistency of their estimator, while we also characterize the convegence rate.

A related and flourishing line of work is on estimating entropy functionals. The majority of the methods are graph-based, involving either nearest neighbor graphs or spanning trees over the data . One exception is the KDE-based estimator for mutual information and joint entropy of Liu, Lafferty, and Wasserman . A number of these estimators come with provable convergence rates.

While it is not clear how to port these ideas to divergence estimation, it is still worth comparing rates. The estimator of Liu et al. converges at rate nss+dn^{\frac{-s}{s+d}}, achieving the parametric rate when s>ds>d. Similarly, Sricharan et al. show that when s>ds>d a kk-NN style estimator achieves rate n2/dn^{-2/d} (in absolute error) ignoring logarithmic factors. In a follow up work, the authors improve this result to O(n1/2)O(n^{-1/2}) using an ensemble of weak estimators, but they require s>ds>d orders of smoothness . In contrast, our estimators achieve the parametric n1/2n^{-1/2} rate at lower smoothness (s>d/2,d/4s>d/2,d/4 for the first-order and second-order estimators, respectively) and enjoy a faster rate of convergence uniformly over smoothness.

Interestingly, while many of these methods are plug-in-based, the choice of tuning parameter typically is sub-optimal for density estimation. This contrasts with our technique of correcting optimal density estimators.

We are not aware of any lower bounds for divergence estimation, although analogous results have been established for the entropy estimation problem. Specifically, Birgé and Massart prove a n4s4s+dn^{\frac{-4s}{4s+d}}-lower bound for estimating integral functionals of a density. Hero et al. give a matching lower bound for estimating Rényi-α\alpha entropies.

Finally, our estimators and proof techniques are based on several classical works on estimating integral functionals of a density. The goal here is to estimate ϕ(f(x))dμ(x)\int\phi(f(x))d\mu(x), for some known function ϕ\phi, given samples from ff. A series of papers show that n1/2n^{-1/2} rate of convergence is attainable if and only if s>d/4s>d/4, which is analogous to our results . Of course, our results pertain to the two-density setting, which encompasses the divergences of interest. We also generalize some of these results to the multi-dimensional setting.

The Estimators

Recall that we are interested in estimating integral functionals of the form T(p,q)=pα(x)qβ(x)T(p,q)=\int p^{\alpha}(x)q^{\beta}(x). As an initial attempt, with estimators p^\hat{p} and q^\hat{q} for pp and qq, we can use the plug-in estimator T^pl=T(p^,q^)\widehat{T}_{pl}=T(\hat{p},\hat{q}). Via the von Mises expansion of T(p,q)T(p,q), the error is of the form:

Classical results on density estimation then suggest that T^pl\widehat{T}_{pl} will enjoy a ns2s+dn^{\frac{-s}{2s+d}}-rate .

A better convergence rate can be achieved by correcting the plug-in estimator with estimates of the linear term in the von Mises expansion. Informally speaking, the remainder of the first order expansion is O(p^p22+q^q22)O(\|\hat{p}-p\|_{2}^{2}+\|\hat{q}-q\|_{2}^{2}) which decays with n2s2s+dn^{\frac{-2s}{2s+d}}, while the linear terms can be estimated at n1/2n^{-1/2}-rate. This estimator, which we call T^lin\widehat{T}_{lin} enjoys a faster convergence rate than T^pl\widehat{T}_{pl}.

It is even better to augment the plug-in estimator with both the first and second-order terms of the expansion. Here the remainder decays at rate n3s2s+dn^{-\frac{3s}{2s+d}} while the linear and quadratic terms can be estimated at n1/2n^{-1/2} and n4s4s+dn^{\frac{-4s}{4s+d}} rate respectively. This corrected estimator T^quad\widehat{T}_{quad} achieves the parametric rate whenever the smoothness s>d/4s>d/4 which we will show to be minimax optimal.

We now formalize these heuristic developmentsSee Appendices A and B for details omitted in this section.. Below we enumerate the terms in the first and second order von Mises expansions that we will estimate or compute:

These definitions allow us to succinctly write the expansions of T(p,q)T(p,q) about T(p^,q^)T(\hat{p},\hat{q}):

with remainders, Ra=O(pp^aa+qq^aa)R_{a}=O(\|p-\hat{p}\|_{a}^{a}+\|q-\hat{q}\|_{a}^{a}).

The terms θ(),2()\theta_{(\cdot),2}^{(\cdot)} are of the form:

again with known ψ\psi. To estimate these terms, we have samples X1nf,Y1ngX_{1}^{n}\sim f,Y_{1}^{n}\sim g. If {ϕk}kD\{\phi_{k}\}_{k\in D} is an orthonormal basis for L2(d)L_{2}(^{d}) then the estimator for the bilinear term is:

where MDM\subset D is chosen to tradeoff the bias and the variance. To develop some intuition, if we knew ff, we would simply use the sample mean 1nj=1nf(Yj)ψ(Yj)\frac{1}{n}\sum_{j=1}^{n}f(Y_{j})\psi(Y_{j}). Since ff is actually unknown, we replace it with an estimator formed by truncating its Fourier expansion. Specifically, we replace ff with f^()=kMa^kϕk()\hat{f}(\cdot)=\sum_{k\in M}\hat{a}_{k}\phi_{k}(\cdot) with a^k=1ni=1nϕk(Xi)\hat{a}_{k}=\frac{1}{n}\sum_{i=1}^{n}\phi_{k}(X_{i}).

For the quadratic functional, a projection estimator was proposed and analyzed by Laurent :

where bk,k(ψ)=ϕk(x)ϕk(x)ψ(x)dxb_{k,k^{\prime}}(\psi)=\int\phi_{k}(x)\phi_{k^{\prime}}(x)\psi(x)dx. The first term in the estimator is motivated by the same line of reasoning as in the bilinear estimator while the second term significantly reduces the bias without impacting the variance.

Before proceeding to our theoretical analysis, we mention some algorithmic considerations. We estimate p^,q^\hat{p},\hat{q} with kernel density estimators, which, except for in T^pl\widehat{T}_{pl}, we only train on half of the sample. This gives us independent samples to estimate the θ^(),()()\hat{\theta}_{(\cdot),(\cdot)}^{(\cdot)} terms. Second, in our analysis, we will require that the KDEs are bounded above and below. Under the assumption that pp and qq are bounded above and below, we will show that clipping the original KDE will not affect the convergence rate.

Another important issue with density estimation over bounded domains, that applies to our setting, is that the standard KDE suffers high bias near the boundary. To correct this bias, we adopt the strategy used by Liu et al. of “mirroring” the data set over the boundaries. We do not dwell too much on this issue, noting that this technique can be shown to suitably correct for boundary bias without substantially increasing the variance. This augmented estimator can be shown to match the rates of convergence in the literature .

Lastly, the estimators all require integration of the term T(p^,q^)T(\hat{p},\hat{q}), which can be computationally burdensome, particularly in high dimension. However, whenever α+β=1\alpha+\beta=1, as in the Rényi-α\alpha and Tsallis-α\alpha divergences, the constants C1,C2C_{1},C_{2} are zero, so the first term may be omitted. In this case T^lin\widehat{T}_{lin} is remarkably simple; it involves training KDEs and estimating a specific linear functional of them via the sample mean. Although this estimator is not minimax optimal, it enjoys a fairly fast rate of convergence while being computationally practical. Unfortunately, even when C2=0C_{2}=0, the quadratic estimator still involves integration of the bi,ib_{i,i^{\prime}} terms. We therefore advocate for T^lin\widehat{T}_{lin} over T^quad\widehat{T}_{quad} in practice, as T^lin\widehat{T}_{lin} exhibits a better tradeoff between computational and statistical efficiency.

Theoretical Results

For our theoretical analysis, we will assume that the densities p,qp,q belong to Σ(s,L)\Sigma(s,L), the periodic Hölder class of smoothness ss, defined as follows:

For any tuple r=(r1,,rd)r=(r_{1},\ldots,r_{d}) define Dr=r1++rdx1r1xdrdD^{r}=\frac{\partial^{r_{1}+\ldots+r_{d}}}{\partial x_{1}^{r_{1}}\ldots\partial x_{d}^{r_{d}}}. The periodic Hölder class Σ(s,L)\Sigma(s,L) is the subset of L2(d)L_{2}(^{d}) where for each fΣ(s,L)f\in\Sigma(s,L), the rrth derivative is periodic for any tuple rr with jrj<s\sum_{j}r_{j}<s and:

for all x,yx,y and for all tuples rr with jrj=s\sum_{j}r_{j}=\lfloor s\rfloor the largest integer strictly smaller than ss.

We are now ready to state our main assumptions:

p,qΣ(s,L)p,q\in\Sigma(s,L) for some known smoothness ss.

The densities are bounded above and below by known parameters κl,κu\kappa_{l},\kappa_{u}. Formally 0<κlp(x),q(x)κu<0<\kappa_{l}\leq p(x),q(x)\leq\kappa_{u}<\infty for all xdx\in^{d}.

Set the KDE bandwidth hn12s+dh\asymp n^{\frac{-1}{2s+d}}. For any projection-style estimator, set the number of basis elements mn2d4s+dm\asymp n^{\frac{2d}{4s+d}}.

The Hölderian assumption is standard in the nonparametric literature while the periodic assumption subsumes more standard boundary smoothness conditions . It is fairly straightforward to construct kernels meeting Assumption 3 , while the boundedness assumption is common in the literature on estimating integral functionals of a density .

The following theorem characterizes the rate of convergence of our estimators T^pl,T^lin,T^quad\widehat{T}_{pl},\widehat{T}_{lin},\widehat{T}_{quad}:

All expectations are taken with respect to X1n,Y1nX_{1}^{n},Y_{1}^{n}. When s=d/4s=d/4, T^quad\widehat{T}_{quad} enjoys O(n1/2+ϵ)O(n^{-1/2+\epsilon}) rate of convergence for any ϵ>0\epsilon>0The constant is exponential in ϵ\epsilon and is infinite for ϵ=0\epsilon=0.. T^lin\widehat{T}_{lin} and T^quad\widehat{T}_{quad} achieve the parametric rate when s>d/2,d/4s>d/2,d/4 respectively.

Before commenting on the upper bound and presenting some consequences, we address the question of statistical efficiency. Clearly T^pl\widehat{T}_{pl} and T^lin\widehat{T}_{lin} are not rate-optimal, since T^quad\widehat{T}_{quad} achieves a faster rate of convergence, but is T^quad\widehat{T}_{quad} minimax optimal? We make some progress in this direction with a minimax lower bound on the rate of convergence.

Under Assumptions 1 and 2, as long as both α,β0,1\alpha,\beta\neq 0,1, then with γ=min{4s/(4s+d),1/2}\gamma_{\star}=\min\{4s/(4s+d),1/2\} and for any ϵ>0\epsilon>0:

For a pictorial understanding of the rates of convergence and the lower bound, we plot the exponent γ\gamma for each of the terms in the von Mises expansion as a function of the smoothness ss in Figure 1. The estimator T^quad\widehat{T}_{quad} has three terms, with rates n1/2,n4s4s+dn^{-1/2},n^{\frac{-4s}{4s+d}}, and n3s2s+dn^{\frac{-3s}{2s+d}} respectively which achieves the parametric rate n1/2n^{-1/2} when s>d/4s>d/4 and is n3s2s+dn^{\frac{-3s}{2s+d}} in the low-smoothness regime. The linear estimator only achieves the parametric rate while s>d/2s>d/2 while T^pl\widehat{T}_{pl} only approaches the parametric rate as ss\rightarrow\infty. Consequently these estimators are statistically inferior to T^quad\widehat{T}_{quad}. In the last plot we show a lower bound on the rate of convergence from Theorem 2, which is n4s4s+dn^{\frac{-4s}{4s+d}} when sd/4s\leq d/4 and n1/2n^{-1/2} when s>d/4s>d/4.

The lower bound rate deviates slightly from the upper bound for T^quad\widehat{T}_{quad} in the low-smoothness regime, showing that T^quad\widehat{T}_{quad} is also not minimax-optimal uniformly over ss. This sub-optimality appears even when estimating integral functionals of a single density . In that context, achieving the optimal rate of convergence in the non-smooth regime involves further correction by the third order term in the expansion . It seems as if the same ideas can be adapted to the two-density setting, although we believe computational considerations would render these estimators impractical.

In the smooth regime (s>d/4s>d/4) we see that the parametric n1/2n^{-1/2} rate is both necessary and sufficient. This critical smoothness index of s=d/4s=d/4 was also observed in the context of estimating integral functionals of densities .

When s=d/4s=d/4, the quadratic estimator achieves n1/2+ϵn^{-1/2+\epsilon} rate for any ϵ>0\epsilon>0, where the constant is exponential in ϵ\epsilon, and thus deviates slightly from the lower bound. This phenomenon arises from using the projection-based estimators for the quadratic term. Establishing the rate of convergence for these estimators requires working in a Sobolev space rather than the Hölder class. In translating back to the Hölderian assumption, we lose a small factor in the smoothness, since the Sobolev space only contains the Hölder space if the former is less smooth than the latter.

The lower bound on estimating integral functionals in Theorem 2 almost immediately implies a lower bound for Tsallis-α\alpha divergences. For Rényi-α\alpha, some care must be taken in the translation, but we are able to prove the same lower bound as long as Dα(p,q)D_{\alpha}(p,q) is bounded. The idea behind these extensions is to translate an estimator D^\hat{D} for the divergence into an estimator T^\hat{T} for T(p,q)T(p,q). We then argue that if D^\hat{D} enjoyed a fast rate of convergence, so would T^\hat{T}, which leads to a contradiction of the theorem. Unfortunately, Theorem 2 does not imply a lower bound for L22L_{2}^{2} divergence, since we are unable to handle the α=β=1\alpha=\beta=1 case, which is exactly the cross term in the L22L_{2}^{2}-divergence.

Our proof requires that both α,β\alpha,\beta are both not or 11, which is not entirely surprising. If α=β=0\alpha=\beta=0, T(p,q)T(p,q) is identically zero, so one should not be able to prove a lower bound. Similarly α=0,β=1\alpha=0,\beta=1 or vice versa, T(p,q)=1T(p,q)=1 for any p,qp,q, so we have efficient, trivial estimators.

The only non-trivial case is α=β=1\alpha=\beta=1 and we conjecture that the nγn^{-\gamma_{\star}} rate is minimax optimal there, although our proof does not apply. Our proof strategy involves fixing qq and perturbing pp, or vice versa. In this approach, one can view the optimal estimator as having knowledge of qq, so if α=1\alpha=1, the sample average is a n1/2n^{-1/2}-consistent estimator, which prevents us from achieving the nγn^{-\gamma_{\star}} rate. We believe this is an artifact of our proof, and by perturbing both pp and qq simultaneously, we conjecture that one can prove a minimax lower bound of nγn^{-\gamma_{\star}} when α=β=1\alpha=\beta=1.

We now show how an estimate of T(p,q)T(p,q) can be used to estimate the divergences mentioned above. Plugging T^quad\widehat{T}_{quad} into the definition of Rényi-α\alpha and Tsallis-α\alpha divergences, we immediately have the following corollary:

Under Assumptions 1- 4, as long as Dα(p,q)c>0D_{\alpha}(p,q)\geq c>0 for some constant cc, the estimators:

As we mentioned before, when β=1α\beta=1-\alpha, for both the linear and quadratic estimators, one can omit the term T(p^,q^)T(\hat{p},\hat{q}) as the constants C1,C2=0C_{1},C_{2}=0. However, T^quad\widehat{T}_{quad} is still somewhat impractical due to the numeric integration in the quadratic terms. On the other hand, the linear estimator T^lin\widehat{T}_{lin} is computationally very simple, although its convergence rate is O(n1/2+n2s2s+d)O(n^{-1/2}+n^{\frac{-2s}{2s+d}}).

For the L22L_{2}^{2} divergence, instead of applying Theorem 4 directly, it is better to directly use the quadratic and bilinear estimators for the terms in the factorization. Specifically, let θp=p2\theta_{p}=\int p^{2} and define θ^p\hat{\theta}_{p} by Equation 2 with ψ(x)=1\psi(x)=1. Define θq,θ^q\theta_{q},\hat{\theta}_{q} analogously and finally define θp,q=2pq\theta_{p,q}=2\int pq with θ^p,q\hat{\theta}_{p,q} given by Equation 1 where ψ(x)=2\psi(x)=2. As a corollary of Theorem 6 below, we have:

Under Assumptions 1- 4, the estimator L^=θ^p+θ^qθ^p,q\hat{L}=\hat{\theta}_{p}+\hat{\theta}_{q}-\hat{\theta}_{p,q} for L22(p,q)L_{2}^{2}(p,q) satisfies:

Notice that for both quadratic terms, the bi,ib_{i,i^{\prime}} terms in Equation 2 are 1[i=i]\mathbf{1}[i=i^{\prime}] since ψ(x)=1\psi(x)=1 and since {ϕk}\{\phi_{k}\} is an orthonormal collection. Thus the estimator L^\hat{L} is computationally attractive, as numeric integration is unnecessary. In addition, we do not need KDEs, removing the need for bandwidth selection, although we still must select the basis functions used in the projection.

Proof Sketches

The rates of convergence for T^pl,T^lin\widehat{T}_{pl},\widehat{T}_{lin}, and T^quad\widehat{T}_{quad} come from analyzing the kernel density estimators and the estimators for θ^(),()()\hat{\theta}_{(\cdot),(\cdot)}^{(\cdot)}. Recall that we must use truncated KDEs p^,q^\hat{p},\hat{q} with boundary correction, so standard analysis does not immediately apply. However, we do have the following theorem establishing that truncation does not affect the rate, which generalizes previous results to high dimension .

Let ff be a density satisfying Assumptions 1- 4 and suppose we have X1nfX_{1}^{n}\sim f. The truncated KDE f^n\hat{f}_{n} satisfies:

Let f,gf,g be densities in Σ(s,L)\Sigma(s,L) and let ψ\psi be a known bounded function. Let ϕk\phi_{k} be the Fourier basis and MM the set of basis elements with frequency not exceeding m01/dm_{0}^{1/d}, where m0n2d4s+dm_{0}\asymp n^{\frac{2d}{4s^{\prime}+d}} for some s<ss^{\prime}<s. If θ=ψ(x)f(x)g(x)\theta=\int\psi(x)f(x)g(x) and θ^\hat{\theta} is given by Equation 1 or if θ=ψ(x)f2(x)\theta=\int\psi(x)f^{2}(x) and θ^\hat{\theta} is given by Equation 2, then:

Theorem 4 follows from these results, the von Mises expansion, and the triangle inequality.

2 Lower Bound

The first part of the lower bound is an application of Le Cam’s method and generalizes a proof of Birge and Massart . We begin by reducing the estimation problem to a simple-vs.-simple hypothesis testing problem. We will use the squared Hellinger distance, defined as:

Let TT be a functional defined on some subset of a parameter space Θ×Θ\Theta\times\Theta which contains (p,q)(p,q) and (gλ,q)λ(g_{\lambda},q)\forall\lambda in some index set Λ\Lambda. Define Gˉn=1ΛλΛGλn\bar{G}^{n}=\frac{1}{|\Lambda|}\sum_{\lambda\in\Lambda}G^{n}_{\lambda} where GλG_{\lambda} has density gλg_{\lambda}. If:

where cγ=12[1γ(1γ/4)]c_{\gamma}=\frac{1}{2}[1-\sqrt{\gamma(1-\gamma/4)}].

To construct the gλg_{\lambda} functions, we partition the space d^{d} into mm cubes RjR_{j} and construct functions uju_{j} that are compactly supported on RjR_{j}. We then set gλ=p+Kj=1mλjujg_{\lambda}=p+K\sum_{j=1}^{m}\lambda_{j}u_{j} for λΛ={1,1}m\lambda\in\Lambda=\{-1,1\}^{m}. By appropriately selecting the functions uju_{j}, we can ensure that:

Ensuring smoothness requires K=O(ms/d)K=O(m^{-s/d}) at which point, making the Hellinger distance O(1)O(1) requires m=Ω(n2d4s+d)m=\Omega(n^{\frac{2d}{4s+d}}). With these choices we can apply Lemma 7 and arrive at the lower bound since K2=m2s/d=n4s4s+dK^{2}=m^{-2s/d}=n^{\frac{-4s}{4s+d}}.

As for the second part of the theorem, the n1/2n^{-1/2} lower bound, we use a (to our knowledge) novel proof technique which we believe may be applicable in other settings. The first ingredient of our proof is a lower bound showing that one cannot estimate a wide class of quadratic functionals at better than n1/2n^{-1/2} rate. We provide a proof of this result based on Le Cam’s method in the appendix although related results appear in the literature . Then starting with the premise that there exists an estimator T^\hat{T} for T(p,q)T(p,q) with rate n1/2ϵn^{-1/2-\epsilon}, we construct an estimator for a particular quadratic functional with n1/2ϵn^{-1/2-\epsilon} convergence rate, and thus arrive at a contradiction. A somewhat surprising facet of this proof technique is that the proof has the flavor of an upper bound proof; in particular, we apply Theorem 5 in this argument.

The proof works as follows: Suppose there exists a T^n\hat{T}_{n} such that T^nT(p,q)c1n1/2ϵ|\hat{T}_{n}-T(p,q)|\leq c_{1}n^{-1/2-\epsilon} for all nn. If we are given 2n2n samples, we can use the first half to train KDEs p^n,q^n\hat{p}_{n},\hat{q}_{n}, and the second half to compute T^n\hat{T}_{n}. Armed with these quantities, we can build an estimator for the first and second order terms in the von Mises expansion, which, once p^n,q^n\hat{p}_{n},\hat{q}_{n} are fixed, is simply a quadratic functional of the densities. The precise estimator is T^nC2T(p^n,q^n)\hat{T}_{n}-C_{2}T(\hat{p}_{n},\hat{q}_{n}). The triangle inequality along with Theorem 5 shows that this estimator converges at rate n1/2ϵ+n3s2s+dn^{-1/2-\epsilon}+n^{\frac{-3s}{2s+d}} which is o(n1/2)o(n^{-1/2}) as soon as s>d/4s>d/4. This contradicts the minimax lower bound for estimating quadratic functionals of Hölder smooth densities. We refer the interested reader to the appendix for details of the proof.

Experiments

We conducted some simulations to examine the empirical rates of convergence of our estimators. We plotted the error as a function of the number of samples nn on a log\log-log\log scale in Figure 2 for each estimator and over a number of problem settings. Since our theoretical results are asymptotic in nature, we are not concerned with some discrepancy between the empirical and theoretical rates.

In the top row of Figure 2, we plot the performance of T^pl\widehat{T}_{pl} and T^lin\widehat{T}_{lin} across four different problem settings: d=1,s=1d=1,s=1; d=1,s=2d=1,s=2; d=2,s=2d=2,s=2; and d=2,s=4d=2,s=4. The lines fit to the plug-in estimator’s error rate have slopes 0.25,0.5,0.1,0.2-0.25,-0.5,-0.1,-0.2 from left to right while the lines for the linear estimator have slopes 0.7,0.75,0.65,0.6-0.7,-0.75,-0.65,-0.6. Qualitatively we see that the T^lin\widehat{T}_{lin} is consistently better than T^pl\widehat{T}_{pl}. We also see that increasing the smoothness ss appears to improve the rate of convergence of both estimators.

In the first plot on the bottom row, we record the error rate for T^quad\widehat{T}_{quad} with d=1d=1 and s=1.0,2.0s=1.0,2.0. The fitted lines have slopes 0.82,0.93-0.82,-0.93 respectively, which demonstrate that T^quad\widehat{T}_{quad} is indeed a better estimator than T^lin\widehat{T}_{lin}, at least statistically speaking. Recall that we studied T^quad\widehat{T}_{quad} primarily for its theoretical properties and to establish the critical smoothness index of s>d/4s>d/4 for this problem. Computing this estimator is quite demanding, so we did not evaluate it for larger sample size and in higher dimension.

Finally in the last three plots we show the rate of convergence for our divergence estimators, that is T^lin\widehat{T}_{lin} plugged into the equations for DαD_{\alpha} or TαT_{\alpha} and the quadratic-based estimator for L22L_{2}^{2}. Qualitatively, it is clear that the estimators converge fairly quickly and moreover we can verify that increasing the smoothness ss does have some effect on the rate of convergence.

Discussion

In this paper, we address the problem of divergence estimation with corrections of the plug-in estimator. We prove that our estimators enjoy parametric rates of convergence as long as the densities are sufficiently smooth. Moreover, through information theoretic techniques, we show that our best estimator T^quad\widehat{T}_{quad} is nearly minimax optimal.

Can we construct divergence estimators that are computationally and statistically efficient? Recall that T^quad\widehat{T}_{quad} involves numeric integration and is computationally impractical, yet T^lin\widehat{T}_{lin}, while statistically inferior, is surprisingly simple when applied to the divergences we consider. At this point we advocate for the use of T^lin\widehat{T}_{lin}, in spite of its sub-optimality.

What other properties do these estimators enjoy? Can we construct confidence intervals and statistical tests from them? In particular, can we use our estimators to test for independence between two random variables?

Do our techniques yield estimators for other divergences, such as ff-divergence and the Kullback-Leibler divergence?

Lastly, can one prove a lower bound for the case where α=β=1\alpha=\beta=1, i.e. the L2L_{2} inner product?

We hope to address these questions in future work.

Acknowledgements

This research is supported by DOE grant DESC0011114, NSF Grants DMS-0806009, IIS1247658, and IIS1250350, and Air Force Grant FA95500910373. AK is supported in part by a NSF Graduate Research Fellowship.

References

Appendix A The von Mises Expansion

Before diving into the auxiliary results of Section 5, let us first derive some properties of the von Mises expansion. It is a simple calculation to verify that the Gateaux derivative is simply the functional derivative of ϕ\phi in the event that T(F)=ϕ(f)T(F)=\int\phi(f).

Let T(F)=ϕ(f)dμT(F)=\int\phi(f)d\mu where f=dF/dμf=dF/d\mu is the Radon-Nikodym derivative, ϕ\phi is differentiable and let GG be some other distribution with density g=dG/dμg=dG/d\mu. Then:

We now demonstrate that the remainder for the ttth order von Mises expansion is O(pp^t+1t+1+qq^t+1t+1)O(\|p-\hat{p}\|_{t+1}^{t+1}+\|q-\hat{q}\|_{t+1}^{t+1}) under the assumption that p,p^,q,q^p,\hat{p},q,\hat{q} are all bounded above and below.

Let T(p,q)=pαqβdμT(p,q)=\int p^{\alpha}q^{\beta}d\mu and uppose that p,p^,q,q^p,\hat{p},q,\hat{q} are all bounded from above and below. Then RtR_{t}, the remainder of the ttth order von Mises expansion of T(p,q)T(p,q) around T(p^,q^)T(\hat{p},\hat{q}) satisfies:

The ttth order term in the von Mises expansion is:

where i=00ai=1\prod_{i=0}^{0}a_{i}=1. If we are to take a t1t-1st order expansion, the remainder is of the same form as the ttth term, except that the terms p^αa(x),q^β(ta)(x)\hat{p}^{\alpha-a}(x),\hat{q}^{\beta-(t-a)}(x) are replaced by functions ξ1αa(x),ξ2β(ta)(x)\xi_{1}^{\alpha-a}(x),\xi_{2}^{\beta-(t-a)}(x) for some functions ξ1,ξ2\xi_{1},\xi_{2} that are bounded between p,p^p,\hat{p} and q,q^q,\hat{q} respectively. In our setting, p,q[κl,κu]p,q\in[\kappa_{l},\kappa_{u}] and p^,q^[κlϵ,κu+ϵ]\hat{p},\hat{q}\in[\kappa_{l}-\epsilon,\kappa_{u}+\epsilon] so ξ1,ξ2\xi_{1},\xi_{2} are bounded functions. With this bound, we can simplify the remainder term Rt1R_{t-1} to:

Looking at the integral pointwise, either p(x)p^(x)q(x)q^(x)|p(x)-\hat{p}(x)|\leq|q(x)-\hat{q}(x)| in which case the expression is upper bounded by q(x)q^(x)t|q(x)-\hat{q}(x)|^{t} or the opposite is true in which case it is bounded by p(x)p^(x)t|p(x)-\hat{p}(x)|^{t}. Either way, we can upper bound the integral by the sum. This gives:

In many cases, the constant can be worked out:

If α=β=1\alpha=\beta=1, then R1=αβR_{1}=\alpha\beta while R2,,=0R_{2},\ldots,=0.

If α,β>0,α+β=1\alpha,\beta>0,\alpha+\beta=1 as in the Rényi Divergence, R2=1R_{2}=1 while R3=56κϵ2αβR_{3}=\frac{5}{6}\kappa_{\epsilon}^{-2}\alpha\beta where κϵ=min{κlϵ,(κu+ϵ)1}\kappa_{\epsilon}=\min\{\kappa_{l}-\epsilon,(\kappa_{u}+\epsilon)^{-1}\}.

The second order expansion is computed similarly. The three second order terms are:

Adding these together along with the linear terms, expanding and regrouping terms we get:

Appendix B Full Specification of the Estimators

Here we write out the complete expressions for the estimators T^pl,T^lin,T^quad\widehat{T}_{pl},\widehat{T}_{lin},\widehat{T}_{quad}. Recall that we have samples X1np,Y1nqX_{1}^{n}\sim p,Y_{1}^{n}\sim q and our goal is to estimate T(p,q)=pαqβT(p,q)=\int p^{\alpha}q^{\beta}. Define:

where DSDS is used to denote that we are data splitting, and KhK_{h} is a kernel with bandwidth hh meeting Assumption 3. The estimator T^pl\widehat{T}_{pl} is formed by simply plugging in p^,q^\hat{p},\hat{q} into the function TT. Formally:

The estimator T^lin\widehat{T}_{lin} is formed by a first order correction but we must used the data split KDEs to ensure independence between the multiple terms in the estimator.

For the quadratic term we perform an additional correction:

Recall that {ϕk}kD\{\phi_{k}\}_{k\in D} is an orthonormal basis for L2(d)L_{2}(^{d}), and MM is an appropriately chosen subset of DD. The first line of the estimator is simply the plugin term, while the second lines makes up the two linear terms. The third through sixth lines are the two quadratic terms, one involving the data from pp and the other involving the data from qq. Finally the last line is the bilinear term.

Appendix C Detailed Proofs of Upper Bound

Let us now prove the the auxiliary results stated in Section 5

K(x)dx=1\int K(x)dx=1 and ixipiK(x)dx=0\int\prod_{i}x_{i}^{p_{i}}K(x)dx=0 for all tuples p=(p1,,pd)p=(p_{1},\ldots,p_{d}) with pis\sum p_{i}\leq\lfloor s\rfloor.

Note that we can use the Legendre polynomials to construct kernels meeting these properties .

If we expand the expectation and drop the terms that vanish we get all terms of the form:

where the last expression comes from expanding the integral, performing a substitution and bounding f(x)κuf(x)\leq\kappa_{u}. So we can bound by C(q,κu,K)h(q1)dC(q,\kappa_{u},K)h^{-(q-1)d}. Plugging this into the expression above, we get:

The second inequality holds for nn sufficiently large. The third inequality holds whenever nhd1nh^{d}\geq 1 which will be true for nn sufficiently large, given our setting of hh. To summarize, all of the terms can be upper bounded by c(np/hpd)c(n^{p}/h^{pd}) and there are a constant-in-pp number of terms. Plugging this into Equation 15 we get

The constant here has exponential dependence on pp but we are only concerned with cases where pp is a small constant (at most 44).

As for the bias (note that x,u,tx,u,t are all dd-dimensional vectors here):

Let us define m=sm=\lfloor s\rfloor. Taking the (m1)(m-1)st order von Mises expansion of f(x+uh)f(x+uh) about f(x)f(x) we get terms of the form:

which are all zero by our assumption on KK. The remainder term, gives us:

which we will denote C(m,K,d)LhsC(m,K,d)Lh^{s}. Here the function ξ\xi is between Drf(x)D^{r}f(x) and Drf(xuh)D^{r}f(x-uh) and to reach the last expression, we use the fact that Drf(x)Drf(xuh)Luhsr|D^{r}f(x)-D^{r}f(x-uh)|\leq L\|uh\|^{s-r}, i.e. the Hölderian assumption on ff. In applying the Hölderian assumption, there is another term of the form Drf(x)iuiriK(u)duD^{r}f(x)\int\prod_{i}u_{i}^{r_{i}}K(u)du which is zero by the assumption on KK. Equipped with this bound, we can bound the bias:

This last inequality is an application of Bernstein’s inequality noting that ηi(x)2hdK|\eta_{i}(x)|\leq\frac{2}{h^{d}}\|K\|_{\infty} and Var(ηi(x))hdκuK22\operatorname*{{\rm Var}}(\eta_{i}(x))\leq h^{-d}\kappa_{u}\|K\|_{2}^{2} since:

since the second term goes to zero exponentially quickly in nn. This proves the theorem.

C.2 Convergence Rate for Estimating Linear Functionals

It is trivial to derive the convergence rate for estimating linear functionals:

C.3 Proof of Theorem 6

For the quadratic terms, we use a result of Laurent :

Let X1nX_{1}^{n} be i.i.d random variables with common density ff that belongs to some Hilbert Space L2(dμ)L^{2}(d\mu). Let {ϕi}iD\{\phi_{i}\}_{i\in D} be an orthonormal basis of L2(dμ)L^{2}(d\mu). Assume that ff is uniformly bounded and belongs to the ellipsoid E={iDaiϕi:iDai2/ci21}\mathcal{E}=\{\sum_{i\in D}a_{i}\phi_{i}:\sum_{i\in D}|a_{i}^{2}/c_{i}^{2}|\leq 1\}. Let ψ\psi be bounded function and define θ=ψ(x)f(x)μ(dx)\theta=\int\psi(x)f(x)\mu(dx) and θ^\hat{\theta} as in Equation 2 where the set M=MnDM=M_{n}\subset D has size mm. Then whenever nn0n\geq n_{0} (some absolute constant), we have:

For the bi-linear term θ2,2p,q\theta_{2,2}^{p,q} we have the following theorem:

Let X1nX_{1}^{n} be i.i.d random variables with common density ff and Y1nY_{1}^{n} be i.i.d. with common density gg. Let f,gf,g belong to some Hilbert space L2(dμ)L^{2}(d\mu) and let {ϕi}iD\{\phi_{i}\}_{i\in D} be an orthonormal basis for L2(dμ)L^{2}(d\mu). Assume that f,gf,g are uniformly bounded and both belong to the ellipsoid E={iDaiϕi:iDai2/ci21}\mathcal{E}=\{\sum_{i\in D}a_{i}\phi_{i}:\sum_{i\in D}|a_{i}^{2}/c_{i}^{2}|\leq 1\}. Let θ=ψ(x)f(x)g(x)μ(dx)\theta=\int\psi(x)f(x)g(x)\mu(dx) and θ^\hat{\theta} be defined by Equation 1 where the set M=MnDM=M_{n}\subset D has size mm. Then whenever nn0n\geq n_{0} (some absolute constant), we have:

where αi=ϕi(x)f(x)\alpha_{i}=\int\phi_{i}(x)f(x) and PMf\mathcal{P}_{M}f is the projection of ff onto the subspace defined by MM. Define βi=ϕi(x)g(x)\beta_{i}=\int\phi_{i}(x)g(x). If f,gf,g live in the ellipsoid E={aiϕiai2/ci2L}\mathcal{E}=\{\sum a_{i}\phi_{i}|\sum|a_{i}|^{2}/|c_{i}|^{2}\leq L\} then:

The term inside the parenthesis can be bounded as:

so the bias is Bias2(θ^)ψ2L2supiMci4\textrm{Bias}^{2}(\hat{\theta})\leq\|\psi\|_{\infty}^{2}L^{2}\sup_{i\notin M}|c_{i}|^{4}.

As for the variance, let us define Q(x)Q(x) to be the mm-dimensional vector of functions ϕi(x)αi\phi_{i}(x)-\alpha_{i} and R(x)R(x) to be the mm-dimensional vector of functions ϕi(x)ψ(x)ψϕig\phi_{i}(x)\psi(x)-\int\psi\phi_{i}g. Further define A,BA,B to be the mm-dimensional vectors with iith components αi=ϕif\alpha_{i}=\int\phi_{i}f and βi=ψϕig\beta_{i}=\int\psi\phi_{i}g respectively. Then our estimator can alternatively be written as:

For T2T_{2} again by independence we have:

Here the last inequality follows from the fact that βi=ψϕig\beta_{i}=\int\psi\phi_{i}g is the iith fourier coefficient of ψg\psi g so iβiϕi\sum_{i}\beta_{i}\phi_{i} is the projection onto MM. Of course this quantity is bounded by:

Essentially the same argument reveals that T3T_{3} is bounded in the same way.

In Lemma 14 we show that the class W(s,L)\mathcal{W}(s^{\prime},L^{\prime}) contains Σ(s,L)\Sigma(s,L) as long as s<ss^{\prime}<s and with appropriate choice of LL^{\prime}. For now let us work in W(s,L)\mathcal{W}(s^{\prime},L^{\prime}).

Thinking of MnM_{n} as an integer lattice with side lengths m0=m1/dm_{0}=m^{1/d} we see that Mn=m|M_{n}|=m. Moreover supiMnci4=L2(2/m)4s/d\sup_{i\notin M_{n}}|c_{i}|^{4}=L^{2}(2/m)^{4s^{\prime}/d}. For the quadratic terms, this results in the bound:

and plugging in our definition of mm followed by some algebraic simplifications, we get

For the bilinear terms, plugging into Theorem 11, we get

Appendix D Proofs of Corollaries 4 and 3

The proof of Corollary 4 is immediate given the decomposition pq22=p2+q22pq\|p-q\|_{2}^{2}=\int p^{2}+\int q^{2}-2\int pq and the Theorem 6.

For Corollary 3, if we use our estimator T^\hat{T} for T(p,q)=pαq1αT(p,q)=\int p^{\alpha}q^{1-\alpha} we can plug T^\hat{T} into the definition of Rényi divergence to obtain an estimator D^α\hat{D}_{\alpha}. The rate of convergence is:

where γ\gamma is the rate of convergence of our estimator. This is O(nγ)O(n^{-\gamma}) as long as T(p,q)c>0T(p,q)\geq c>0.

Appendix E Detailed Proofs for Lower Bound

To prove the main part of the theorem, the Ω(n4s4s+d)\Omega(n^{\frac{-4s}{4s+d}}) rate, we use Le Cam’s method. We decompose the proof into three parts. In the first part, we adapt Le Cam’s method to our setting. In the second part, we show how the properties established on the functions uju_{j}, j[p]j\in[p] allow us to apply the technique and establish the theorem. In the third part, we prove the existence of such functions uju_{j}. We conclude this section with a proof of the Ω(n1/2)\Omega(n^{-1/2}) when s>d/4s>d/4.

Recall that in our proof we partition d^{d} into mm cubes R1,,RmR_{1},\ldots,R_{m} of side length m1/dm^{-1/d}. On each bin we require a function uju_{j} such that:

where the last inequality needs to hold for all tuples rr with jrjs+1\sum_{j}r_{j}\leq s+1. Using these functions uju_{j}, we construct the alternatives gλ=p+KλΛλjuj1Rjg_{\lambda}=p+K\sum_{\lambda\in\Lambda}\lambda_{j}u_{j}\mathbf{1}_{R_{j}} for all λΛ={1,1}m\lambda\in\Lambda=\{-1,1\}^{m}. The third property above ensures that gλg_{\lambda} is a valid density.

Properties 2, 4, and 5 ensure that T(p,q)T(gλ,q)T(p,q)-T(g_{\lambda},q) is sufficiently large. Indeed, by the von Mises expansion:

Here ξ\xi is the function in the Taylor’s remainder theorem, bounded between pp and gλg_{\lambda}, both of which are bounded above and below. gλg_{\lambda} is bounded above and below by property 5 since D0uj=uj1\|D_{0}u_{j}\|_{\infty}=\|u_{j}\|_{\infty}\leq 1 which means that gλ[1K,1+K]g_{\lambda}\in[1-K,1+K]. KK will be decreasing with nn, so this quantity will certainly be bounded for nn large enough. Property 2 allows us to arrive at the last line since each uju_{j} is orthogonal to the derivative of TT, so the first term in the expansion is zero. Finally property 4 allows us to lower bound uj22\|u_{j}\|_{2}^{2}.

Property 2 is also critical in ensuring that h2(Pn×Qn,Gˉn×Qn)h^{2}(P^{n}\times Q^{n},\bar{G}^{n}\times Q^{n}) is small through the following Theorem of Birge and Massart .

Consider a set of densities pp and pλ=p[1+jλjvj(x)]p_{\lambda}=p[1+\sum_{j}\lambda_{j}v_{j}(x)] for λΛ={1,1}m\lambda\in\Lambda=\{-1,1\}^{m}. Suppose that (i) vj1\|v_{j}\|_{\infty}\leq 1 (ii) 1RjCvj1=0\|1_{R_{j}^{C}}v_{j}\|_{1}=0, (iii) vjp=0\int v_{j}p=0 and (iv) vj2p=αj>0\int v_{j}^{2}p=\alpha_{j}>0 all hold with:

Define PˉΛn=1ΛλΛPλn\bar{P}_{\Lambda}^{n}=\frac{1}{|\Lambda|}\sum_{\lambda\in\Lambda}P_{\lambda}^{n}. Then:

where C<1/3C<1/3 is continuous and non-decreasing with respect to each argument and C(0,0,0)=1/16C(0,0,0)=1/16.

In bounding the Hellinger distance h2(Pn×Qn,Gˉn×Qn)h^{2}(P^{n}\times Q^{n},\bar{G}^{n}\times Q^{n}) we first use the property that hellinger distance decomposes across product measures:

If we define vj(x)=Kuj(x)/p(x)v_{j}(x)=Ku_{j}(x)/p(x) then we have gλ=p[1+jλjvj]g_{\lambda}=p[1+\sum_{j}\lambda_{j}v_{j}] as needed by Theorem 12. We immediately satisfy requirements 1, 2, and 3 and we have vj2p=K2uj2/pK2κl/m=αj\int v_{j}^{2}p=K^{2}\int u_{j}^{2}/p\leq K^{2}\kappa_{l}/m=\alpha_{j}. Thus in applying the theorem we have:

Property 1 and 5 ensure that gλΣ(s,L)g_{\lambda}\in\Sigma(s,L) via the following argument. Defining uλ=Kjλjuju_{\lambda}=K\sum_{j}\lambda_{j}u_{j}, we will first show that uλu_{\lambda} is holder smooth and gλg_{\lambda} will be holder by a final application of the triangle inequality. For uλu_{\lambda}, fix rr with jrj=s\sum_{j}r_{j}=s and fix x,yx,y. Let x1x_{1} be the boundary point of RjR_{j}, the bin containing xx along the line between xx and yy and let y1y_{1} be the analogous boundary point for yy.

The first line is an application of the triangle inequality. In the second line we use that uλu_{\lambda} is zero and has all derivatives equal to zero on the boundaries of the cubes RjR_{j}. This follows from the fact that uju_{j} is not supported in the band around the border of RjR_{j}. The third line is an application of the fundamental theorem of calculus, γ(x,x1)\gamma(x,x_{1}) is the path between xx and x1x_{1}. The fourth line follows from Hölder’s inequality, we replace each derivative with its supremum and are left with just the path integral, which simplifies to the length of the path, i.e. xx12\|x-x_{1}\|_{2}. In the fifth line we use the assumption Drujmr/d\|D^{r}u_{j}\|_{\infty}\leq m^{r/d} for any derivative operator with jrjs+1\sum_{j}r_{j}\leq s+1. To arrive at the sixth line, notice that since x,x1x,x_{1} are in the same box RjR_{j}, we have xx12dm1/d\|x-x_{1}\|_{2}\leq\sqrt{d}m^{-1/d} (there are mm boxes and each one has length m1/dm^{-1/d} on each side). The last line is true since x1,y1x_{1},y_{1} are on the line segment between x,yx,y.

In other words, gλg_{\lambda} is holder smooth as long as Kms/ddLKm^{s/d}\sqrt{d}\asymp L, imposing the requirement that K=O(ms/d)K=O(m^{-s/d}). So if we pick m=n2d4s+dm=n^{\frac{2d}{4s+d}} and K=ms/d=n2s4s+dK=m^{-s/d}=n^{\frac{-2s}{4s+d}} we get that gλΣ(s,L)g_{\lambda}\in\Sigma(s,L) as long as there is some wiggle room around pp. We also get that the Hellinger distance is bounded by O(n2n8s4s+dn2d4s+d)=O(1)O(n^{2}n^{\frac{-8s}{4s+d}}n^{\frac{-2d}{4s+d}})=O(1) and the distance in our metric is n4s4s+dn^{\frac{-4s}{4s+d}} as we desired. We can apply Theorem 7 and arrive at the result.

To wrap up, we need to show that we can in fact find the functions uju_{j}. We can do this by mapping RjR_{j} to d^{d} and using an orthonormal system {ϕj}j=1q\{\phi_{j}\}_{j=1}^{q} for L2(d)L^{2}(^{d}) with q3q\geq 3. Suppose that ϕj\phi_{j} satisfy (i) ϕ1=1\phi_{1}=1, ϕj(x)=0\phi_{j}(x)=0 for x[ϵ,1ϵ]dx\notin[\epsilon,1-\epsilon]^{d} and (iii) DrϕjK<\|D^{r}\phi_{j}\|_{\infty}\leq K<\infty for all jj. Certainly we can find such an orthonormal system.

To construct the functions uju_{j}, map the Rj=Πi=1d[jim1/d,(ji+1)m1/d]R_{j}=\Pi_{i=1}^{d}[j_{i}m^{-1/d},(j_{i}+1)m^{-1/d}] to d^{d} and let the function f=pα1(x)qβ(x)f=p^{\alpha-1}(x)q^{\beta}(x) mapped appropriately to d^{d}. Use the function vjv_{j} constructed in the previous paragraph. In mapping back to RjR_{j}, let uj(x)=vj(m1/d(x(j1,,jd))T)u_{j}(x)=v_{j}(m^{1/d}(x-(j_{1},\ldots,j_{d}))^{T}) so that Rjuj2(x)dx=m1vj2(x)dx=Ω(1/m)\int_{R_{j}}u_{j}^{2}(x)dx=m^{-1}\int v_{j}^{2}(x)dx=\Omega(1/m) and Drujmr/d\|D^{r}u_{j}\|_{\infty}\leq m^{r/d}. These functions uju_{j} meet the requirements 1-5 outlined above, allowing us to apply Le Cam’s method.

To obtain the n1/2n^{-1/2} lower bound for the highly-smooth setting, we will reduce the problem of estimating T(p,q)T(p,q) to that of estimating a quadratic functional of the two densities:

Here we used that u(x)=0\int u(x)=0 if p1p_{1} is to remain a density. This is one of the requirements on the function uu that we will pick. If the KL-divergence is to remain bounded, we will also require that u22c/n\|u\|_{2}^{2}\leq c/n for some constant.

If we make a mistake in the testing problem, we suffer at least 1/2θ(p0,q)θ(p1,q)1/2|\theta(p_{0},q)-\theta(p_{1},q)| loss in the estimation problem. So we must lower bound the absolute difference between the two functional values.

where f(x)=a1(x)+a3(x)q(x)+2a4(x)f(x)=a_{1}(x)+a_{3}(x)q(x)+2a_{4}(x). Suppose we had a function vv such that:

Then if we use u(x)=n1/2v(x)u(x)=n^{-1/2}v(x) the loss we suffer is at least c1/nc2/nϵn1/2c_{1}/\sqrt{n}-c_{2}/n\geq\epsilon n^{-1/2} for some ϵ>0\epsilon>0 for nn sufficiently large. At the same time, the KL-divergence between the two hypothesis is also O(1)O(1). So we would be able to apply Le Cam’s inequality.

Then u(x)=v(x)/nu(x)=v(x)/\sqrt{n} meets all of the requirements. Notice that since vΣ(s,A)v\in\Sigma(s,A), we have that uΣ(s,A/n)Σ(s,L)u\in\Sigma(s,A/\sqrt{n})\subset\Sigma(s,L) for nn sufficiently large. ∎

In what follows, the functional θ\theta that we are trying to estimate will actually be a random quantity. However, since Theorem 13 applies to any set of five bounded continuous function a1,,a5a_{1},\ldots,a_{5}, it actually applies to any distribution over this space of five bounded continuous functions. Mathematically, for any distribution D\mathcal{D} over this space of bounded continuous functions:

where θ(a15,p,q)\theta(a_{1}^{5},p,q) is given in Equation 21.

The quadratic functional of p,qp,q will be the terms in the second order expansion of T(p,q)T(p,q) about T(p^n,q^n)T(\hat{p}_{n},\hat{q}_{n}).

Given 2n2n samples, as in our upper bound, we use the first nn to construct estimators p^n,q^n\hat{p}_{n},\hat{q}_{n} for p,qp,q respectively. We use the second nn samples to compute T^n\hat{T}_{n}. The estimator for θ\theta will be θ^2n=T^nC2T(p^n,q^n)\hat{\theta}_{2n}=\widehat{T}_{n}-C_{2}T(\hat{p}_{n},\hat{q}_{n}). Where we are collecting all of the terms of the form T(p^n,q^n)T(\hat{p}_{n},\hat{q}_{n}) together. Recall that C2C_{2} is the coefficient for all of these terms.

More formally, let D\mathcal{D} encode the following distribution: We drawn X1n,Y1nX_{1}^{n},Y_{1}^{n} from p,qp,q respectively and compute p^n,q^n\hat{p}_{n},\hat{q}_{n}. With these, the five functions a1,,a5a_{1},\ldots,a_{5} are:

Notice that all of these functions are continuous and they can be bounded from above and below if we use the truncated kernel density estimators. Now whenever s>d/4s>d/4:

We therefore know that ϵn=Ω(nγ)\epsilon_{n}=\Omega(n^{-\gamma}) where γ=min{4s4s+d,1/2}\gamma=\min\{\frac{4s}{4s+d},1/2\} since otherwise we would have an estimator T^\hat{T} for T(p,q)T(p,q) with rate o(nγ)o(n^{-\gamma}), which contradicts Theorem 2.

For DαD_{\alpha}, we use the same proof structure, but computing the error for T^\hat{T} is more involved. The estimator T^=exp{(α1)D^}\hat{T}=\exp\{(\alpha-1)\hat{D}\} has error:

We would like to eliminate the absolute value, so we will have to consider all of the cases. If α<1\alpha<1 and D>D^D>\hat{D} then the first term dominates the second so we can simply drop the absolute value sign. In this case we can use convexity of exe^{x} to upper bound by:

Appendix F More Auxiliary Results

with C=l=04l(ss)C=\sum_{l=0}^{\infty}4^{l(s^{\prime}-s)}.

Let us decompose s=r+αs=r+\alpha where r=sr=\lfloor s\rfloor and α(0,1]\alpha\in(0,1]. We need to bound:

Let us write g(x)=rxjrf(x)g(x)=\frac{\partial^{r}}{\partial x_{j}^{r}}f(x). Then since fΣ(s,L)f\in\Sigma(s,L), we know that gg satisfies:

whenever the series converges (as long as α<α\alpha^{\prime}<\alpha).

Using this as our value for γj\gamma_{j} and summing over the dd dimensions, we get: