Adaptive Estimation of Shannon Entropy

Yanjun Han, Jiantao Jiao, Tsachy Weissman

I Introduction

is one of the most fundamental quantities of information theory and statistics, which emerged in Shannon’s 1948 masterpiece as the answer to foundational questions of compression and communication.

Consider the problem of estimating Shannon entropy H(P)H(P) from nn i.i.d. samples. Classical theory is mainly concerned with the case where the number of samples n→∞n\to\infty, while the support size SS is fixed. In that scenario, the maximum likelihood estimator (MLE), H(Pn)H(P_{n}), which plugs in the empirical distribution into the definition of entropy, is asymptotically efficient [2, Thm. 8.11, Lemma 8.14] in the sense of the Hájek convolution theorem and the Hájek–Le Cam local asymptotic minimax theorem . It is therefore not surprising to encounter the following quote from the introduction of Wyner and Foster who considered entropy estimation:

“The plug-in estimate is universal and optimal not only for finite alphabet i.i.d. sources but also for finite alphabet, finite memory sources. On the other hand, practically as well as theoretically, these problems are of little interest. ”

In contrast, various modern data-analytic applications deal with datasets which do not fall into the regime of fixed alphabet and n→∞n\to\infty. In fact, in many applications the support size SS is comparable to, or even larger than the number of samples nn.

Corpus linguistics: about half of the words in the Shakespearean canon appeared only once .

Network traffic analysis: many customers or website users are seen a small number of times .

Analyzing neural spike trains: natural stimuli generate neural responses of high timing precision resulting in a massive space of meaningful responses .

The problem of entropy estimation in the large alphabet regime (or non-asymptotic analysis) has been investigated extensively in various disciplines, which we refer to for a detailed review. One recent breakthrough in this direction came from Valiant and Valiant , who constructed the first explicit entropy estimator whose sample complexity is n≍Sln⁡Sn\asymp\frac{S}{\ln S} samples, which they also proved to be necessary. It was also shown in that the MLE requires n≍Sn\asymp S samples, implying that MLE is strictly sub-optimal in terms of sample complexity.

However, the aforementioned estimators have not been shown to achieve the minimax L2L_{2} rates. In light of this, Wu and Yang and Jiao et al. independently developed schemes based on approximation theory that achieved the minimax L2L_{2} convergence rates for the entropy. Furthermore, Jiao et al. proposed a general methodology for estimating functionals, and showed that for a wide class of functionals (including entropy, mutual information, and power sum functionals), their methodology leads to minimax rate-optimal estimators whose performance with nn samples is essentially that of the MLE with nln⁡nn\ln n samples. The approximation ideas proved to be very fruitful in Acharya et al. , Wu and Yang , Han, Jiao, and Weissman , Jiao, Han, and Weissman , Bu et al. , Orlitsky, Suresh, and Wu , Wu and Yang .

On the practical side, Jiao et al. showed that the minimax rate-optimal estimators introduced in can lead to consistent and substantial performance boosts in various machine learning algorithms.

I-B Refined minimaxity: adaptive estimation

The primary approach to alleviate the pessimism of minimaxity in statistics is the construction of adaptive procedures, which has gained particular prominence in nonparametric statistics . The goal of adaptive inference is to construct a single procedure that achieves optimality simultaneously over a collection of parameter spaces. Informally, an adaptive procedure automatically adjusts to the unknown parameter, and acts as if it knows the parameter lies in a more restricted subset of the whole parameter space. A common way to evaluate such a procedure is to compare its maximum risk over each subset of the parameter space in the collection with the corresponding minimax risk. If they are nearly equal, then we say such a procedure is adaptive with respect to that collection of subsets of the parameter space.

The primary results of this paper are twofold.

First, we show that the minimax rate-optimal entropy estimator in Jiao et al. is adaptive with respect to the collection of parameter space MS(H)\mathcal{M}_{S}(H), where MS(H)≜{P:H(P)≤H,P∈MS}\mathcal{M}_{S}(H)\triangleq\{P:H(P)\leq H,P\in\mathcal{M}_{S}\}. Moreover, the estimator does not need to know SS nor HH, which is an advantage in practice since usually the support size SS nor an a priori upper bound on the true entropy H(P)H(P) are known.

Second, we show that the sample size enlargement effect still holds in this adaptive estimation scenario. Table I demonstrates that in estimating various functionals, the performance of the minimax rate-optimal estimator with nn samples is nearly that of the MLE with nln⁡nn\ln n samples, which the authors termed “effective sample size enlargement” in . We compute the maximum risk of the MLE over each MS(H)\mathcal{M}_{S}(H), and show that for every HH, the performance of the estimator in with nn samples is still nearly that of the MLE with nln⁡nn\ln n samples.

These facts suggest that the estimator in Jiao et al. is near optimal in a very strong sense, for which we refer the readers to for a detailed discussion on methodology behind their estimator, literature survey, and experimental results.

I-C Mathematical framework and estimator construction

