# Voter and population aggregates (2026 precincts)

**Only aggregate counts are published here.** No names, addresses, voter registration numbers, NCIDs, or birth dates are stored in this repository or used on the site. The raw voter files stay on the build machine (outside git), and `.gitignore` blocks `ncvoter*`, `ncvhis*`, and zip archives.

## Sources

| Data | File | Date |
|---|---|---|
| Registration (party, age, race, ethnicity, sex, status, precinct) | NCSBE [`ncvoter_Statewide.zip`](https://s3.amazonaws.com/dl.ncsbe.gov/data/ncvoter_Statewide.zip) | file dated November 29, 2026 |
| Who voted (general elections of November 3, 2026, November 5, 2024, and November 8, 2022) | NCSBE [`ncvhis_Statewide.zip`](https://s3.amazonaws.com/dl.ncsbe.gov/data/ncvhis_Statewide.zip) | file dated November 29, 2026 |
| Population and voting-age population by race and Hispanic origin | Census 2020 P.L. 94-171 redistricting data, tables P2 and P4 ([nc2020.pl.zip](https://www2.census.gov/programs-surveys/decennial/2020/data/01-Redistricting_File--PL_94-171/North_Carolina/nc2020.pl.zip)) | 2020 Census |
| Block-to-district assignment | NCGA block assignment files for S.L. 2025-95, S.L. 2023-146, and S.L. 2023-149 | as enacted |

## Method

- **Registrants:** records with status Active (A) or Inactive (I). The November 29 file has no temporary (S) records. Removed (R) and denied (D) records are excluded. Each registrant is counted in their current precinct (`precinct_abbrv`).
- **Fields (`summary.json` → `voter_fields`):** registered, active, and inactive counts; party (DEM, REP, UNA, LIB, GRE); age at the end of 2026 in bands 18–24, 25–34, 35–44, 45–64, and 65+, plus under 30; self-reported race (W, B, A, I, M, O, U; P is folded into O); ethnicity (HL, NL, UN); sex (F, M, U).
- **2026 turnout:** the universe is current registrants whose registration date is on or before November 3, 2026 (1,423 masked dates are included). "Voted" means a record exists in ncvhis for November 3, 2026. Turnout is broken out by party, age band, and race/ethnicity group. "Drop-off" counts registrants who voted in November 2024 but not in November 2026.
- **Census:** each 2020 block is assigned to the 2026 precinct containing its internal point; 7 blocks fell outside every simplified polygon and went to the nearest precinct. Blocks go to districts through the NCGA block assignment files. Census counts are 2020 residents and are not adjusted to 2026.
- **District roll-ups** of registration use each registrant's congressional, N.C. Senate, and N.C. House district as recorded in the voter file (the 2026 plans), so split precincts are handled per voter. A precinct's `d` field is the share of its registrants in each district. Census roll-ups use the block assignment files directly.
- **Files:** `summary.json` has state, county, congressional, Senate, and House totals (`levels.{level}.{key} = {v: [...voter_fields], c: [...census_fields]}`). `{county}.json` has per-precinct `v`, `c`, and `d` (district shares).

## Reconciliation

| Check | This build | Official | Gap |
|---|---:|---:|---|
| Registered voters | 7,921,664 (A + I, Nov 29 file) | 7,902,361 (NCSBE `voter_stats_20261103`, as of Nov 3) | +19,303 (+0.24%): registrations processed after Election Day |
| Party: UNA / DEM / REP | 3,178,198 / 2,357,951 / 2,333,549 | 3,171,545 / 2,347,537 / 2,331,513 | within 0.5% each |
| Voted Nov 3, 2026 | 4,240,585 | 4,238,931 (NCSBE `history_stats_20261103`) | +1,654 (+0.04%) |
| Turnout | 53.6% of the turnout universe | 53.6% (history_stats ÷ voter_stats); the NCSBE press release says 53.8% | about 0.2 points versus the press release |
| Census 2020 population | 10,439,388 | 10,439,388 | 0 |
| Census 2020 voting-age population | 8,155,099 | 8,155,099 | 0 |

1,388 registrants (0.02%) have a precinct code that isn't on the 2026 precinct map. Most have a blank precinct (Buncombe 211, Cumberland 110, Watauga 84, …); 538 are in Henderson `CV`, which has no polygon. They are counted in state and county totals but in no precinct or district.

## Cautions

- Race, ethnicity, and sex are optional on N.C. registration forms. Undesignated shares are large (race U 9.8%, ethnicity UN 32.6%) and are shown, not imputed.
- Two precincts have fewer than 50 registrants. Their percentages are volatile.
- Registration and Census counts come from different years (2026 vs 2020); compare their shares with care.

## TODO

- ACS 5-year age and income by block group, apportioned to precincts, is not built yet. It needs ACS block-group tables and a block-group-to-block apportionment. No estimates are shown in its place.

## Refresh

```
# 1. download fresh NCSBE files (weekly is plenty)
cd /workspace/nc-home-data/phase5
curl -fLO https://s3.amazonaws.com/dl.ncsbe.gov/data/ncvoter_Statewide.zip
curl -fLO https://s3.amazonaws.com/dl.ncsbe.gov/data/ncvhis_Statewide.zip
mkdir -p voter && unzip -p ncvhis_Statewide.zip | grep -E '11/03/2026|11/05/2024|11/08/2022' > voter/vhis_generals.txt
# 2. rebuild the aggregates (about 3 minutes)
cd /workspace/nc-home && /workspace/nc-home-data/venv/bin/python -W ignore tools/build-war-map-2026.py demo
# 3. review demographics/summary.json "report", then commit war_map/demographics and push
```
