download

How do you size a human review band under queue limits?

Machine learning~15 minReviewed 3 Dec 2026Free · No sign-in

Question

A calibrated fraud model scores 10,000 orders per day. You set two cutoffs: auto-approve < t_low, send [t_low, t_high) to human review, and auto-reject >= t_high. An auto-approved fraud (FN) costs $200, an auto-rejected legit order (FP) costs $25, and human review costs $4 per case (assume clean decisions first). Queue capacity is 400 cases/day.

Score pOrders/dayFraudsLegit
0.019,200929,108
0.0425010240
0.1020020180
0.301203684
0.60804832
0.9015013515
  1. Compare daily cost with no review vs the unconstrained review band.
  2. Why does the unconstrained band break SLA, and which [t_low, t_high) maximizes savings inside 400 cases/day?
Show hints (3)
  1. "FIND UNCONSTRAINED CUTOFFS"

    Review beats auto-approve when $4 < $200 * p (p > 0.02). Review beats auto-reject when $4 < $25 * (1 - p) (p < 0.84). Count the daily volume in [0.02, 0.84).

  2. "RANK SAVINGS PER SLOT"

    Each review slot is scarce. For every bucket, compute (best automated cost - review cost) / orders. Which buckets save the most per review?

  3. "FIT THE 400 CAP"

    The 0.10, 0.30, and 0.60 buckets save $16.00, $13.50, and $6.00 per case. How many orders do those three buckets total?

Show checked explanation

Without review, the best single cutoff (p* = 25/225 = 0.111) costs $27,675/day. The unconstrained band [0.02, 0.84) looks cheapest on paper ($21,375), yet sends 650 cases/day into a 400/day queue (250 over cap). Choosing [0.10, 0.84) fills exactly 400 slots on the highest-value middle buckets, cutting cost to $22,375/day ($5,300/day saved).

"SOLUTION · PYTHON"
# Daily buckets: (p, orders, frauds). FP=$25, FN=$200, review=$4, cap=400.
buckets = [(0.01, 9200, 92), (0.04, 250, 10), (0.10, 200, 20),
           (0.30, 120, 36), (0.60, 80, 48), (0.90, 150, 135)]
FP, FN, REV, CAP = 25, 200, 4, 400


def eval_band(lo, hi):
    q = sum(n for p, n, _ in buckets if lo <= p < hi)
    c = sum(n * REV if lo <= p < hi else (f * FN if p < lo else (n - f) * FP)
            for p, n, f in buckets)
    return c, q


plans = [("auto", 0.12, 0.12), ("wide", 0.02, 0.84), ("cap400", 0.10, 0.84)]
for name, lo, hi in plans:
    c, q = eval_band(lo, hi)
    tag = "OVER" if q > CAP else "OK"
    print(f"{name:6} [{lo:.2f},{hi:.2f}) q={q:3d}/{CAP} {tag:4} ${c:,}")
"OUTPUT"
auto   [0.12,0.12) q=  0/400 OK   $27,675
wide   [0.02,0.84) q=650/400 OVER $21,375
cap400 [0.10,0.84) q=400/400 OK   $22,375

Code and exact rational cost and capacity calculations run on CPython 3.12.10 (stdlib only) against the 10,000-order daily fixture above; official scikit-learn and NIST documentation links checked by the author. Checked by an editor other than the author.

Walkthrough

A human review band replaces the most uncertain automated decisions with a fixed $4 check. First find the best automated baseline (p* = 25 / (25 + 200) = 0.111), which auto-approves p <= 0.10 and auto-rejects p >= 0.30 for $27,675/day.

1. Compute the saving per review slot in each bucket.

Score pOrdersBest auto actionAuto costReview costSaving / case
0.019,200Approve ($2/case)$18,400$36,800-$2.00
0.04250Approve ($8/case)$2,000$1,000+$4.00
0.10200Approve ($20/case)$4,000$800+$16.00
0.30120Reject ($17.50/case)$2,100$480+$13.50
0.6080Reject ($10/case)$800$320+$6.00
0.90150Reject ($2.50/case)$375$600-$1.50

2. Why the unconstrained band breaks SLA. Without a queue cap, every bucket with positive saving (0.02 < p < 0.84) enters review: 250 + 200 + 120 + 80 = 650 cases/day. Against a 400/day team, that is 162.5% queue load (250 overflow cases every single day). Unworked orders pile up, miss delivery SLAs, or time out into cancellations.

3. Spend scarce review slots where uncertainty costs the most. Saving per review peaks right around the automated boundary (p* = 0.111), where auto-approve and auto-reject are both expensive ($20 and $17.50 per order). Selecting [0.10, 0.84) takes the top three buckets (0.10, 0.30, 0.60), totaling 200 + 120 + 80 = 400 cases/day.

  • Auto-approve (0.01, 0.04): $18,400 + $2,000 = $20,400
  • Human review (0.10, 0.30, 0.60): 400 * $4 = $1,600
  • Auto-reject (0.90): $375

Total daily cost drops from $27,675 to $22,375, saving $5,300/day ($13.25 per review slot) while staying inside capacity. Adding 250 more daily review slots for the 0.04 bucket would save only $4.00/case ($1,000/day total).

Common mistakes

  • Choosing [t_low, t_high) from unit costs alone without checking daily volume. Sending 650 cases into a 400/day queue creates growing backlog and SLA breaches.
  • Reviewing the highest-risk 0.90 bucket first. Auto-rejecting 0.90 costs only $2.50/case, so paying $4 to review it loses $1.50/case.
  • Assuming review is free or instant. Queue latency causes legitimate buyers to abandon orders, and overtime raises the true per-case cost.
  • Setting static thresholds without volume guardrails. A traffic spike or score shift can push [0.10, 0.84) from 400 to 700 cases overnight; add a queue cap or dynamic priority routing.

Follow-up questions

  • "Real human analysts are not perfect. What changes if they miss 10% of frauds and falsely reject 5% of legit orders?" Add human error cost to the $4 review fee: 4 + 0.10 * 200 * p + 0.05 * 25 * (1 - p). On the 0.60 bucket (80 orders, 48 frauds), review cost jumps from $320 to $1,320, worse than auto-rejecting for $800. The upper cutoff drops from 0.84 to 0.451.
  • "Daily traffic fluctuates between 8,000 and 15,000 orders. How do you keep the queue stable in production?" Keep [t_low, t_high) as a target band, then rank incoming review candidates by expected dollar saving (min(p * FN, (1 - p) * FP) - review_cost) and enforce a hard queue ceiling. When volume spikes, lower-value edge cases fall back to their cheaper automated action instead of breaking SLA.

What a strong answer covers

Computes the automated baseline ($27,675), spots that unconstrained [0.02, 0.84) overflows capacity (650 > 400), and ranks buckets by saving per slot. Picks [0.10, 0.84) (400 cases, $22,375, saving $5,300/day) and accounts for imperfect human accuracy and traffic spikes.

Open in interactive practice deck →

Original OfferVibe question. C. K. Chow, "On Optimum Recognition Error and Reject Tradeoff" (IEEE Transactions on Information Theory, 1970) · scikit-learn Tuning the Decision Threshold · NIST AI RMF 1.0.
© 2026 OfferVibe · Text CC BY-NC-SA 4.0 · code MITFree to share and adapt with credit, not for commercial use. Code samples are free for any use.