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 , Rényi-, and Tsallis- 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 . Concretely, we show that the plug-in estimator achieves rate while correcting by the first order terms in the expansion results in an -estimator and correcting further by the second order terms gives an -estimator. These last two estimators achieve the parametric rate as long as the smoothness is larger than , respectively, where 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 -rate when and -rate otherwise. This establishes the optimality of our best estimator in the smooth regime and also that 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, for given . Various settings of yield the main terms in the divergences, and we will verify that estimators for 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 mapping distributions to the reals, the first-order von Mises expansion is:
where and are distributions, is a remainder term, and is the Gateaux derivative of at in the direction of :
In our work, is always of the form where is the Radon-Nikodym derivative and 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 instead of .
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 -nearest-neighbor estimator and show that one does not need a consistent density estimator to consistently estimate Rényi- and Tsallis- 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 -rate when and 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 rate can be achieved at the much lower smoothness of . Moreover we establish a minimax lower bound for this problem, which shows that is the critical smoothness index.
Källberg and Seleznjev study an -nearest neighbor estimator for the -divergence that enjoys the same rate of convergence as our projection-based estimator. They prove that the estimator is asymptotically normal in the 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 , achieving the parametric rate when . Similarly, Sricharan et al. show that when a -NN style estimator achieves rate (in absolute error) ignoring logarithmic factors. In a follow up work, the authors improve this result to using an ensemble of weak estimators, but they require orders of smoothness . In contrast, our estimators achieve the parametric rate at lower smoothness ( 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 -lower bound for estimating integral functionals of a density. Hero et al. give a matching lower bound for estimating Rényi- 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 , for some known function , given samples from . A series of papers show that rate of convergence is attainable if and only if , 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 . As an initial attempt, with estimators and for and , we can use the plug-in estimator . Via the von Mises expansion of , the error is of the form:
Classical results on density estimation then suggest that will enjoy a -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 which decays with , while the linear terms can be estimated at -rate. This estimator, which we call enjoys a faster convergence rate than .
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 while the linear and quadratic terms can be estimated at and rate respectively. This corrected estimator achieves the parametric rate whenever the smoothness 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 about :
with remainders, .
The terms are of the form:
again with known . To estimate these terms, we have samples . If is an orthonormal basis for then the estimator for the bilinear term is:
where is chosen to tradeoff the bias and the variance. To develop some intuition, if we knew , we would simply use the sample mean . Since is actually unknown, we replace it with an estimator formed by truncating its Fourier expansion. Specifically, we replace with with .
For the quadratic functional, a projection estimator was proposed and analyzed by Laurent :
where . 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 with kernel density estimators, which, except for in , we only train on half of the sample. This gives us independent samples to estimate the terms. Second, in our analysis, we will require that the KDEs are bounded above and below. Under the assumption that and 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 , which can be computationally burdensome, particularly in high dimension. However, whenever , as in the Rényi- and Tsallis- divergences, the constants are zero, so the first term may be omitted. In this case 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 , the quadratic estimator still involves integration of the terms. We therefore advocate for over in practice, as exhibits a better tradeoff between computational and statistical efficiency.
Theoretical Results
For our theoretical analysis, we will assume that the densities belong to , the periodic Hölder class of smoothness , defined as follows:
For any tuple define . The periodic Hölder class is the subset of where for each , the th derivative is periodic for any tuple with and:
for all and for all tuples with the largest integer strictly smaller than .
We are now ready to state our main assumptions:
for some known smoothness .
The densities are bounded above and below by known parameters . Formally for all .
Set the KDE bandwidth . For any projection-style estimator, set the number of basis elements .
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 :
All expectations are taken with respect to . When , enjoys rate of convergence for any The constant is exponential in and is infinite for .. and achieve the parametric rate when respectively.
Before commenting on the upper bound and presenting some consequences, we address the question of statistical efficiency. Clearly and are not rate-optimal, since achieves a faster rate of convergence, but is 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 , then with and for any :
For a pictorial understanding of the rates of convergence and the lower bound, we plot the exponent for each of the terms in the von Mises expansion as a function of the smoothness in Figure 1. The estimator has three terms, with rates , and respectively which achieves the parametric rate when and is in the low-smoothness regime. The linear estimator only achieves the parametric rate while while only approaches the parametric rate as . Consequently these estimators are statistically inferior to . In the last plot we show a lower bound on the rate of convergence from Theorem 2, which is when and when .
The lower bound rate deviates slightly from the upper bound for in the low-smoothness regime, showing that is also not minimax-optimal uniformly over . 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 () we see that the parametric rate is both necessary and sufficient. This critical smoothness index of was also observed in the context of estimating integral functionals of densities .
When , the quadratic estimator achieves rate for any , where the constant is exponential in , 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- divergences. For Rényi-, some care must be taken in the translation, but we are able to prove the same lower bound as long as is bounded. The idea behind these extensions is to translate an estimator for the divergence into an estimator for . We then argue that if enjoyed a fast rate of convergence, so would , which leads to a contradiction of the theorem. Unfortunately, Theorem 2 does not imply a lower bound for divergence, since we are unable to handle the case, which is exactly the cross term in the -divergence.
Our proof requires that both are both not or , which is not entirely surprising. If , is identically zero, so one should not be able to prove a lower bound. Similarly or vice versa, for any , so we have efficient, trivial estimators.
The only non-trivial case is and we conjecture that the rate is minimax optimal there, although our proof does not apply. Our proof strategy involves fixing and perturbing , or vice versa. In this approach, one can view the optimal estimator as having knowledge of , so if , the sample average is a -consistent estimator, which prevents us from achieving the rate. We believe this is an artifact of our proof, and by perturbing both and simultaneously, we conjecture that one can prove a minimax lower bound of when .
We now show how an estimate of can be used to estimate the divergences mentioned above. Plugging into the definition of Rényi- and Tsallis- divergences, we immediately have the following corollary:
Under Assumptions 1- 4, as long as for some constant , the estimators:
As we mentioned before, when , for both the linear and quadratic estimators, one can omit the term as the constants . However, is still somewhat impractical due to the numeric integration in the quadratic terms. On the other hand, the linear estimator is computationally very simple, although its convergence rate is .
For the 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 and define by Equation 2 with . Define analogously and finally define with given by Equation 1 where . As a corollary of Theorem 6 below, we have:
Under Assumptions 1- 4, the estimator for satisfies:
Notice that for both quadratic terms, the terms in Equation 2 are since and since is an orthonormal collection. Thus the estimator 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 , and come from analyzing the kernel density estimators and the estimators for . Recall that we must use truncated KDEs 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 be a density satisfying Assumptions 1- 4 and suppose we have . The truncated KDE satisfies:
Let be densities in and let be a known bounded function. Let be the Fourier basis and the set of basis elements with frequency not exceeding , where for some . If and is given by Equation 1 or if and 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 be a functional defined on some subset of a parameter space which contains and in some index set . Define where has density . If:
where .
To construct the functions, we partition the space into cubes and construct functions that are compactly supported on . We then set for . By appropriately selecting the functions , we can ensure that:
Ensuring smoothness requires at which point, making the Hellinger distance requires . With these choices we can apply Lemma 7 and arrive at the lower bound since .
As for the second part of the theorem, the 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 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 for with rate , we construct an estimator for a particular quadratic functional with 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 such that for all . If we are given samples, we can use the first half to train KDEs , and the second half to compute . Armed with these quantities, we can build an estimator for the first and second order terms in the von Mises expansion, which, once are fixed, is simply a quadratic functional of the densities. The precise estimator is . The triangle inequality along with Theorem 5 shows that this estimator converges at rate which is as soon as . 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 on a - 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 and across four different problem settings: ; ; ; and . The lines fit to the plug-in estimator’s error rate have slopes from left to right while the lines for the linear estimator have slopes . Qualitatively we see that the is consistently better than . We also see that increasing the smoothness appears to improve the rate of convergence of both estimators.
In the first plot on the bottom row, we record the error rate for with and . The fitted lines have slopes respectively, which demonstrate that is indeed a better estimator than , at least statistically speaking. Recall that we studied primarily for its theoretical properties and to establish the critical smoothness index of 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 plugged into the equations for or and the quadratic-based estimator for . Qualitatively, it is clear that the estimators converge fairly quickly and moreover we can verify that increasing the smoothness 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 is nearly minimax optimal.
Can we construct divergence estimators that are computationally and statistically efficient? Recall that involves numeric integration and is computationally impractical, yet , while statistically inferior, is surprisingly simple when applied to the divergences we consider. At this point we advocate for the use of , 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 -divergence and the Kullback-Leibler divergence?
Lastly, can one prove a lower bound for the case where , i.e. the 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 in the event that .
Let where is the Radon-Nikodym derivative, is differentiable and let be some other distribution with density . Then:
We now demonstrate that the remainder for the th order von Mises expansion is under the assumption that are all bounded above and below.
Let and uppose that are all bounded from above and below. Then , the remainder of the th order von Mises expansion of around satisfies:
The th order term in the von Mises expansion is:
where . If we are to take a st order expansion, the remainder is of the same form as the th term, except that the terms are replaced by functions for some functions that are bounded between and respectively. In our setting, and so are bounded functions. With this bound, we can simplify the remainder term to:
Looking at the integral pointwise, either in which case the expression is upper bounded by or the opposite is true in which case it is bounded by . Either way, we can upper bound the integral by the sum. This gives:
In many cases, the constant can be worked out:
If , then while .
If as in the Rényi Divergence, while where .
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 . Recall that we have samples and our goal is to estimate . Define:
where is used to denote that we are data splitting, and is a kernel with bandwidth meeting Assumption 3. The estimator is formed by simply plugging in into the function . Formally:
The estimator 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 is an orthonormal basis for , and is an appropriately chosen subset of . 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 and the other involving the data from . 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
and for all tuples with .
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 . So we can bound by . Plugging this into the expression above, we get:
The second inequality holds for sufficiently large. The third inequality holds whenever which will be true for sufficiently large, given our setting of . To summarize, all of the terms can be upper bounded by and there are a constant-in- number of terms. Plugging this into Equation 15 we get
The constant here has exponential dependence on but we are only concerned with cases where is a small constant (at most ).
As for the bias (note that are all -dimensional vectors here):
Let us define . Taking the st order von Mises expansion of about we get terms of the form:
which are all zero by our assumption on . The remainder term, gives us:
which we will denote . Here the function is between and and to reach the last expression, we use the fact that , i.e. the Hölderian assumption on . In applying the Hölderian assumption, there is another term of the form which is zero by the assumption on . Equipped with this bound, we can bound the bias:
This last inequality is an application of Bernstein’s inequality noting that and since:
since the second term goes to zero exponentially quickly in . 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 be i.i.d random variables with common density that belongs to some Hilbert Space . Let be an orthonormal basis of . Assume that is uniformly bounded and belongs to the ellipsoid . Let be bounded function and define and as in Equation 2 where the set has size . Then whenever (some absolute constant), we have:
For the bi-linear term we have the following theorem:
Let be i.i.d random variables with common density and be i.i.d. with common density . Let belong to some Hilbert space and let be an orthonormal basis for . Assume that are uniformly bounded and both belong to the ellipsoid . Let and be defined by Equation 1 where the set has size . Then whenever (some absolute constant), we have:
where and is the projection of onto the subspace defined by . Define . If live in the ellipsoid then:
The term inside the parenthesis can be bounded as:
so the bias is .
As for the variance, let us define to be the -dimensional vector of functions and to be the -dimensional vector of functions . Further define to be the -dimensional vectors with th components and respectively. Then our estimator can alternatively be written as:
For again by independence we have:
Here the last inequality follows from the fact that is the th fourier coefficient of so is the projection onto . Of course this quantity is bounded by:
Essentially the same argument reveals that is bounded in the same way.
In Lemma 14 we show that the class contains as long as and with appropriate choice of . For now let us work in .
Thinking of as an integer lattice with side lengths we see that . Moreover . For the quadratic terms, this results in the bound:
and plugging in our definition of 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 and the Theorem 6.
For Corollary 3, if we use our estimator for we can plug into the definition of Rényi divergence to obtain an estimator . The rate of convergence is:
where is the rate of convergence of our estimator. This is as long as .
Appendix E Detailed Proofs for Lower Bound
To prove the main part of the theorem, the 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 , allow us to apply the technique and establish the theorem. In the third part, we prove the existence of such functions . We conclude this section with a proof of the when .
Recall that in our proof we partition into cubes of side length . On each bin we require a function such that:
where the last inequality needs to hold for all tuples with . Using these functions , we construct the alternatives for all . The third property above ensures that is a valid density.
Properties 2, 4, and 5 ensure that is sufficiently large. Indeed, by the von Mises expansion:
Here is the function in the Taylor’s remainder theorem, bounded between and , both of which are bounded above and below. is bounded above and below by property 5 since which means that . will be decreasing with , so this quantity will certainly be bounded for large enough. Property 2 allows us to arrive at the last line since each is orthogonal to the derivative of , so the first term in the expansion is zero. Finally property 4 allows us to lower bound .
Property 2 is also critical in ensuring that is small through the following Theorem of Birge and Massart .
Consider a set of densities and for . Suppose that (i) (ii) , (iii) and (iv) all hold with:
Define . Then:
where is continuous and non-decreasing with respect to each argument and .
In bounding the Hellinger distance we first use the property that hellinger distance decomposes across product measures:
If we define then we have as needed by Theorem 12. We immediately satisfy requirements 1, 2, and 3 and we have . Thus in applying the theorem we have:
Property 1 and 5 ensure that via the following argument. Defining , we will first show that is holder smooth and will be holder by a final application of the triangle inequality. For , fix with and fix . Let be the boundary point of , the bin containing along the line between and and let be the analogous boundary point for .
The first line is an application of the triangle inequality. In the second line we use that is zero and has all derivatives equal to zero on the boundaries of the cubes . This follows from the fact that is not supported in the band around the border of . The third line is an application of the fundamental theorem of calculus, is the path between and . 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. . In the fifth line we use the assumption for any derivative operator with . To arrive at the sixth line, notice that since are in the same box , we have (there are boxes and each one has length on each side). The last line is true since are on the line segment between .
In other words, is holder smooth as long as , imposing the requirement that . So if we pick and we get that as long as there is some wiggle room around . We also get that the Hellinger distance is bounded by and the distance in our metric is 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 . We can do this by mapping to and using an orthonormal system for with . Suppose that satisfy (i) , for and (iii) for all . Certainly we can find such an orthonormal system.
To construct the functions , map the to and let the function mapped appropriately to . Use the function constructed in the previous paragraph. In mapping back to , let so that and . These functions meet the requirements 1-5 outlined above, allowing us to apply Le Cam’s method.
To obtain the lower bound for the highly-smooth setting, we will reduce the problem of estimating to that of estimating a quadratic functional of the two densities:
Here we used that if is to remain a density. This is one of the requirements on the function that we will pick. If the KL-divergence is to remain bounded, we will also require that for some constant.
If we make a mistake in the testing problem, we suffer at least loss in the estimation problem. So we must lower bound the absolute difference between the two functional values.
where . Suppose we had a function such that:
Then if we use the loss we suffer is at least for some for sufficiently large. At the same time, the KL-divergence between the two hypothesis is also . So we would be able to apply Le Cam’s inequality.
Then meets all of the requirements. Notice that since , we have that for sufficiently large. ∎
In what follows, the functional 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 , it actually applies to any distribution over this space of five bounded continuous functions. Mathematically, for any distribution over this space of bounded continuous functions:
where is given in Equation 21.
The quadratic functional of will be the terms in the second order expansion of about .
Given samples, as in our upper bound, we use the first to construct estimators for respectively. We use the second samples to compute . The estimator for will be . Where we are collecting all of the terms of the form together. Recall that is the coefficient for all of these terms.
More formally, let encode the following distribution: We drawn from respectively and compute . With these, the five functions 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 :
We therefore know that where since otherwise we would have an estimator for with rate , which contradicts Theorem 2.
For , we use the same proof structure, but computing the error for is more involved. The estimator has error:
We would like to eliminate the absolute value, so we will have to consider all of the cases. If and then the first term dominates the second so we can simply drop the absolute value sign. In this case we can use convexity of to upper bound by:
Appendix F More Auxiliary Results
with .
Let us decompose where and . We need to bound:
Let us write . Then since , we know that satisfies:
whenever the series converges (as long as ).
Using this as our value for and summing over the dimensions, we get: