Estimation of Rényi Entropy and Mutual Information Based on Generalized Nearest-Neighbor Graphs

Dávid Pál, Barnabás Póczos, Csaba Szepesvári

Introduction

In a naïve approach to Rényi entropy and mutual information estimation, one could use the so called “plug-in” estimates. These are based on the obvious idea that since entropy and mutual information are determined solely by the density ff (and its marginals), it suffices to first estimate the density using one’s favorite density estimate which is then “plugged-in” into the formulas defining entropy and mutual information. The density is, however, a nuisance parameter which we do not want to estimate. Density estimators have tunable parameters and we may need cross validation to achieve good performance.

The entropy estimation algorithm considered here is direct—it does not build on density estimators. It is based on kk-nearest-neighbor (NN) graphs with a fixed kk. A variant of these estimators, where each sample point is connected to its kk-th nearest neighbor only, were recently studied by Goria et al. (2005) for Shannon entropy estimation (i.e. the special case α=1\alpha=1) and Leonenko et al. (2008) for Rényi α\alpha-entropy estimation. They proved the weak consistency of their estimators under certain conditions. However, their proofs contain some errors, and it is not obvious how to fix them. Namely, Leonenko et al. (2008) apply the generalized Helly-Bray theorem, while Goria et al. (2005) apply the inverse Fatou lemma under conditions when these theorems do not hold. This latter error originates from the article of Kozachenko and Leonenko (1987), and this mistake can also be found in Wang et al. (2009b).

The first main contribution of this paper is to give a correct proof of consistency of these estimators. Employing a very different proof techniques than the papers mentioned above, we show that these estimators are, in fact, strongly consistent provided that the unknown density ff has bounded support and α∈(0,1)\alpha\in(0,1). At the same time, we allow for more general nearest-neighbor graphs, wherein as opposed to connecting each point only to its kk-th nearest neighbor, we allow each point to be connected to an arbitrary subset of its kk nearest neighbors. Besides adding generality, our numerical experiments seem to suggest that connecting each sample point to all its kk nearest neighbors improves the rate of convergence of the estimator.

The second major contribution of our paper is that we prove a finite-sample high-probability bound on the error (i.e. the rate of convergence) of our estimator provided that ff is Lipschitz. According to the best of our knowledge, this is the very first result that gives a rate for the estimation of Rényi entropy. The closest to our result in this respect is the work by Tsybakov and van der Meulen (1996) who proved the root-nn consistency of an estimator of the Shannon entropy and only in one dimension.

The third contribution is a strongly consistent estimator of Rényi mutual information that is based on NN graphs and the empirical copula transformation (Dedecker et al., 2007). This result is proved for d≥3d\geq 3 Our result for Rényi entropy estimation holds for d=1d=1 and d=2d=2, too. and α∈(1/2,1)\alpha\in(1/2,1). This builds upon and extends the previous work of Póczos et al. (2010) where instead of NN graphs, the minimum spanning tree (MST) and the shortest tour through the sample (i.e. the traveling salesman problem, TSP) were used, but it was only conjectured that NN graphs can be applied as well.

There are several advantages of using kk-NN graph over MST and TSP (besides the obvious conceptual simplicity of kk-NN): On a serial computer the kk-NN graph can be computed somewhat faster than MST and much faster than the TSP tour. Furthermore, in contrast to MST and TSP, computation of kk-NN can be easily parallelized. Secondly, for different values of α\alpha, MST and TSP need to be recomputed since the distance between two points is the pp-th power of their Euclidean distance where p=d(1−α)p=d(1-\alpha). However, the kk-NN graph does not change for different values of pp, since pp-th power is a monotone transformation, and hence the estimates for multiple values of α\alpha can be calculated without the extra penalty incurred by the recomputation of the graph. This can be advantageous e.g. in intrinsic dimension estimators of manifolds (Costa and Hero, 2003), where pp is a free parameter, and thus one can calculate the estimates efficiently for a few different parameter values.

The fourth major contribution is a proof of a finite-sample high-probability error bound (i.e. the rate of convergence) for our mutual information estimator which holds under the assumption that the copula of ff is Lipschitz. According to the best of our knowledge, this is the first result that gives a rate for the estimation of Rényi mutual information.

The toolkit for proving our results derives from the deep literature of Euclidean functionals, see, (Steele, 1997; Yukich, 1998). In particular, our strong consistency result uses a theorem due to Redmond and Yukich (1996) that essentially states that any quasi-additive power-weighted Euclidean functional can be used as a strongly consistent estimator of Rényi entropy (see also Hero and Michel 1999). We also make use of a result due to Koo and Lee (2007), who proved a rate of convergence result that holds under more stringent conditions. Thus, the main thrust of the present work is showing that these conditions hold for pp-power weighted nearest-neighbor graphs. Curiously enough, up to now, no one has shown this, except for the case when p=1p=1, which is studied in Section 8.3 of (Yukich, 1998). However, the condition p=1p=1 gives results only for α=1−1/d\alpha=1-1/d.

All proofs and supporting lemmas can be found in the appendix. In the main body of the paper, we focus on clear explanation of Rényi entropy and mutual information estimation problems, the estimation algorithms and the statements of our converge results.

Additionally, we report on two numerical experiments. In the first experiment, we compare the empirical rates of convergence of our estimators with our theoretical results and plug-in estimates. Empirically, the NN methods are the clear winner. The second experiment is an illustrative application of mutual information estimation to an Independent Subspace Analysis (ISA) task.

The paper is organized as follows: In the next section, we formally define Rényi entropy and Rényi mutual information and the problem of their estimation. Section 3 explains the ‘generalized nearest neighbor’ graphs. This graph is then used in Section 4 to define our Rényi entropy estimator. In the same section, we state a theorem containing our convergence results for this estimator (strong consistency and rates). In Section 5, we explain the copula transformation, which connects Rényi entropy with Rényi mutual information. The copula transformation together with the Rényi entropy estimator from Section 4 is used to build an estimator of Rényi mutual information. We conclude this section with a theorem stating the convergence properties of the estimator (strong consistency and rates). Section 6 contains the numerical experiments. We conclude the paper by a detailed discussion of further related work in Section 7, and a list of open problems and directions for future research in Section 8.

The Formal Definition of the Problem

For α=1\alpha=1 they are defined by the limits H1=lim⁡α→1HαH_{1}=\lim_{\alpha\to 1}H_{\alpha} and I1=lim⁡α→1IαI_{1}=\lim_{\alpha\to 1}I_{\alpha}. In fact, Shannon (differential) entropy and the Shannon mutual information are just special cases of Rényi entropy and Rényi mutual information with α=1\alpha=1.

Generalized Nearest-Neighbor Graphs

The basic tool to define our estimators is the generalized nearest-neighbor graph and more specifically the sum of the pp-th powers of Euclidean lengths of its edges.

