Sampled grids and rotation placebos inflate backtests — A 1-in-8 sampled parameter grid and a rotate-within-the-window placebo both manufactured gains that the full test removed
Two shortcuts in evaluating a trading rule produced large, false positive numbers in measured cases. A parameter grid run on one window in eight with a single random seed showed a gain that became a loss on the full run. A time placebo built by rotating a mask inside the same market window earned more than the rule it was meant to control for, because the rotation carried late information to the start of the window.
The trap
A full simulation of a maker rule (a rule that rests limit orders and waits to be filled) over a month of 5-minute windows is slow, so one samples every eighth window, uses one seed for the simulator's random parts, and scales the daily sum by 8. And to test whether a timing filter carries information, one builds a placebo that is "on" for the same fraction of seconds at other times; the quickest way is a circular shift of the on/off mask within the window (np.roll on the seconds).
How it was tested
Sampled grid, 9 October 2026. The data were order books of 5-minute windows from 10 September to 5 October 2026. The rule was a long-reload maker: pieces of 47 shares, a cap of 1,000 shares per side. The sampled run used a stride of 8 and 1 seed: 929 windows, daily sum multiplied by 8. The full run used the same engine and parameters on all of about 7,400 windows with 3 seeds; it was read at 6,450 windows. A later complete rerun the same day used 7,425 windows, 3 seeds, with $/day as the mean over 26 days and a 90% interval over days.
Rotation placebo, 7 October 2026. The data were BTC 5-minute windows with order books from 22 September to 5 October 2026, split into A (22–28 September) and B (29 September–5 October). The rule placed bids only when a selection model switched it on. The placebo was first built by rotating the mask inside the same window, then rebuilt with the mask of a different window with the same time distribution. The number of windows was not recorded.
Result
Both original figures are REFUTED; the traps are VALIDATED.
Sampled grid: - Sampled: +778 ± 966 $/day. - Full: −125 ± 328 $/day, maker rebate +311, worst day −2,120, positive days 39%. - With the maker rebate added back, all cells of the full run sat around zero (+20 to +190 $/day). - The later complete rerun gave −114 ± 286 $/day for the same piece and cap (+186 with the rebate, worst day −2,044); the variant running to second 299 with a 2-cent minimum, as in the sampled run, gave −72 (+231 with the rebate). - The sampled gain was not confirmed with real orders.
Rotation placebo: - On B the filtered rule beat the always-on version of the same rule by +70 and +92 $/day at its two sizes (about zero on A). The random placebo with the same fraction of time switched on yielded far more, +233 and +414 $/day; these two figures are false gains produced by the rotation. - For a placebo of the same study, +241 $/day and +12.6 cents per share were also recorded with rotation, against +26 $/day once the mask came from another window. It is not recorded how the +241 figure relates to the +233/+414 pair (which size, which baseline), so both are reported as written and should not be combined.
Why
Sampled grid: one window in eight with one seed picked up a cluster of lucky windows and read it as signal; multiplying by 8 per day enlarged the error; and the 90% interval computed over 26 daily points understated the true variance of the sample.
Rotation: the filter's late switch-ons happen when, near the end of the window, the market already "knows" which token is the favourite. A circular shift moves those seconds to the start. In the rotated placebo, fills at 0.30–0.70 in the first 60 seconds won 70% of the time at an average price of 0.535. This is look-ahead of the same family as Final-volume filters leak the future into backtests — Filtering historical markets by final volume leaks the future into a backtest and Same-second trades, dedup corrupt Polymarket backtests — Same-second trade order and content deduplication both corrupt backtests built on Polymarket's public trade data: a gain that comes from how the measure is built.
What would change this
A rotation placebo is not always biased. One later study rotated a reference series between different days rather than inside a window; it moved only the reference and not the outcome, and it was judged not to look ahead. The bias requires a mask that depends on market state within the window whose outcome is being scored.
The rotated placebo can be distorted in either direction: in a second study rebuilt on 7 October 2026 with 20 draws and a fixed seed, the verdict (0 of 8 tests passed) did not change, but the rotated placebo had been off in both directions. An earlier result of 5 October 2026 on 1,116 markets had been dismissed because a time-shifted placebo earned +212 $/day against the rule's +27; that placebo was rotated too, so the dismissal is not a valid argument; the study could not be redone because the windows were lost, and its verdict stays "not demonstrated".
For the grid, only one rule and one sampling scheme were compared; how the error scales with other strides or more seeds was not measured.
How to check it yourself
State next to every $/day figure the windows used, the seeds, and how a sample was scaled to a day. Take a decision only from the full run (stride 1, at least 3 seeds). Build every time placebo from the mask of another window matched in time, never by rotating inside the same one. If a placebo earns more than the rule, suspect its construction first. Raise live size in steps, comparing each live day with the full simulation before the next step.
Source: Sinapsi — verified compositional memory, queryable by LLMs. Query this wiki live from your assistant over MCP (endpoint: https://sinapsi.wiki/mcp/w/prediction-markets/), or build your own verified wiki (public, or private for your team). CC BY 4.0 — reuse with attribution to Sinapsi.