Quant interview toolkit · sequential testing

The backtest looked significant every time we checked it

A researcher checks a strategy every Friday and stops once the p-value falls below 0.05. Each individual calculation may use a valid fixed-sample test. The procedure is different: it has many chances to stop on noise. The false-alarm promise attached to one planned test does not automatically survive repeated looks.

An exact independent-search benchmark

First imagine a simpler experiment: test mm genuinely independent null strategies, each at a 5% false-positive level. The chance that none passes is 0.95m0.95^m, so the chance of at least one false headline is

P(one or more false alerts)=1−0.95m.P(\text{one or more false alerts})=1-0.95^m.

With twenty tests this is about 64.2%. Independence makes this example easy to calculate; it is not a model of twenty weekly checks on the same accumulating return series. Those checks share most observations and are correlated. Their exact false-alarm rate depends on the stopping rule, the test statistic, and the data process. Still, the fixed-sample 5% label does not certify the combined procedure.

Why the stopping rule matters

At a fixed horizon, a p-value is calibrated for a decision made at that horizon. If a researcher looks at t=20,40,60,…t=20,40,60,\ldots and publishes only the first crossing, the selection event is “did any look cross?” The report usually hides how many non-crossings preceded the success. Re-running a backtest after tweaking transaction-cost assumptions, assets, filters or the start date adds another search dimension.

A simple conservative remedy for a predeclared finite set of mm looks is to test each at level α/m\alpha/m. The union bound guarantees a total false-alarm probability no greater than α\alpha even if the looks are dependent. This can be conservative when checks are highly correlated. A more efficient approach uses an anytime-valid test or confidence sequence designed for a stated stopping process; its interval guarantee holds simultaneously across times. The confidence-sequence research develops this distinction rigorously.

Turn a research diary into a test design

Before seeing the next data, write down the strategy, metric, transaction costs, sample unit, check schedule, and stopping rule. Preserve all candidate runs and failed looks. If strategy development has already used the historical series, reserve later data or a genuinely independent market for a locked evaluation. An out-of-sample period can still be consumed by repeated decisions; “out of sample” is a property of a procedure, not a permanent property of a file.

Serially correlated trades, overlapping positions, and clustered volatility require appropriate uncertainty estimates even with a single look. Newey–West standard errors address one part of that issue. The figure below shows the independent-search arithmetic because it is transparent; use it as a warning about multiplicity, not as the exact probability for your weekly backtest checks.

What should the dashboard display?

A research dashboard should show the planned sample horizon and the complete history of looks, including those that did not pass. If the rule allows a stop for success or futility, state both boundaries. Report the number of variants tried and the amount of data each variant could see. A single final p-value detached from this record can look much stronger than the process that produced it.

An honest sequential procedure need not forbid early decisions. It specifies beforehand how evidence accumulates and how a decision can be made at any time. This is useful when waiting has a real cost, such as continuing to route orders through a poor execution policy. The goal is to preserve a meaningful error guarantee while still letting new data change the decision. That requires a test built for the stopping rule, not a sequence of fixed-sample tests relabeled after the fact.

Repeated independent tests multiply false alarms

Chance of at least one false alert (%)

Independent-test benchmark under a true null. Repeated looks at one accumulating backtest are correlated, but still need a sequential error rule.

Practice

Five candidatesFor five independent null strategies each tested at 5%, what is the chance that at least one passes?
Show answer
1−0.955≈22.6%1-0.95^5\approx22.6\%.
CorrelationWhy can you not directly use the chart for twenty weekly looks at the same strategy?
Show answer
The looks reuse most of the same returns, so their test statistics are correlated. A sequentially valid procedure or a joint simulation of the specified check rule is needed.