Evaluation and QualityMetric validity, judges and human signalsPrincipal
How should confidence intervals account for thousands of evaluation cases clustered within a few customers?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
Paired evaluation accuracy rises from 82 to 84 percent on 10,000 questions, but only 50 customers supply the documents and many questions share templates. The reported interval treats every row as independent. Define the target population and weighting, design a paired customer-level analysis, and explain what the interval cannot establish about new customers or rare failures.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
The number of rows is not the number of independent pieces of evidence. Cases from one customer can share document structure, product vocabulary, permissions, an incident, or the same root failure. If a new parser fixes one customer's PDF, it may improve 200 near-duplicate questions together. Pretending those are 200 unrelated wins makes the uncertainty look artificially small for a claim about new customers. The cluster bootstrap analysis by Indeed's engineering team demonstrates why repeated responses per input require resampling at the independent input level. Here the likely cluster is customer, possibly with nested documents or tasks.
I would first ask what population the claim targets. Is it the next question from these same 50 customers, the next customer, or the entire market? The sampling unit follows that choice. For a new-customer claim, hold out customers before prompt tuning and resample customers, keeping related questions together within each bootstrap sample. Because both models answered the same cases, compare their paired differences rather than two unrelated rates. Report the spread across customers, not only the aggregate. If one large customer supplies half the rows, say whether the target metric weights traffic or customers equally. Both are legitimate questions with different answers.
For a customer-level bootstrap, sample customer IDs with replacement and retain each selected customer’s paired old/new outcomes together. Recompute the declared statistic in each resample. If the target weights customers equally, average customer-level rates or differences accordingly. If it weights production requests, preserve that declared weighting rather than accidentally switching objectives in the resampling code.
The aggregate two-point gain corresponds to 200 net additional correct rows in this fixture, not 200 independent customers or even 200 independent repairs. The same underlying parser fix can change many rows together. You also cannot derive a paired uncertainty interval from 82 and 84 percent alone: the joint old/new outcomes and cluster assignments matter. Inspect how many gains and losses move together, and why the proposed cluster is a plausible source of dependence. Shared templates across customers may require additional scrutiny rather than assuming customer IDs eliminate every correlation.
Fifty clusters still cannot give a precise guarantee for every industry or rare failure. Show the per-customer improvement distribution, how many actually improved or regressed, and the range of document and query types. A grouped train/test split is essential if variants of the same source appear on both sides. Do not bootstrap questions after leaking one document's variants into tuning and expect statistics to repair the leakage. An eval can also be large and still unrepresentative, so audit source selection and label quality before arguing about confidence intervals.
If the interviewer says production traffic comes mostly from those existing customers, I would use a second analysis weighted for that traffic mix. It estimates a different outcome and may have more information within a customer, though temporal drift and correlated failures still matter. For launch, I would combine a customer-held-out result with a production-weighted result and inspect severe regressions. “10,000 examples” sounds strong. The useful statement is what was sampled, what can vary together, and to whom the two-point gain should generalize.
Related questions
Keep practising evaluation and quality
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux