Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
2election_results.pdf
2election_results_pres_only.pdf
README.md
compute_elections.py
election_results.pdf
election_results_dems.csv
election_results_enacted.csv
election_results_four_maps.pdf
election_results_pres_only.pdf
election_results_pres_only_four_maps.pdf
election_results_reform.csv
elections_comparison.csv
votes_seats_over_time.pdf
votes_seats_over_time.py
votes_seats_over_time_all_races.pdf

README.md

Various election outcomes:

(These numbers are two party vote share taken from our Virginia Precincts shapefile.)

district_no map Clinton16 HouseOfRep16Dem Gov17_Northam LtGov17_Fairfax AtGen17_Herring HouseOfDel17Dem Sen18_Kaine
27 SM_court_order 0.487 0.541 0.516 0.501 0.498 0.496 0.557
27 reform 0.515 0.553 0.525 0.505 0.498 0.497 0.58
27 enacted 0.487 0.541 0.516 0.501 0.498 0.496 0.557
55 SM_court_order 0.372 0.391 0.394 0.378 0.383 0.376 0.426
55 reform 0.374 0.395 0.396 0.38 0.384 0.377 0.43
55 enacted 0.372 0.391 0.394 0.378 0.383 0.376 0.426
61 enacted 0.394 0.411 0.386 0.375 0.38 0.252 0.421
61 reform 0.402 0.418 0.393 0.383 0.388 0.254 0.429
61 SM_court_order 0.394 0.411 0.386 0.375 0.38 0.252 0.421
62 enacted 0.475 0.526 0.5 0.487 0.492 0.5 0.541
62 SM_court_order 0.479 0.516 0.485 0.473 0.475 0.472 0.533
62 reform 0.452 0.49 0.465 0.454 0.456 0.453 0.51
63 reform 0.613 0.618 0.589 0.577 0.583 0.628 0.631
63 SM_court_order 0.569 0.583 0.568 0.559 0.56 0.741 0.592
63 enacted 0.699 0.705 0.688 0.681 0.681 0.99 0.711
64 enacted 0.386 0.599 0.408 0.389 0.399 0.398 0.43
64 reform 0.399 0.696 0.424 0.401 0.413 0.327 0.448
64 SM_court_order 0.402 0.619 0.425 0.407 0.414 0.425 0.446
66 SM_court_order 0.524 0.557 0.522 0.512 0.516 0.57 0.573
66 enacted 0.381 0.423 0.392 0.38 0.384 0.363 0.443
66 reform 0.433 0.476 0.448 0.438 0.439 0.515 0.486
68 enacted 0.558 0.585 0.56 0.538 0.531 0.503 0.624
68 reform 0.636 0.651 0.629 0.607 0.605 0.596 0.695
68 SM_court_order 0.558 0.585 0.56 0.538 0.531 0.503 0.624
69 SM_court_order 0.873 0.88 0.873 0.863 0.861 1 0.895
69 enacted 0.873 0.879 0.872 0.863 0.86 1 0.894
69 reform 0.736 0.757 0.737 0.727 0.724 0.792 0.77
70 reform 0.717 0.747 0.724 0.717 0.717 0.828 0.756
70 enacted 0.803 0.826 0.814 0.809 0.806 0.993 0.834
70 SM_court_order 0.722 0.749 0.733 0.728 0.727 0.896 0.758
71 enacted 0.895 0.898 0.892 0.876 0.878 1 0.915
71 reform 0.902 0.904 0.898 0.883 0.884 1 0.921
71 SM_court_order 0.893 0.897 0.892 0.876 0.877 1 0.915
72 enacted 0.528 0.564 0.538 0.519 0.52 0.529 0.596
72 reform 0.527 0.564 0.533 0.515 0.516 0.518 0.593
72 SM_court_order 0.537 0.573 0.548 0.53 0.531 0.542 0.604
73 reform 0.662 0.691 0.671 0.657 0.66 0.727 0.708
73 SM_court_order 0.541 0.58 0.542 0.523 0.525 0.517 0.608
73 enacted 0.541 0.58 0.542 0.523 0.525 0.517 0.608
74 enacted 0.752 0.775 0.761 0.753 0.754 0.988 0.784
74 SM_court_order 0.745 0.773 0.755 0.746 0.748 0.929 0.783
74 reform 0.571 0.6 0.59 0.579 0.582 0.662 0.62
75 SM_court_order 0.551 0.578 0.526 0.517 0.523 0.82 0.561
75 enacted 0.577 0.585 0.557 0.55 0.553 0.954 0.586
75 reform 0.563 0.57 0.544 0.537 0.54 0.956 0.571
76 enacted 0.458 0.755 0.504 0.475 0.488 0.0154 0.528
76 reform 0.711 0.868 0.733 0.691 0.705 0.892 0.759
76 SM_court_order 0.585 0.869 0.609 0.587 0.596 0.331 0.636
77 enacted 0.753 0.965 0.784 0.772 0.775 0.983 0.793
77 reform 0.793 1 0.797 0.766 0.779 1 0.821
77 SM_court_order 0.63 0.927 0.667 0.65 0.655 0.616 0.687
78 reform 0.454 0.518 0.506 0.483 0.49 0.266 0.521
78 enacted 0.4 0.507 0.445 0.416 0.426 0.00071 0.471
78 SM_court_order 0.361 0.413 0.414 0.386 0.394 0.127 0.434
79 reform 0.583 0.911 0.626 0.601 0.613 0.67 0.642
79 SM_court_order 0.593 0.964 0.624 0.588 0.603 0.72 0.65
79 enacted 0.634 0.959 0.667 0.63 0.647 1 0.699
80 SM_court_order 0.695 1 0.719 0.694 0.707 1 0.74
80 reform 0.652 0.853 0.688 0.671 0.674 0.609 0.706
80 enacted 0.747 1 0.762 0.741 0.749 0.998 0.782
81 reform 0.402 0.437 0.454 0.419 0.432 0.362 0.478
81 SM_court_order 0.45 0.493 0.503 0.469 0.483 0.428 0.522
81 enacted 0.4 0.449 0.453 0.417 0.432 0.408 0.477
83 SM_court_order 0.529 0.552 0.558 0.518 0.534 0.526 0.592
83 reform 0.656 0.721 0.687 0.654 0.667 0.72 0.703
83 enacted 0.462 0.496 0.508 0.46 0.482 0.434 0.537
85 SM_court_order 0.513 0.548 0.556 0.522 0.535 0.553 0.586
85 enacted 0.497 0.533 0.539 0.504 0.518 0.509 0.572
85 reform 0.517 0.551 0.551 0.515 0.531 0.521 0.591
89 reform 0.64 0.952 0.658 0.635 0.645 0.654 0.687
89 SM_court_order 0.845 0.994 0.842 0.812 0.821 1 0.866
89 enacted 0.83 0.997 0.83 0.801 0.809 0.993 0.851
90 reform 0.638 0.762 0.66 0.634 0.642 0.769 0.679
90 SM_court_order 0.685 0.824 0.719 0.689 0.701 0.809 0.729
90 enacted 0.781 0.894 0.804 0.786 0.787 0.999 0.812
91 enacted 0.443 0.496 0.479 0.457 0.466 0.436 0.513
91 reform 0.588 0.729 0.617 0.603 0.607 0.69 0.642
91 SM_court_order 0.528 0.597 0.546 0.523 0.532 0.544 0.581
92 SM_court_order 0.753 0.98 0.781 0.771 0.769 0.959 0.797
92 reform 0.689 0.821 0.711 0.693 0.696 0.793 0.733
92 enacted 0.79 0.999 0.807 0.795 0.792 0.999 0.826
93 enacted 0.6 0.687 0.609 0.59 0.592 0.603 0.638
93 reform 0.469 0.53 0.496 0.475 0.478 0.466 0.528
93 SM_court_order 0.55 0.609 0.562 0.541 0.545 0.551 0.595
94 SM_court_order 0.59 1 0.607 0.585 0.588 0.58 0.643
94 enacted 0.528 1 0.554 0.53 0.535 0.512 0.595
94 reform 0.612 1 0.631 0.612 0.614 0.635 0.667
95 SM_court_order 0.695 1 0.704 0.689 0.692 0.786 0.735
95 enacted 0.761 1 0.773 0.761 0.763 0.953 0.791
95 reform 0.662 1 0.667 0.648 0.652 0.703 0.7
96 reform 0.497 0.495 0.515 0.494 0.496 0.502 0.544
96 SM_court_order 0.416 0.434 0.451 0.428 0.431 0.411 0.481
96 enacted 0.416 0.434 0.451 0.428 0.431 0.411 0.481
97 reform 0.421 0.432 0.436 0.423 0.426 0.422 0.467
97 enacted 0.321 0.329 0.335 0.32 0.324 0.303 0.37
97 SM_court_order 0.323 0.331 0.337 0.322 0.326 0.305 0.372
100 reform 0.433 0.444 0.464 0.421 0.436 0.394 0.485
100 enacted 0.47 0.486 0.493 0.454 0.467 0.439 0.518
100 SM_court_order 0.47 0.486 0.493 0.454 0.467 0.439 0.518
district_no map Clinton16 Trump16 HouseOfRep16Dem HouseOfRep16Rep Gov17_Northam Gov17_Gillespie LtGov17_Fairfax LtGov17_Vogel AtGen17_Herring AtGen17_Adams HouseOfDel17Dem HouseOfDel17Rep Sen18_Kaine Sen18_Stewart
27 SM_court_order 0.487 0.513 0.541 0.459 0.516 0.484 0.501 0.499 0.498 0.502 0.496 0.504 0.557 0.443
27 reform 0.515 0.485 0.553 0.447 0.525 0.475 0.505 0.495 0.498 0.502 0.497 0.503 0.58 0.42
27 enacted 0.487 0.513 0.541 0.459 0.516 0.484 0.501 0.499 0.498 0.502 0.496 0.504 0.557 0.443
55 SM_court_order 0.372 0.628 0.391 0.609 0.394 0.606 0.378 0.622 0.383 0.617 0.376 0.624 0.426 0.574
55 reform 0.374 0.626 0.395 0.605 0.396 0.604 0.38 0.62 0.384 0.616 0.377 0.623 0.43 0.57
55 enacted 0.372 0.628 0.391 0.609 0.394 0.606 0.378 0.622 0.383 0.617 0.376 0.624 0.426 0.574
61 enacted 0.394 0.606 0.411 0.589 0.386 0.614 0.375 0.625 0.38 0.62 0.252 0.748 0.421 0.579
61 reform 0.402 0.598 0.418 0.582 0.393 0.607 0.383 0.617 0.388 0.612 0.254 0.746 0.429 0.571
61 SM_court_order 0.394 0.606 0.411 0.589 0.386 0.614 0.375 0.625 0.38 0.62 0.252 0.748 0.421 0.579
62 enacted 0.475 0.525 0.526 0.474 0.5 0.5 0.487 0.513 0.492 0.508 0.5 0.5 0.541 0.459
62 SM_court_order 0.479 0.521 0.516 0.484 0.485 0.515 0.473 0.527 0.475 0.525 0.472 0.528 0.533 0.467
62 reform 0.452 0.548 0.49 0.51 0.465 0.535 0.454 0.546 0.456 0.544 0.453 0.547 0.51 0.49
63 reform 0.613 0.387 0.618 0.382 0.589 0.411 0.577 0.423 0.583 0.417 0.628 0.372 0.631 0.369
63 SM_court_order 0.569 0.431 0.583 0.417 0.568 0.432 0.559 0.441 0.56 0.44 0.741 0.259 0.592 0.408
63 enacted 0.699 0.301 0.705 0.295 0.688 0.312 0.681 0.319 0.681 0.319 0.99 0.0103 0.711 0.289
64 enacted 0.386 0.614 0.599 0.401 0.408 0.592 0.389 0.611 0.399 0.601 0.398 0.602 0.43 0.57
64 reform 0.399 0.601 0.696 0.304 0.424 0.576 0.401 0.599 0.413 0.587 0.327 0.673 0.448 0.552
64 SM_court_order 0.402 0.598 0.619 0.381 0.425 0.575 0.407 0.593 0.414 0.586 0.425 0.575 0.446 0.554
66 SM_court_order 0.524 0.476 0.557 0.443 0.522 0.478 0.512 0.488 0.516 0.484 0.57 0.43 0.573 0.427
66 enacted 0.381 0.619 0.423 0.577 0.392 0.608 0.38 0.62 0.384 0.616 0.363 0.637 0.443 0.557
66 reform 0.433 0.567 0.476 0.524 0.448 0.552 0.438 0.562 0.439 0.561 0.515 0.485 0.486 0.514
68 enacted 0.558 0.442 0.585 0.415 0.56 0.44 0.538 0.462 0.531 0.469 0.503 0.497 0.624 0.376
68 reform 0.636 0.364 0.651 0.349 0.629 0.371 0.607 0.393 0.605 0.395 0.596 0.404 0.695 0.305
68 SM_court_order 0.558 0.442 0.585 0.415 0.56 0.44 0.538 0.462 0.531 0.469 0.503 0.497 0.624 0.376
69 SM_court_order 0.873 0.127 0.88 0.12 0.873 0.127 0.863 0.137 0.861 0.139 1 7.4e-13 0.895 0.105
69 enacted 0.873 0.127 0.879 0.121 0.872 0.128 0.863 0.137 0.86 0.14 1 3e-14 0.894 0.106
69 reform 0.736 0.264 0.757 0.243 0.737 0.263 0.727 0.273 0.724 0.276 0.792 0.208 0.77 0.23
70 reform 0.717 0.283 0.747 0.253 0.724 0.276 0.717 0.283 0.717 0.283 0.828 0.172 0.756 0.244
70 enacted 0.803 0.197 0.826 0.174 0.814 0.186 0.809 0.191 0.806 0.194 0.993 0.00685 0.834 0.166
70 SM_court_order 0.722 0.278 0.749 0.251 0.733 0.267 0.728 0.272 0.727 0.273 0.896 0.104 0.758 0.242
71 enacted 0.895 0.105 0.898 0.102 0.892 0.108 0.876 0.124 0.878 0.122 1 2.97e-14 0.915 0.0848
71 reform 0.902 0.0981 0.904 0.0961 0.898 0.102 0.883 0.117 0.884 0.116 1 1.44e-14 0.921 0.0793
71 SM_court_order 0.893 0.107 0.897 0.103 0.892 0.108 0.876 0.124 0.877 0.123 1 2.85e-13 0.915 0.0854
72 enacted 0.528 0.472 0.564 0.436 0.538 0.462 0.519 0.481 0.52 0.48 0.529 0.471 0.596 0.404
72 reform 0.527 0.473 0.564 0.436 0.533 0.467 0.515 0.485 0.516 0.484 0.518 0.482 0.593 0.407
72 SM_court_order 0.537 0.463 0.573 0.427 0.548 0.452 0.53 0.47 0.531 0.469 0.542 0.458 0.604 0.396
73 reform 0.662 0.338 0.691 0.309 0.671 0.329 0.657 0.343 0.66 0.34 0.727 0.273 0.708 0.292
73 SM_court_order 0.541 0.459 0.58 0.42 0.542 0.458 0.523 0.477 0.525 0.475 0.517 0.483 0.608 0.392
73 enacted 0.541 0.459 0.58 0.42 0.542 0.458 0.523 0.477 0.525 0.475 0.517 0.483 0.608 0.392
74 enacted 0.752 0.248 0.775 0.225 0.761 0.239 0.753 0.247 0.754 0.246 0.988 0.0121 0.784 0.216
74 SM_court_order 0.745 0.255 0.773 0.227 0.755 0.245 0.746 0.254 0.748 0.252 0.929 0.0711 0.783 0.217
74 reform 0.571 0.429 0.6 0.4 0.59 0.41 0.579 0.421 0.582 0.418 0.662 0.338 0.62 0.38
75 SM_court_order 0.551 0.449 0.578 0.422 0.526 0.474 0.517 0.483 0.523 0.477 0.82 0.18 0.561 0.439
75 enacted 0.577 0.423 0.585 0.415 0.557 0.443 0.55 0.45 0.553 0.447 0.954 0.0456 0.586 0.414
75 reform 0.563 0.437 0.57 0.43 0.544 0.456 0.537 0.463 0.54 0.46 0.956 0.0444 0.571 0.429
76 enacted 0.458 0.542 0.755 0.245 0.504 0.496 0.475 0.525 0.488 0.512 0.0154 0.985 0.528 0.472
76 reform 0.711 0.289 0.868 0.132 0.733 0.267 0.691 0.309 0.705 0.295 0.892 0.108 0.759 0.241
76 SM_court_order 0.585 0.415 0.869 0.131 0.609 0.391 0.587 0.413 0.596 0.404 0.331 0.669 0.636 0.364
77 enacted 0.753 0.247 0.965 0.0349 0.784 0.216 0.772 0.228 0.775 0.225 0.983 0.0167 0.793 0.207
77 reform 0.793 0.207 1 2.5e-19 0.797 0.203 0.766 0.234 0.779 0.221 1 0 0.821 0.179
77 SM_court_order 0.63 0.37 0.927 0.0733 0.667 0.333 0.65 0.35 0.655 0.345 0.616 0.384 0.687 0.313
78 reform 0.454 0.546 0.518 0.482 0.506 0.494 0.483 0.517 0.49 0.51 0.266 0.734 0.521 0.479
78 enacted 0.4 0.6 0.507 0.493 0.445 0.555 0.416 0.584 0.426 0.574 0.00071 0.999 0.471 0.529
78 SM_court_order 0.361 0.639 0.413 0.587 0.414 0.586 0.386 0.614 0.394 0.606 0.127 0.873 0.434 0.566
79 reform 0.583 0.417 0.911 0.0891 0.626 0.374 0.601 0.399 0.613 0.387 0.67 0.33 0.642 0.358
79 SM_court_order 0.593 0.407 0.964 0.0357 0.624 0.376 0.588 0.412 0.603 0.397 0.72 0.28 0.65 0.35
79 enacted 0.634 0.366 0.959 0.0411 0.667 0.333 0.63 0.37 0.647 0.353 1 0.000203 0.699 0.301
80 SM_court_order 0.695 0.305 1 3.82e-16 0.719 0.281 0.694 0.306 0.707 0.293 1 2.58e-14 0.74 0.26
80 reform 0.652 0.348 0.853 0.147 0.688 0.312 0.671 0.329 0.674 0.326 0.609 0.391 0.706 0.294
80 enacted 0.747 0.253 1 4.44e-16 0.762 0.238 0.741 0.259 0.749 0.251 0.998 0.00248 0.782 0.218
81 reform 0.402 0.598 0.437 0.563 0.454 0.546 0.419 0.581 0.432 0.568 0.362 0.638 0.478 0.522
81 SM_court_order 0.45 0.55 0.493 0.507 0.503 0.497 0.469 0.531 0.483 0.517 0.428 0.572 0.522 0.478
81 enacted 0.4 0.6 0.449 0.551 0.453 0.547 0.417 0.583 0.432 0.568 0.408 0.592 0.477 0.523
83 SM_court_order 0.529 0.471 0.552 0.448 0.558 0.442 0.518 0.482 0.534 0.466 0.526 0.474 0.592 0.408
83 reform 0.656 0.344 0.721 0.279 0.687 0.313 0.654 0.346 0.667 0.333 0.72 0.28 0.703 0.297
83 enacted 0.462 0.538 0.496 0.504 0.508 0.492 0.46 0.54 0.482 0.518 0.434 0.566 0.537 0.463
85 SM_court_order 0.513 0.487 0.548 0.452 0.556 0.444 0.522 0.478 0.535 0.465 0.553 0.447 0.586 0.414
85 enacted 0.497 0.503 0.533 0.467 0.539 0.461 0.504 0.496 0.518 0.482 0.509 0.491 0.572 0.428
85 reform 0.517 0.483 0.551 0.449 0.551 0.449 0.515 0.485 0.531 0.469 0.521 0.479 0.591 0.409
89 reform 0.64 0.36 0.952 0.0483 0.658 0.342 0.635 0.365 0.645 0.355 0.654 0.346 0.687 0.313
89 SM_court_order 0.845 0.155 0.994 0.0059 0.842 0.158 0.812 0.188 0.821 0.179 1 0 0.866 0.134
89 enacted 0.83 0.17 0.997 0.00318 0.83 0.17 0.801 0.199 0.809 0.191 0.993 0.00678 0.851 0.149
90 reform 0.638 0.362 0.762 0.238 0.66 0.34 0.634 0.366 0.642 0.358 0.769 0.231 0.679 0.321
90 SM_court_order 0.685 0.315 0.824 0.176 0.719 0.281 0.689 0.311 0.701 0.299 0.809 0.191 0.729 0.271
90 enacted 0.781 0.219 0.894 0.106 0.804 0.196 0.786 0.214 0.787 0.213 0.999 0.000991 0.812 0.188
91 enacted 0.443 0.557 0.496 0.504 0.479 0.521 0.457 0.543 0.466 0.534 0.436 0.564 0.513 0.487
91 reform 0.588 0.412 0.729 0.271 0.617 0.383 0.603 0.397 0.607 0.393 0.69 0.31 0.642 0.358
91 SM_court_order 0.528 0.472 0.597 0.403 0.546 0.454 0.523 0.477 0.532 0.468 0.544 0.456 0.581 0.419
92 SM_court_order 0.753 0.247 0.98 0.0204 0.781 0.219 0.771 0.229 0.769 0.231 0.959 0.0411 0.797 0.203
92 reform 0.689 0.311 0.821 0.179 0.711 0.289 0.693 0.307 0.696 0.304 0.793 0.207 0.733 0.267
92 enacted 0.79 0.21 0.999 0.000615 0.807 0.193 0.795 0.205 0.792 0.208 0.999 0.000716 0.826 0.174
93 enacted 0.6 0.4 0.687 0.313 0.609 0.391 0.59 0.41 0.592 0.408 0.603 0.397 0.638 0.362
93 reform 0.469 0.531 0.53 0.47 0.496 0.504 0.475 0.525 0.478 0.522 0.466 0.534 0.528 0.472
93 SM_court_order 0.55 0.45 0.609 0.391 0.562 0.438 0.541 0.459 0.545 0.455 0.551 0.449 0.595 0.405
94 SM_court_order 0.59 0.41 1 0.000102 0.607 0.393 0.585 0.415 0.588 0.412 0.58 0.42 0.643 0.357
94 enacted 0.528 0.472 1 0.00018 0.554 0.446 0.53 0.47 0.535 0.465 0.512 0.488 0.595 0.405
94 reform 0.612 0.388 1 0.000138 0.631 0.369 0.612 0.388 0.614 0.386 0.635 0.365 0.667 0.333
95 SM_court_order 0.695 0.305 1 0.000361 0.704 0.296 0.689 0.311 0.692 0.308 0.786 0.214 0.735 0.265
95 enacted 0.761 0.239 1 0.000308 0.773 0.227 0.761 0.239 0.763 0.237 0.953 0.0468 0.791 0.209
95 reform 0.662 0.338 1 0.000365 0.667 0.333 0.648 0.352 0.652 0.348 0.703 0.297 0.7 0.3
96 reform 0.497 0.503 0.495 0.505 0.515 0.485 0.494 0.506 0.496 0.504 0.502 0.498 0.544 0.456
96 SM_court_order 0.416 0.584 0.434 0.566 0.451 0.549 0.428 0.572 0.431 0.569 0.411 0.589 0.481 0.519
96 enacted 0.416 0.584 0.434 0.566 0.451 0.549 0.428 0.572 0.431 0.569 0.411 0.589 0.481 0.519
97 reform 0.421 0.579 0.432 0.568 0.436 0.564 0.423 0.577 0.426 0.574 0.422 0.578 0.467 0.533
97 enacted 0.321 0.679 0.329 0.671 0.335 0.665 0.32 0.68 0.324 0.676 0.303 0.697 0.37 0.63
97 SM_court_order 0.323 0.677 0.331 0.669 0.337 0.663 0.322 0.678 0.326 0.674 0.305 0.695 0.372 0.628
100 reform 0.433 0.567 0.444 0.556 0.464 0.536 0.421 0.579 0.436 0.564 0.394 0.606 0.485 0.515
100 enacted 0.47 0.53 0.486 0.514 0.493 0.507 0.454 0.546 0.467 0.533 0.439 0.561 0.518 0.482
100 SM_court_order 0.47 0.53 0.486 0.514 0.493 0.507 0.454 0.546 0.467 0.533 0.439 0.561 0.518 0.482
You can’t perform that action at this time.