Why Two Scales Determine the Classification Rate
A classifier can make mistakes only where its estimated regression function points to the wrong side of one half. Its excess risk is therefore governed by two quantities: how accurately the regression function is estimated, and how much probability lies near the decision boundary, where even a small estimation error can change the predicted class. Smoothness controls the first quantity; a margin condition controls the second.
The aim here is to derive the resulting rate by choosing a spatial bandwidth that balances local bias against sampling variability. The derivation concerns plug-in classification: estimate the conditional class probability, then classify according to whether that estimate is above or below one half.
From Regression Error to Classification Regret
The margin is twice the distance from \(\eta(x)\) to the decision threshold. Thus, if an estimated regression function \(\hat\eta(x)\) differs from \(\eta(x)\) by less than \(M(x)/2\), it cannot cross the threshold and reverse the Bayes decision. This observation gives the basic link between regression estimation and classification.
To verify the identity, condition on \(X=x\). Predicting 1 has conditional error \(1-\eta(x)\); predicting 0 has conditional error \(\eta(x)\). The smaller of these is the Bayes conditional risk. Choosing the other decision increases conditional risk by \(|(1-\eta(x))-\eta(x)|=|2\eta(x)-1|\). Averaging over \(X\) proves the identity.
The margin condition limits the probability of points with small \(M(X)\). We use the convention $$ P(M(X)\le t)\le C t^\alpha,\qquad t>0, $$ for constants \(C>0\) and \(\alpha\ge 0\). A larger \(\alpha\) means less probability mass near the boundary. The condition is assumed over all positive \(t\); since \(M(X)\le1\), only thresholds up to one are substantively informative.
Worked Example: A Linear Boundary with a Uniform Design
Let \(X\) be uniform on \([0,1]\), and, conditionally on \(X=x\), let \(Y\) be Bernoulli with success probability \(\eta(x)=1/4+x/2\). This regression function is Lipschitz, so its smoothness order is \(\beta=1\). Its decision boundary is \(x=1/2\).
Here \(M(x)=|2\eta(x)-1|=|x-1/2|\). For \(0\le t\le 1/2\), the event \(M(X)\le t\) is the interval \([1/2-t,1/2+t]\), whose uniform probability is \(2t\). Thus the margin condition holds with \(\alpha=1\) and \(C=2\) for these thresholds; for \(t>1/2\), probability is 1 and is also at most \(2t\).
The dimension is \(d=1\). The scale calculation below gives a regression error of order \(n^{-1/3}\), and a classification excess-risk bound of order \(n^{-2/3}\), because \(1+\alpha=2\). This is faster than the regression error scale: most points are not close enough to the boundary for that full error to affect their labels.
Local Regression Error at Bandwidth \(h\)
A local regression estimator averages observations in a neighborhood with spatial radius \(h\), or uses local polynomial fitting with comparable effective volume. Under a density bounded away from zero and infinity on the relevant design region, that neighborhood contains on the order of \(nh^d\) observations. Its standard deviation is therefore on the order of \((nh^d)^{-1/2}\). If \(\eta\) is Hölder smooth of order \(\beta>0\), the local approximation bias is on the order of \(h^\beta\).
For a precise rate statement, the following argument uses a pointwise concentration condition. It is satisfied by appropriate local estimators under standard design, bounded-response, and smoothness conditions; boundary handling and estimator construction must be chosen so that the stated bias and concentration bounds hold.
Set \(s_h=(nh^d)^{-1/2}\), the stochastic error scale. The assumption says that error beyond a bias allowance \(Bh^\beta\) has a tail that decays on scale \(s_h\). The next result shows how this pointwise control combines with the margin condition.
Proof. By the excess-risk identity, the expected regret is the expectation of \(M(X)\) times the indicator of a classification disagreement, also averaging over the training sample. First consider \(M(X)\le q_h\). The contribution from this event is at most $$ q_h P(M(X)\le q_h)\le Cq_h^{1+\alpha}. $$ Now divide \(M(X)>q_h\) into shells \(2^kq_h<M(X)\le2^{k+1}q_h\), for integers \(k\ge0\). On shell \(k\), disagreement requires estimation error at least \(M(X)/2\), hence at least \(2^{k-1}q_h\). Since \(q_h\ge4Bh^\beta\), this threshold exceeds the bias allowance by at least a fixed positive multiple of \(2^kq_h\). The concentration assumption therefore bounds the conditional disagreement probability on this shell by \(2\exp(-c_1 4^kq_h^2/s_h^2)\) for a constant \(c_1>0\). Also \(q_h\ge s_h\), so this is at most \(2\exp(-c_1 4^k)\).
The regret on the shell is at most \(2^{k+1}q_h\). Its probability is at most \(P(M(X)\le2^{k+1}q_h)\le C(2^{k+1}q_h)^\alpha\). Thus the sum of the shell contributions is bounded by a constant times $$ q_h^{1+\alpha}\sum_{k=0}^{\infty}2^{k(1+\alpha)}\exp(-c_1 4^k). $$ This series is finite: its exponential factor decreases faster than its geometric factor grows. Adding the small-margin contribution proves the result. \(\square\)
Balancing Bias and Sampling Variability
The theorem reduces the rate calculation to selecting \(h\). A smaller bandwidth reduces the smoothness bias \(h^\beta\), but leaves fewer observations in each neighborhood and increases \((nh^d)^{-1/2}\). The natural balance sets these two scales equal.
Choose \(h\) to satisfy \(h^\beta=(nh^d)^{-1/2}\), or equivalently \(h^{2\beta+d}=n^{-1}\).
The balanced choice is \(h=n^{-1/(2\beta+d)}\), up to a constant factor.
Both terms are then of order \(n^{-\beta/(2\beta+d)}\).
The theorem raises the regression error scale to power \(1+\alpha\), giving \(n^{-\beta(1+\alpha)/(2\beta+d)}\).
The exponent has a direct interpretation. Greater smoothness \(\beta\) makes local approximation more accurate as \(h\) shrinks. Larger dimension \(d\) makes neighborhoods sparse more quickly, slowing the rate. A larger margin exponent \(\alpha\) reduces the mass of points whose labels are vulnerable to small regression errors, improving the classification rate.
Worked Example: Substituting Smoothness, Dimension, and Margin
Suppose \(\beta=1\), \(d=2\), and the margin condition holds with \(\alpha=1\). The balanced bandwidth is $$ h=n^{-1/(2+2)}=n^{-1/4}. $$
The bias is \(h^\beta=n^{-1/4}\). The stochastic scale is $$ (nh^d)^{-1/2} =\left(n\cdot n^{-2/4}\right)^{-1/2} =(n^{1/2})^{-1/2} =n^{-1/4}. $$ The regression error scale is therefore \(n^{-1/4}\). Raising it to \(1+\alpha=2\) gives the excess-risk order \(n^{-1/2}\). This calculation uses both the dimension in the local sample size and the margin exponent in the final power.
Worked Example: Checking the Numerical Scales
Take \(\beta=1\), \(d=3\), and \(n=32{,}000\). The balanced bandwidth and regression error scale are \(n^{-1/5}\). Since \(32{,}000^{1/5}\) is approximately \(7.962\), $$ 32{,}000^{-1/5}\approx 0.1256, $$ or approximately \(0.126\) to three decimal places. It is close to, but not exactly, \(1/8\): \(8^5=32{,}768\).
With no informative margin exponent, \(\alpha=0\), the excess-risk scale is also approximately \(0.1256\). With \(\alpha=1\), it is \(n^{-2/5}\). Squaring the first scale gives $$ 32{,}000^{-2/5}\approx 0.01577, $$ which rounds to \(0.0158\) to four decimal places. The improved risk scale comes from the margin assumption, not from a different bandwidth.
A Direct Margin Bound and a Common Pitfall
A simpler deterministic argument is useful when a uniform regression-error guarantee is available. If \(|\hat\eta(x)-\eta(x)|\le r\) for every relevant \(x\), then disagreement is possible only when \(M(x)\le2r\). On that set the regret contribution per point is at most \(2r\), so $$ R(g_{\hat\eta})-R(g^*)\le 2rP(M(X)\le2r)\le 2Cr^{1+\alpha}. $$ This proves the same conversion from regression accuracy to classification regret, but a uniform error bound can be more demanding than the pointwise control used above.
Worked Example: Applying a Uniform Error Bound
Suppose \(|\hat\eta(x)-\eta(x)|\le r=0.05\) uniformly, and \(P(M(X)\le t)\le2t\). A classification disagreement can occur only for \(M(X)\le2r=0.10\). The probability of that set is at most \(2(0.10)=0.20\), and the regret at any such point is at most \(0.10\). Therefore, $$ R(g_{\hat\eta})-R(g^*)\le 2rP(M(X)\le2r) =0.10(0.20)=0.02. $$
The expression has only one factor of \(2r\) for the maximum regret on the small-margin set. The other factor \(2\) appears inside the probability threshold \(2r\), not as an additional multiplier on that regret.
A common mistake is to use a uniform regression bound and then report the scale-free rate without checking whether that bound contains a logarithm. For instance, a uniform concentration argument often yields an error scale involving \(\sqrt{\log n/(nh^d)}\), rather than \((nh^d)^{-1/2}\). Balancing with that term can introduce a logarithmic factor. That is not an algebra error: it reflects the stronger uniform guarantee used in the argument. The pointwise concentration derivation above explains how integrating over the covariate distribution can avoid paying for uniform control at every \(x\).
Check Your Understanding
Work through these questions using the definitions and assumptions above.
- Why does a classification disagreement for a plug-in rule require a regression error of at least \(M(x)/2\)?
- For \(\beta=2\) and \(d=3\), solve for the bandwidth that balances \(h^\beta\) and \((nh^d)^{-1/2}\).
- With that bandwidth, what regression error scale and excess-risk exponent follow when \(\alpha=1\)?
- In the uniform-error example, identify which factor bounds the regret per point and which threshold determines the small-margin probability.
- Why can a uniform regression-error argument yield a logarithmic factor that does not appear in the pointwise scale calculation?