04 December 2026 · 11 min read

One of the problems we are working on at Surprisal Labs is how to make automated discovery statistically reliable. I remember pitching the project this summer to a friend at a European bank. His reaction was something like: “OK, I get the idea of coming up with lots of novel insights, but how can you guarantee that this isn’t BS?”1

Generating hypotheses is becoming easier. An AI system can search through data, formulate hundreds of hypotheses, test them, and use the results to decide what to investigate next. Of course, building such a system is not quite that simple, but that’s a topic for another post.

How many of its discoveries are real? The problem gets even more interesting in adversarial environments. A fraud pattern discovered today may no longer exist next month. A genuine discovery can become irrelevant without ever having been a false discovery in the first place.

Before getting into how we might deal with this, let’s do a simple experiment with a fair 🪙.

The problem with repeated testing

Flip a fair coin 1,000 times and test “the coin is fair” with a two-sided z-test at α = 0.05.

Testing only once, after all 1,000 flips, gives a rejection rate of 5.3%, close to the nominal 5%. Testing after every 10 flips and stopping at the first p < 0.05 incorrectly rejects the null in 36% of 20,000 simulated runs.

The p-value at n = 1,000 answers “how surprising are these data under the null at n = 1,000?”, but stopping at the first small p-value asks “were the data ever surprising under the null?”, and the answer is yes far more often. Conventional fixed-sample p-values lose their guarantee under unrestricted optional stopping: peeking, stopping early, or collecting a little more data.

Automated discovery

Consider a system that generates 200 hypotheses about potentially fraudulent behavior. One of them might be that transfers above 5,000 to newly created accounts are disproportionately frequent at night. As new transactions arrive, the system tests each hypothesis daily for 30 days.

Suppose all 200 null hypotheses are true. Testing them on a single, predetermined day at α = 0.05 produces at most 10 false positives in expectation. In our simulation, testing every day and keeping every hypothesis that ever reaches p < 0.05 produces about 56 discoveries: 28% of the null hypotheses are rejected, and every one of those discoveries is false.

This is a simple version of the problem. In practice, hypotheses are also dependent, generated adaptively, and evaluated over different time intervals. Fraud detection adds one more complication: the underlying distribution changes as adversaries adapt.

So we want a statistical framework that lets us evaluate hypotheses continuously, control the rate of false discoveries, and detect when a previously established pattern no longer holds. This is where e-values become useful.

E-values

An e-variable for a null hypothesis H₀ is a non-negative random variable whose expectation under the null is at most one. Its realized value is the e-value.

\[E \ge 0, \qquad \mathbb{E}_{P}[E] \le 1 \quad \text{for every } P \in H_0\]

Large values of E provide evidence against H₀, and by Markov’s inequality, rejecting when E ≥ 1/α is a level-α test:

\[P\left(E \ge 1/\alpha\right) \le \alpha \, \mathbb{E}_P[E] \le \alpha\]

A betting interpretation

You start with $1 and buy a ticket that pays E. Under the null the expected payout is at most what you paid, so you cannot expect to profit, and the probability of a payout of $20 or more is at most 5%. If you end up with $20, either you were lucky or the null is wrong.

Betting on a biased coin

H₀: the coin is fair. Bet that heads come up 60% of the time. Each flip pays the likelihood ratio

\[e_i = \frac{q(x_i)}{p_0(x_i)} = \begin{cases} 0.6 / 0.5 = 1.2 & \text{heads} \\ 0.4 / 0.5 = 0.8 & \text{tails} \end{cases}\]

Under H₀ its expectation is 0.5 × 1.2 + 0.5 × 0.8 = 1. After 100 flips with 60 heads, the product is 1.2⁶⁰ × 0.8⁴⁰ ≈ 7.5, short of the 20 needed at α = 0.05, while the one-sided p-value for the same data is 0.028. What the e-value offers in exchange is the subject of the next section.

Sequential evidence and e-processes

Now consider a sequence of bets. If each new bet is fair or worse under H₀ given everything seen so far, the running product is your wealth:

\[M_t = \prod_{i=1}^{t} \left(1 + \lambda_i (Z_i - \mu_0)\right), \qquad M_0 = 1\]

Here Zᵢ is the observation, μ₀ its mean under the null, and λᵢ the stake, chosen from past data only. Ville’s inequality bounds the chance that the wealth ever reaches 1/α:

\[P\left(\exists\, t : M_t \ge 1/\alpha\right) \le \alpha\]

An e-process is a process whose value at any stopping time is an e-value; this wealth process is one, and the crossing bound above is a consequence. Testing with it is anytime-valid: you can monitor continuously, stop when you like, or extend a study that looked promising, and the type I error stays at or below α. Ramdas, Grünwald, Vovk and Shafer (2023) call this safe anytime-valid inference.