Before we discuss the main results, we would like to recall the construction of the entropy estimator in . The approach is to tackle the estimation problem separately for the cases of “small pp” and “large pp” in H(P)H(P) estimation, corresponding to treating regions where the functional is “nonsmooth” and “smooth” in different ways. Specifically, after we obtain the empirical distribution PnP_{n}, for each coordinate Pn(i)P_{n}(i), if Pn(i)≪ln⁡n/nP_{n}(i)\ll\ln n/n, we (i) compute the best polynomial approximation for −piln⁡pi-p_{i}\ln p_{i} in the regime 0≤pi≪ln⁡n/n0\leq p_{i}\ll\ln n/n, (ii) use the unbiased estimators for integer powers pikp_{i}^{k} to estimate the corresponding terms in the polynomial approximation for −piln⁡pi-p_{i}\ln p_{i} up to order Kn∼ln⁡nK_{n}\sim\ln n, and (iii) use that polynomial as an estimate for −piln⁡pi-p_{i}\ln p_{i}. If Pn(i)≫ln⁡n/nP_{n}(i)\gg\ln n/n, we use the estimator −Pn(i)ln⁡Pn(i)+12n-P_{n}(i)\ln P_{n}(i)+\frac{1}{2n} to estimate −piln⁡pi-p_{i}\ln p_{i}. Then, we add the estimators corresponding to each coordinate.

We define the minimax risk for Multinomial model with nn observations on support size SS for estimating H(P),P∈MS(H)H(P),P\in\mathcal{M}_{S}(H) as

which is the quantity we will characterize in this paper. To simplify the analysis, we also utilize the Poisson sampling model, i.e., we first draw a random variable N∼Poi(n)N\sim\mathsf{Poi}(n), and then obtain NN samples from the distribution PP. It is equivalent to having a SS-dimensional random vector Z\mathbf{Z} such that each component ZiZ_{i} in Z\mathbf{Z} has distribution Poi(npi)\mathsf{Poi}(np_{i}), and all coordinates of Z\mathbf{Z} are independent.

The counterpart of minimax risk in the Poissonized model is defined as

The following lemma, which follows from , shows that the minimax risks under the Multinomial model and the Poissonized model are essentially equivalent.

The minimax risks under the Poissonized model and the Multinomial model are related via the following inequalities:

For simplicity, we re-define n/2n/2 as nn, and denote

The estimator H^\hat{H} in Jiao et al. is constructed as follows.

We explain each equation in detail as follows.

Equation (8): Note that p^i,1\hat{p}_{i,1} and p^i,2\hat{p}_{i,2} are i.i.d. random variables such that np^i,1∼Poi(npi)n\hat{p}_{i,1}\sim\mathsf{Poi}(np_{i}). We use p^i,2\hat{p}_{i,2} to determine whether we are operating in the “nonsmooth” regime or not. If p^i,2≤2Δ\hat{p}_{i,2}\leq 2\Delta, we declare we are in the “nonsmooth” regime, and plug in p^i,1\hat{p}_{i,1} into function LH(⋅)L_{H}(\cdot). If p^i,2>2Δ\hat{p}_{i,2}>2\Delta, we declare we are in the “smooth” regime, and plug in p^i,1\hat{p}_{i,1} into UH(⋅)U_{H}(\cdot).

The coefficients rk,H,0≤k≤Kr_{k,H},0\leq k\leq K are coefficients of the best polynomial approximation of −xln⁡x-x\ln x over $uptodegreeup to degreeK$, i.e.,

where polyK\mathsf{poly}_{K} denotes the set of algebraic polynomials up to order KK. Note that in general gk,αg_{k,\alpha} depends on KK, which we do not make explicit for brevity.

Then we define {gk,H}1≤k≤K\{g_{k,H}\}_{1\leq k\leq K}

Lemma 9 shows that for nX∼Poi(np)nX\sim\mathsf{Poi}(np),

is a near-best polynomial approximation for −pln⁡p-p\ln p on [0,4Δ][0,4\Delta]. Thus, we can understand SK,H(X),nX∼Poi(np)S_{K,H}(X),nX\sim\mathsf{Poi}(np) as a random variable whose expectation is nearly Note that we have removed the constant term from the best polynomial approximation. It is to ensure that we assign zero to symbols we do not see. the best approximation of function −xln⁡x-x\ln x over [0,4Δ][0,4\Delta].

Any reasonable estimator for −pln⁡p-p\ln p should be upper bounded by the value one. We cutoff SK,H(x)S_{K,H}(x) by upper bound 11, and define the function LH(x)L_{H}(x), which means “lower part”.

The function UH(x)U_{H}(x) (means “upper part”) is nothing but a product of an interpolation function In(x)I_{n}(x) and the bias-corrected MLE. The interpolation function In(x)I_{n}(x) is defined as follows:

The following lemma characterizes the properties of the function g(x;a)g(x;a) appearing in the definition of In(x)I_{n}(x). In particular, it shows that In(x)∈C4I_{n}(x)\in C^{4}.

For the function g(x;a)g(x;a) on [0,a][0,a] defined as follows,

The function g(x;1)g(x;1) is depicted in Figure 1. As pointed out in , it is not necessary to use the interpolation function to achieve the minimax rates. Here we keep it in order to be consistent with .

II Main Results

Since sup⁡P∈MSH(P)=ln⁡S\sup_{P\in\mathcal{M}_{S}}H(P)=\ln S, we assume throughout this paper that 0<H≤ln⁡S0<H\leq\ln S. Denote by MS(H)\mathcal{M}_{S}(H) the set of all discrete probability distributions PP with support size ∣supp(P)∣=S|\mathsf{supp}(P)|=S and entropy H(P)≤HH(P)\leq H. We say an estimator H^≡H^(Z)\hat{H}\equiv\hat{H}(\mathbf{Z}) is within accuracy ϵ>0\epsilon>0, if and only if