For p≥0p\geq 0 let us denote by Lp(V)L_{p}(V) the sum of the pp-th powers of Euclidean lengths of its edges. Formally,

where E(NNS(V))E(NN_{S}(V)) denotes the edge set of NNS(V)NN_{S}(V). We intentionally hide the dependence on SS in the notation Lp(V)L_{p}(V). For the rest of the paper, the reader should think of SS as a fixed but otherwise arbitrary finite non-empty set of integers, say, S={1,3,4}S=\{1,3,4\}.

The following is a basic result about LpL_{p}. The proof can be found in the appendix.

Let X1:n=(X1,X2,…,Xn)\mathbf{X}_{1:n}=(\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n}) be an i.i.d. sample from the uniform distribution over the dd-dimensional unit cube d^{d}. For any p≥0p\geq 0 and any finite non-empty set SS of positive integers there exists a constant γ>0\gamma>0 such that

The value of γ\gamma depends on d,p,Sd,p,S and, except for special cases, an analytical formula for its value is not known. This causes a minor problem since the constant γ\gamma appears in our estimators. A simple and effective way to deal with this problem is to generate a large i.i.d. sample X1:n\mathbf{X}_{1:n} from the uniform distribution over d^{d} and estimate γ\gamma by the empirical value of Lp(X1:n)/n1−p/dL_{p}(\mathbf{X}_{1:n})/n^{1-p/d}.

An Estimator of Rényi Entropy

The following theorem is our main result about the estimator H^α\widehat{H}_{\alpha}. It states that H^α\widehat{H}_{\alpha} is strongly consistent and gives upper bounds on the rate of convergence. The proof of theorem is in the appendix.

Moreover, if ff is Lipschitz then for any δ>0\delta>0 with probability at least 1−δ1-\delta,

Copulas and Estimator of Mutual Information

A particularly clever choice is hj=Fjh_{j}=F_{j} for all 1≤j≤d1\leq j\leq d, where FjF_{j} is the cumulative distribution function (c.d.f.) of XjX^{j}. With this choice, the marginal distribution of hj(Xj)h_{j}(X^{j}) is the uniform distribution over $assumingthatassuming thatF_{j},thec.d.f.of, the c.d.f. ofX^{j},iscontinuous.Lookingatthedefinitionof, is continuous. Looking at the definition ofH_{\alpha}andandI_{\alpha}$ we see that

In other words, calculation of mutual information can be reduced to the calculation of entropy provided that marginal c.d.f.’s F1,F2,…,FdF_{1},F_{2},\dots,F_{d} are known. The problem is, of course, that these are not known and need to be estimated from the sample. We will use empirical c.d.f.’s (F^1,F^2,…,F^d)(\widehat{F}_{1},\widehat{F}_{2},\dots,\widehat{F}_{d}) as their estimates. Given an i.i.d. sample X1:n=(X1,X2,…,Xn)\mathbf{X}_{1:n}=(\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n}) from distribution μ\mu and with density ff, the empirical c.d.f’s are defined as

Let us call the maps F\mathbf{F}, F^\widehat{\mathbf{F}} the copula transformation, and the empirical copula transformation, respectively. The joint distribution of F(X)=(F1(X1),F2(X2),…,Fd(Xd))\mathbf{F}(\mathbf{X})=(F_{1}(X^{1}),F_{2}(X^{2}),\ldots,F_{d}(X^{d})) is called the copula of μ\mu, and the sample (Z^1,Z^2,…,Z^n)=(F^(X1),F^(X2),…,F^(Xn))(\widehat{\mathbf{Z}}_{1},\widehat{\mathbf{Z}}_{2},\ldots,\widehat{\mathbf{Z}}_{n})=(\widehat{\mathbf{F}}(\mathbf{X}_{1}),\widehat{\mathbf{F}}(\mathbf{X}_{2}),\ldots,\widehat{\mathbf{F}}(\mathbf{X}_{n})) is called the empirical copula (Dedecker et al., 2007). Note that jj-th coordinate of Z^i\widehat{\mathbf{Z}}_{i} equals

where rank⁡(x,A)\operatorname{rank}(x,A) is the number of element of AA less than or equal to xx. Also, observe that the random variables Z^1,Z^2,…,Z^n\widehat{\mathbf{Z}}_{1},\widehat{\mathbf{Z}}_{2},\ldots,\widehat{\mathbf{Z}}_{n} are not even independent! Nonetheless, the empirical copula (Z^1,Z^2,…,Z^n)(\widehat{\mathbf{Z}}_{1},\widehat{\mathbf{Z}}_{2},\ldots,\widehat{\mathbf{Z}}_{n}) is a good approximation of an i.i.d. sample (Z1,Z2,…,Zn)=(F(X1),F(X2),…,F(Xn))(\mathbf{Z}_{1},\mathbf{Z}_{2},\ldots,\mathbf{Z}_{n})=(\mathbf{F}(\mathbf{X}_{1}),\mathbf{F}(\mathbf{X}_{2}),\dots,\mathbf{F}(\mathbf{X}_{n})) from the copula of μ\mu. Hence, we estimate the Rényi mutual information Iα{I}_{\alpha} by

where H^α\widehat{H}_{\alpha} is defined by (5). The following theorem is our main result about the estimator I^α\widehat{I}_{\alpha}. It states that I^α\widehat{I}_{\alpha} is strongly consistent and gives upper bounds on the rate of convergence. The proof of this theorem can be found in the appendix.

Moreover, if the density of the copula of μ\mu is Lipschitz, then for any δ>0\delta>0 with probability at least 1−δ1-\delta,

Experiments

In this section we show two numerical experiments to support our theoretical results about the convergence rates, and to demonstrate the applicability of the proposed Rényi mutual information estimator, I^α\widehat{I}_{\alpha}.

In our first experiment (Fig. 1), we demonstrate that the derived rate is indeed an upper bound on the convergence rate. Figure 1a-1c show the estimation error of I^α\widehat{I}_{\alpha} as a function of the sample size. Here, the underlying distribution was a 3D uniform, a 3D Gaussian, and a 20D Gaussian with randomly chosen nontrivial covariance matrices, respectively. In these experiments α\alpha was set to 0.70.7. For the estimation we used S={3}S=\{3\} (kth) and S={1,2,3}S=\{1,2,3\} (knn) sets. Our results also indicate that these estimators achieve better performances than the histogram based plug-in estimators (hist). The number and the sizes of the bins were determined with the rule of Scott (1979). The histogram based estimator is not shown in the 20D case, as in this large dimension it is not applicable in practice. The figures are based on averaging 25 independent runs, and they also show the theoretical upper bound (Theoretical) on the rate derived in Theorem 3. It can be seen that the theoretical rates are rather conservative. We think that this is because the theory allows for quite irregular densities, while the densities considered in this experiment are very nice.

2 Application to Independent Subspace Analysis

Further Related Works