Back to the coin. Check the e-process (an even mix of betting on 60% heads and on 60% tails) after every flip, and reject the first time it reaches 20. In 20,000 simulated runs with a fair coin it falsely rejects 4.6% of the time, compared with 36% for repeated p-value testing.

The trade-off is in how quickly we can detect a real effect. On a coin with 60% heads, the same bet reaches 20 after a median of about 150 flips.

Controlling the false discovery rate

Now consider testing many hypotheses at once. Declaring a discovery means rejecting its null hypothesis. A false discovery is therefore a type I error. When a system generates hundreds or thousands of hypotheses, however, controlling the error probability of each individual test is not enough.

Let V be the number of false discoveries and R the total number of discoveries. The false discovery rate (FDR) is the expected proportion of declared discoveries that are false:

\[\mathrm{FDR} = \mathbb{E}\left[\frac{V}{\max(R, 1)}\right]\]

The classic way to control FDR with p-values is the Benjamini–Hochberg (BH) procedure. BH picks a p-value cutoff from the data: the most generous cutoff whose estimated share of false discoveries stays under α.

Example. A search proposes 10 fraud patterns with p-values 0.001, 0.008, 0.012, 0.041, 0.042, 0.06, 0.3, 0.5, 0.7 and 0.9. We want an FDR of at most 10%.

The estimate rests on one fact: the p-value of a true null hypothesis is uniform or stochastically larger, so P(p ≤ t) ≤ t. If everything below a fixed cutoff t is called a discovery, at most 10 × t of the discoveries are expected to be false. The number of discoveries changes only when the cutoff passes a p-value, so each p-value can serve as a candidate cutoff:

Cutoff t Discoveries Expected false, at most 10 × t Estimated false share
0.001 1 0.01 1%
0.008 2 0.08 4%
0.012 3 0.12 4%
0.041 4 0.41 10.3%
0.042 5 0.42 8.4%
0.06 6 0.6 10%
0.3 7 3.0 43%
0.5 8 5.0 63%
0.7 9 7.0 78%
0.9 10 9.0 90%

The most generous cutoff with an estimated share of at most 10% is t = 0.06, so BH reports six patterns. At 5% the cutoff is 0.012, and three patterns remain. The estimated share is a device for choosing the cutoff, not the probability that a given discovery is false. Because the cutoff is chosen from the data, the fixed-cutoff bound is only the intuition; the proof that BH controls FDR handles the data-dependent cutoff.

For comparison, the Bonferroni correction guards against even a single false discovery. It applies one fixed cutoff, α/n = 0.1/10 = 0.01, to every pattern. Two p-values, 0.001 and 0.008, fall below it, so Bonferroni reports two patterns where BH reports six.

The difficulty with BH is its dependence assumptions: its guarantee holds when tests are independent or satisfy certain positive dependence conditions. Patterns mined from the same transactions often do not. “Fraud is higher at night” and “fraud is higher during the day” pull in opposite directions.

e-BH (Wang and Ramdas, 2022) is BH for e-values. The search for a cutoff is the same; only the estimate of false discoveries changes.

Example. The same 10 fraud patterns, each now with an e-value. Sorted from largest: 500, 120, 80, 25, 24, 16, 3, 1.5, 0.8 and 0.2.

At a fixed cutoff c, Markov’s inequality says that, under the null, the probability of observing an e-value of at least c is at most 1/c, so at most 10/c of the discoveries are expected to be false:

Cutoff c Discoveries Expected false, at most 10/c Estimated false share
500 1 0.02 2%
120 2 0.083 4.2%
80 3 0.125 4.2%
25 4 0.4 10%
24 5 0.42 8.3%
16 6 0.63 10.4%
3 7 3.3 48%
1.5 8 6.7 83%
0.8 and 0.2 9 and 10 12.5 and 50 over 100%

The most generous cutoff with an estimated share of at most 10% is c = 24, so e-BH reports five patterns. The p-value cutoff t has become an e-value cutoff c, and 10 × t has become 10/c.

Both examples use made-up numbers to show how the procedures work. They say nothing about which procedure is more powerful.

Why dependence does not matter. If null hypothesis i is rejected among R discoveries, its e-value cleared n/(αR) (the cutoff whose estimated share is α), so 1/R ≤ αeᵢ/n. Summing over the nulls:

\[\mathrm{FDR} = \sum_{i \in \text{nulls}} \mathbb{E}\left[\frac{\mathbf{1}\{i \text{ rejected}\}}{\max(R,1)}\right] \le \sum_{i \in \text{nulls}} \frac{\alpha}{n}\, \mathbb{E}[e_i] \le \alpha \frac{n_0}{n}\]