For the plug-in estimator H(Pn)H(P_{n}), the following theorem presents the non-asymptotic upper and lower bounds for the L2L_{2} risk.

If H≥H0>0H\geq H_{0}>0, where H0H_{0} is a universal positive constant, then for the plug-in estimator H(Pn)H(P_{n}), we have

Note that the only assumption in Theorem 1 is that the upper bound HH should be no smaller than a constant, which is a reasonable assumption to avoid the subtle case where the naive zero estimator H^≡0\hat{H}\equiv 0 has a satisfactory performance. The minimum sample complexity of the plug-in approach can be immediately obtained from Theorem 1.

If H≥H0>0H\geq H_{0}>0, where H0H_{0} is a universal positive constant, the plug-in estimator H(Pn)H(P_{n}) is within accuracy ϵ\epsilon if and only if

Recall that it requires n≳Sϵ∨ln⁡2Sϵ2n\gtrsim\frac{S}{\epsilon}\vee\frac{\ln^{2}S}{\epsilon^{2}} samples for the MLE to achieve accuracy ϵ\epsilon when there is no constraint on the entropy . Hence, when the upper bound on the entropy is loose, i.e., H≍ln⁡SH\asymp\ln S, the minimum sample complexity in the bounded entropy case is exactly the same, i.e., we cannot essentially improve the estimation performance. On the other hand, when the upper bound is tight, i.e., H≪ln⁡SH\ll\ln S, the required sample complexity enjoyed a significant reduction.

When it comes to the maximum L2L_{2} risk, we conclude from Theorem 1 that the bounded entropy property helps only at the boundary, i.e., when nn is close to SS and HH is small. Moreover, this help vanishes quickly as SS increases: when n=S1−δn=S^{1-\delta}, the maximum L2L_{2} risk will be at the order (δH)2(\delta H)^{2}, and the naive zero estimator achieves worst case risk H2H^{2}.

Is the plug-in estimator H(Pn)H(P_{n}) optimal in the minimax sense? It has been shown in that when there is no constraint on H(P)H(P), i.e., H=ln⁡SH=\ln S, the answer is negative. What about subsets of MS\mathcal{M}_{S}, such as MS(H)\mathcal{M}_{S}(H)? The following theorem characterizes the minimax L2L_{2} rates over MS(H)\mathcal{M}_{S}(H).

If H≥H0>0H\geq H_{0}>0, where H0H_{0} is a universal positive constant, then

where the infimum is taken over all possible estimators. Moreover, the upper bound is achieved by the estimator H^∗\hat{H}^{*} in under the Poissonized model without the knowledge of HH nor SS, and in particular,

An immediate result on the sample complexity is as follows.

If H≥H0>0H\geq H_{0}>0, where H0H_{0} is a universal positive constant, the minimax rate-optimal estimator in is within accuracy ϵ\epsilon if

For the minimum sample complexity, we still distinguish HH into two cases. Firstly, when H≍ln⁡SH\asymp\ln S, the required sample complexity is n≍Sϵln⁡Sn\asymp\frac{S}{\epsilon\ln S}, which recovers the minimax results with no constraint on entropy in . Secondly, when H≪ln⁡SH\ll\ln S, there is a significant improvement.

We conjecture that the minimax rates in Theorem 2 can be refined to

In other words, we conjecture that the exact constant in the minimax rates in the regime Sln⁡S>e2nHln⁡nS\ln S>e^{2}nH\ln n is 12\frac{1}{2}. It is partially justified by the observation that the minimax squared error without any samples is (H/2)2(H/2)^{2}.

We also conclude from Theorem 2 that the bounded entropy constraint again helps only at the boundary, and this help vanishes quickly as SS increases: when n=S1−δn=S^{1-\delta}, we do not have sufficient information to make inference, and the naive zero estimator is near-minimax.

If H≥H0>0H\geq H_{0}>0, where H0H_{0} is a universal positive constant, then for the hard-thresholding estimator PsP_{s} in , the plug-in estimator H(Ps)H(P_{s}) satisfies

The proof is completed by the proof of the lower bound in Theorem 1 (cf. Section IV). ∎

To sum up, we have obtained the following conclusions.

The minimax rate-optimal entropy estimator in Jiao et al. is adaptive with respect to the collection of parameter space MS(H)\mathcal{M}_{S}(H), where MS(H)≜{P:H(P)≤H,P∈MS}\mathcal{M}_{S}(H)\triangleq\{P:H(P)\leq H,P\in\mathcal{M}_{S}\}. Moreover, the estimator does not need to know SS nor HH, which is an advantage in practice since usually the support size SS nor an a priori upper bound on the true entropy H(P)H(P) are known.

Second, the sample size enlargement effect still holds in this adaptive estimation scenario. Table I demonstrates that in estimating various functionals, the performance of the minimax rate-optimal estimator with nn samples is essentially that of the MLE with nln⁡nn\ln n samples, which the authors termed “sample size enlargement” in . Theorems 1 and 2 show that over every MS(H)\mathcal{M}_{S}(H), the performance of the estimator in with nn samples is still essentially that of the MLE with nln⁡nn\ln n samples.