As it was pointed out earlier, in this paper we heavily built on the results known from the theory of Euclidean functionals (Steele, 1997; Redmond and Yukich, 1996; Koo and Lee, 2007). However, now we can be more precise about earlier work concerning nearest-neighbor based Euclidean functionals: The closest to our work is Section 8.3 of Yukich (1998), where the case of NNSNN_{S} graph based pp-power weighted Euclidean functionals with S={1,2,…,k}S=\{1,2,\ldots,k\} and p=1p=1 was investigated.

Nearest-neighbor graphs have first been proposed for Shannon entropy estimation by Kozachenko and Leonenko (1987). In particular, in the mentioned work only the case of NNSNN_{S} graphs with S={1}S=\{1\} was considered. More recently, Goria et al. (2005) generalized this approach to S={k}S=\{k\} and proved the resulting estimator’s weak consistency under some conditions on the density. The estimator in this paper has a form quite similar to that of ours:

Here ψ\psi stands for the digamma function, and ei\mathbf{e}_{i} is the directed edge pointing from Xi\mathbf{X}_{i} to its kthk^{th} nearest-neighbor. Comparing this with (5), unsurprisingly, we find that the main difference is the use of the logarithm function instead of ∣⋅∣p|\cdot|^{p} and the different normalization. As mentioned before, Leonenko et al. (2008) proposed an estimator that uses the NNSNN_{S} graph with S={k}S=\{k\} for the purpose of estimating the Rényi entropy. Their estimator takes the form

where Γ\Gamma stands for the Gamma function, Ck=[Γ(k)Γ(k+1−α)]1/(1−α)C_{k}=\left[\frac{\Gamma(k)}{\Gamma(k+1-\alpha)}\right]^{1/(1-\alpha)} and Vd=πd/2Γ(d/2+1)V_{d}=\pi^{d/2}\Gamma(d/2+1) is the volume of the dd-dimensional unit ball, and again ei\mathbf{e}_{i} is the directed edge in the NNSNN_{S} graph starting from node Xi\mathbf{X}_{i} and pointing to the kk-th nearest node. Comparing this estimator with (5), it is apparent that it is (essentially) a special case of our NNSNN_{S} based estimator. From the results of Leonenko et al. (2008) it is obvious that the constant γ\gamma in (5) can be found in analytical form when S={k}S=\{k\}. However, we kindly warn the reader again that the proofs of these last three cited articles (Kozachenko and Leonenko, 1987; Goria et al., 2005; Leonenko et al., 2008) contain a few errors, just like the Wang et al. (2009b) paper for KL divergence estimation from two samples. Kraskov et al. (2004) also proposed a kk-nearest-neighbors based estimator for the Shannon mutual information estimation, but the theoretical properties of their estimator are unknown.

Conclusions and Open Problems

We have studied Rényi entropy and mutual information estimators based on NNSNN_{S} graphs. The estimators were shown to be strongly consistent. In addition, we derived upper bounds on their convergence rate under some technical conditions. Several open problems remain unanswered:

Our method can be used for estimation of Shannon entropy and mutual information by simply using α\alpha close to 11. The open problem is to come up with a way of choosing α\alpha, approaching 11, as a function of the sample size nn (and d,pd,p) such that the resulting estimator is consistent and converges as rapidly as possible. An alternative is to use the logarithm function in place of the power function. However, the theory would need to be changed significantly to show that the resulting estimator remains strongly consistent.

In the proof of consistency of our mutual information estimator I^α\widehat{I}_{\alpha} we used Kiefer-Dvoretzky-Wolfowitz theorem to handle the effect of the inaccuracy of the empirical copula transformation. Our particular use of the theorem seems to restrict α\alpha to the interval (1/2,1)(1/2,1) and the dimension to values larger than 22. Is there a better way to estimate the error caused by the empirical copula transformation and prove consistency of the estimator for a larger range of α\alpha’s and d=1,2d=1,2?

Finally, it is an important open problem to prove bounds on converge rates for densities that have higher order smoothness (i.e. β\beta-Hölder smooth densities). A related open problem, in the context of of theory of Euclidean functionals, is stated in Koo and Lee (2007).

Acknowledgements

This work was supported in part by AICML, AITF (formerly iCore and AIF), NSERC, the PASCAL2 Network of Excellence under EC grant no. 216886 and by the Department of Energy under grant number DESC0002607. Cs. Szepesvári is on leave from SZTAKI, Hungary.

References

Appendix A Quasi-Additive and Very Strong Euclidean Functionals

The basic tool to prove convergence properties of our estimators is the theory of quasi-additive Euclidean functionals developed by Yukich (1998); Steele (1997); Redmond and Yukich (1996); Koo and Lee (2007) and others. We apply this machinery to the nearest neighbor functional LpL_{p} defined in equation (3).

LpL_{p} is a quasi-additive Euclidean functional of power pp if it satisfies axioms (A1)–(A7) below.

LpL_{p} is a very strong Euclidean functional of power pp if it satisfies axioms (A1)–(A9) below.

For all V⊆dV\subseteq^{d} and a partition {Qi : 1≤i≤md}\{Q_{i}~{}:~{}1\leq i\leq m^{d}\} of d^{d} into mdm^{d} subcubes of side 1/m1/m

For all finite V,V′⊆dV,V^{\prime}\subseteq^{d},

For a set Un\mathcal{U}_{n} of nn points drawn i.i.d. from the uniform distribution over d^{d},

Axiom (A2) is translation invariance, axiom (A3) is scaling. First part of (A5) is subadditivity of LpL_{p} and second part is super-additivity of Lp∗L^{*}_{p}. Axiom (A6) is smoothness and we call (A7) quasi-additivity. Axiom (A8) is a strengthening of (A7) with an explicit rate. Axiom (A9) is the add-one bound. The axioms in Koo and Lee (2007) are slightly different, however it is a routine to check that they are implied by our set of axioms.

We will use two fundamental results about Euclidean functionals. The first is (Redmond and Yukich, 1996, Theorem 2.2) and the second is essentially (Koo and Lee, 2007, Theorem 4).

where γ:=γ(Lp,d)\gamma:=\gamma(L_{p},d) is a constant depending only on the functional LpL_{p} and dd.

where γ\gamma is the constant from Theorem 6.

Theorem 7 differs from its original statement (Koo and Lee, 2007, Theorem 4) in two ways. First, our version is restricted to Lipschitz densities. Koo and Lee prove a generalization of Theorem 7 for β\beta-Hölder smooth density functions. The coefficient β\beta then appears in the exponent of nn in the rate. However, their result holds only for β\beta in the interval (0,1](0,1] which does not make it very interesting. The case β=1\beta=1 corresponds to Lipschitz densities and is perhaps the most important in this range. Second, Theorem 7 has slight improvement in the rate. Koo and Lee have an extraneous log⁡(n)\log(n) factor which we remove by “correcting” their axiom (A8).

