Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates: Election Analysis #163

Open
cdonnay opened this issue Jan 7, 2025 · 6 comments
Open

Updates: Election Analysis #163

cdonnay opened this issue Jan 7, 2025 · 6 comments
Milestone

Comments

@cdonnay
Copy link
Collaborator

cdonnay commented Jan 7, 2025

  1. make sure Borda score dict knows about how many candidates are ranked
  2. borda averaging conventions
  3. clean up plot_summary_stats (Plot summary stats, x axis looks messy, Districtr colors, Add threshold line, Replace candidates with numbers, add key, Sorted in order, Fig, ax objects as keywords, Return ax object to modify, allow for multiple profiles?)
  4. different ballot cleaning options
  5. stv round output
  6. candidate class, race/gender
  7. 3 matrices (comentions, boosts, avg distance), color coded
  8. find ballot with X
  9. Portland uses slightly different threshold for stv
  10. Histogram of ballot lengths (allow for multiple profiles?)
@cdonnay cdonnay changed the title Election Analysis Updates Updates: Election Analysis Jan 7, 2025
@cdonnay cdonnay added this to the 3.1.0 milestone Jan 7, 2025
@cdonnay
Copy link
Collaborator Author

cdonnay commented Jan 8, 2025

David suggests renaming remove_noncands since it can be used to remove any string

@cdonnay
Copy link
Collaborator Author

cdonnay commented Jan 8, 2025

clean up plot_summary_stats

  1. x axis looks messy,
  2. Districtr colors,
  3. Add threshold line,
  4. Replace candidates with numbers,
  5. add key, Sorted in order,
  6. Fig, ax objects as keywords, Return ax object to modify,
  7. allow for multiple profiles

@cdonnay
Copy link
Collaborator Author

cdonnay commented Jan 13, 2025

David has code for representation numbers. use on multiple winer election types:
m seats

  • vote for 1
  • vote for m
  • stv
  • borda
  • condo-borda
  • seq-rcv

@cdonnay
Copy link
Collaborator Author

cdonnay commented Jan 13, 2025

Jeanne clean ballots:

  • Portland removes over/under vote ranking slots and collapses the remaining ranking vector. If candidate is ranked more than once, take the highest ranking and collapses the remaining ranking vector
  • remove non-viable candidates (less than threshold number of mentions), maybe in a tutorial but not in the codebase?

@cdonnay
Copy link
Collaborator Author

cdonnay commented Jan 13, 2025

Jeanne choropleths:

  • added all sorts of election stats to the shapefile, FPV for candidates, bordas, etc.
  • maybe this is a good fit for gerrytools? not really any votekit code used here, but it is a cool election viz :)

@cdonnay
Copy link
Collaborator Author

cdonnay commented Jan 14, 2025

make sure that borda function defaults play nicely with bar plots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant