Fun formalization

[Published July 7, 2026]

A Compact Simulation Forecast of the 2026 General Election in Illinois’ 9th Congressional District

Ryan McComb, Claude Opus

Abstract: This is a forecast of the 2026 general election in Illinois’ 9th Congressional District, Biss (D) versus Ellison (R), built for fun in a single night with as little code as I could manage. The race is not competitive, but it is one that hits close to home, and the first forecast I built of this seat ran on Stata, slow and clunky; I wanted to see how few lines of Python could do the job properly. The answer came to 89 for vote share and 66 for turnout. Across 10,000 simulations Biss takes a median 73.9% of the two-party vote (80% interval: 71.3 to 76.2) on roughly 287,000 ballots.

Cite as:slampaper.mccomb.ca/papers/illinois-9-forecast
Source:mccomb.ca