In the next section, we prove that the nearest neighbor functional LpL_{p} defined by (3) is a very strong Euclidean functional. First, in section B, we provide a boundary functional Lp∗L_{p}^{*} for LpL_{p}. Then, in section C, we verify that (Lp,Lp∗)(L_{p},L_{p}^{*}) satisfy axioms (A1)–(A9). Once the verification is done, Theorem 1 follows from Theorem 6.

Theorem 2 will follow from Theorem 7 and a concentration result. We prove the concentration result in Section D and finish that section with the proof of Theorem 2. Proof of Theorem 3 requires more work—we need to deal with the effect of empirical copula transformation. We handle this in Section E by employing the classical Kiefer-Dvoretzky-Wolfowitz theorem.

We start by constructing the nearest neighbor boundary functional Lp∗L_{p}^{*}. For that we will need to introduce an auxiliary graph, which we call the nearest-neighbor graph with boundary. This graph is related to NNSNN_{S} and will be useful later.

More precisely, we define the edges from x∈V\mathbf{x}\in V as follows: Let b∈∂B\mathbf{b}\in\partial B be the boundary point closest to x\mathbf{x}. (If there are multiple boundary points that are the closest to x\mathbf{x} we choose one arbitrarily.) If (x,y)∈E(NNS(V))(\mathbf{x},\mathbf{y})\in E(NN_{S}(V)) and ∥x−y∥≤∥x−b∥\|\mathbf{x}-\mathbf{y}\|\leq\|\mathbf{x}-\mathbf{b}\| then (x,y)(\mathbf{x},\mathbf{y}) also belongs to E(NNS∗(V,B))E(NN^{*}_{S}(V,B)). For each (x,y)∈E(NNS(V))(\mathbf{x},\mathbf{y})\in E(NN_{S}(V)) such that ∥x−y∥>∥x−b∥\|\mathbf{x}-\mathbf{y}\|>\|\mathbf{x}-\mathbf{b}\| we create in NNS∗(V,B)NN^{*}_{S}(V,B) one copy of the edge (x,b)(\mathbf{x},\mathbf{b}). In other words, there is a bijection between edge sets E(NNS(V))E(NN_{S}(V)) and E(NNS∗(V,B))E(NN^{*}_{S}(V,B)). An example of a graph NNS(V)NN_{S}(V) and a corresponding graph NNS∗(V)NN_{S}^{*}(V) are shown in Figure 3.

Analogously, we define Lp∗(V,B)L^{*}_{p}(V,B) as the sum of pp-powered edges of NNS∗(V,B)NN^{*}_{S}(V,B). Formally,

We will need some basic geometric properties of NNS∗(V,B)NN^{*}_{S}(V,B) and Lp∗(V,B)L^{*}_{p}(V,B). By construction, the edges of NNS∗(V,B)NN^{*}_{S}(V,B) are shorter than the corresponding edges of NNS(V)NN_{S}(V). As an immediate consequence we get the following proposition.

For any cube BB, any p≥0p\geq 0 and any finite set V⊂BV\subset B, Lp∗(V,B)≤Lp(V)L^{*}_{p}(V,B)\leq L_{p}(V).

It is easy to see that the nearest neighbor functional LpL_{p} and its boundary functional Lp∗L_{p}^{*} satisfy axioms (A1)–(A3). Axiom (A4) is verified by Proposition 8. It thus remains to verify axioms (A5)–(A9) which we do in subsections C.1, C.2 and C.3. We start with two simple lemmas.

Suppose, by contradiction, that the in-degree of x\mathbf{x} is larger than kBkB. Then, by pigeonhole principle, there is a cone Q(x,u)Q(\mathbf{x},\mathbf{u}) containing k+1k+1 vertices of the graph with an incoming edge to x\mathbf{x}. Denote these vertices y1,y2,…,yk+1\mathbf{y}_{1},\mathbf{y}_{2},\dots,\mathbf{y}_{k+1} and assume that they are indexed so that ∥x−y1∥≤∥x−y2∥≤⋯≤∥x−yk+1∥\|\mathbf{x}-\mathbf{y}_{1}\|\leq\|\mathbf{x}-\mathbf{y}_{2}\|\leq\dots\leq\|\mathbf{x}-\mathbf{y}_{k+1}\|.

By a simple calculation, we can verify that ∥x−yk+1∥>∥yi−yk+1∥\|\mathbf{x}-\mathbf{y}_{k+1}\|>\|\mathbf{y}_{i}-\mathbf{y}_{k+1}\| for all 1≤i≤k1\leq i\leq k. Indeed, by the law of cosines

where the sharp inequality follows from that yk+1,yi∈Q(x,u)\mathbf{y}_{k+1},\mathbf{y}_{i}\in Q(\mathbf{x},\mathbf{u}) and so the angle between vectors (x−yi)(\mathbf{x}-\mathbf{y}_{i}) and (x−yk+1)(\mathbf{x}-\mathbf{y}_{k+1}) is strictly less than 60∘60^{\circ}, and the second inequality follows from ∥x−yi∥≤∥x−yk+1∥\|\mathbf{x}-\mathbf{y}_{i}\|\leq\|\mathbf{x}-\mathbf{y}_{k+1}\|. Thus, x\mathbf{x} cannot be among the kk nearest-neighbors of yk+1\mathbf{y}_{k+1} which contradicts the existence of the edge (yk+1,x)(\mathbf{y}_{k+1},\mathbf{x}). ∎

For any p≥0p\geq 0 and finite V⊂dV\subset^{d}, Lp(V)≤O(max⁡(∣V∣1−p/d,1))L_{p}(V)\leq O(\max(|V|^{1-p/d},1)).

An elegant way to prove the lemma is with the use of space-filling curves.There is an elementary proof, too, based on a discretization argument. However, this proof introduces an extraneous logarithmic factor when p=dp=d. Since Peano (1890) and Hilbert (1891), it is known that there exists a continuous function ψ\bm{\psi} from the unit interval $ontothecubeonto the cube^{d}(i.e.asurjection).Forobviousreason(i.e. a surjection). For obvious reason\bm{\psi}iscalledaspace−fillingcurve.Moreover,therearespace−fillingcurveswhichareis called a space-filling curve. Moreover, there are space-filling curves which are(1/d)−Ho¨lder;seeMilne(1980).Inotherwords,wecanassumethatthereexistsaconstant-Hölder; see Milne (1980). In other words, we can assume that there exists a constantC>0$ such that

Since ψ\bm{\psi} is a surjective function we can consider a right inverse ψ−1:d→\bm{\psi}^{-1}:^{d}\to i.e. a function such that ψ(ψ−1(x))=x\bm{\psi}(\bm{\psi}^{-1}(x))=x and we let W=ψ−1(V)W=\bm{\psi}^{-1}(V). Let 0≤w1<w2<⋯<w∣V∣≤10\leq w_{1}<w_{2}<\dots<w_{|V|}\leq 1 be the points of WW sorted in the increasing order. We construct a “nearest neighbor” graph GG on WW. For every 1≤j≤∣V∣1\leq j\leq|V| and every i∈Si\in S we create a directed edge (wj,wj+i)(w_{j},w_{j+i}), where the addition i+ji+j is taken modulo ∣V∣|V|. It is not hard to see that the total length of the edges of GG is

