Why Compare Bandwidths?
In kernel regression, a small bandwidth uses observations near the target location and tends to have low bias but high variance. A large bandwidth averages more broadly, often reducing variance while increasing bias. The central difficulty in adaptation is that the bias depends on the unknown regression function. Pairwise comparison addresses this by checking whether a smoother estimate differs “too much” from estimates using finer bandwidths.
The rule needs a threshold that reflects the random variability of each difference. Comparing every pair against one fixed numerical cutoff ignores the fact that different bandwidth pairs can have very different variances. We will use the variance of each pairwise contrast directly, and then give conditions under which the resulting choice has an oracle-type error bound.
Kernel Estimates and Pairwise Comparisons
Consider fixed design points \(x_1,\ldots,x_n\) and the Gaussian regression model
At a target point \(x\), a linear kernel estimate at bandwidth \(h\) can be written
The weights are determined by the kernel, the bandwidth, and the design. We assume the denominator used to define the kernel weights is nonzero. The mean and variance of this estimate are
Take a finite bandwidth grid \(h_1<\cdots<h_M\), ordered from finest to coarsest. For two grid indices \(k<j\), compare the coarser estimate at \(h_j\) with the finer estimate at \(h_k\). Their difference has noise variance
This is generally not \(V_{h_j}(x)+V_{h_k}(x)\), because estimates based on the same observations are correlated. The contrast variance automatically accounts for that dependence.
Worked Example: Computing a Contrast Variance
Suppose three observations have independent errors with variance \(\sigma^2=4\). At a target point, the fine estimate has weights \((0,1,0)\), while the coarse estimate has weights \((1/4,1/2,1/4)\). Let the observed responses be \(Y=(2,3,4)\).
The fine estimate is \(3\). The coarse estimate is \(2(1/4)+3(1/2)+4(1/4)=0.5+1.5+1=3\). Thus their observed difference is zero. The difference in weights, coarse minus fine, is \((-1/4,1/2,-1/4)\). Its variance is
The standard deviation of the contrast is \(\sqrt{3/2}\), not the square root of the sum of the two estimate variances. Here the observed difference passes any positive threshold. The example also shows why a small observed difference alone is not enough: it must be judged relative to the contrast’s own variability.
A Gaussian Threshold for the Whole Grid
A threshold should control the chance that random noise makes one of the many comparisons look unusually large. Let \(N=M(M-1)/2\) be the number of distinct pairs and set \(K=N+M\). For \(0<\delta<1\), define
The factor \(K\) allows simultaneous control of all pairwise noise contrasts and all individual estimator noises. The following result justifies this calibration.
Proof. Each centered pairwise difference is Gaussian with mean zero and variance \(V_{jk}\). When this variance is positive, dividing by its standard deviation gives a standard normal random variable \(Z\); the Gaussian tail bound gives \(P(|Z|>t)\leq 2e^{-t^2/2}\). The same argument applies to each centered estimate with positive variance. If any variance is zero, the corresponding centered quantity is identically zero, so its inequality holds automatically.
There are \(N\) pairwise contrasts and \(M\) individual estimates. For each nondegenerate quantity, the probability of exceeding its bound at \(t=q_\delta\) is at most \(2e^{-q_\delta^2/2}=\delta/K\). By the union bound, the probability that any of the \(K=N+M\) inequalities fails is at most \(K(\delta/K)=\delta\). Therefore all inequalities hold together with probability at least \(1-\delta\). \(\square\)
On this event, the random part of any pairwise difference is at most half the selection threshold, since \(\lambda=2q_\delta\). This leaves room for a deterministic difference between the mean estimates, which is the part caused by smoothing bias.
Worked Example: Applying the Selection Rule
Consider three ordered bandwidths with observed estimates \(10,\ 10.4,\ 13\), from finest to coarsest. Suppose their centered estimation errors are independent with variances \(1,\ 0.36,\ 0.16\), respectively. For illustration, take \(\lambda=2\). Independence makes each contrast variance the sum of the two individual variances.
For the middle bandwidth against the finest, the contrast standard deviation is \(\sqrt{1+0.36}=\sqrt{1.36}\approx1.166\), so the threshold is approximately \(2.332\). The observed difference is \(|10.4-10|=0.4\), so the middle bandwidth passes.
For the coarsest bandwidth against the finest, the contrast standard deviation is \(\sqrt{1+0.16}=\sqrt{1.16}\approx1.077\), and the threshold is approximately \(2.154\). The difference is \(|13-10|=3\), so the coarsest bandwidth fails this comparison. Its comparison against the middle bandwidth also fails: the threshold is \(2\sqrt{0.36+0.16}=2\sqrt{0.52}\approx1.442\), while \(|13-10.4|=2.6\).
The middle bandwidth passes its comparison with the finer one, and the coarsest bandwidth does not pass. The rule therefore selects the middle bandwidth. This calculation uses the variance of each difference; it does not apply the same cutoff to all three comparisons.
An Oracle Bound and Its Conditions
The relevant oracle is not necessarily the bandwidth with the smallest unknown mean squared error. It is a bandwidth whose mean estimates are sufficiently close to all finer mean estimates at the chosen comparison scale. This condition captures when the bias at that bandwidth is small enough for the pairwise rule to accept it.
Proof. Work on the simultaneous event in the preceding theorem. For each \(k<j_0\), split the observed difference into its mean difference and centered noise difference. The deterministic condition bounds the first by \((\lambda/2)\sqrt{V_{j_0k}}\); the event bounds the second by \(q_\delta\sqrt{V_{j_0k}}=(\lambda/2)\sqrt{V_{j_0k}}\). Their sum is at most \(\lambda\sqrt{V_{j_0k}}\), so \(j_0\) passes. Since the selected index is the largest passing index, \(\hat j\geq j_0\).
If \(\hat j=j_0\), their observed estimates are identical. Otherwise, because \(\hat j\) passes, it passes its comparison with the finer index \(j_0\). In either case, \[ |\hat f_{h_{\hat j}}-\hat f_{h_{j_0}}| \leq \lambda\sqrt{V_{\hat j,j_0}}. \] The triangle inequality for the standard deviation of a difference gives \(\sqrt{V_{\hat j,j_0}}\leq\sqrt{V_{h_{\hat j}}}+\sqrt{V_{h_{j_0}}}\). By the assumed nonincreasing variances and \(\hat j\geq j_0\), this is at most \(2\sqrt{V_{h_{j_0}}}\). Also, the simultaneous event bounds \(|\hat f_{h_{j_0}}-m_{h_{j_0}}|\leq q_\delta\sqrt{V_{h_{j_0}}}\). Combining these inequalities with the triangle inequality yields \[ |\hat f_{h_{\hat j}}-f| \leq 2\lambda\sqrt{V_{h_{j_0}}} +q_\delta\sqrt{V_{h_{j_0}}} +|m_{h_{j_0}}-f| =5q_\delta\sqrt{V_{h_{j_0}}}+|m_{h_{j_0}}-f|, \] because \(\lambda=2q_\delta\). The simultaneous event has probability at least \(1-\delta\), proving the claim. \(\square\)
The bound separates the oracle’s bias, \(|m_{h_{j_0}}(x)-f(x)|\), from a variance term. It is useful only if an index with a suitably small bias also meets the deterministic comparison condition. The theorem does not assert that such an index always exists, nor that the rule always finds the exact minimizer of mean squared error.
Worked Example: Bias–Variance Scaling for a Kernel Grid
Suppose, as an approximate interior-point calculation in one dimension, the squared bias is bounded by \(C^2h^{2\beta}\) for some smoothness \(\beta>0\), and the variance is of order \(\sigma^2/(nh)\). Ignoring constants, the usual squared-error balance minimizes \(h^{2\beta}+1/(nh)\).
Differentiate with respect to \(h>0\): \[ 2\beta h^{2\beta-1}-\frac{1}{nh^2}=0. \] Thus \(2\beta h^{2\beta+1}=1/n\), giving a balancing bandwidth proportional to \(n^{-1/(2\beta+1)}\). Substitution shows that both terms have order \(n^{-2\beta/(2\beta+1)}\).
For pairwise selection, the simultaneous threshold contains a factor of order \(\sqrt{\log(K/\delta)}\). If that factor affects the variance term in the oracle comparison, balancing \(h^{2\beta}\) against \(\log(K/\delta)/(nh)\) gives \(h\) of order \((\log(K/\delta)/n)^{1/(2\beta+1)}\), and the corresponding error scale is \((\log(K/\delta)/n)^{2\beta/(2\beta+1)}\). This calculation is an illustration of the threshold cost, not a universal rate theorem: the exact rate depends on the design, kernel, grid, and bias conditions.
When the Rule Adapts—and When It Does Not
For a kernel estimate on a regular one-dimensional design, a common setting has variance of order \(\sigma^2/(nh)\) over bandwidths with enough observations in their kernel windows. If \(f\) is locally \(\beta\)-smooth and the kernel has appropriate moment properties, the bias is often of order \(h^\beta\). These facts motivate the bias–variance balance in the example, but a rate claim requires verifying them for the particular design and estimator.
To interpret the oracle bound as data-driven risk adaptation, the grid should cover useful bandwidth scales, the contrast variances should be known or estimated accurately enough, and there should be a bandwidth whose mean estimate has small bias and satisfies the deterministic comparison condition. A nonincreasing variance sequence is one convenient condition for the stated bound. The grid size also matters: a larger grid requires a more conservative simultaneous threshold. The method adapts by comparing estimates rather than by being given the smoothness \(\beta\), but adaptation is not automatic in the absence of these conditions.
A common mistake is to compare \(\hat f_{h_j}\) and \(\hat f_{h_k}\) using the variance of just one estimate, or to add their variances as if the estimates were independent. They usually use the same responses, so their covariance matters: \[ V_{jk}=V_{h_j}+V_{h_k}-2\operatorname{Cov}(\hat f_{h_j},\hat f_{h_k}). \] The correction is to compute the variance of the difference itself, using the difference in weights, and then calibrate the threshold for the number of comparisons being made.
Check Your Understanding
Work through these questions to test the main ideas.
- Why is the variance of \(\hat f_{h_j}(x)-\hat f_{h_k}(x)\) generally not the sum of the two estimator variances?
- For the stated selection rule, why does the finest bandwidth pass by convention?
- What role does the union bound play in choosing a threshold for a finite grid?
- In the oracle theorem, what deterministic condition must \(j_0\) satisfy, and why is that condition separate from the noise event?
- If the estimator variances increase rather than decrease with bandwidth, which step in the oracle-bound proof no longer follows as stated?