III Proof of Upper Bounds in Theorem 1

First we consider the case where Sln⁡S≤e2nHS\ln S\leq e^{2}nH. For the bias, it has been shown in that

As for the variance, shows that by the Efron-Stein inequality, we have

For any discrete distribution P=(p1,p2,⋯ ,pS)P=(p_{1},p_{2},\cdots,p_{S}), we have

where we have used the assumption H≥H0>0H\geq H_{0}>0 in the last step.

Hence, when Sln⁡S≤e2nHS\ln S\leq e^{2}nH, we have

which completes the proof for the first part. For the second part, we introduce a lemma first.

Given n≥2n\geq 2. For p≤1np\leq\frac{1}{n} and np^∼B(n,p)n\hat{p}\sim\mathsf{B}(n,p), we have

Define f(x)=−xln⁡xf(x)=-x\ln x on $.Wealsoknowthat. We also know that\left|\mathsf{Bias}\left(f(\hat{p}_{i})\right)\right|\leq\frac{1}{n}holdsforallholds for alli$ . In light of the previous result and Lemma 4, we have

Now we bound B1,B2,B3B_{1},B_{2},B_{3} separately. By the concavity of f(⋅)f(\cdot) we have

where f−1(⋅)f^{-1}(\cdot) denotes the inverse of f(⋅)f(\cdot), and we restrict f−1(⋅)∈[0,e−1]f^{-1}(\cdot)\in[0,e^{-1}] to avoid possible ambiguities. It is straightforward to verify that for any a>0a>0 and 0<x1≤x2<1/(ea)0<x_{1}\leq x_{2}<1/(ea), we have

We summarize some more properties of f−1(⋅)f^{-1}(\cdot) in the following lemma.

Combining these properties of f−1(⋅)f^{-1}(\cdot) yields

where (50) follows from (45), (51) follows from (46), (52) follows from (47) and

by assumption, and the last equality follows from (48).

Now we proceed to bound B2B_{2}, which is given by

As for B3B_{3}, due to the concavity of f(⋅)f(\cdot), the minimum of ∑i:pi>1nf(pi)\sum_{i:p_{i}>\frac{1}{n}}f(p_{i}) is attained when all but one pip_{i} are at the boundary pi=1np_{i}=\frac{1}{n}, hence

where the last inequality is obtained by separating two cases S>nβS>n^{\beta} and S≤nβS\leq n^{\beta} for some constant β>1\beta>1, say, β=2\beta=2. The proof is completed by noticing that :

IV Proof of Lower Bounds in Theorem 1

We first derive a lower bound for the bias term. We recall the following result in .

where we have used the assumption Sln⁡S≤e2nHS\ln S\leq e^{2}nH and H≥H0>0H\geq H_{0}>0 in the last inequality. Hence, we have proved that

For the lower bound in the case where Sln⁡S>e2nHS\ln S>e^{2}nH, we consider another distribution

where A∈(0,1)A\in(0,1) is the solution to the equation

The lower bounds in Theorem 1 for the bias part can thus be established by combining (68) and (74).

We now turn to the lower bound for variance. We will actually prove a stronger result: a minimax lower bound for all estimators for the L2L_{2} risk, which naturally is also a lower bound for the maximum risk of the MLE. We use Le Cam’s two-point method here. Suppose we observe a random vector Z∈(Z,A){\bf Z}\in(\mathcal{Z},\mathcal{A}) which has distribution PθP_{\theta} where θ∈Θ\theta\in\Theta. Let θ0\theta_{0} and θ1\theta_{1} be two elements of Θ\Theta. Let T^=T^(Z)\hat{T}=\hat{T}({\bf Z}) be an arbitrary estimator of a function T(θ)T(\theta) based on Z\bf Z. We have the following general minimax lower bound.

[28, Sec. 2.4.2] Denoting the Kullback-Leibler divergence between PP and QQ by

Applying this lemma to the Poissonized model np^i∼Poi(npi),1≤i≤Sn\hat{p}_{i}\sim\mathsf{Poi}(np_{i}),1\leq i\leq S, we know that for θ1=(p1,p2,⋯ ,pS),θ0=(q1,q2,⋯ ,qS)\theta_{1}=(p_{1},p_{2},\cdots,p_{S}),\theta_{0}=(q_{1},q_{2},\cdots,q_{S}),

then for Δ=∣H(θ1)−H(θ0)∣\Delta=|H(\theta_{1})-H(\theta_{0})|, Markov’s inequality yields

Fix ϵ∈(0,1)\epsilon\in(0,1) to be specified later, and let

where AA is the solution to (70). Direct computation yields

and it can be directly verified that h(0)=h′(0)=0h(0)=h^{\prime}(0)=0, and ∣h′′(0)∣=1−AA>0|h^{\prime\prime}(0)|=\frac{1-A}{A}>0. Hence, for ϵ\epsilon small enough we have D(θ1∥θ0)≤ϵ2/AD(\theta_{1}\|\theta_{0})\leq\epsilon^{2}/A. By choosing ϵ=(nA)−12≲1\epsilon=(nA)^{-\frac{1}{2}}\lesssim 1, we have

