research29 min studyLesson 867 in Engineering

Risk-coverage curves and abstention

Calculate error among accepted cases, retain the coverage denominator, and compare abstention policies using explicit costs.

On this page

What you’ll understand

  • Compute coverage and selective risk with their correct denominators.
  • Explain why abstention is an action with consequences.
  • Compare operating points using a declared error and rejection cost model.

A model can appear almost error-free after rejecting nearly everything. Selective prediction therefore reports both the fraction of cases accepted and the error rate within those accepted cases. The rejected population still needs an operational outcome, such as review, a delayed response, or a conservative fallback. An informative risk-coverage curve exposes the tradeoff, while a decision policy additionally accounts for what rejection costs and how rejected cases are eventually handled.

Keep the accepted-case denominator visible

Let the selection rule g return one when the model acts and zero when it abstains. Coverage is the probability of acceptance. Selective risk is expected loss on accepted cases divided by that coverage, provided it is positive. For zero-one loss, empirical selective risk counts mistakes among accepted cases only. Dividing accepted mistakes by all arrivals measures a different quantity: accepted errors per arrival. Both can be useful, but exchanging them can make a low-coverage model look deceptively reliable.

When no cases are accepted, selective risk is undefined, not an observed zero-error performance result. Report zero coverage and the absence of accepted-case evidence. When few cases are accepted, quantify the uncertainty in their error rate rather than presenting a tiny numerator alone. Correlated records and selective label availability can reduce evidence further. Keep rejected-case labels where the observation process permits, because errors among rejected cases reveal whether the score ranks difficulty and whether the fallback improves outcomes.

ϕ=E[g(X)],Rsel=E[ℓ(f(X),Y)g(X)]ϕ,ϕ>0\phi=\mathbb E[g(X)],\qquad R_{\mathrm{sel}}=\frac{\mathbb E[\ell(f(X),Y)g(X)]}{\phi},\qquad \phi>0
Here g takes values in {0,1}, loss ell is zero-one loss for the numeric examples, and expectations refer to the declared deployment population. Coverage and error risk are dimensionless. At phi=0 the ratio is undefined; accepted error per arrival is phi times R_sel when phi>0.↔ Scroll wide equations horizontally.

A curve describes a ranking and an operating choice

Sweeping a confidence threshold creates operating points with different accepted populations. A useful score tends to reject errors before correct cases, but empirical risk need not decrease at every step. Tied scores require a fixed tie rule; random acceptance within a tie must use a declared independent mechanism and be evaluated as that policy. Compare curves under the same labels and workload mixture, and include uncertainty or paired analyses appropriate to the data rather than comparing isolated rounded percentages.

Choose a threshold with the application’s action costs, workload constraints, and acceptable risk stated in advance. In an idealized multiclass setting with exact conditional class probabilities, constant cost for any wrong accepted label, and a constant rejection cost, compare expected error cost with rejection cost. Real review can have variable delay and residual mistakes, so a rejection cost cannot silently stand in for a perfect human outcome. Evaluate the final chain of model, gate, fallback, and reviewer when reporting total system performance.

L=CerrϕRsel+Creject(1−ϕ)\mathcal L=C_{\mathrm{err}}\phi R_{\mathrm{sel}}+C_{\mathrm{reject}}(1-\phi)
This expected cost per arrival assumes zero-one accepted errors, a constant cost per accepted error, and a fixed all-inclusive rejection cost independent of input. Costs use a common unit. If review errors or delays vary by case, replace the rejection term with their appropriate conditional expected cost; this special formula is not a full review-queue model.↔ Scroll wide equations horizontally.

Separate ranking evaluation from policy validation

A curve built after exploring many methods on one labeled set is development evidence. Reserve separate data to validate the chosen score, threshold, tie policy, and fallback. Record the accepted count, error count, rejected count, and important slices, so the curve can be reconstructed. Thresholds can behave differently after a prevalence or workload change even if the score implementation is unchanged. A calibrated average confidence also does not ensure an optimal difficulty ranking for every subgroup or cost structure.

The probability lab illustrates accepted-case error counting only. Reset, set p to 0.02 and n to 10, predict expected accepted errors 0.2, then Step. Compare a fresh Reset with both p at 0.02 and n at 30 before Step: mean 0.6. The model assumes independent accepted cases with a known common error probability and displays exact masses. It does not choose a gate, estimate coverage, simulate abstention costs, or turn a small observed count into a risk guarantee.

Two gates under an explicit rejection cost

On the same 1,000 labeled arrivals, gate A accepts 800 with 16 errors and gate B accepts 500 with 5 errors. Charge 5 credits per accepted error and a fixed all-inclusive 0.1 credit per rejected case. Ignore sampling uncertainty for this arithmetic comparison.

  1. Gate A has coverage 800/1,000 = 0.8 and selective risk 16/800 = 0.02. Its 16 accepted errors per 1,000 arrivals are a different rate, 0.016.

  2. Gate A costs (16 × 5 + 200 × 0.1)/1,000 = 0.1 credit per arrival. Gate B has coverage 0.5 and selective risk 5/500 = 0.01.

  3. Gate B costs (5 × 5 + 500 × 0.1)/1,000 = 0.075 credit per arrival. It wins under these stated costs, but a different rejection cost or review-capacity constraint can change the choice.

The result

Lower selective risk is meaningful only with coverage, uncertainty, and the consequences of rejection reported alongside it.

Explore the model

Interactive lab

Interactive lab · probability

Errors among a supplied accepted population

Reset, set p = 0.02 and n = 10, predict mean errors 0.2, then Step. Compare a fresh Reset with both p = 0.02 and n = 30 before Step: mean 0.6. These exact independent-binomial masses assume the accepted population and its error rate; they do not implement a selector or estimate coverage.

Errors among a supplied accepted populationThese are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Current readings: Mean · np: 5; Variance · np(1−p): 2.5; Total probability: 1. All parameters are adjustable with the labeled controls below.03581000.070.150.220.3Successes kP(X = k)k = 0 · P = 9.77e-4
Exact probabilityHighlighted outcomeMean np
Mean · np
5
Variance · np(1−p)
2.5
Total probability
1
t = 0 s

These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forSelective risk uses accepted cases as its denominator.

Check your understanding

A gate accepts 20 of 100 cases and makes one accepted error. What are its empirical coverage and selective risk?

Try it yourself

A gate accepts 60 of 100 cases and makes three accepted errors. Rejection costs 0.2 credit per case and accepted errors cost 2 credits each. Compute coverage, selective risk, and mean cost. What if a second gate accepts none?

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Use accepted cases for the risk denominator and all arrivals for the mean-cost denominator. Do not divide by zero for the second gate.

Compare with the solution

Coverage is 0.6 and selective risk is 3/60 = 0.05. Mean cost is (3 × 2 + 40 × 0.2)/100 = 0.14 credit per arrival. The second gate has zero coverage and undefined selective risk, with mean cost 0.2 credit per arrival under this fixed rejection model. It cannot be advertised as a measured zero-risk classifier merely because it made no accepted predictions.

Take it with you

  • Report accepted-case risk together with coverage and support.
  • Abstention carries costs and does not make rejected outcomes correct.
  • Validate the chosen operating point separately from curve exploration.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.