Test 100 rules on pure chance and keep the best: how often does luck look like a discovery?
Someone tests 100 stock-trading rules, or 100 ways of scoring a "psychic's" card guesses, and then shows only the one that looked best. Using computer simulations of pure chance, we measure how often this hand-picked winner looks statistically significant. We also test whether accounting for the whole search brings false discoveries back near 5%. We simulated card guessing with 100 cyclic shifts, a momentum trading rule with 100 look-back windows, and a drug trial analysed in the whole sample and 99 subgroups. Each setting used 1,000 simulated datasets. A rule chosen in advance gave false discoveries in 4.2–4.9% of datasets. Choosing the best of 100 gave 44.9% for trading, 70.6% for subgroups and 99.1% for card guessing. Calibrating the whole search on 2,000 separate pure-chance runs reduced these rates to 3.9–5.1%. All 95% intervals included 5%, treating the estimated thresholds as fixed. Bonferroni gave 1.2%, 2.3% and 5.1%, respectively. These results concern three known no-effect models. The author reports that the written protocol preceded the first run, but its timing cannot be checked independently. The quantile rule in the discrete card test gives 5.1% with a strict cutoff and 8.4% if ties count as discoveries. The supplied code lets readers rerun the demonstration and check the table. Files: the preprint PDF (CC BY 4.0) and best_of_100_rules_replication_v0.3.zip (code under the MIT License). The archive holds the simulation script main.py, the results files, a README that maps every number in the note to its source, recount_table1.py, which recounts all Table 1 counts from the stored p-values in seconds, and a copy of the dated protocol (PROTOKOL.md, in Polish) with internal file references and an out-of-scope product-test price removed (all three edits are listed in README.md).
Authors
- Mariusz Kulma (ORCID: https://orcid.org/0009-0000-5550-8723)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24658087
- Primary Topic
- Statistical Methods in Clinical Trials
- Type
- preprint