Hence, by Lemma 7 and nD(θ1∥θ0)≤1,A≍H/ln⁡SnD(\theta_{1}\|\theta_{0})\leq 1,A\asymp H/\ln S we can obtain the following minimax lower bound under the Poissonized model

The corresponding minimax lower bound for the variance in the Multinomial model follows from Lemma 1. The proof of Theorem 1 is complete by combining the lower bounds for the bias and the variance.

V Proof of Upper Bounds in Theorem 2

where nX=DnY∼Poi(np)nX\overset{D}{=}nY\sim\mathsf{Poi}(np), and X,YX,Y are independent. We first recall the following lemma from .

Suppose 0<c1=16(1+δ),0<8c2ln⁡2=ϵ<1,δ>00<c_{1}=16(1+\delta),0<8c_{2}\ln 2=\epsilon<1,\delta>0. Then the bias and variance of ξ(X,Y)\xi(X,Y) are given as follows:

where we have used Lemma 3 in the last step. Hence,

When Sln⁡S≤enHln⁡nS\ln S\leq enH\ln n, for ϵ\epsilon small enough, say, ϵ<12\epsilon<\frac{1}{2}, we have

where we have used the assumption that H≥H0>0H\geq H_{0}>0. Hence, the term S(ln⁡n)4n2−ϵ\frac{S(\ln n)^{4}}{n^{2-\epsilon}} is negligible when compared with others, and we have reached the end for the case Sln⁡S≤e2nHln⁡nS\ln S\leq e^{2}nH\ln n.

For the case where Sln⁡S≥e2nHln⁡nS\ln S\geq e^{2}nH\ln n, we need stronger results for the bias and variance in the regime where p<1enln⁡np<\frac{1}{en\ln n}. The results are summarized in the following lemma.

If 0<c2≤1≤c10<c_{2}\leq 1\leq c_{1}, for nX∼Poi(np),0<p<1enln⁡nnX\sim\mathsf{Poi}(np),0<p<\frac{1}{en\ln n}, we have

where the constant DpD_{p} is given in Lemma 15.

Using the Poisson tail bound (cf. Lemma 17) and similar argument to [11, Lemma 8], we have the following lemma.

Suppose 0<c1=16(1+δ),0<10c2ln⁡2=ϵ<1,δ>00<c_{1}=16(1+\delta),0<10c_{2}\ln 2=\epsilon<1,\delta>0. Then for 0<p<1enln⁡n0<p<\frac{1}{en\ln n}, we have

where c3c_{3} is some universal constant which only depends on c1c_{1} and c2c_{2}.

Now we proceed to bound the total bias and variance. For the bias, we can write

Using similar arguments in the proof of upper bound in Theorem 1, we can show that

Combining the total bias and variance constitutes a complete proof of the upper bounds in Theorem 2.

VI Proof of Lower Bounds in Theorem 2

When Sln⁡S≤e2nHln⁡nS\ln S\leq e^{2}nH\ln n, the lower bound for the squared bias, i.e., the S2(nln⁡n)2\frac{S^{2}}{(n\ln n)^{2}} term, can be obtained using a similar argument in . Specifically, we can assign two product measures μ0N\mu_{0}^{N} and μ1N\mu_{1}^{N} to the first N(≤S)N(\leq S) components in the distribution vector PP, where

In , N=SN=S. However, in our case, we have an additional constraint that H(P)≤HH(P)\leq H. Since

One can show that the measures μiN,i=0,1\mu_{i}^{N},i=0,1 are highly concentrated around their expectations . Hence, in order to ensure H(P)≤HH(P)\leq H with overwhelming probability, we can set N≍min⁡{nH,S}N\asymp\min\{nH,S\}, and the condition Sln⁡S≤e2nHln⁡nS\ln S\leq e^{2}nH\ln n and H≥H0>0H\geq H_{0}>0 yield that nH≳SnH\gtrsim S, and thus N≳SN\gtrsim S. Hence by (120),

The variance bound Hln⁡Sn\frac{H\ln S}{n} has been given in (89), and so far we have completed the proof of the first part. As for the second part, the key lemma we will employ is the so-called method of two fuzzy hypotheses presented in Tsybakov . Below we briefly review this general minimax lower bound.

where Fi,i=0,1F_{i},i=0,1 are the marginal distributions of Z\mathbf{Z} when the priors are σi,i=0,1\sigma_{i},i=0,1, respectively.

Here V(P,Q)V(P,Q) is the total variation distance between two probability measures P,QP,Q on the measurable space (Z,A)(\mathcal{Z},\mathcal{A}). Concretely, we have

where p=dPdν,q=dQdνp=\frac{dP}{d\nu},q=\frac{dQ}{d\nu}, and ν\nu is a dominating measure so that P≪ν,Q≪νP\ll\nu,Q\ll\nu.

First we assume that S≲n32S\lesssim n^{\frac{3}{2}}. In light of Lemma 11, we construct two measures as follows.

For any 0<η<10<\eta<1 and positive integer L>0L>0, there exist two probability measures ν0\nu_{0} and ν1\nu_{1} on [η,1][\eta,1] such that

∫tlν1(dt)=∫tlν0(dt)\int t^{l}\nu_{1}(dt)=\int t^{l}\nu_{0}(dt), for all l=0,1,2,⋯ ,Ll=0,1,2,\cdots,L;