The proof uses only the expectation of each e-value on its own, never their joint distribution. That is why e-BH controls FDR at α under any dependence between the e-values, with no correction.

This matters for discovery systems, where hypotheses proposed by the same search share data. If each hypothesis comes with an e-process, an agent can keep testing, stop whenever it likes, and apply e-BH to the resulting e-values.

A related approach is POPPER (Huang et al., ICML 2025). LLM agents design sequential falsification experiments targeting the measurable implications of a free-form hypothesis. E-values allow the system to combine evidence from these experiments while maintaining type I error control.

The problem we are interested in goes beyond validating an individual hypothesis. An autonomous discovery system generates many hypotheses, potentially indefinitely, and operates in an environment where previously established hypotheses may cease to hold.

The lifetime of a discovery

In fraud detection, a discovery can be statistically valid and still have a limited lifetime. Consider a fraud ring exploiting a particular vulnerability in a payment system. Once the vulnerability is identified and addressed, the ring either disappears or changes its strategy. The pattern we discovered no longer describes the current distribution.

This raises a question that is different from the classical false discovery problem: how long should we continue to trust a discovery after establishing it?

In our paper, Discoveries Have Lifetimes, written for the NeurIPS 2026 E-Values workshop, we treat establishment and expiration as two separate statistical problems. First, we accumulate evidence that a proposed pattern holds. Once it is supported, we reverse the hypothesis and start accumulating evidence that it no longer holds. A discovery, in this formulation, is attached to a time interval rather than being a permanent statement about the data.

  1. A generator proposes a hypothesis H about the current regime, for example “at least 3% of transactions are above 5,000”.
  2. An e-process, started only after the proposal, tests whether H holds now. When Mₜ ≥ 1/α, H is statistically supported at level α.
  3. An e-detector (Shin, Ramdas and Rinaldo) then monitors H, with null and alternative reversed: the null is now “H still holds”. The detector sums e-processes started at every possible change time (a Shiryaev–Roberts procedure) and raises an alarm when there is sufficient evidence of a regime change.
  4. When the alarm fires, H is marked expired and the search resumes.

propose → establish → monitor → expire → back to propose

Establishment and expiration have different guarantees: establishment bounds the probability of a false discovery by α, while expiration only bounds how often false alarms happen on average, so a valid discovery monitored long enough may eventually be retired by mistake.

In an experiment with a simulated money-laundering ring, the generator proposed the hypothesis 112 transactions after the ring started, the e-process established it 324 transactions later, and the e-detector flagged expiration 425 transactions after the ring stopped.2

What e-values do not solve

One particularly important limitation for automated discovery is data reuse. The fact that e-BH works under arbitrary dependence does not mean that an agent can freely search through a dataset and then use the same observations to validate whatever it finds. The selection process has to be accounted for.

There is also a difference between the problem considered by e-BH and the one we encounter in autonomous discovery. We do not necessarily know in advance how many hypotheses our system will generate. For a continuous stream of hypotheses, online procedures such as e-LOND (Xu and Ramdas, 2024) are more relevant.

e-LOND works like an error budget spread over time: each hypothesis gets a small share of α when it arrives, and every discovery makes the next shares larger. The FDR stays at or below α at every fixed testing horizon, under arbitrary dependence between valid e-values. This fits the way an automated discovery system operates: it does not need to know how many hypotheses it will generate, it decides about each one as it arrives, and it never revisits earlier decisions.

And, of course, statistical evidence tells us relatively little about whether a discovery is interesting or useful. A statistically significant pattern can be trivial, already known, or practically irrelevant.

Conclusion

Automated discovery involves several distinct problems: generating interesting hypotheses, establishing their statistical validity, controlling false discoveries, and monitoring whether established discoveries continue to hold.

E-values give us a common mathematical language for much of the statistical part of this process. There is still a question we have largely avoided in this article: what makes a hypothesis worth investigating in the first place? A system could have impeccable statistical guarantees and spend all its time discovering things nobody cares about. That is a different problem, and one I find at least as interesting.

Further reading

I would recommend starting with the book by Ramdas and Wang. The rest, roughly in reading order:

Citation

If you find this useful and want to cite it:

Goldman-Kalaydin, Pavel. (Dec 2026). How many of your discoveries are real? pavel.berlin. pavel.berlin/2026/12/04/how-many-of-your-discoveries-are-real

  1. Apparently, I still had some work to do on my pitch. ↩

  2. You can replay the lifecycle in the interactive demo. ↩