To see more clearly why (15) holds, note that every line segment [wi,wi+1][w_{i},w_{i+1}], 1≤i<∣V∣1\leq i<|V| belongs to at most O(k2)O(k^{2}) edges and the total length of the line segments is ∑i=1∣V∣−1(wi+1−wi)≤1\sum_{i=1}^{|V|-1}(w_{i+1}-w_{i})\leq 1.

Let HH be a graph on V⊂dV\subset^{d} isomorphic to GG, where for each edge (wi,wj)∈E(G)(w_{i},w_{j})\in E(G) there is a corresponding edge (ψ(wi),ψ(wj))∈E(H)(\bm{\psi}(w_{i}),\bm{\psi}(w_{j}))\in E(H). By the construction of HH

Hölder property of ψ\bm{\psi} implies that

If p≥dp\geq d then ∣x−y∣p/d≤∣x−y∣|x-y|^{p/d}\leq|x-y| since ∣x−y∣∈|x-y|\in and thus

Chaining the last inequality with (16), (17) and (15) we obtain that Lp(V)≤O(1)L_{p}(V)\leq O(1) for p≥dp\geq d.

If 0<p<d0<p<d we use the inequality between arithmetic and (p/d)(p/d)-mean. It states that for positive numbers a1,a2,…,ana_{1},a_{2},\dots,a_{n}

In our case aia_{i}’s are the edge length of GG and n≤k∣V∣n\leq k|V|, and we have

Combining the last inequality with (16), (17) and (15) we get that Lp(V)≤O(∣V∣1−p/d)L_{p}(V)\leq O(|V|^{1-p/d}) for 0<p<d0<p<d.

Finally, for p=0p=0, Lp(V)≤k∣V∣=O(∣V∣)L_{p}(V)\leq k|V|=O(|V|). ∎

For p≥0p\geq 0 and finite disjoint V,V′⊂dV,V^{\prime}\subset^{d}, ∣Lp(V′∪V)−Lp(V′)∣≤O(max⁡(∣V∣1−p/d,1))|L_{p}(V^{\prime}\cup V)-L_{p}(V^{\prime})|\leq O(\max(|V|^{1-p/d},1)).

For p≥dp\geq d the lemma trivially follows from the growth bound Lp(V′)=O(1)L_{p}(V^{\prime})=O(1), Lp(V′∪V)=O(1)L_{p}(V^{\prime}\cup V)=O(1). For 0≤p<d0\leq p<d, we need to prove two inequalities:

We start with the first inequality. We use the obvious property of LpL_{p} that Lp(V′∪V)≤Lp(V′)+Lp(V)+O(1)L_{p}(V^{\prime}\cup V)\leq L_{p}(V^{\prime})+L_{p}(V)+O(1). Combined with the growth bound (Lemma 10) for VV we get

Let U⊆V′U\subseteq V^{\prime} be the set of vertices x\mathbf{x} such that in NNS(V′∪V)NN_{S}(V^{\prime}\cup V) there exists an edge from x\mathbf{x} to a vertex VV. Using the two observations and the growth bound we have

The term is Lp(V′∖U,V′)L_{p}(V^{\prime}\setminus U,V^{\prime}) can be upper bounded by Lp(V′∪V)L_{p}(V^{\prime}\cup V) since by the choice of UU the graph NNS(V′∖U,V′)NN_{S}(V^{\prime}\setminus U,V^{\prime}) is a subgraph of NNS(V′∪V)NN_{S}(V^{\prime}\cup V). The term O(∣U∣1−p/d)O(|U|^{1-p/d}) is at most O(∣V∣1−p/d)O(|V|^{1-p/d}) since ∣U∣|U| is upper bounded by the number of edges of NNS(V′∪V)NN_{S}(V^{\prime}\cup V) ending in VV and, in turn, the number of these edges is by the in-degree lemma at most O(∣V∣)O(|V|). ∎

For p≥0p\geq 0 and finite V,V′⊂dV,V^{\prime}\subset^{d},

where V′ΔVV^{\prime}\Delta V denotes the symmetric difference.

For p≥0p\geq 0 and finite disjoint V,V′⊂dV,V^{\prime}\subset^{d},

The proof of the lemma is identical to the proof of Lemma 11 if we replace Lp(⋅)L_{p}(\cdot) by Lp∗(⋅,d)L_{p}^{*}(\cdot,^{d}), NNS∗(⋅)NN_{S}^{*}(\cdot) by NNS(⋅,d)NN_{S}(\cdot,^{d}), Lp(⋅,⋅)L_{p}(\cdot,\cdot) by Lp∗(⋅,⋅,d)L_{p}^{*}(\cdot,\cdot,^{d}) and NNS(⋅,⋅)NN_{S}(\cdot,\cdot) by NNS∗(⋅,⋅,d)NN_{S}^{*}(\cdot,\cdot,^{d}). We, of course, need to explain what NNS∗(V,W,d)NN_{S}^{*}(V,W,^{d}) and Lp∗(V,W,)L_{p}^{*}(V,W,) mean. For V⊆WV\subseteq W, we define NNS∗(V,W,d)NN_{S}^{*}(V,W,^{d}) as the subgraph of NNS∗(W,d)NN_{S}^{*}(W,^{d}), where the edges starting in W∖VW\setminus V are removed, and Lp∗(V,W,d)L_{p}^{*}(V,W,^{d}) is the sum the pp-th powers of Euclidean lengths of edges of NNS∗(V,W,d)NN_{S}^{*}(V,W,^{d}). ∎

For p≥0p\geq 0 and finite V,V′⊂dV,V^{\prime}\subset^{d},

where V′ΔVV^{\prime}\Delta V denotes the symmetric difference.

The corollary is proved in exactly the same way as Corollary 12, where Lp(⋅)L_{p}(\cdot) is replaced by Lp∗(⋅,d)L_{p}^{*}(\cdot,^{d}). ∎

C.2 Subadditivity and Superadditivity

Consider a subcube QiQ_{i} which contains at least k+1k+1 points. Using the “Lp(W,W′)L_{p}(W,W^{\prime}) notation” from the proof of Lemma 11

Let RR be the union subcubes that contain at most kk points. Clearly ∣V∩R∣≤kmd|V\cap R|\leq km^{d}. Then

where we have used the second part of (18). The proof is finished by applying the growth bound Lp(V∩R)≤O(max⁡(∣V∩R∣1−p/d,1))≤O(max⁡(md−p,1))L_{p}(V\cap R)\leq O(\max(|V\cap R|^{1-p/d},1))\leq O(\max(m^{d-p},1)). ∎