∫−ln⁡tν1(dt)−∫−ln⁡tν0(dt)=2EL[−ln⁡x][η,1]\int-\ln t\nu_{1}(dt)-\int-\ln t\nu_{0}(dt)=2E_{L}[-\ln x]_{[\eta,1]},

where EL[−ln⁡x][η,1]E_{L}[-\ln x]_{[\eta,1]} is the distance in the uniform norm on [η,1][\eta,1] from the function g(x)=−ln⁡xg(x)=-\ln x to the space spanned by {1,x,⋯ ,xL}\{1,x,\cdots,x^{L}\}.

The following lemma characterizes the properties of EL[−ln⁡x][η,1]E_{L}[-\ln x]_{[\eta,1]}.

If K≥eL2K\geq eL^{2}, there exists a universal constant D0≥1D_{0}\geq 1 such that

with universal positive constants d1∈(0,e−1],d2>2d_{1}\in(0,e^{-1}],d_{2}>2 to be determined later. Without loss of generality we assume that d2ln⁡nd_{2}\ln n is always a positive integer. Due to Sln⁡S≥e2nHln⁡nS\ln S\geq e^{2}nH\ln n, we have (D0η)−1≥eL2(D_{0}\eta)^{-1}\geq eL^{2}, thus Lemma 13 yields

∫t1μ1(dt)=∫t1μ0(dt)=d1H/(Sln⁡S)\int t^{1}\mu_{1}(dt)=\int t^{1}\mu_{0}(dt)=d_{1}H/(S\ln S);

∫tlμ1(dt)=∫tlμ0(dt)\int t^{l}\mu_{1}(dt)=\int t^{l}\mu_{0}(dt), for all l=2,⋯ ,L+1l=2,\cdots,L+1;

∫−tln⁡tμ1(dt)−∫−tln⁡tμ0(dt)=2ηMEL[−ln⁡x][η,1]\int-t\ln t\mu_{1}(dt)-\int-t\ln t\mu_{0}(dt)=2\eta ME_{L}[-\ln x]_{[\eta,1]}.

Let μ0S−1\mu_{0}^{S-1} and μ1S−1\mu_{1}^{S-1} be product priors which we assign to the length-(S−1)(S-1) vector (p1,p2,⋯ ,pS−1)(p_{1},p_{2},\cdots,p_{S-1}), and we set pS=d1(1−H/ln⁡S)p_{S}=d_{1}(1-H/\ln S). With a little abuse of notation, we still denote the overall product measure by μ0S\mu_{0}^{S} and μ1S\mu_{1}^{S}. Note that PP may not be a probability distribution, we consider the set of approximate probability vectors

with parameter ϵ>0\epsilon>0 to be specified later, and further define under the Poissonized model,

In light of Lemma 14, it suffices to consider RP(S,n,H,ϵ)R_{P}(S,n,H,\epsilon) to give a lower bound of R(S,n,H)R(S,n,H). Denote

Denote by πi\pi_{i} the conditional distribution defined as

Now consider π0,π1\pi_{0},\pi_{1} as two priors. By setting

we have β0=β1=0\beta_{0}=\beta_{1}=0 in Lemma 11. Applying union bound yields that

and the Chebychev inequality tells us that

where we have used our assumption that S≲n32S\lesssim n^{\frac{3}{2}}. For bounding μiS[H(P)>H]\mu_{i}^{S}[H(P)>H], we first remark that for d1≤e−1d_{1}\leq e^{-1},

hence, for d1d_{1} sufficiently small, say, d1≤min⁡{14,f−1(min⁡{H08,1e})}d_{1}\leq\min\{\frac{1}{4},f^{-1}\left(\min\{\frac{H_{0}}{8},\frac{1}{e}\}\right)\}, where f(x)=−xln⁡xf(x)=-x\ln x is defined in [0,e−1][0,e^{-1}] and f−1(⋅)f^{-1}(\cdot) denotes the inverse function of f(⋅)f(\cdot), we have

Denote by Fi,GiF_{i},G_{i} the marginal probability under prior πi\pi_{i} and μiS\mu_{i}^{S}, respectively, for all i=0,1i=0,1. In light of (145), (149), (152) and (161), we have

Hence, the total variational distance is then upper bounded by

where we have used the triangle inequality of the total variation distance. The idea of converting approximate priors μiS\mu_{i}^{S} into priors πi\pi_{i} via conditioning comes from Wu and Yang .

Now it follows from Lemma 11 and Markov’s inequality that

and the desired result follows directly from Lemma 14. Hence we have obtained the desired lower bound in the case S≲n32S\lesssim n^{\frac{3}{2}}.

For S≳n32S\gtrsim n^{\frac{3}{2}}, we can change the parameters in (132) into

for some small β>0\beta>0, say, β=1/4\beta=1/4. Applying the similar analysis yields

VII Future work

This paper studies the adaptive estimation framework to strengthen the optimality properties of the approximation theoretic entropy estimator proposed in Jiao et al. . We remark that the techniques in this paper are by no means constrained to entropy, and we believe analogous results are also true for the estimators of Fα(P)=∑i=1SpiαF_{\alpha}(P)=\sum_{i=1}^{S}p_{i}^{\alpha} in . Furthermore, we find the fact that the sample size enlargement effect still holds in the adaptive estimation setting very intriguing, and we believe there is a larger picture surrounding this theme to be explored.

