You run tests separate tests on things that are really pure luck, and flag any test whose surprise (from “Is it luck?”) comes out below your threshold. On pure luck, a test gets flagged with chance equal to the threshold. Write threshold(tests, overall): the threshold for each test, so that the chance of any false alarm across all of them stays at overall, like 0.05.
Twenty jelly bean colours, each tested for a link to acne. None of them is real, so every test is pure luck. Here the allowance, 0.05, is used as the threshold on every test: one study, then 100 of them.
type a threshold to try one, or pick another number of tests
threshold(tests, overall)| tests | how many separate tests you run | e.g. 1 |
| overall | the chance of ANY false alarm you can live with, e.g. 0.05 | e.g. 0.05 |
| returns | the threshold to use for each test | |