Lesson 98 of 120 · Advanced · 14 min read
Multiple testing: why the best of many is not a result
Try it: Test a rule yourselfFree, no account needed.
What you will be able to do
- State the arithmetic that makes a false positive near-certain once enough tests are run
- Count the tests that are not labelled as tests, including everyone else's
- Explain why the forking-paths problem has no numerical correction
- Simulate an entire search on randomised signals to get a reference distribution for its best result
- Keep a pre-registration and an append-only research log that make the test count recoverable
Read these first
- Significance in plain language in Backtesting, statistics, costs and validation
- Out of sample and walk forward in Backtesting, statistics, costs and validation
If you test enough ideas, some of them will look excellent for no reason at all. This is not a subtle statistical point; it is arithmetic, and it is the single largest source of false discoveries in quantitative trading. The damage is done not by dishonest people but by diligent ones, because diligence in this field means trying many things, and trying many things is exactly the mechanism that manufactures the false result.
The arithmetic, which is not subtle
A test at the conventional five percent threshold produces a false positive one time in twenty when there is nothing there. Run one test and that is a small risk. Run twenty independent tests on pure noise and the expected number of false positives is one. Run a hundred and you expect five.
Put more sharply: the probability of getting at least one five-percent result from twenty independent tests of nothing is about sixty-four percent. From a hundred tests it is above ninety-nine percent. So a researcher who tries a hundred variations and reports the best one is not reporting a discovery. They are reporting the maximum of a hundred draws from noise, which is a completely different object and is guaranteed to look impressive.
The consequence for how you read results, including your own, is direct. The strength of a finding depends on how many alternatives were examined before it, and that number is not visible anywhere in the finding itself. A t-statistic of two point five means something quite different as the only test run than as the best of two hundred. Without the count, the statistic cannot be interpreted at all.
The best of many is not a result
The forking paths, where the count becomes uncountable
There is a version of the problem that survives even when you never ran a second test, and it is the harder one to see.
Suppose you look at your data, notice that the effect appears strongest in one sector, and analyse that sector. You ran one test. But had the data looked different, you would have noticed a different sector, or a different holding period, or a different market capitalisation band, and you would have analysed that instead. The analysis you performed was chosen by the data, so the set of analyses you could have performed is the relevant reference set, even though you only executed one of them.
This is why exploratory work cannot be converted into confirmatory work by counting. There is no defensible number to correct by. The only repair is structural: the analysis has to be specified before the data is seen, or the result has to be confirmed on data that played no part in generating the hypothesis.
A concrete illustration of how invisible this is. Two researchers examine the same dataset with the same tools and reach the same final rule. The first swept every sector explicitly and picked the best, and knows they ran a dozen tests. The second glanced at a chart, formed an impression that one sector looked different, and tested only that one, and believes they ran a single test. Their evidence is identical in strength and the second one will report it as far stronger. Nothing in the second researcher's workflow ever surfaces the eleven tests they did not need to run because their eye had already run them.
The honest way to explore
None of this makes exploration illegitimate. Exploration is how ideas are found and there is no substitute for it. What matters is the label. Exploratory analysis generates candidates; it never confirms them. Keep the two activities in separate documents, on separate data, with the candidate written down between them. The failure is not exploring; the failure is presenting exploratory output in confirmatory language.
Corrections, and what they can and cannot do
Where the number of tests genuinely is countable, there are standard adjustments. They are blunt but far better than nothing.
- Divide the threshold by the number of tests. With twenty tests, require a p-value below one quarter of one percent instead of five percent. This is the most conservative common approach and it controls the chance of any false positive at all. It is also so strict that with many tests almost nothing survives, which is sometimes the correct answer and sometimes throws away real effects.
- Control the false discovery rate instead. Rather than preventing any false positive, accept that some proportion of your reported discoveries will be false and control that proportion. This is far more usable when you are screening many candidates and expect some to be real.
- Raise the bar wholesale. Given how much invisible search sits behind any candidate in this field, simply requiring a much larger effect relative to its error bar than convention suggests is a defensible blunt instrument, and it has the advantage of being immune to miscounting.
What no correction can do is repair a count you do not have. Every method above needs the number of tests as an input, and every one of them silently produces a too-lenient answer when that number is understated. Since the number is nearly always understated, the practical advice is to correct using a count you are confident is too high rather than one you think is right.
There is also a limit to what any of them can do about dependence. The simple corrections assume the tests are independent of one another, and a parameter sweep is nothing like independent: a twenty-day lookback and a twenty-one-day lookback produce almost the same trades. Treating those as two tests overstates the number of genuinely distinct attempts, which pushes the correction the other way and makes it too harsh. The result is that the naive correction is simultaneously too lenient about the tests you forgot and too strict about the ones that duplicate each other, and there is no simple factor that fixes both. This is precisely why the simulation approach in the next section is worth the effort: it inherits your actual dependence structure instead of assuming one.
Deflating the result you are about to believe
A useful complementary habit is to ask, before anything else, what the best result from pure noise would have looked like in your particular search.
You can compute this directly and it takes very little work. Replace your signal with a random one of the same frequency and turnover. Run the entire search - all the parameters, all the filters, all the instruments - and record the best result. Repeat the whole search several hundred times. The distribution of best results is your reference: it is what your process produces from nothing.
Then compare your real best result against that distribution. If it sits comfortably inside, your search produced an ordinary amount of luck. If it sits far outside, you may have something. This single procedure handles the counting problem without requiring you to count anything, because the simulation performs the same number of tests you did, whatever that number happens to be.
Simulate the search, not the strategy
Pre-registration, adapted for one person
The most effective defence is also the least technical. Write down what you are going to test, and how you will judge it, before you test it.
A one-person version needs six lines and a timestamp. The hypothesis and its mechanism. The exact rule, with every parameter fixed. The universe and the period. The cost assumption. The single metric you will judge by and the threshold it must clear. And the list of variations you intend to try, with the correction you will apply for having tried them.
Committing that to a file with a date does something no statistical method can. It removes the ability to decide afterwards what the test was about. Most of the damage from multiple testing arrives through that route: not from consciously running many tests and reporting one, but from a fluid sense of what was being tested that quietly settles on whatever succeeded.
Keep the failures
Equally important and even less popular: record the tests that failed, permanently, in the same place. A research log with only the successes in it is a machine for losing the count, and the count is the input every correction needs. Six months later the failures will be forgotten and the survivor will look like it was the plan from the beginning.
Research hygiene that makes the count real
A few habits make the difference between a research process that accumulates knowledge and one that accumulates false positives.
- One log, appended, never edited. Every test, with its date, its specification and its outcome, including the boring ones.
- Prefer fewer parameters. Each parameter multiplies the search space, and a rule with four parameters searched over ten values each has ten thousand variations behind it.
- Prefer a stated mechanism. A mechanism narrows the space of tests that are even permissible, which is a real correction rather than a statistical one.
- Test the same idea on a different market. An effect that appears in one asset class and holds in another has been confirmed on data that had no role in generating it.
- Beware the improvement that arrives late. A filter added after the base rule underperformed is a selection, and it should be counted and reported as one.
- Be suspicious of your own excitement. The subjective sense that a result is different from the others is generated by the same process that generated the result.
Working it through
A rule has two parameters. One is swept over 12 values and the other over 8, giving 96 combinations, each producing an average per-trade result across roughly 500 trades.
- The best combination. Average of 31 basis points, standard error 9, giving a ratio of about 3.4. On its own that would look strong.
- The distribution across all 96. Mean across combinations near 4 basis points, with a spread wide enough that the top few reach the high twenties. The best is not an outlier within its own sweep.
- The naive correction. Dividing the threshold by 96 requires a much larger ratio than 3.4 before the best combination clears the bar. It does not clear it.
- The simulated search. The same 96-combination sweep run on 500 randomised signals produces a best result averaging 26 basis points, with the top decile above 34. The real best of 31 sits squarely inside that.
The reading is unambiguous. A result of 31 basis points is exactly what this search produces from a signal with no information in it. The apparent significance came from the selection, not from the rule.
One genuinely useful observation survives, though. If the good combinations had formed a broad contiguous plateau rather than isolated spikes, that shape would be evidence for something real, because noise does not usually produce smooth regions. Checking the shape of the parameter surface costs nothing and is far more informative than the peak value, which is the number everyone reports.
Where this goes wrong in practice
- Reporting the best variation as if it were the only one. The maximum of many draws is not an estimate of anything.
- Counting only formal tests. Parameters, instruments, filters, date ranges and exit rules are all tests.
- Ignoring everyone else's tests. A widely known idea carries an invisible history of failed attempts.
- Correcting with an understated count. Every correction method silently becomes too lenient.
- Converting exploration into confirmation by relabelling. The forking-paths problem has no numerical correction.
- Deleting failed experiments. Without them the count is unrecoverable within weeks.
- Adding a filter after a disappointing result. A selection made in response to an outcome, presented as a design choice.
- Reading the peak of a parameter surface instead of its shape. An isolated spike and a broad plateau mean opposite things.
What to do with this
- Keep an append-only research log containing every test, including the ones that failed and the ones you abandoned halfway.
- Count every parameter value, instrument, filter and date range as a separate test, then round the total upwards.
- Write the hypothesis, metric and threshold to a dated file before running anything.
- Simulate the whole search on randomised signals and compare your best result against the distribution of best results it produces.
- Inspect the shape of the parameter surface and treat isolated peaks as noise until shown otherwise.
- Confirm on data that had no role in generating the idea - a different market, a different period, a different asset class.
- Report the number of tests beside the result always, and treat any report that omits it, including one of your own, as uninterpretable.
Examples and common mistakes
Worked example
| Measurement | Value | Context | Reading |
|---|---|---|---|
| Best combination, real signal | +31 bp per trade | standard error 9 bp, ratio about 3.4 | looks strong in isolation |
| Mean across all 96 combinations | +4 bp per trade | spread wide enough that the top few reach the high twenties | the best is not an outlier within its own sweep |
| Naive correction for 96 tests | much higher bar than 3.4 | threshold divided by the number of combinations | does not clear it |
| Best result on 500 randomised signals | +26 bp average, top decile above 34 bp | same 96-combination sweep, no information in the signal | the real best sits squarely inside |
A result of 31 basis points is exactly what this search produces from a signal with no information in it, so the apparent significance came from the selection and not from the rule. One genuinely useful observation survives: had the good combinations formed a broad contiguous plateau rather than isolated spikes, that shape would be evidence for something real, because noise does not usually produce smooth regions. Checking the shape of the parameter surface costs nothing and is far more informative than the peak value.
How this goes wrong in practice
- Reporting the best variation as if it were the only one run
- Counting only formal tests, when parameters, instruments, filters, date ranges and exit rules are all tests
- Ignoring the invisible history of failed attempts behind any widely circulated idea
- Correcting with an understated count, which makes every correction method silently too lenient
- Relabelling exploratory work as confirmatory, when the forking-paths problem has no numerical correction
- Deleting failed experiments, after which the count is unrecoverable within weeks
- Adding a filter after a disappointing result and presenting it as a design choice
- Reading the peak of a parameter surface instead of its shape, when an isolated spike and a broad plateau mean opposite things
Checklist
- An append-only research log containing every test, including abandoned ones
- A test count that includes every parameter value, instrument, filter and date range, rounded upwards
- A dated file holding the hypothesis, the metric and the threshold, written before running anything
- The whole search simulated on randomised signals, with your best result compared against the distribution of best results
- The parameter surface inspected for a plateau rather than a peak
- A confirmation on data that had no role in generating the idea
- The number of tests reported beside the result, always
Knowledge check
Exercise
Reconstruct the true test count behind your most recent result: every parameter value swept, every instrument examined and dropped, every filter tried, every date range excluded, and your best estimate of how many people tested the same idea before you. Write the total down and round it upwards. Then run your whole search once on a randomised signal of matched frequency and turnover, record the best result it produces, and compare that figure with your real one before drawing any conclusion.
Glossary, tools and sources
Glossary
- Multiple testing
- The problem that arises from trying many ideas and reporting the best, since the best of many draws from noise looks impressive by construction.
- False positive
- An apparently significant result produced by chance when no effect exists. Expected roughly once per twenty tests at a five percent threshold.
- Forking paths
- The set of analyses you would have run had the data looked different. It is the relevant reference set even when only one analysis was executed.
- False discovery rate
- The proportion of reported discoveries that are false. Controlling it is more usable than preventing any false positive when screening many candidates.
- Pre-registration
- Writing the hypothesis, the rule, the universe, the cost assumption, the metric and the threshold to a dated file before testing.
- Parameter surface
- The map of results across a parameter sweep. A broad plateau is weak evidence for something real; an isolated spike is the signature of noise.
Sources
- ... and the Cross-Section of Expected Returns (Working Paper 20592)(opens in a new tab)
National Bureau of Economic Research. Retrieved 2026-08-31.
- Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation (Working Paper 7613)(opens in a new tab)
National Bureau of Economic Research. Retrieved 2026-08-31.
Risk notice
This lesson is general educational information about research method. It is not investment advice, not a recommendation to buy or sell any security, and not tailored to your circumstances. Every figure shown is a constructed illustration and not a record of any account or system. Correcting for multiple testing reduces the chance of believing a false result; it does not make a surviving result a forecast. Trading involves risk of loss, including loss of the full amount invested.
Press when you have finished reading. Nothing is recorded until you do.