j3camero / canada-election-forecast

Code that forecasts the results for each electoral district (riding) in the Canadian 2015 federal election
Apache License 2.0
27 stars 2 forks source link

Make the model consider independent candidates in the calculations #3

Closed j3camero closed 9 years ago

j3camero commented 9 years ago

A first simple approach is to lump together the small parties and independent candidates into a single "other" category. Would be really interesting if any of the independent candidates popped up as the calculated strategic vote.

j3camero commented 9 years ago

This issue can be solved along with the riding-specific poll data, since there's an "other" category already existing in this data source:

https://en.wikipedia.org/wiki/Opinion_polling_in_the_Canadian_federal_election,_2015_by_constituency

j3camero commented 9 years ago

Done

https://github.com/j3camero/canada-election-forecast/commit/5f0d6d0ceb69c53a307e2890773f59ea42336c5f changes the mathematical model

https://github.com/j3camero/canada-election-forecast/commit/2dd9bf5929ea36a02443b3d699b4f60361b62c16 adds the display logic to the website. New column of numbers, new bar in the bar charts.