We construct a new graph G^\hat{G} by modifying the graph NNS∗(V,d)NN^{*}_{S}(V,^{d}). Consider any edge (x,y)(\mathbf{x},\mathbf{y}) such that x∈Qi\mathbf{x}\in Q_{i} and y∉Qi\mathbf{y}\not\in Q_{i} for some 1≤i≤md1\leq i\leq m^{d}. Let z\mathbf{z} be the point where ∂Qi\partial Q_{i} and the line segment from x\mathbf{x} to y\mathbf{y} intersect. In G^\hat{G}, we replace (x,y)(\mathbf{x},\mathbf{y}) by (x,z)(\mathbf{x},\mathbf{z}). Note that the all edges of G^\hat{G} lie completely in one of the subcubes QiQ_{i} and they are shorter or equal to the corresponding edges in NNS∗(V,d)NN^{*}_{S}(V,^{d}).

Let L^i,p\hat{L}_{i,p} be the sum of pp-th powers of the Euclidean length of the edges of G^\hat{G} lying in QiQ_{i}. Since edges in G^\hat{G} are shorter than in NNS∗(V,d)NN^{*}_{S}(V,^{d}), ∑i=1mdL^p,i≤Lp∗(V,d)\sum_{i=1}^{m^{d}}\hat{L}_{p,i}\leq L^{*}_{p}(V,^{d}). To finish the proof it remains to show that Lp∗(V∩Qi,Qi)≤L^i,pL^{*}_{p}(V\cap Q_{i},Q_{i})\leq\hat{L}_{i,p} for all 1≤i≤md1\leq i\leq m^{d}.

For any edge (x,z)(\mathbf{x},\mathbf{z}) in G^\hat{G} from x∈V∩Qi\mathbf{x}\in V\cap Q_{i} to z∈∂Qi\mathbf{z}\in\partial Q_{i}, the point z∈∂Qi\mathbf{z}\in\partial Q_{i} is not necessarily the closest to x\mathbf{x}. Therefore, any edge in NNS∗(V∩Qi,Qi)NN^{*}_{S}(V\cap Q_{i},Q_{i}) is shorter than the corresponding edge in G^\hat{G}. ∎

C.3 Uniformly Distributed Points

Axiom (A7) is a direct consequence of axiom (A8). Hence, we are left with verifying axioms (A8) and (A9). In this section, Un\mathcal{U}_{n} denotes a set of nn points chosen independently uniformly at random from d^{d}.

Assume X1,X2,…,Xn\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n} are chosen i.i.d. uniformly at random from d^{d}. Let kk be a fixed positive integer. Let ZZ be the distance from X1\mathbf{X}_{1} to kk-th nearest-neighbor in {X2,X3,…,Xn}\{\mathbf{X}_{2},\mathbf{X}_{3},\dots,\mathbf{X}_{n}\}. For any p≥0p\geq 0,

The last inequality follows from the obvious bound Vol⁡(B(X1,u)∩d)≤Vol⁡(B(X1,u))\operatorname{\mathbf{Vol}}(B(\mathbf{X}_{1},u)\cap^{d})\leq\operatorname{\mathbf{Vol}}(B(\mathbf{X}_{1},u)) and that for u∈[0,d]u\in[0,\sqrt{d}] the intersection B(X1,u)∩dB(\mathbf{X}_{1},u)\cap^{d} contains a cube of side at least u2d\frac{u}{2\sqrt{d}}. To simplify this complicated integral, we note that Vol⁡(B(X1,u))=Vol⁡(B(X1,1))ud\operatorname{\mathbf{Vol}}(B(\mathbf{X}_{1},u))=\operatorname{\mathbf{Vol}}(B(\mathbf{X}_{1},1))u^{d} and make substitution s=(u2d)ds=(\frac{u}{2\sqrt{d}})^{d}. The last integral can be bounded by a constant multiple of

Since (n−1j)=O(nj)\binom{n-1}{j}=O(n^{j}) and the sum consists of only constant number of terms, it remains to show that the inner integral is O(n−p/d−j)O(n^{-p/d-j}). We can express the inner integral using the gamma function. Then, we use the asymptotic relation (nϵ)=Θ(nϵ)\binom{n}{\epsilon}=\Theta(n^{\epsilon}) for generalized binomial coefficients (ab)=Γ(a+1)Γ(b+1)Γ(a−b+1)\binom{a}{b}=\frac{\Gamma(a+1)}{\Gamma(b+1)\Gamma(a-b+1)} to upper-bound the result:

Let X1,X2,…,Xn,Xn+1\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n},\mathbf{X}_{n+1} be i.i.d. points from the uniform distribution over d^{d}. We couple Un\mathcal{U}_{n} and Un+1\mathcal{U}_{n+1} in the obvious way Un={X1,X2,…,Xn}\mathcal{U}_{n}=\{\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n}\} and Un+1={X1,X2,…,Xn+1}\mathcal{U}_{n+1}=\{\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n+1}\}. Let ZZ be the distance from Xn+1\mathbf{X}_{n+1} to kk-th closest neighbor in Un\mathcal{U}_{n}. The inequality

holds since ∣S∣Zp|S|Z^{p} accounts for the edges from Xn+1\mathbf{X}_{n+1} and since the edges from Un\mathcal{U}_{n} are shorter (or equal) in NNS(Un+1)NN_{S}(\mathcal{U}_{n+1}) than the corresponding edges in Un+1\mathcal{U}_{n+1}. Taking expectations and using Lemma 17 we get

To show the other direction of the inequality, let ZiZ_{i} be the distance from Xi\mathbf{X}_{i} its (k+1)(k+1)-the nearest point in Un+1\mathcal{U}_{n+1}. (Recall that k=max⁡Sk=\max S.) Let N(j)={Xi : (Xi,Xj)∈E(NNS(Un+1))}N(j)=\{\mathbf{X}_{i}~{}:~{}(\mathbf{X}_{i},\mathbf{X}_{j})\in E(NN_{S}(\mathcal{U}_{n+1}))\} be the incoming neighborhood of Xj\mathbf{X}_{j}. Now if we remove Xj\mathbf{X}_{j} from NNS(V)NN_{S}(V), the vertices in N(j)N(j) lose Xj\mathbf{X}_{j} as their neighbor and they need to be connected to a new neighbor in Un+1∖{Xj}\mathcal{U}_{n+1}\setminus\{\mathbf{X}_{j}\}. This neighbor is not farther than their (k+1)(k+1)-th nearest-neighbor in Un+1\mathcal{U}_{n+1}. Therefore,

Summing over all j=1,2,…,n+1j=1,2,\dots,n+1 we have

The double sum on the right hand side is simply the sum over all edges of NNS(Un+1)NN_{S}(\mathcal{U}_{n+1}) and so we can write

The proof is finished by dividing through by (n+1)(n+1). ∎

