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

Ballots (Valid) incorrectly aggregated to election level #17

Closed
bradbeattie opened this issue Apr 16, 2017 · 1 comment
Closed

Ballots (Valid) incorrectly aggregated to election level #17

bradbeattie opened this issue Apr 16, 2017 · 1 comment
Labels

Comments

@bradbeattie
Copy link
Owner

I think this one has to do with some ridings having multiple candidates in older elections. If we're naively summing up ballots per candidate as our total valid ballots sum, those ballots will be erroneously considered multiple times.

bradbeattie added a commit that referenced this issue Apr 16, 2017
@bradbeattie
Copy link
Owner Author

Fractional ballot counts added to address this issue. If a historical riding elected two MPs (e.g. Halifax, Victoria), the LoP would count that as multiple votes for one person (e.g. http://www.lop.parl.gc.ca/About/Parliament/FederalRidingsHistory/hfer.asp?Language=E&Search=Gres&genElection=5&ridProvince=2&submit1=Search).

victoria-bc-5th-general

So to fix this, I've added a Ballots (Fractional) column that divides by the number of seats per riding, typically 1. This brings the number of valid ballots to expected in line with total ballots (below).

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

No branches or pull requests

1 participant