# Case study: why prediction-market backtests lie

> How a memory of measured findings — refuted strategies, backtest traps, market mechanics — helps an AI assistant avoid the mistakes that make simulations look profitable.

Source: https://sinapsi.wiki/docs/case-prediction-markets/

## The problem

Backtesting a trading rule on prediction markets looks easy: download the trades, replay them, count the result. In practice **simulations very often show profits that do not exist**, because of how the data is recorded and how the markets work. And an AI assistant, starting each session from zero, will happily propose the same flawed test again and again.

## What the memory contains

The [Prediction Markets wiki](https://sinapsi.wiki/w/prediction-markets/) collects measured findings, each on its own page with its period, sample size and number. Every claim was checked against the underlying measurement in a pass separate from the writing.

<div class="cs-stats"><div class="cs-stat"><b>80</b><span>pages, each one finding</span></div><div class="cs-stat"><b>~4,200</b><span>claims checked against the data</span></div><div class="cs-stat"><b>326</b><span>claims corrected or softened</span></div><div class="cs-stat"><b>11</b><span>documented backtest traps</span></div></div>

<div class="cs-bars"><div class="cs-bar"><span>Strategies that do not survive</span><div class="cs-track"><div class="cs-fill red" style="width:100%"></div></div><em>28</em></div><div class="cs-bar"><span>Weather markets</span><div class="cs-track"><div class="cs-fill" style="width:61%"></div></div><em>17</em></div><div class="cs-bar"><span>Backtest traps</span><div class="cs-track"><div class="cs-fill gold" style="width:39%"></div></div><em>11</em></div><div class="cs-bar"><span>Market mechanics</span><div class="cs-track"><div class="cs-fill" style="width:36%"></div></div><em>10</em></div><div class="cs-bar"><span>Simulator calibration</span><div class="cs-track"><div class="cs-fill" style="width:25%"></div></div><em>7</em></div></div>

## Three traps, explained

- **Filtering by final volume is look-ahead.** Keeping only markets that ended up liquid seems harmless, but final volume is known only after the close and is higher when the surprising outcome wins: the sample is tilted towards winners. [Read the page](https://sinapsi.wiki/w/prediction-markets/p/traps/final-volume-filter-is-lookahead/).
- **Trades in the same second are not in execution order.** The public feed has one-second timestamps, and rows that look like duplicates are often separate fills. Removing "duplicates" or trusting the order inside a second silently changes the result. [Read the page](https://sinapsi.wiki/w/prediction-markets/p/traps/same-second-trades-and-dedup-corrupt-backtests/).
- **Sampled grids and rotated placebos inflate results.** Testing a parameter grid on a fraction of the data, or building a placebo by rotating time inside the same window, can turn a loss into an apparent gain. [Read the page](https://sinapsi.wiki/w/prediction-markets/p/traps/sampled-grids-and-rotation-placebos-inflate-results/).

## How an assistant uses it

<div class="cs-flow"><div class="cs-step"><b>Idea</b>"Let's backtest buying after a price jump."</div><div class="cs-step"><b>Search</b>The assistant queries the memory before writing code.</div><div class="cs-step kill"><b>Known trap</b>The page explains why sampled price history exaggerates the bounce.</div><div class="cs-step"><b>Better test</b>The assistant designs the test on the right data, or moves on.</div></div>

The same structure works for any research team: write each finding with its evidence, keep what did not work, and let every new session start from there.

## Try it

Connect `https://sinapsi.wiki/mcp/w/prediction-markets/` and ask: *"What makes a prediction-market backtest look profitable when it is not?"* See [Quickstart](/docs/quickstart/).

> Educational material, not trading advice.
