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

Huntington Hill Method assigns a 0 for allocation #18

Open
ebrewer1 opened this issue Dec 16, 2020 · 2 comments
Open

Huntington Hill Method assigns a 0 for allocation #18

ebrewer1 opened this issue Dec 16, 2020 · 2 comments

Comments

@ebrewer1
Copy link

ebrewer1 commented Dec 16, 2020

Hi, I was trying to apportion US Senate seats using the Huntington-Hill Method using Census Estimates, and for some reason, my dataset produced a 0 for Connecticut. Interestingly, in some years CT did get a seat, but in others it didn't. I calculated the percentage population of CT of the whole US for each year, and it seems that after 2010, which is the first row in the attached data frame, the Connecticut value goes to 0, even though it isn't the smallest state by population. Is there a reason why this is happening?
Screen Shot 2020-12-16 at 2 44 56 PM

This second image is of the 2011 population data, and the senate seat estimates. Connecticut is at 0 strangely
Screen Shot 2020-12-16 at 2 48 10 PM

@crflynn
Copy link
Owner

crflynn commented Dec 17, 2020

It could be a bug. Could you provide example code so I can try to debug?

@wtchen
Copy link

wtchen commented Jun 1, 2022

@crflynn See apportionment.huntington_hill([5609968,2873709,83801,16295,10107,6467], 17)

The results seem counter-intuitive. Either every party should receive one seat (ideal, since this is how the US does it), or only parties which receive votes over a certain threshold (e.g. Hare quota) should receive seats.

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

3 participants