Inflated Estimates in Multiple Hypotheses Testing

Try N variants on one test set, keep the best. How inflated is its score?
What is this playground about? (click to expand)

The scenario: you are building a few-shot LLM classifier that routes support tickets to one of five teams. You write N prompt variants, score every one of them on the same test set of n tickets on one metric of interest, accuracy, and keep the variant with the best score. That is what everybody does, and it is the right way to pick. The trap is in what you then report.

The catch: every score is the true accuracy plus sampling noise. If you measure one variant, its score is unbiased. If you measure N and keep the highest, you kept the one whose noise happened to be the most positive. The winner's score is inflated, and the inflation grows with N and shrinks only with √n. You never looked at the test data, you did nothing wrong, and you are still fooled. This is the Select goal from the lesson, and its bias is called the winner's curse.

How much? If the per-ticket noise has standard deviation σ, the winner sits about (σ/√n) × √(2 ln N) above the truth on average (the expected maximum of N normal draws). With accuracy near 82%, n = 200 and N = 10, that is about +4.2 points.

The fix: select on one set of tickets, then report the winner's score from a different one, tickets it has never seen. If you have the per-ticket results, you can also check directly whether the winner beats the baseline once the selection is accounted for (second tab).

Reality: N similar variants, ranked by how good they truly are, based on accuracy.
0 = all exactly equal. Otherwise the true accuracies are spread evenly from V1 (best) down to VN, around 82%.

Setup (one metric of interest: accuracy of the ticket router)

every variant is scored on the same test set; you keep the one with the highest accuracy
each variant is scored on the same n tickets
Chance you pick V1, the truly best
-
 
Expected inflation if all were equal (theory)
-
 
Noise of one score
-
 

Actions

Each run draws a fresh test set of n tickets, scores every variant on it, and picks the one with the highest measured accuracy. You then see which variant that was, and what number you would report for it.
Nothing to see yet
Set N and n above, then run. You will get a leaderboard and a winner with a convincing score. The results appear here.