PitchIQ
A Poisson match-prediction model blended with market odds, run through a 10,000-trial Monte Carlo bracket simulation, with GPT-4o-mini writing the plain-English reasoning behind every pick.



The Monte Carlo simulation projects title odds by simulating the rest of the bracket thousands of times, but it originally re-simulated the whole tournament from scratch on every run, including rounds that had already happened. A team eliminated in a real Round of 16 loss kept showing up with high title odds because the simulation never checked the actual match results before running. The fix was lib/data/bracket-state.ts, which reconstructs who is actually still alive from real match records (elimination, furthest stage reached, decided pairs) so Monte Carlo starts from reality instead of blind chance.
A second script, verify-bracket.ts, runs once a day and cross-checks that reconstructed bracket state against a live web search, purely to catch the case where a data import went stale or wrote a wrong result and nothing else would notice. It only logs a mismatch for a human to check; it never touches the data itself.