Midterm Pulse2026US Electionsby Jorge Garcelán
Election nightENES

CENSUS-26 · SOURCES

Data and method

Where every Census-26 number comes from, and the steps between the raw census and the published probability.

MODEL PIPELINE

From raw census to published probability

01

Census profiles

ACS 5-year estimates by congressional district for 2012–2024 from the Census Bureau API, each release paired with the House election fought on the same lines (fetch_acs.py, build_dataset.py).

02

Results

House and Senate results and the national House popular vote from FiveThirtyEight's election-results (national.py).

03

Model

XGBoost and a two-stage Ridge-plus-trees learner, blended; chosen by blind backtest Brier score (train_backtest.py, structural.py).

04

2026 maps

Nine redrawn states rebuilt from census tracts and 2020 blocks with the Census 120th Congress block file; boundaries from TIGER 2026 (redistrict.py, build_geometry_2026.py).

05

Senate

District margins averaged by state, state error measured on 2014–2024 Senate races (senate.py).

06

Publish

One JSON file for the site; every number on these pages comes from it (export_web.py).

SOURCE REGISTER

Primary inputs