The first inequality follows from Proposition 8 by taking expectation. The proof of the second inequality is much more involved. Consider the (random) subset of points U^n⊆Un\hat{\mathcal{U}}_{n}\subseteq\mathcal{U}_{n} which are connected to the boundary in NNS∗(Un,d)NN^{*}_{S}(\mathcal{U}_{n},^{d}) by at least one edge. We use the notation Lp(W,W′)L_{p}(W,W^{\prime}) for any W⊆W′W\subseteq W^{\prime} and its two properties expressed by Eq. (18) and a third obvious property Lp(W,W′)≤Lp(W′)L_{p}(W,W^{\prime})\leq L_{p}(W^{\prime}). We have

where in the last step we have used that Lp(Un∖U^n,Un)≤Lp∗(Un,d)L_{p}(\mathcal{U}_{n}\setminus\widehat{\mathcal{U}}_{n},\mathcal{U}_{n})\leq L^{*}_{p}(\mathcal{U}_{n},^{d}) which holds since the edges from vertices Un∖U^n\mathcal{U}_{n}\setminus\widehat{\mathcal{U}}_{n} are the same in both graphs NNS(Un)NN_{S}(\mathcal{U}_{n}) and NNS∗(Un,d)NN^{*}_{S}(\mathcal{U}_{n},^{d}). If we take expectation, we get

The second key component that we need is that the expected sum of pp-th powers of lengths of edges of NNS∗(Un,d)NN_{S}^{*}(\mathcal{U}_{n},^{d}) that connect points in Un\mathcal{U}_{n} to ∂d\partial^{d} is “small”. More precisely, for any point x∈d\mathbf{x}\in^{d} let bx∈∂d\mathbf{b}_{\mathbf{x}}\in\partial^{d} be the boundary point closest to x\mathbf{x}. We show that

If p≥d−1p\geq d-1 then Lp(V^n)=O(1)L_{p}(\widehat{\mathcal{V}}_{n})=O(1). Therefore, for any p≥0p\geq 0

We construct a nearest-neighbor graph G^\widehat{G} on U^n\widehat{\mathcal{U}}_{n} by lifting NNS(V^n)NN_{S}(\widehat{\mathcal{V}}_{n}). For every edge, (bX,bY)(\mathbf{b}_{\mathbf{X}},\mathbf{b}_{\mathbf{Y}}) in NNS(V^n)NN_{S}(\widehat{\mathcal{V}}_{n}) we create an edge (X,Y)(\mathbf{X},\mathbf{Y}). Clearly, Lp(U^n)L_{p}(\widehat{U}_{n}) is at most the sum of pp-the powers of the edges lengths of G^\widehat{G}. By triangle inequality, for any p>0p>0

In-degrees and out-degrees of G^\widehat{G} are O(1)O(1) and so if we sum over all edges of (X,Y)(\mathbf{X},\mathbf{Y}) of G^\widehat{G} and take expectation, we get

Appendix D Concentration and Estimator of Entropy

In this section, we show that if Vn\mathcal{V}_{n} is a set of nn points drawn i.i.d. from any distribution over d^{d} then Lp(Vn)L_{p}(\mathcal{V}_{n}) is tightly concentrated. That is, we show that with high probability Lp(Vn)L_{p}(\mathcal{V}_{n}) is within O(n1/2−p/(2d))O(n^{1/2-p/(2d)}) its expected value. We use this result at the end of this section to give a proof of Theorem 2.

It turns out that in order to derive the concentration result, the properties of the distribution generating the points are irrelevant (even the existence of density is not necessary). The only property that we exploit is smoothness of LpL_{p}. As a technical tool, we use the isoperimetric inequality for Hamming distance and product measures. This inequality is, in turn, a simple consequence of Talagrand’s isoperimetric inequality, see e.g. Dubhashi and Panconesi (2009); Alon and Spencer (2000); Talagrand (1995). To phrase the isoperimetric inequality, we use Hamming distance H(x1:n,y1:n)H(\mathbf{x}_{1:n},\mathbf{y}_{1:n}) between two tuples x1:n=(x1,x2,…,xn)\mathbf{x}_{1:n}=(\mathbf{x}_{1},\mathbf{x}_{2},\dots,\mathbf{x}_{n}), y1:n=(y1,y2,…,yn)\mathbf{y}_{1:n}=(\mathbf{y}_{1},\mathbf{y}_{2},\dots,\mathbf{y}_{n}) which is defined as the number of elements in which x1:n\mathbf{x}_{1:n} and y1:n\mathbf{y}_{1:n} disagree.

Let A⊂ΩnA\subset\Omega^{n} be a subset of an nn-fold product of a probability space equipped with a product measure. For any t≥0t\geq 0 let At={x1:n∈Ωn : ∃y1:n∈Ωn s.t. H(x1:n,y1:n)≤t}A_{t}=\left\{\mathbf{x}_{1:n}\in\Omega^{n}~{}:~{}\exists\mathbf{y}_{1:n}\in\Omega^{n}\ \text{s.t.}\ H(\mathbf{x}_{1:n},\mathbf{y}_{1:n})\leq t\right\} be an expansion of AA. Then, for any t≥0t\geq 0,

where At‾\overline{A_{t}} denotes the complement of AtA_{t} with respect to Ωn\Omega^{n}.

Let Vn\mathcal{V}_{n} consists of nn points drawn i.i.d. from an absolutely continuous probability distribution over d^{d}, let 0≤p≤d0\leq p\leq d. For any t>0t>0,

where M(⋅)M(\cdot) denotes the median of a random variable.

Let Ω=d\Omega=^{d} and Vn={X1,X2,…,Xn}\mathcal{V}_{n}=\{\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n}\}, where X1,X2,…,Xn\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n} are independent. To emphasize that we are working in a product space, we use the notations Lp(x):=Lp({x1,x2,…,xn})L_{p}(\mathbf{x}):=L_{p}(\{x_{1},x_{2},\dots,x_{n}\}), Lp(X1:n):=Lp(Vn)=Lp({X1,X2,…,Xn})L_{p}(\mathbf{X}_{1:n}):=L_{p}(\mathcal{V}_{n})=L_{p}(\{\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n}\}) and M:=M(Lp(X1:n))M:=M(L_{p}(\mathbf{X}_{1:n})). Let A={x∈Ωn : Lp(x)≤M}A=\{\mathbf{x}\in\Omega^{n}~{}:~{}L_{p}(\mathbf{x})\leq M\}. By smoothness of LpL_{p} there exists a constant C>0C>0 such that

Therefore, Lp(x)>M+tL_{p}(\mathbf{x})>M+t implies that x∈A(t/C)d/(d−p)‾\mathbf{x}\in\overline{A_{(t/C)^{d/(d-p)}}}. Hence for a random X1:n=(X1,X2,…,Xn)\mathbf{X}_{1:n}=(\mathbf{X}_{1},\mathbf{X}_{2},\dots,\mathbf{X}_{n})

