Resources for "A Real-Life Data Project for an Interdisciplinary Math and Politics Course"
Mathematica notebook to process data
Mathematica notebook to analyze dataThis notebook (which should work in any recent version of Mathematica, although it was created in 7.0) can convert raw San Francisco data into a more useful comma separated value format, "clean" the data by removing duplicates or blanks, and compute the winner of the election using the Borda, plurality, instant run off, and Condorcet methods.
Raw San Francisco data
The City of San Francisco makes election data available via their election archive at: http://www.sfgov2.org/index.aspx?page=1485. In case that data should someday not be available, I have stored here some interesting past data.November 2008 data
November 2010 data
CSV data (created by the Mathematica notebook from the raw data)
November 2008 data
- Board of Supervisors District 1 (no dups) (no blanks and no dups)
- Board of Supervisors District 3 (no dups) (no blanks and no dups)
- Board of Supervisors District 11 (no dups) (no blanks and no dups)
November 2010 data
- Board of Supervisors District 2 (no dups) (no blanks and no dups)
- Board of Supervisors District 6 (no dups) (no blanks and no dups)
- Board of Supervisors District 10 (no dups) (no blanks and no dups)