Wisconsin Voter Turnout By County

Using the raw election data that I show how to get in my last post, I wrote a script to process the results at a county level. By comparing the numbers to the 2009 Census population estimates (the 2010 actual census results aren't available yet), my script displays the percentage of voter turnout, the county name, and ranks them (highest turnout first).

These numbers are not exact for a couple reasons:
1) The 2009 Census numbers are an estimate
2) From the Census estimate, I use the number of residents in a county over the age of 18. For various reasons, not all of the residents over 18 may actually be eligible to vote.

I am assuming that the margin of error caused by these issues is consistent enough across the counties that the results generated by the script still give a good representation of the exact numbers.

Below is the turnout list generated by my script for Wisconsin counties:

[1] 65.50%: Ozaukee County, WI
[2] 63.56%: Waukesha County, WI
[3] 60.76%: Door County, WI
[4] 60.44%: Bayfield County, WI
[5] 59.16%: Vilas County, WI
[6] 59.16%: Washington County, WI
[7] 56.74%: Calumet County, WI
[8] 56.57%: Dane County, WI
[9] 53.85%: Price County, WI
[10] 53.83%: Oneida County, WI
[11] 53.43%: Sheboygan County, WI
[12] 51.45%: Kewaunee County, WI
[13] 51.02%: Marquette County, WI
[14] 50.55%: Jefferson County, WI
[15] 50.38%: Vernon County, WI
[16] 50.21%: Portage County, WI
[17] 49.87%: Columbia County, WI
[18] 49.74%: Washburn County, WI
[19] 49.51%: Marathon County, WI
[20] 49.45%: Lincoln County, WI
[21] 49.21%: Wood County, WI
[22] 49.07%: Outagamie County, WI
[23] 49.04%: Iron County, WI
[24] 49.02%: Sauk County, WI
[25] 48.83%: Iowa County, WI
[26] 48.82%: Fond du Lac County, WI
[27] 48.72%: Green Lake County, WI
[28] 48.67%: Manitowoc County, WI
[29] 48.56%: Rusk County, WI
[30] 48.40%: Florence County, WI
[31] 48.30%: Sawyer County, WI
[32] 48.29%: Burnett County, WI
[33] 48.18%: Racine County, WI
[34] 47.90%: Green County, WI
[35] 47.85%: Buffalo County, WI
[36] 47.85%: Trempealeau County, WI
[37] 47.80%: Ashland County, WI
[38] 47.48%: Waupaca County, WI
[39] 47.47%: Winnebago County, WI
[40] 47.42%: Milwaukee County, WI
[41] 47.07%: Oconto County, WI
[42] 47.06%: Brown County, WI
[43] 47.00%: Eau Claire County, WI
[44] 46.99%: Lafayette County, WI
[45] 46.74%: La Crosse County, WI
[46] 45.94%: Crawford County, WI
[47] 45.86%: St. Croix County, WI
[48] 45.80%: Taylor County, WI
[49] 45.45%: Chippewa County, WI
[50] 45.43%: Langlade County, WI
[51] 45.43%: Dodge County, WI
[52] 45.27%: Shawano County, WI
[53] 45.12%: Walworth County, WI
[54] 45.06%: Forest County, WI
[55] 45.03%: Richland County, WI
[56] 43.99%: Clark County, WI
[57] 43.72%: Waushara County, WI
[58] 43.63%: Jackson County, WI
[59] 43.59%: Polk County, WI
[60] 43.44%: Barron County, WI
[61] 43.39%: Marinette County, WI
[62] 43.33%: Douglas County, WI
[63] 43.11%: Rock County, WI
[64] 42.83%: Adams County, WI
[65] 42.71%: Grant County, WI
[66] 42.58%: Pepin County, WI
[67] 42.10%: Pierce County, WI
[68] 40.37%: Monroe County, WI
[69] 39.72%: Kenosha County, WI
[70] 39.55%: Dunn County, WI
[71] 38.70%: Juneau County, WI
[72] 25.18%: Menominee County, WI

Comments (1)

RAW US Election Data (In JSON Format)

Ok, so I'll start out by saying that I'm not happy with the results of the Wisconsin elections. So, "52%"… you suck.

After checking the election map at http://news.yahoo.com/page/2010electionsdashboard this morning, I decided to try to find a source of of the raw election numbers by county.

Apparently this is super top secret data. But after a little playing with yahoo's map, I got it to spit out the URLs it's using as the data source. These are in JSON format, so don't expect to be able to open up the file and just read it. I might work on a small script to search the files.

US Senate: http://d.yimg.com/b/api/data/us/news/elections/2010/result/us_senate.json
US Governor: http://d.yimg.com/b/api/data/us/news/elections/2010/result/governor.json
US House: http://d.yimg.com/b/api/data/us/news/elections/2010/result/us_house.json


[Update] How to get county data:
This took a bit more work. Each state has its own data file with the url in the format:

http://www.washingtonpost.com/wp-srv/elections/2010/results/11/02/[STATE_ABBR]_complete.json

Just replace [STATE_ABBR] with the abbreviation of the state you want data for.
For example, Wisconsin (WI) would be: http://www.washingtonpost.com/wp-srv/elections/2010/results/11/02/wi_complete.json


JSON is relatively trivial to convert into XML if you're more comfortable working with XML. Here's an example javascript that converts JSON to XML.

Comments (8)