by the isoperimetric inequality. Similarly, we set B=A‾B=\overline{A} and note that by smoothness we have also the reversed inequality

Therefore, Lp(x)<M+tL_{p}(\mathbf{x})<M+t implies that x∈B(t/C)d/(d−p)‾\mathbf{x}\in\overline{B_{(t/C)^{d/(d-p)}}}. By the same argument as before

The theorem follows by the union bound and the fact that Pr⁡[A]=Pr⁡[B]=1/2\Pr[A]=\Pr[B]=1/2. ∎

For conciseness let Lp=Lp(Vn)L_{p}=L_{p}(\mathcal{V}_{n}) and M=M(Lp(Vn))M=M(L_{p}(\mathcal{V}_{n})). We have

Putting these pieces together we arrive at what we wanted to prove:

By scaling and translation, we can assume that the support of μ\mu is contained in the unit cube d^{d}. The first part of the theorem follows immediately from Theorem 6. To prove the second part observe from (23) that for any δ>0\delta>0 with probability at least 1−δ1-\delta,

It is easy to see that if 0<p≤d−10<p\leq d-1 then −1/2+p/(2d)<−d−pd(2d−p)<0-1/2+p/(2d)<-\frac{d-p}{d(2d-p)}<0, and if d−1≤p<dd-1\leq p<d then −1/2+p/(2d)<−d−pd(d+1)<0-1/2+p/(2d)<-\frac{d-p}{d(d+1)}<0. Now using (24), Theorem 7 and the triangle inequality, we have that for any δ>0\delta>0 with probability at least 1−δ1-\delta,

To finish the proof of (7) exploit the fact that log⁡(1±x)=±O(x)\log(1\pm x)=\pm O(x) for x→0x\to 0. ∎

Appendix E Copulas and Estimator of Mutual Information

The goal of this section is to prove Theorem 3 on convergence of the estimator I^α\widehat{I}_{\alpha}. The main additional problem that we need to deal with in the proof is the effect of the empirical copula transformation. A version of the classical Kiefer-Dvoretzky-Wolfowitz theorem due to Massart gives a convenient way to do it; see e.g. Devroye and Lugosi (2001).

As a simple consequence of the Kiefer-Dvoretzky-Wolfowitz theorem, we can derive that F^\widehat{\mathbf{F}} is a good approximation of F\mathbf{F}.

The following corollary is an obvious consequence of this lemma:

Let a1,a2,…,ama_{1},a_{2},\ldots,a_{m} and b1,b2,…,bmb_{1},b_{2},\ldots,b_{m} be real numbers. Let a(1)≤a(2)≤…≤a(m)a_{(1)}\leq a_{(2)}\leq\ldots\leq a_{(m)} and b(1)≤b(2)≤…≤b(m)b_{(1)}\leq b_{(2)}\leq\ldots\leq b_{(m)} be the same numbers sorted in ascending order. Then, ∣a(i)−b(i)∣≤max⁡j∣aj−bj∣|a_{(i)}-b_{(i)}|\leq\max_{j}|a_{j}-b_{j}|, for all 1≤i≤m1\leq i\leq m.

The proof is left as an exercise for the reader. ∎

Let k=max⁡Sk=\max S, A={x1,x2,…,xn}A=\{\mathbf{x}_{1},\mathbf{x}_{2},\dots,\mathbf{x}_{n}\} and B={y1,y2,…,yn}B=\{\mathbf{y}_{1},\mathbf{y}_{2},\dots,\mathbf{y}_{n}\}. Let wA(i,j)=∥xi−xj∥pw_{A}(i,j)=\|\mathbf{x}_{i}-\mathbf{x}_{j}\|^{p} and wB(i,j)=∥yi−yj∥pw_{B}(i,j)=\|\mathbf{y}_{i}-\mathbf{y}_{j}\|^{p} be the edge weights defined by AA and BB respectively. Let a(j)ia^{i}_{(j)} be the pp-th power of the distance from xi\mathbf{x}_{i} to its jj-th nearest-neighbor in AA, for 1≤i≤n1\leq i\leq n ,1≤j≤n−11\leq j\leq n-1. Similarly, let b(j)ib^{i}_{(j)} be the pp-th power of the distance from yi\mathbf{y}_{i} to its jj-th nearest-neighbor in BB. Note that for any ii, if we sort the real numbers wA(i,1),…,wA(i,i−1),wA(i,i+1),…,wA(i,n)w_{A}(i,1),\ldots,w_{A}(i,i-1),w_{A}(i,i+1),\ldots,w_{A}(i,n), then we get a(1)i≤a(2)i≤…≤a(n−1)ia^{i}_{(1)}\leq a^{i}_{(2)}\leq\ldots\leq a^{i}_{(n-1)}. Similarly for wBw_{B}’s and b(j)ib^{i}_{(j)}’s. Using these notations we can write

The third inequality follows from Proposition 27. It remains to bound ∣wA(i,j)−wB(i,j)∣|w_{A}(i,j)-w_{B}(i,j)|. We consider two cases:

Case 0<p<10<p<1. Using ∣up−vp∣≤∣u−v∣p|u^{p}-v^{p}|\leq|u-v|^{p} valid for any u,v≥0u,v\geq 0 and the triangle inequality

Case p≥1p\geq 1. Consider the function f(u)=upf(u)=u^{p} on interval [0,d][0,\sqrt{d}]. On this interval ∣f′(u)∣≤pd(p−1)/2|f^{\prime}(u)|\leq pd^{(p-1)/2} and so ff is Lipschitz with constant pd(p−1)/2pd^{(p-1)/2}. In other words, for any u,v∈[0,d]u,v\in[0,\sqrt{d}], ∣up−vp∣≤pd(p−1)/2∣u−v∣|u^{p}-v^{p}|\leq pd^{(p-1)/2}|u-v|. Thus

where the second inequality follows from (26). ∎

It follows immediately from Corollary 26 and Lemma 28 that with probability at least 1−δ1-\delta,

We are now ready to give the proof of Theorem 3.

Let gg denote the density of the copula of μ\mu. The first part follows from (6), Corollary 29 and a standard Borel-Cantelli argument with δ=1/n2\delta=1/n^{2}. Corollary 29 puts the restrictions d≥3d\geq 3 and 1/2<α<11/2<\alpha<1.

The second part can be proved along the same lines. From (7) we have that for any δ>0\delta>0 with probability at least 1−δ1-\delta,

Hence using the triangle inequality again, and exploiting that (log⁡(1/δ))1/2−p/(2d)<(log⁡(1/δ))1/2(\log(1/\delta))^{1/2-p/(2d)}<(\log(1/\delta))^{1/2} if 0<p0<p, δ<1\delta<1, we have that with probability at least 1−δ1-\delta,

To finish the proof exploit that when x→0x\to 0 then log⁡(1±x)=±O(x)\log(1\pm x)=\pm O(x). ∎