VIII Acknowledgments

The authors would like to express their most sincere gratitude to Dany Leviatan for valuable advice on the literature of approximation theory, in particular, for suggesting the result in Lemma 16.

Appendix A Auxiliary Lemmas

The following lemma characterizes the performance of the best uniform approximation polynomial for −xln⁡x,x∈-x\ln x,x\in.

Denote by ∑k=0KgK,kxk\sum_{k=0}^{K}g_{K,k}x^{k} the KK-th order best uniform approximation polynomial for −xln⁡x,x∈-x\ln x,x\in, then for pK(x)=∑k=1KgK,kxkp_{K}(x)=\sum_{k=1}^{K}g_{K,k}x^{k}, we have the norm bound

where Dn>0D_{n}>0 is a universal constant for the norm bound. In fact, the following inequality holds:

where the function ν1(p)\nu_{1}(p) is was introduced by Ibragimov as the following limit for pp positive even integer and mm positive integer

Furthermore, we also have the pointwise bound: there exists a universal constant Dp>0D_{p}>0 such that for any C≥1C\geq 1,

[30, Thm. 8.4.8] There exists some universal constant M>0M>0 such that for any order-nn polynomial p(x)p(x) in $$, we have

The following lemma gives some tails bounds for Poisson and Binomial random variables.

[31, Exercise 4.7] If X∼Poi(λ)X\sim\mathsf{Poi}(\lambda), or X∼B(n,λn)X\sim\mathsf{B}(n,\frac{\lambda}{n}), then for any δ>0\delta>0, we have

Appendix B Proof of Lemmas

For S=1,2S=1,2, the result is obvious, and we assume in the sequel that S≥3S\geq 3. Denote H(P)=∑i=1S−piln⁡piH(P)=\sum_{i=1}^{S}-p_{i}\ln p_{i} by HH, we construct the Lagrangian:

By taking the derivative with respect to pip_{i}, we obtain that

is a quadratic form of ln⁡pi\ln p_{i}, so the equation ∂L∂pi=0\frac{\partial\mathcal{L}}{\partial p_{i}}=0 has at most two solutions.

Hence, we conclude that components of the maximum achieving distribution can only take two values pi∈{q1,q2}p_{i}\in\{q_{1},q_{2}\}, and suppose q1q_{1} appears mm times. We distinguish the analysis into two cases.

If min⁡{q1,q2}≥1S2\min\{q_{1},q_{2}\}\geq\frac{1}{S^{2}}, we have −ln⁡pi≤2ln⁡S-\ln p_{i}\leq 2\ln S for all ii. Hence,

B-A2 Case II

If q1q_{1} or q2q_{2} is smaller than 1S2\frac{1}{S^{2}}, without loss of generality we can assume that q1≤q2q_{1}\leq q_{2} and q1<1S2q_{1}<\frac{1}{S^{2}}. Then

where we have used the inequalities m≤S,(S−m)q2≤1m\leq S,(S-m)q_{2}\leq 1 in (186), and the monotonically increasing property of x(ln⁡x)2x(\ln x)^{2} for x∈[0,e−2]x\in[0,e^{-2}] in (187). The last inequality follows from H≤ln⁡SH\leq\ln S and (ln⁡S)2/S≤4/e2<3/4(\ln S)^{2}/S\leq 4/e^{2}<3/4.

B-B Proof of Lemma 4

Define f(x)=−xln⁡xf(x)=-x\ln x on $,andtheorder−, and the order-n$ Bernstein polynomial

where Δkf(x)\Delta^{k}f(x) is the order-kk forward difference of f(⋅)f(\cdot) at xx with step size h=1/nh=1/n:

Since f(3)(⋅)≥0f^{(3)}(\cdot)\geq 0, the mean value theorem for the forward difference shows that Δ3f(⋅)≥0\Delta^{3}f(\cdot)\geq 0, and Bn(3)(f,x)≥0B_{n}^{(3)}(f,x)\geq 0 by (191). Hence Bn(2)(f,x)B_{n}^{(2)}(f,x) is monotonically non-decreasing with respect to x∈x\in, which yields that for 0≤x≤1/n0\leq x\leq 1/n,

The proof is completed by applying (193) and the Taylor’s formula

B-C Proof of Lemma 5

For 0<x1≤x2<1/e0<x_{1}\leq x_{2}<1/e, we write −y1ln⁡y1=x1,−y2ln⁡y2=x2-y_{1}\ln y_{1}=x_{1},-y_{2}\ln y_{2}=x_{2}. It follows from x1≤x2x_{1}\leq x_{2} that y1≤y2y_{1}\leq y_{2}. By the mean value theorem,

Now we give an upper bound for y2y_{2} in terms of x2x_{2}. Since y2<1/ey_{2}<1/e, we have

Substituting this result in −y2ln⁡y2=x2-y_{2}\ln y_{2}=x_{2} once more yields a refined inequality

which completes the proof of the first inequality. For the second equality, we write

B-D Proof of Lemma 9

For the bias, it is straightforward to see that for nX∼Poi(np)nX\sim\mathsf{Poi}(np), we have

