j3camero / canada-election-forecast

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

Improve redistricting calculation #13

Open j3camero opened 8 years ago

j3camero commented 8 years ago

Currently the 2013 redistricting is handled by calculating the projections for the old ridings then taking a linear weightings of those results according to the total population overlap between the new and old ridings. For example, the projection for a new riding composed of 40% old riding A and 60% old riding B is 0.4_A + 0.6_B.

But I can do better. In addition to the total population "movement" between the old ridings and new ridings, I've got a record of which actual polls moved. This could help bigtime if an old riding was split along a natural party support boundary.

j3camero commented 8 years ago

Follow up with Heather when this is done.

KelseyDH commented 8 years ago

On wikipedia there is already quite a lot of data on most ridings showing redistributed election results based on poll. Couldn't that just be used?

j3camero commented 8 years ago

True that. This problem is already fixed for those ridings that have local riding polls on Wikipedia. The others are still using the imprecise weighted mix of old ridings method. This is so quick to fix, I've really just gotta sit down and bang it out. Tomorrow.

KelseyDH commented 8 years ago

Yeah looking into the wikipedia redistributed results numbers they appear to come from Pundits Guide. Its a little unclear whether they use a percentage of the redistributed results or redistribute based on geographic polling results. If you have the results redistributed by geographic polling results it would be interesting to see them.