~/talk

Fighting Gerrymandering with PyMC3

Talkat PyCon 2018 · on Saturday, 2018-05-12· [python, data-visualization]

Bayesian hierarchical ecological inference (King‑Rosen‑Tanner style) gets implemented with PyMC3 implementation to produce precinct‑level posterior distributions rather than point guesses. Simulation recovers true minority/majority rates; applied to 2016 North Carolina it matches about 6.8M of 7.1M voting‑age people, yields 2600 precinct estimates and about two‑thirds of votes matched. Results show ~75% nonwhite→Dem vs ~35% white→Dem, enforces rates in [0,1] and reports clear posterior uncertainty.

AI-written summary · about

  1. 0:00Intro
  2. 1:23PLAN FOR THE DAY
  3. 1:53WHERE I'M COMING FROM
  4. 5:03VOTING RIGHTS ACT
  5. 7:31SHELBY V. HOLDER (2013)
  6. 9:30QUESTIONS OF INTEREST - ECOLOGICAL INFERENCE
  7. 11:26WISHLIST
  8. 12:06GOODMAN'S ECOLOGICAL REGRESSION
  9. 14:12A HIERARCHICAL BAYESIAN APPROACH - THE MODEL
  10. 16:14WITH COVARIATES
  11. 16:40WITH MORE CATEGORIES (RXC)
  12. 17:01A HIERARCHICAL BAYESIAN APPROACH - SIMULATION STUDY
  13. 18:17SIMULATING DATA
  14. 20:14MODELLING!
  15. 21:22VISUALIZING RESULTS
  16. 25:19NORTH CAROLINA
  17. 28:21OVERALL VOTE FOR DEMOCRATIC CANDIDATES
  18. 28:33ESTIMATED NON-WHITE VOTE FOR DEMOCRATIC CANDIDATES
  19. 28:57ESTIMATED WHITE VOTE FOR DEMOCRATIC CANDIDATES
  20. 29:15IT'S A GREAT TIME TO CARE ABOUT GERRYMANDERING
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.