Why Separate the Sources of Excess Risk?
A fitted predictor can have risk above the best possible risk for several distinct reasons. The chosen candidate class may not contain a good approximation to the target; the observed sample may make empirical risk differ from population risk; and an algorithm may fail to minimize its penalized empirical objective exactly. A useful risk guarantee keeps these contributions visible rather than hiding them in one remainder term.
The separation is useful for diagnosis. A large approximation error calls for a richer candidate class. A large estimation contribution calls for better control of sample fluctuations or a less complex class. A large optimization tolerance calls for a more accurate computation. The penalty also matters: it influences which comparator is suitable and appears explicitly in the guarantee.
Risk, Comparator, and Approximation Error
Let \(Z_1,\ldots,Z_n\) be independent observations with common distribution \(P\), and let \(Z\) denote a generic observation from \(P\). For a predictor \(g\) and loss \(\ell(g,z)\), define its population risk and empirical risk by
Let \(\mathcal F\) be the target class and \(\mathcal G\subseteq\mathcal F\) the candidate class used for fitting. We use nonnegative losses, assume \(\mathcal F\) and \(\mathcal G\) are nonempty, and assume each class contains at least one predictor with finite risk. These conditions ensure that
In particular, the difference defining approximation error is well-defined and finite. Individual predictors with infinite risk may exist, but they do not make either infimum infinite under these assumptions.
An infimum need not be attained. Thus a comparator \(g\in\mathcal G\) can be chosen with risk arbitrarily close to \(R_{\mathcal G}\), even when there is no single best member of \(\mathcal G\). This distinction matters when deriving bounds: the argument should apply to every comparator, not assume that a minimizer exists.
Worked Example: Computing Approximation Error
Suppose \(\mathcal F\) has finite risks \(0.08, 0.12,\) and \(0.30\), while \(\mathcal G\) contains only the predictors with risks \(0.12\) and \(0.30\). Then \(R_*=0.08\) and \(R_{\mathcal G}=0.12\), so
The candidate class cannot achieve the target-class best risk: even with unlimited data and exact optimization, its risk cannot be below \(0.12\). Its unavoidable excess over \(R_*\) is \(0.04\). The values also verify that both infima are finite, as required for this subtraction.
A Penalized Estimator and Its Error Decomposition
Let \(p:\mathcal G\to[0,\infty)\) be a finite-valued penalty, and let \(\hat g\in\mathcal G\) be a measurable fitted predictor. On the event considered below, suppose its empirical risks are finite and it satisfies the approximate penalized minimization condition
The tolerance \(\varepsilon\) measures optimization error. Exact minimization corresponds to \(\varepsilon=0\). For random quantities, assume the risks of the selected predictor are measurable and that the deviation bounds used below hold on a measurable event. If a supremum over \(\mathcal G\) is not measurable, a measurable upper bound for it can be used instead.
The inequality holds on any event where the empirical risks are finite and the displayed quantities are defined. In particular, its left side is finite when \(R(\hat g)<\infty\); this holds, for example, if the selected predictor is known to have finite risk. If it does not, the statement can instead be read as a bound for finite-risk selections.
Proof. Approximate minimization implies, for every \(g\in\mathcal G\),
Now add and subtract the empirical risks of \(\hat g\) and \(g\):
Bound the middle empirical-risk difference by the preceding optimization inequality, and bound each of the other two differences by its absolute value. This gives the claimed result. \(\square\)
The comparator term is the excess risk of the chosen \(g\) over the target-class optimum. The two absolute deviations are the estimation contribution for this particular comparison. They are not automatically small; a separate argument must control them. The penalty difference can help or hurt: if the comparator is more heavily penalized than the fitted predictor, it increases the bound.
Uniform Deviation and a Three-Part Bound
A common way to control the estimation contribution is with a uniform deviation over the candidate class. Define
Assume this quantity is measurable (or replace it with a measurable upper bound) and finite on the event of interest. Then both deviations in the theorem are at most \(\Delta_n(\mathcal G)\).
Proof. Apply the theorem and use \(|R(\hat g)-R_n(\hat g)|\le\delta\) and \(|R_n(g)-R(g)|\le\delta\). Adding the two bounds gives \(2\delta\). \(\square\)
Because \(p(\hat g)\ge0\), one may discard its negative contribution to obtain a simpler bound. Taking the infimum over comparators then gives
This form separates three main sources: comparator approximation, sample-based estimation, and optimization. The penalty adds a comparator charge. More explicitly, the infimum in the display equals \(A_{\mathcal G}+B_{\mathcal G}(p)\), where
Since \(R(g)\ge R_{\mathcal G}\) and \(p(g)\ge0\), this penalty charge is nonnegative. It allows the bound to use a comparator that may have slightly greater risk than the best-in-class risk in exchange for a more favorable penalty. When \(p\) is identically zero, the bound reduces to approximation error plus estimation error plus optimization error.
Worked Example: Reading a Finite-Class Bound
Suppose \(R_*=0.10\), and the candidate class contains \(g_1,g_2\) with risks \(0.18,0.12\). Their empirical risks are \(0.14,0.09\), and their penalties are \(0,0.04\), respectively. Let \(\hat g=g_1\), and suppose the optimization tolerance is \(\varepsilon=0.01\).
The penalized empirical objectives are \(0.14+0=0.14\) for \(g_1\) and \(0.09+0.04=0.13\) for \(g_2\). Thus \(g_1\) is within \(0.01\) of the minimum, as assumed. Using \(g=g_2\), the comparator excess is \(0.12-0.10=0.02\). The two deviations are \(|0.18-0.14|=0.04\) and \(|0.09-0.12|=0.03\), and the penalty difference is \(0.04-0=0.04\). The bound is therefore
The inequality is valid but loose. It still makes the accounting explicit: the comparator is close to optimal, while the sample deviations and the penalty difference dominate this particular upper bound.
Three Worked Perspectives on the Contributions
Worked Example: A Uniform Bound Across Candidate Classes
Suppose a target class has \(R_*=0.05\), and three candidate classes have best risks \(0.25,0.11,0.07\). Their approximation errors are \(0.20,0.06,0.02\). Suppose the corresponding available uniform deviation bounds \(2\delta\) are \(0.02,0.08,0.16\), and take zero penalty and exact optimization.
The resulting bounds, using a best-risk comparator or a sequence approaching the infimum, are \(0.20+0.02=0.22\), \(0.06+0.08=0.14\), and \(0.02+0.16=0.18\). The richest class has the smallest approximation error, but its larger estimation bound makes its total guarantee worse than that of the middle class. The calculation illustrates why minimizing approximation error alone need not minimize the excess-risk bound.
Worked Example: A Quadratic Objective With Optimization Error
Let \(Y\) equal \(0\) or \(2\), each with probability \(1/2\), and predict a constant \(\theta\in\mathbb R\) using squared loss \((Y-\theta)^2\). Then
Take \(\mathcal F=\mathcal G=\mathbb R\), so \(R_*=1\) and the approximation error is zero. Consider the sample \(Y_1=0,Y_2=2\). Its empirical risk is also \(R_n(\theta)=1+(\theta-1)^2\) for every \(\theta\), so the uniform estimation deviation is zero. Use penalty \(p(\theta)=\tfrac12\theta^2\). The penalized objective is
Differentiating gives \(-2+3\theta=0\), so its minimizer is \(\theta_0=2/3\). Let the computed value be \(\hat\theta=0.7\). The objective gap is
Thus \(\varepsilon=0.002\) is valid. Using comparator \(\theta=1\), whose risk is \(1\) and penalty is \(0.5\), the bound gives
Here \(R(0.7)=1+(0.7-1)^2=1.09\) and \(p(0.7)=0.5(0.7)^2=0.245\). The bound is loose, but the calculation verifies separately that approximation and estimation are zero, while the penalty difference and optimization tolerance remain visible.
Common Pitfall and Practical Interpretation
A common mistake is to call every gap between fitted and optimal risk “estimation error.” That description can conceal two different sources: the best member of \(\mathcal G\) may already be worse than the best member of \(\mathcal F\), and the algorithm may not have minimized its empirical objective accurately. The comparator inequality keeps these distinct.
- Approximation: \(R_{\mathcal G}-R_*\) is a population-level limitation of the candidate class.
- Estimation: deviations between empirical and population risk reflect sampling and require a separate control.
- Optimization: \(\varepsilon\) records how far the computed fit may be from minimizing the penalized empirical objective.
- Penalty: \(p(g)-p(\hat g)\) records how the comparator's penalty affects the comparison; dropping \(-p(\hat g)\) is valid only because the penalty is nonnegative.
Another error is subtracting two risk infima without checking they are finite. Nonnegative losses and at least one finite-risk member in each relevant class ensure the infima here are finite. Without such conditions, even individually defined risks need not make a difference of infima well-defined. State the assumptions before interpreting the decomposition.
Check Your Understanding
Use the assumptions and decomposition above to answer the following questions.
- Why do nonnegative losses and a finite-risk member of \(\mathcal F\) ensure that \(R_*\) is finite?
- In the theorem, which two terms form the estimation contribution, and how does a uniform deviation bound control them?
- If the penalty is identically zero, what three principal sources remain in the excess-risk bound?
- In the finite-class example, verify that the chosen predictor is within the stated optimization tolerance of the minimum penalized empirical objective.
- Why can the best-risk comparator in \(\mathcal G\) be replaced by a sequence of comparators when the infimum is not attained?