Skip to content
Platform

Find & understand

Discover companiesFrom the market to your shortlistStock ScreenerSee a shortlist take shapeCompany researchUnderstand the business behind a stock

Test & prepare

Reality CheckPut an investing rule in perspectivePlan your riskWork out what is at stake

Keep developing

Review & learnReflect on decisions and build knowledgeAll workspace toolsFind your next starting point
Reality CheckAcademyPricing
Sign inGet started free
  1. Academy
  2. /
  3. Backtesting, statistics, costs and validation
  4. /
  5. Multiple testing: why the best of many is not a result

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.

On this page

· 12 sections
  1. The arithmetic, which is not subtle
  2. The tests you did not know you were running
  3. The forking paths, where the count becomes uncountable
  4. Corrections, and what they can and cannot do
  5. Deflating the result you are about to believe
  6. Pre-registration, adapted for one person
  7. Research hygiene that makes the count real
  8. Working it through
  9. Where this goes wrong in practice
  10. What to do with this
  11. Knowledge check
  12. Glossary
Back to top

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

Selecting the top performer from a set of variations does not produce the best strategy. It produces the variation that got the luckiest, which is a different thing and one that does not repeat.

The tests you did not know you were running

Most people can count the strategies they formally tested. Almost nobody counts correctly, because the majority of tests are not labelled as tests.

  • Every parameter value you tried. Sweeping a lookback from five to sixty in steps of five is twelve tests, not one.
  • Every instrument you examined and set aside. If you looked at forty names and kept eight, that is forty tests.
  • Every filter you added and evaluated. A condition that improved things was chosen from among the conditions that did not.
  • Every date range you looked at. Excluding a period because it was unusual is a selection informed by results.
  • Every exit rule you compared. Fixed horizon, trailing stop, target, or signal reversal - each comparison is a test.
  • Everything anybody else already tried. If you are testing an idea that has circulated for years, the effective number of tests behind it includes all of the ones that failed and were never written down.

That last point is the one with the widest reach. Published anomalies are the survivors of an enormous, mostly invisible search process conducted by many people over many years. The academic literature on this has argued that the conventional significance threshold is far too lenient for that setting precisely because of the accumulated search behind every candidate, and that a substantially higher bar is needed before a newly proposed effect should be believed. The practical translation for an individual is simple: an idea you found in a book or a forum has already been multiply tested by everybody who came before you, and your test of it is not the first.

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.

  1. 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.
  2. 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.
  3. 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

The insight is to randomise the signal and keep the search. Most people randomise nothing, and the few who do usually randomise a single strategy rather than the whole selection process, which measures the wrong thing.

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

IllustrativeA constructed parameter sweep, and the same sweep on a randomised signal. Illustrative.

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

  1. Keep an append-only research log containing every test, including the ones that failed and the ones you abandoned halfway.
  2. Count every parameter value, instrument, filter and date range as a separate test, then round the total upwards.
  3. Write the hypothesis, metric and threshold to a dated file before running anything.
  4. Simulate the whole search on randomised signals and compare your best result against the distribution of best results it produces.
  5. Inspect the shape of the parameter surface and treat isolated peaks as noise until shown otherwise.
  6. Confirm on data that had no role in generating the idea - a different market, a different period, a different asset class.
  7. 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

IllustrativeA constructed 96-combination parameter sweep, and the same sweep run on randomised signals
A constructed 96-combination parameter sweep, and the same sweep run on randomised signals - illustrative figures, not a performance record.
MeasurementValueContextReading
Best combination, real signal+31 bp per tradestandard error 9 bp, ratio about 3.4looks strong in isolation
Mean across all 96 combinations+4 bp per tradespread wide enough that the top few reach the high twentiesthe best is not an outlier within its own sweep
Naive correction for 96 testsmuch higher bar than 3.4threshold divided by the number of combinationsdoes not clear it
Best result on 500 randomised signals+26 bp average, top decile above 34 bpsame 96-combination sweep, no information in the signalthe 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

Question 1 of 3You run twenty independent tests on ideas that are all worthless, at a five percent threshold. What should you expect?
Question 2 of 3Why can the forking-paths problem not be fixed by dividing the threshold by a number?
Question 3 of 3What is the advantage of simulating the entire search on randomised signals rather than applying a formulaic correction?

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.

Use it in the app

  • Optimizer - see the full grid a parameter search examines
  • Strategy test - one registered rule, one verdict, no grid to pick from
  • Backtesting - re-run a search on a randomised signal
  • Journal - keep the append-only log that makes the test count recoverable

Sources

  1. ... and the Cross-Section of Expected Returns (Working Paper 20592)(opens in a new tab)

    National Bureau of Economic Research. Retrieved 2026-08-31.

  2. 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.

Next step

Pick a rule and a stock, then run it. Compare the result after modeled costs with simply holding, and read the last two years on their own. A past result is not a forecast.

Test a rule yourself

No account needed. Saving stocks to your account requires free signup in the app; no card needed.

Previous lessonSignificance in plain language: what the number says14 minNext lessonClustering: why your sample is smaller than it looks14 min
Back to top

Test a trading rule against holding. Keep the evidence and build your research from there.

support@estockes.comSupport replies within 1-2 business days.

Product

  • Home
  • Pricing
  • Free tools
  • Calculators
    • Compounding
    • Position size
    • Risk and reward
    • Leveraged ETF decay
    • Day trading account checker
  • Academy - free course
  • Test a strategy
  • Strategies we tested
  • Compared with TradingView
  • Compared with Finviz
  • Compared with Investing.com
  • Test a rule without code
  • System status
  • What's new

Company

  • About
  • Contact
  • Support

Legal

  • Terms of Service
  • Privacy Policy
  • Refunds
  • Security
  • Data request
Review us on Trustpilot (opens in a new tab)

Share your honest experience.

Featured on LaunchBuffestockes on VibeRank
© 2026 estockes - estockes.com · Operated by Eylon Sabag · Prices in USD

estockes is a research and analytics tool, not a registered investment adviser, broker-dealer, or financial planner. Nothing here is investment, financial, legal, or tax advice. All content is for informational and educational purposes only. Trading involves substantial risk of loss; past performance does not guarantee future results. You trade at your own risk.

Mailing address (correspondence only)
800 N. King St, Suite 304-2048, Wilmington, DE 19801, USAThe operator is Eylon Sabag, an Israeli sole proprietor. This iPostal1 address receives correspondence; it is not a U.S. office or a separate U.S. company.
Previous lessonSignificance in plain language: what the number says14 min
Next lessonClustering: why your sample is smaller than it looks14 min