Why Uniform Accuracy Can Give a Faster Risk Rate
A plug-in classifier estimates the probability of label 1 at each feature value and assigns the label according to whether that estimate exceeds one half. A uniform error bound says that the estimated probability is never more than a specified amount away from the true regression function. By itself, this does not tell us how often the classifier makes errors: that also depends on how much probability lies near the threshold, where even a small estimation error can change the predicted label.
A margin condition quantifies that probability. If little probability lies near the Bayes threshold, a uniform estimation error of size \(\epsilon\) can cause disagreement only on a small set, and each disagreement has limited cost. Together these facts yield an excess-risk bound of order \(\epsilon^{\alpha+1}\), where \(\alpha\) is the margin exponent.
Definitions and Conventions
Let \((X,Y)\) be a random pair, with \(Y\in\{0,1\}\), and let \(\eta(x)=P(Y=1\mid X=x)\) be a measurable version of the regression function. For a measurable classifier \(g\), its risk is \(R(g)=P(g(X)\ne Y)\). Define the Bayes classifier \(g^*(x)=\mathbf{1}\{\eta(x)\ge 1/2\}\); either label is optimal when \(\eta(x)=1/2\). For a measurable estimated regression function \(\hat\eta\), the plug-in classifier is \(\hat g(x)=\mathbf{1}\{\hat\eta(x)\ge 1/2\}\).
The condition includes points exactly on the threshold. For \(\alpha>0\), it therefore rules out positive probability at \(\eta(X)=1/2\). The requirement \(C\ge 1\) is necessary at \(t=1\), since \(\Delta(X)\le 1\) always. When \(\alpha=0\), the condition is generally only a bounded-probability statement and does not imply that the boundary has zero probability.
The Excess-Risk Identity and the Main Bound
At a fixed feature value \(x\), predicting 1 has conditional error probability \(1-\eta(x)\), while predicting 0 has conditional error probability \(\eta(x)\). The Bayes classifier chooses the smaller of these two probabilities. Choosing the other label increases conditional error by \(|1-2\eta(x)|=\Delta(x)\). Integrating over \(X\) gives the exact identity
At a threshold tie, the two conditional errors are equal, so the identity holds whichever label is selected. In particular, classification regret is not the probability of disagreement alone: each disagreement is weighted by its margin.
Proof. Consider a feature value where \(\hat g(x)\ne g^*(x)\). If \(\eta(x)>1/2\), then \(g^*(x)=1\) and disagreement requires \(\hat\eta(x)<1/2\). Consequently,
If \(\eta(x)<1/2\), then disagreement requires \(\hat\eta(x)\ge 1/2\), so
At \(\eta(x)=1/2\), the margin is zero, so it already satisfies the same conclusion. Thus disagreement implies \(|\eta(x)-1/2|\le\epsilon\), or equivalently \(\Delta(x)\le 2\epsilon\). The excess-risk identity and \(\Delta(x)\le 2\epsilon\) on the disagreement set now give
When \(0<\epsilon\le 1/2\), apply the margin condition at \(t=2\epsilon\):
When \(\epsilon>1/2\), excess risk is at most 1, while \(2^{\alpha+1}C\epsilon^{\alpha+1}>1\), so the stated bound still holds. If \(\epsilon=0\), the estimated and true regression functions agree almost surely, their threshold decisions agree except possibly at ties, and ties have zero regret. This proves the result. \(\square\)
Worked Bounds in Concrete Models
Worked Example: A Discrete Margin Distribution
Suppose \(X\) has two possible values. At the first, with probability \(0.3\), let \(\eta(X)=0.53\). At the second, with probability \(0.7\), let \(\eta(X)=0.75\). The corresponding margins are \(0.06\) and \(0.50\). Verify a margin condition with \(\alpha=1\), then bound the regret when \(\epsilon=0.04\).
For \(0<t<0.06\), the margin probability is zero. For \(0.06\le t<0.50\), it is \(0.3\), and for \(0.50\le t\le 1\), it is 1. The condition holds with \(C=5\): at the first jump, \(0.3\le5(0.06)=0.3\); between the jumps, \(5t\ge0.3\); and above \(0.50\), \(5t\ge2.5\ge1\).
The theorem gives
This bound allows for possible disagreement at the first feature value, since \(0.06\le2\epsilon=0.08\), but not at the second. It is a valid worst-case guarantee; it need not equal the regret of a particular estimate.
Worked Example: Integrating Regret in a Continuous Model
Let \(X\) be uniform on \([0,1]\), and set \(\eta(x)=0.25+0.5x\). Then \(\Delta(x)=|x-0.5|\). For \(0<t\le0.5\), the interval where \(\Delta(x)\le t\) has length \(2t\); for \(0.5<t\le1\), its probability is 1. Thus \(P(\Delta(X)\le t)\le2t\) for all \(0<t\le1\): the margin condition holds with \(\alpha=1\) and \(C=2\).
Take \(\hat\eta(x)=\eta(x)-0.1\), so the uniform error is \(\epsilon=0.1\). The true classifier switches at \(x=0.5\), while the estimated classifier switches at \(x=0.7\). They disagree for \(0.5\le x<0.7\), up to endpoints of probability zero. The exact excess risk is
The general bound is \(2^2(2)(0.1)^2=0.08\). The direct calculation verifies the regret and shows why the theorem can be conservative: it bounds the margin throughout the disagreement region by its largest possible value there.
Worked Example: A Quadratic Margin Condition
Suppose \(X\) takes two values with margins \(0.12\) and \(0.60\), having probabilities \(0.1\) and \(0.9\), respectively. For \(t<0.12\), the margin probability is zero; for \(0.12\le t<0.60\), it is \(0.1\); and for \(0.60\le t\le1\), it is 1. A condition with \(\alpha=2\) and \(C=7\) holds: at the first jump \(7(0.12)^2=0.1008\ge0.1\), and at the second \(7(0.60)^2=2.52\ge1\). Between jumps, \(7t^2\) is no smaller than its value at the lower endpoint.
For a uniform error bound \(\epsilon=0.07\), the theorem yields
The first margin, \(0.12\), is within \(2\epsilon=0.14\), so that point could be misclassified under the uniform guarantee. The larger margin \(0.60\) cannot be crossed by an error of this size.
Why the Exponent Is \(\alpha+1\), and Why It Cannot Generally Improve
The power has two sources. The margin condition says that the probability of the potentially affected region is at most a constant times \(\epsilon^\alpha\). Each disagreement in that region costs at most \(2\epsilon\) in conditional risk. Multiplying these bounds produces \(\epsilon^{\alpha+1}\). The next result shows that, without stronger assumptions, this exponent cannot be improved uniformly over distributions satisfying the margin condition.
Common Pitfalls and Practical Interpretation
- Using the wrong margin scale. Here \(\Delta=|2\eta-1|\), so disagreement implies \(\Delta\le2\epsilon\). If margin is instead defined as \(|\eta-1/2|\), the corresponding threshold is \(\epsilon\), and constants must be adjusted consistently.
- Dropping the cost of disagreement. The probability of disagreement is not itself the excess risk. The exact identity weights each disagreement by \(\Delta(X)\), which is why the additional factor of \(\epsilon\) appears.
- Reversing the direction of the condition. The useful assumption is an upper bound on the probability of lying near the threshold. Saying only that the margin is “usually large” is not a quantitative substitute.
- Treating a high-probability guarantee as a deterministic one. The theorem applies on any event where the uniform error bound holds. If that event has probability at least \(1-\delta\), the risk bound holds on that event; a bound for unconditional expected regret must also account for its complement. Since excess risk is at most 1, one simple unconditional bound is \(2^{\alpha+1}C\epsilon^{\alpha+1}+\delta\).
The result is useful when a regression procedure supplies a uniform error guarantee and the feature distribution has little mass near the decision boundary. It converts those two ingredients into a classification-regret guarantee without requiring the estimate to be accurate enough to classify every feature value correctly. The margin assumption is substantive: substantial probability near the threshold can make even small regression errors consequential.
Check Your Understanding
Use the convention \(\Delta=|2\eta-1|\) in answering these questions.
- If the uniform regression error is at most \(\epsilon\), what inequality must hold for \(\Delta(X)\) whenever the plug-in and Bayes classifiers disagree?
- Under a margin condition with exponent \(\alpha\), identify the two factors whose product gives the power \(\epsilon^{\alpha+1}\).
- For \(\alpha=1\), \(C=3\), and \(\epsilon=0.05\), calculate the theorem's upper bound, assuming \(2\epsilon\le1\).
- Why does the exact excess-risk identity weight disagreement by the margin rather than just counting disagreement probability?
- In the sharpness construction, which feature value causes regret, and why is its probability chosen to depend on \(\epsilon\)?