where pK(x)≜∑k=1KgK,Hxkp_{K}(x)\triangleq\sum_{k=1}^{K}g_{K,H}x^{k} is the best approximating polynomial appearing in Lemma 15. Since p4Δ≤1K2\frac{p}{4\Delta}\leq\frac{1}{K^{2}}, Lemma 15 asserts that

The proof for the second part is similar to [11, Lem. 5].

B-E Proof of Lemma 13

we have EL[fN]=EL[−ln⁡x][N−1,1]E_{L}[f_{N}]_{}=E_{L}[-\ln x]_{[N^{-1},1]}. Let ΔL(x)=1−x2L+1L2\Delta_{L}(x)=\frac{\sqrt{1-x^{2}}}{L}+\frac{1}{L^{2}} and define the following modulus of continuity for ff:

There are an upper bound and a lower bound for τ1(fN,ΔL)\tau_{1}(f_{N},\Delta_{L}):

The upper bound is shown in [15, Lem. 4]. For the lower bound, denote by xL∈x_{L}\in the solution to the equation xL−ΔL(xL)=−1x_{L}-\Delta_{L}(x_{L})=-1, we have the following closed-form formula:

The relationship between τ1(fN,ΔL)\tau_{1}(f_{N},\Delta_{L}) and EL[fN]E_{L}[f_{N}]_{} was shown in [33, Thm. 3.13, Thm. 3.14] that there exist two universal constants M1,M2>0M_{1},M_{2}>0 such that

Applying (223) and (224) and setting the approximation order to be DLDL with constant D>1D>1 to be specified later, then given N=(10D)2M≥(10DL)2N=(10D)^{2}M\geq(10DL)^{2}, the non-increasing property of En[fN]E_{n}[f_{N}]_{} with respect to nn yields

Hence, there exists a sufficiently large constant D>0D>0 such that

and this lemma is proved by setting D0=max⁡{100D2,1}D_{0}=\max\{100D^{2},1\}.

B-F Proof of Lemma 14

Fix δ>0\delta>0. Let H^(Z)\hat{H}({\bf Z}) be a near-minimax estimator of H(P)H(P) under the Multinomial model. The estimator H^(Z)\hat{H}({\bf Z}) obtains the number of samples nn from observation Z\bf Z. By definition, we have

where R(S,n,H)R(S,n,H) is the minimax L2L_{2} risk under the Multinomial model. Note that for any vector P∈MS(ϵ,H)P\in\mathcal{M}_{S}(\epsilon,H) (PP is not necessarily a probability distribution), we have

where by definition we have ∣∑i=1Spi−d1∣≤ϵ\left|\sum_{i=1}^{S}p_{i}-d_{1}\right|\leq\epsilon. Hence, given P∈MS(ϵ,H)P\in\mathcal{M}_{S}(\epsilon,H), let Z=[Z1,⋯ ,ZS]T\mathbf{Z}=[Z_{1},\cdots,Z_{S}]^{T} with Zi∼Poi(npi)Z_{i}\sim\mathsf{Poi}(np_{i}) and let n′=∑i=1SZi∼Poi(n∑i=1Spi)n^{\prime}=\sum_{i=1}^{S}Z_{i}\sim\mathsf{Poi}(n\sum_{i=1}^{S}p_{i}), (233) suggests to use the estimator d1(H^(Z)−ln⁡d1)d_{1}\left(\hat{H}(\mathbf{Z})-\ln d_{1}\right) to estimate H(P)H(P). Note that

the triangle inequality gives (define A=sup⁡x∈[d1−ϵ,d1+ϵ]ln⁡2(ex)A=\sup_{x\in[d_{1}-\epsilon,d_{1}+\epsilon]}\ln^{2}(ex))

where we have used the fact that conditioned on n′=mn^{\prime}=m, Z∼Multinomial(m,P∑ipi)\mathbf{Z}\sim\mathsf{Multinomial}(m,\frac{P}{\sum_{i}p_{i}}), and R(S,n,H)≤(sup⁡P∈MSH(P))2=(ln⁡S)2R(S,n,H)\leq\left(\sup_{P\in\mathcal{M}_{S}}H(P)\right)^{2}=(\ln S)^{2}. Moreover, the last step follows from Lemma 17. The proof is completed by the arbitrariness of δ\delta and Lemma 1.

B-G Proof of Lemma 15

Hence, it follows from the triangle inequality that

which completes the proof of the norm bound.

For the pointwise bound, [30, Thm. 7.3.1] asserts that there exists a universal positive constant M1M_{1} such that

where φ(x)=x(1−x)\varphi(x)=\sqrt{x(1-x)}, and ωφ2(f,t)\omega_{\varphi}^{2}(f,t) is the second-order Ditzian-Totik modulus of smoothness defined by

According to Lemma 16, since pK′′(x)p_{K}^{\prime\prime}(x) is a polynomial with order K−2<2KK-2<2K, there exists some positive constant M2M_{2} such that

hence for any x,y∈[0,C/K2]x,y\in[0,C/K^{2}], we have

As a result, we know that for any C≥1C\geq 1, u=C/K2u=C/K^{2} and x∈[0,u]x\in[0,u],

where DnD_{n} is the coefficient of the norm bound in (173). Hence, the universal positive constant Dp≜16M1M2ln⁡2+1+DnD_{p}\triangleq 16M_{1}M_{2}\ln 2+1+D_{n} satisfies

References