Nonparametric Minimax Risk and the Varshamov–Gilbert Lemma
A minimax lower bound asks how well any estimator can perform over a class of possible functions. One approach selects many functions that are separated in the estimation loss but difficult to distinguish from the data. The Varshamov–Gilbert lemma supplies a large collection of binary vectors separated in Hamming distance. We use these vectors to construct functions, apply Fano's inequality to bound estimation risk, and obtain matching upper and lower bounds for Gaussian sequence estimation and density estimation.
We first set out the estimation models in which these lower-bound constructions are used. Briefly, for a standard statistical problem involving i.i.d. real-valued random variables \(X_1, \dots, X_n\), whose common distribution is absolutely continuous with respect to the Lebesgue measure on \(\mathbb R\), say we want to estimate its density function \(p : \mathbb R \to [0,\infty)\). If we think \(p\) belongs to some family of functions \(\{g(x,\theta): \theta \in \Theta \subset \mathbb R^k\}\), then we say the estimation problem is parametric. If the model permits an infinite-dimensional class of densities, the problem is nonparametric; the class may still be specified by smoothness or shape restrictions.
1. Preliminaries
For regression, consider the observation model: suppose \(\{(X_i,Y_i)\}_{1 \leq i \leq n}\) is a collection of independent observations (random variables) such that
Here, \(f: [0,1] \to \mathbb R\) is the unknown, fixed regression function, and \(\mathbb{E}[\xi_i\mid X_i]=0\) for all \(i\). We suppose \(f\in\mathcal F\), where \(\mathcal F\) is a specified function class. A related experiment is the Gaussian white-noise model
where \(W\) is standard Brownian motion and \(Y(0)=0\). We observe a sample path \(\mathbf X = \{ Y(t) : 0 \leq t \leq 1 \}\). Integrating this path against basis functions gives the Gaussian sequence observations
Here, \((\varphi_j)\) is a complete orthonormal basis of \(L^2[0,1]\), and \(\xi_j = \int_0^1 \varphi_j (x) \dif W(x)\) are i.i.d. standard normal random variables.
Assume \(f\in L^2[0,1]\), and define \(\theta_j=\int_0^1 f(t)\varphi_j(t)\,dt\). Integrating the white-noise equation against each deterministic basis function gives the sequence representation above. For any finite list of indices, the Wiener integrals are jointly Gaussian, centered, and satisfy
Their joint Gaussian law therefore makes them independent, not merely uncorrelated. Parseval's identity translates squared function-estimation error into sequence error: \(\|\hat f-f\|_2^2=\sum_j(\hat\theta_j-\theta_j)^2\) whenever \(\hat f,f\in L^2\). This is the connection used by sequence-space lower-bound constructions; equivalence of a general regression experiment with white noise requires additional conditions and is not asserted here.
1.1. The Varshamov–Gilbert Lemma
For \(x,y\in\{0,1\}^m\), the Hamming distance \(H(x,y)=\sum_{i=1}^m\mathbb 1\{x_i\ne y_i\}\) counts the coordinates at which the vectors differ. The Varshamov–Gilbert lemma gives exponentially many binary vectors whose pairwise distances are proportional to \(m\).
Lemma 1 (Varshamov-Gilbert). Let \(m \geq 8\). Then, there exists a subset \(\{x_0,\dots,x_M\} \subset \Xi \triangleq \{0,1\}^m\) such that with \(x_0 = (0,0,\dots,0) \in \{0,1\}^m\),
and \(M \geq 2^{m/8}\).
Proof. The construction is greedy: choose a vector, exclude its nearby neighbors, and repeat. Start with \(x_0=0\) and successively choose a binary vector outside all previously removed Hamming balls of radius \(D=\lfloor m/8\rfloor\). Stop when the excluded balls cover the cube. Since each choice excludes only a bounded number of vectors, covering the whole cube requires many choices. The selected vectors have pairwise distance at least \(D+1>m/8\). Each ball contains
points, including its center. Consequently,
If \(B\sim\operatorname{Bin}(m,1/2)\), Hoeffding’s inequality gives
One can verify the binomial estimate directly. Write \(B=\sum_{i=1}^m B_i\), with independent fair Bernoulli variables. For \(t>0\),
The inequality follows by integrating \(\tanh u\le u\) to get \(\log\cosh u\le u^2/2\). Since \(D\le m/8\), Markov's inequality gives
Taking \(t=3/2\) yields \(e^{-9m/32}\). The exponent is smaller than \(-m\log2/4\). Finally, put \(a=2^{m/8}\ge2\): then \(2^{m/4}=a^2\ge a+1\), so the estimate on the number of centers gives the stated estimate on \(M\), which excludes the initial center.
Hence \(M+1>2^{m/4}\geq2^{m/8}+1\) for \(m\geq8\), proving the claim. ◻
2. Minimax risk and reduction to testing
Let \(Z\) denote the observed data, with law \(P_\theta^{(n)}\) when the unknown parameter is \(\theta\in\Theta\). Let \(d\) be a metric on a space containing both the parameter class and the possible estimates. Under squared loss, the maximum risk of an estimator and the minimax risk are
The infimum is over all measurable estimators based on the observations. In function estimation we use \(d(f,g)=\|f-g\|_2\); the domain of integration will be specified in each model. A positive sequence \(\psi_n\to0\) is a minimax rate if, for constants \(0<c\le C<\infty\) and all sufficiently large \(n\),
Thus \(\psi_n\) is the rate in root mean squared error, while \(\psi_n^2\) is the rate of the squared-error risk. An upper bound follows by constructing one estimator. A lower bound must hold for every estimator, including nonlinear and data-dependent procedures.
To prove such a bound, choose a finite subset \(\theta_0,\ldots,\theta_M\) of the parameter class. If an estimator is close enough to the true parameter, its nearest member of this subset identifies the true index. A lower bound on the probability of misclassification therefore gives a lower bound on estimation risk.
2.1. Fano’s inequality
Write
for Kullback–Leibler divergence when \(P\ll Q\), and set it equal to infinity otherwise. All logarithms below are natural. We use the following form of Fano’s inequality; the information-theoretic treatment by Duchi, Section 8.4.1, gives the corresponding testing and estimation bounds.
Lemma 2 (A finite-set lower bound). Suppose \(M\ge1\), \(\theta_0,\ldots,\theta_M\in\Theta\), and
where \(\delta>0\), \(0<\alpha<1\), and \(P_j\) is the law of the full observation under \(\theta_j\). Then
Proof. Let \(J\) be uniform on \(\{0,\ldots,M\}\), and, conditional on \(J=j\), draw \(Z\sim P_j\). Put \(\overline P=(M+1)^{-1}\sum_jP_j\). The mutual information is
Splitting \(\log(dP_j/dP_0)\) through \(\overline P\) and averaging gives
For any classifier \(\widehat J(Z)\), let \(p_e=\mathbb P(\widehat J\ne J)\). Write \(\mathsf H\) for Shannon entropy, to distinguish it from Hamming distance. Conditional on the data and whether an error occurred, there is one possible correct label and at most \(M\) incorrect labels. The entropy chain rule gives
Since \(\mathsf H(J)=\log(M+1)\) and \(I(J;Z)=\mathsf H(J)-\mathsf H(J\mid Z)\), it follows that
Given \(\widehat\theta\), choose \(\widehat J\) to minimize \(d(\widehat\theta,\theta_j)\), breaking ties by the smallest index. If \(d(\widehat\theta,\theta_J)<\delta\), the triangle inequality and the separation assumption force \(\widehat J=J\). Hence
Taking the infimum over estimators proves the minimax lower bound in Lemma 2. ◻
For the packing in Lemma 1, \(\log(M+1)\ge m\log2/8\). Thus the bound is at least \(\delta^2/2\) whenever \(m\ge32\) and the average divergence is at most \(\log(M+1)/8\). The divergence may grow with \(m\): what matters is its size relative to the logarithm of the number of alternatives.
3. Minimax risk over a Sobolev ellipsoid
Return to the Gaussian sequence observations \(y_j=\theta_j+\varepsilon\xi_j\). Use the same trigonometric basis and coefficient weights as in Projection Estimators and Linear Minimax Risk:
Here \(\beta>0\) and \(Q>0\). For integer \(\beta\ge1\), periodic functions with \(\|f^{(\beta)}\|_2\le L\) correspond to \(Q=L^2/\pi^{2\beta}\). For other positive \(\beta\), the ellipsoid itself defines the smoothness class. The constant coefficient \(\theta_1\) is unrestricted.
Theorem 3 (Sobolev minimax rate). For fixed \(\beta,Q>0\), there are constants \(c_\beta,C_\beta>0\) such that, for all sufficiently small \(\varepsilon\),
3.1. The projection upper bound
Keep the first \(N+1\) coordinates, including the constant coefficient: \(\widehat\theta_j=y_j\) for \(j\le N+1\) and zero otherwise. Independence and Parseval give
The last inequality uses \(a_j\ge(N+1)^\beta\) on the omitted coordinates. Taking \(N=\lceil(Q/\varepsilon^2)^{1/(2\beta+1)}\rceil\) proves the upper bound. The unrestricted mean contributes variance \(\varepsilon^2\) and no bias.
3.2. The packing lower bound
Set
For \(\omega\in\{0,1\}^m\), define \(\theta_1^\omega=0\), \(\theta_{k+1}^\omega=b_m\omega_k\) for \(1\le k\le m\), and set the remaining coordinates to zero. Since \(a_{k+1}\le(2m)^\beta\),
Every constructed sequence therefore belongs to the ellipsoid. Choose the vectors \(\omega^{(0)},\ldots,\omega^{(M)}\) from Lemma 1, including \(\omega^{(0)}=0\). Their squared separation is
Let \(P_\omega\) be the law of the entire observed sequence. The alternatives differ only in the \(m\) selected coordinates; all other coordinates are independent noise with the same distribution under every alternative. For one selected coordinate the log likelihood ratio against zero is
Taking expectations under \(P_\omega\) and summing yields
The penultimate inequality follows from \(m^{2\beta+1}\ge Q/\varepsilon^2\). For sufficiently small \(\varepsilon\), we have \(m\ge32\), so Lemma 2 with \(\delta^2=m b_m^2/32\) gives
In the last step we used \(m\le2(Q/\varepsilon^2)^{1/(2\beta+1)}\), valid once \(Q/\varepsilon^2\ge1\). Together with the projection bound, this proves Theorem 3. ◻
Parseval transfers these bounds to integrated squared error for the corresponding functions. In the white-noise model the same lower bound applies to estimators using the full path. On this finite Fourier submodel, subtracting the observed active coordinates from \(Y(t)\) leaves a Gaussian residual whose distribution is independent of the parameter and of those coordinates. It adds no information about the selected alternative.
The choice \(\varepsilon=\sigma/\sqrt n\) gives the familiar squared-risk order \(n^{-2\beta/(2\beta+1)}\). Applying this conclusion to discrete regression requires assumptions on the design and function class. The projection-estimator post supplies that argument for equally spaced Gaussian regression and periodic Sobolev smoothness \(\beta>1/2\).
4. A density-estimation lower bound
Now let \(X_1,\ldots,X_n\) be independent observations from a density \(p\) on \(\mathbb R\). We use the same integrated smoothness class as in the kernel-density post. Put \(\ell=\lceil\beta\rceil-1\) and \(\gamma=\beta-\ell\in(0,1]\), and define
Here \(W^{0,2}=L^2\); for \(\ell\ge1\), the derivatives are weak derivatives. This is the density subclass of the Nikol’ski class \(\mathcal H(\beta,L)\) used there. All norms in this section are over \(\mathbb R\).
Theorem 4 (Integrated density-estimation rate). For fixed \(\beta,L>0\), there are constants \(c_{\beta,L},C_{\beta,L}>0\) such that, for all sufficiently large \(n\),
4.1. Constructing densities in the class
Choose a nonzero smooth function \(q\) with compact support in \((0,1)\) and \(\int q=0\). For example, take \(q=K'\) for a nonconstant smooth function \(K\) with compact support in \((0,1)\). The zero integral ensures that adding a bump does not change the total mass.
Let \(\varphi\) be the standard normal density and put \(p_0(x)=\sigma^{-1}\varphi(x/\sigma)\). Choose \(\sigma\) large enough that \(p_0\in\mathcal H(\beta,L/2)\). To see that this is possible, define
The bound \(\|g(\cdot+t)-g\|_2\le\min(2\|g\|_2,|t|\|g'\|_2)\) shows that \([\varphi]_{\beta,2}<\infty\). A change of variables gives \([p_0]_{\beta,2}=\sigma^{-\beta-1/2}[\varphi]_{\beta,2}\). Fix such a \(\sigma\) and write \(b=\min_{x\in[0,1]}p_0(x)>0\).
For an integer \(m\ge1\), put \(h=1/m\) and
where \(\omega\in\{0,1\}^m\) and \(a>0\) will be fixed independently of \(m\) and \(n\). The supports of the bumps are disjoint subsets of \([0,1]\). Consequently \(\int u_\omega=0\) and \(\|u_\omega\|_\infty\le a h^\beta\|q\|_\infty\). Taking \(a\|q\|_\infty\le b/2\) ensures that \(p_\omega\ge b/2\) on \([0,1]\) and that \(p_\omega=p_0>0\) elsewhere. Every \(p_\omega\) integrates to one.
We must also check smoothness uniformly over all binary vectors. For each nonnegative integer \(r\), disjoint supports and \(mh=1\) give
Apply the translation bound above with \(r=\ell\) and \(r=\ell+1\). If \(|t|\le h\), use the derivative bound; if \(|t|>h\), use twice the norm. With \(C_q=\max(2\|q^{(\ell)}\|_2,\|q^{(\ell+1)}\|_2)\), this gives
Choose \(a\) small enough that also \(aC_q\le L/2\). The triangle inequality then proves \(p_\omega\in\mathcal P(\beta,L)\) for every \(\omega\). This covers integer \(\beta\) as well, for which \(\gamma=1\).
4.2. Separation and divergence
Choose \(\omega^{(0)},\ldots,\omega^{(M)}\) by Lemma 1. Because the bumps have disjoint supports,
To bound divergence, use \(\log(1+v)\le v\) for \(v>-1\) and \(\int u_\omega=0\). Writing \(P_p\) for the law of one observation with density \(p\), we obtain
The data contain \(n\) independent observations. Their log likelihood ratio is a sum, so their divergence is
Choose a fixed \(B\ge1\) sufficiently large that \(8A/(B^{2\beta+1}\log2)\le1/8\), and set
Since \(\log(M+1)\ge m\log2/8\),
For all sufficiently large \(n\), we also have \(m\ge32\). Lemma 2, with \(\delta^2=a^2\|q\|_2^2h^{2\beta}/32\), now proves
The last inequality uses \(m\le2Bn^{1/(2\beta+1)}\). Thus a large packing of valid densities gives a lower bound for every estimator.
4.3. Matching the kernel upper bound
The integrated-risk calculation for kernel estimators gives, uniformly over \(\mathcal P(\beta,L)\),
Here \(K\) is a square-integrable kernel with integral one, vanishing moments through order \(\ell\), and \(\int |u|^\beta|K(u)|\,du<\infty\). The polynomial kernel constructed in that post satisfies these conditions. Taking \(s\asymp n^{-1/(2\beta+1)}\) proves the upper bound in Theorem 4. ◻
Both examples balance squared separation against the information in the observations. In the sequence model, there are \(m\) uncertain coefficients with total squared size of order \(m\varepsilon^2\), constrained by \(m\varepsilon^2\lesssim Qm^{-2\beta}\). In density estimation, there are \(m=1/h\) local perturbations, and the divergence condition is \(nh^{2\beta}\lesssim m\). Each balance gives the exponent \(2\beta/(2\beta+1)\) when the noise variance is of order \(1/n\).
These arguments establish minimax rates up to constant factors. Asymptotic efficiency asks for the stronger conclusion \(r_n(\widehat\theta_n,\Theta)/\mathcal R_n^*(\Theta)\to1\). For the Sobolev ellipsoid, Pinsker’s theorem identifies the sharp constant and an estimator attaining it; the packing argument here explains why the rate itself cannot be improved.