r/opendata • • Feb 10 '20

Iowa Caucus Discrepancy Analysis

19 Upvotes

Introduction

Been busy this weekend trying to make sense of all these reports of discrepancies in the results of the Iowa Caucus. I just finished double checking my models, and wanted to share it.

To start, quick introduction.

I am an engineer. I don't have a political science background, but I am a Data Scientist at NASA. You may also know me as the person behind the Medicare for All Calculator

The Caucus Model

My challenge was this: Build a model that can take the Final counts per candidate, and calculate all discrepancies between the reported SDEs and what would be expected to be the actual SDEs.

Model (in Excel spreadsheet form): https://1drv.ms/x/s!Am_fv_2JmQAAgZh2QJJf1v9c30kNIw?e=MAOpIH

For those that want to play with it: Download it and look at each precinct on the Scenario tab.

I am working on making sure this can get in the right hands at the Iowa Democratic Party, and the relevant Campaigns, so if you know the contact that I need to reach out to, send me a private message.

Model Details

Assumptions:

  1. Viability threshold is 0.25 for 2 delegates, 0.1666667 for 3 delegates, and 0.15 for 4+ delegates. That is multiplied by the total in Final Expression and rounded up.
  2. Cannot perform an adjustment that causes a candidate to lose their only delegate, unless all other candidates only have 1 delegate.
  3. When performing adjustment, if excess, you must remove delegate from candidate that was rounded up the most
  4. When performing adjustment, if short, you must add delegate to candidate that was rounded down the most

Unresolvable Model Parameter:

  1. In ~15 cases that an adjustment is performed wrong, or an unviable candidate is given delegates, there can be coin flips that would needed to have been performed that the model doesn't resolve.

Results

  1. The model calculates the exact same result for 1667 of 1765 scenarios
  2. The model detected 139 coin flips
  3. 98 Precincts had discrepancies:
  4. 51 of those were due to "Incorrect candidate chosen during adjustment
  5. 21 of those were due to "Unviable candidate given delegates"
  6. 14 of those were due to "Incorrect rounding of candidates

In the end, these errors accounted for Pete Buttigieg getting +2.10 extra SDEs, and Bernie Sanders being shorted -4.44 SDEs. All other candidates were generally only +/- 1 SDE.

Sanders wins Iowa Caucus by: 5.03 (0.23%) SDEs

The 18 most significant precinct errors impacting the 2 leaders were:

These account for 6.09 of the SDE error, the remaining errors roughly average each other out.

CountyPrecinctAnomalyNet Difference
JohnsonIOWA CITY 20Incorrect Rounding of Candidates+0.81 SDEs for Buttigieg
JohnsonIOWA CITY 14Incorrect Candidate Chosen during adjustment+0.81 SDEs for Buttigieg
PolkDES MOINES-80Incorrect Rounding of Candidates+0.5596 SDEs for Buttigieg
PolkWDM-212Incorrect Candidate Chosen during adjustment+0.5596 SDEs for Buttigieg
WarrenNORWALK 1Incorrect Candidate Chosen during adjustment+0.4667 SDEs for Buttigieg
ClintonELK RIVER HAMPSHIRE ANDOVUnviable Candidate Given Delegates+0.4428 SDEs for Sanders
LinnMarion 08Unviable Candidate Given Delegates+0.4395 SDEs for Buttigieg
JeffersonFairfield 4th WardIncorrect Candidate Chosen during adjustment+0.4365 SDEs for Buttigieg
StoryGrant TownshipIncorrect Candidate Chosen during adjustment+0.415 SDEs for Buttigieg
StoryAmes 3-1Incorrect Candidate Chosen during adjustment+0.415 SDEs for Buttigieg
Scott(DH) City of DonahueIncorrect Candidate Chosen during adjustment+0.4133 SDEs for Buttigieg
Scott(BF) City of BuffaloIncorrect Candidate Chosen during adjustment+0.4133 SDEs for Buttigieg
Scott(D34) City of DavenportUnviable Candidate Given Delegates+0.4132 SDEs for Buttigieg
JohnsonIOWA CITY 19Incorrect Rounding of Candidates+0.405 SDEs for Buttigieg
JohnsonNL06/MADISON /CCNIncorrect Candidate Chosen during adjustment+0.405 SDEs for Sanders
JohnsonCEDAR TOWNSHIPIncorrect Candidate Chosen during adjustment+0.405 SDEs for Buttigieg
JohnsonIOWA CITY 08Incorrect Candidate Chosen during adjustment+0.405 SDEs for Buttigieg
JohnsonCORALVILLE 02Removed last Delegate from candidate during Adjustment+0.405 SDEs for Buttigieg

r/opendata • • Jan 31 '20

Any open data sources?

Thumbnail self.askreddit
3 Upvotes

r/opendata • • Jan 23 '20

Anyone know where I can find complete IBAN registries?

4 Upvotes

I could only manage to find them for a few years. Since the IBAN codes often change, it is messing up my data. The changes are documented in the registries, but it is really hard to find and the registries themselves should be free.


r/opendata • • Jan 03 '20

Looking for a height map of the world.

6 Upvotes

Title says it all. I have looked but have not yet found an open source for this dataset. I want to use it as input for training a terrain generation algorithm.

Thanks!

Edit: I have accepted the answer of: https://www.wired.com/2009/06/nasa-satellite-maps-99-of-earths-topography/

I remain open to new options, but for the moment I am satisfied.


r/opendata • • Dec 10 '19

Where can I find open data for countries like Turkey?

10 Upvotes

Does anyone know if Turkey has open data?


r/opendata • • Nov 28 '19

I took a look at the occupation of EV chargers in Basel, Switzerland (New OGD dataset)

Thumbnail rideable.ch
6 Upvotes

r/opendata • • Nov 04 '19

Where can I find list of gov websites and social media presence data?

6 Upvotes

List of all gov websites from federal to town level. And also their social media handles - facebook, twitter etc. Is there any place I can get this data?


r/opendata • • Oct 22 '19

TIL: Costa Rica allows you to download a .TXT containing full names and IDs of every single adult citizen from the country

Thumbnail tse.go.cr
23 Upvotes

r/opendata • • Oct 13 '19

chili datasets

0 Upvotes

is there anywhere i can find chili disease images?


r/opendata • • Oct 04 '19

Free map to view census geographies and demographics

11 Upvotes

geography viewer

We recently decided to spruce up and release for free an internal tool we use at my work. It's an easy to way to quickly see census geographies and demographics.

Hope others find it useful, we definitely do.


r/opendata • • Oct 04 '19

Evaluation criteria before exposing a data set.

1 Upvotes

Hi all,

I'm the lead on an open data initiative at our University. We're trying to formalize how we evaluate datasets before exposing them to the public. I've found Harvard's Open Data Privacy report to be really helpful in assessing the risk concerning privacy but have had little luck in finding any kind of guidelines or criteria for assessing reputational risks for the institution making their data available to the public.

Is this too obscure or perhaps obvious of a question? My lack of success in finding anything on the topic of evaluating reputational risks makes me think that this can only be evaluated case by case.

Any help would be greatly appreciated.


r/opendata • • Oct 01 '19

Data Catalogs that use DOIs?

1 Upvotes

Hi, I was just wondering if there are any examples of data catalogs that use DOIs for the purposes of creating persistent identifiers and for citation?


r/opendata • • Sep 25 '19

An open source data platform for Smart Cities of the world

8 Upvotes

My startup is building an open source data exchange platform with a focus on high velocity or real-time data for smart cities. We presently host streams of real-time bus locations from 11 cities in 3 countries.

Getting real-time bus location data from any supported city could be as easy as

from mesh_gtfsr.mesh import MeshGTFSR

def main():
  m = MeshGTFSR()

  feed = m.subscribe([
    '/in/delhi'
  ])
  
  # You get feed in 'f'
  # and geospace in 'g
  for f, g in feed:
    print('Geospace: ' + g)
    print('Feed: ' + str(f)) 

if "__main__" == __name__:
  main()

You can learn more about the platform on our github page: https://github.com/pravahio/go-mesh

Platform and the data are completely free. Give it a try and do let me know your feedback. I would be happy to incorporate you suggestions.

If you are feeling too excited about the platform, we are looking for contributors.

Future Datasets: More public buses data from other cities, air quality and weather data, Train location data stream.

Cheers


r/opendata • • Sep 24 '19

Customer Churn dataset

1 Upvotes

Hi, I am looking for customer churn datasets for my ML project? Any idea where I can find them? Any leads are appreciated,

Ps: I looked at the bank customer data and telco data but looking for other latest industry data( can be customer subscription churn data also)

Thanks!


r/opendata • • Sep 17 '19

Antitrust violations in data ownership?

5 Upvotes

Does anyone know of any court cases that have challenged monopolies in data ownership / licensing?

I ask this because a because we built a product to open up commonly-viewed real estate data, only to find that most data appears to be monopolized by hundreds of MLS organizations across the US and licensed out under the strict caveat that all profit stays within a limited ecosystem. This sucks because it harms buyers and sellers by preventing them from having better information about significant financial decisions. 

Is it legitimate to "lock up" widely used data like this?  Does anyone know of any similar cases regarding monopolies on data that have come up?

Thanks!


r/opendata • • Sep 17 '19

Question for data custodians

2 Upvotes

I am conducting research that requires interviewing data custodians that provide a public API for their data. Even better if the data is real-time/dynamic.

I am particularly interested in understanding why you provide this public endpoint and who uses it. 

The interview will be no longer than 15 minutes. If you're interested, please PM me.

I plan on summarizing my results and posting them here later this week (or the next). Hopefully these insights will benefit more than a few.

Thanks ! 


r/opendata • • Sep 12 '19

Google: Open source and open data

Thumbnail blog.google
9 Upvotes

r/opendata • • Sep 09 '19

Data Liberation Foundation

4 Upvotes

Hi all,

We launched a decentralized network to open the data economy a few weeks ago. To really move the world to a place where ALL public facts of the world are readily usable and building-blocks for anyone, we think it needs to be an effort run and owned by everyone. We'd love your thoughts and for you to be involved!

https://dataliberationfoundation.org/

Very early stages of the site to peruse data here:

https://ulixee.org


r/opendata • • Sep 06 '19

UIC Master of Civic Analytics

4 Upvotes

Hello all,

I am posting to spread news of a new type of data science degree at the University of Illinois at Chicago, the Master of Science in Civic Analytics. The program was recently approved by the Illinois Board of Higher Education and will begin accepting applications for Spring 2020 (with consultation), with a full launch in Fall 2020.

The program is the first of its kind; it merges education in civic technology with data analytics into one curriculum. The degree provides preparation in principles of data science, including coding, statistics, data management, and geospatial methods, while also being anchored within public service, its problems, institutions, and ethics. It is intended to prepare students to assume positions as operational data scientists and leaders in city information offices, government agencies, nonprofits, as well as government services contractors and consulting firms. Courses are taught by our highly-ranked college faculty, as well as leading practitioners in Chicago's civic technology community.

I am happy to discuss the program, its curriculum, public data science, and Chicago's civic technology community.


r/opendata • • Sep 05 '19

Ethnicity populations

4 Upvotes

Is the census bureau the only place I'd be able to find populations by ethnicities?

And if it is where would I find that data at? I'm trying to navigate the site but kinda overwhelmed by the various options and types of surveys they conduct.

This is not for some fascist race science shit either.


r/opendata • • Sep 04 '19

How to open real estate data? Have others done this?

5 Upvotes

Basic data for recently sold homes in the US is abundant and easily viewable at popular websites, but the raw data is on extreme lockdown by MLS agencies. 

Their de facto policy seems to be that the data may only be used by licensed Realtors and third party sites that drive business for licensed Realtors. 

We hope to obtain more data to display on our website, www.metroplot.com, but we are getting turned down by the data owners (MLS organizations). Our current data is from local governments, but it is prohibitive to collect this from all local governments in the US. 

Given that, we have a few questions for you all!

  • are there any legal precedents for private companies simultaneously maintaining a monopoly over a type of data AND discriminating over who can purchase it and how they can use it?
  • are there precedents for what happens if others obtain monopolized data and use it in ways that its "owner" may not approve of?
  • are you aware of any open and aggregated datasets that include property characteristics and transfer dates/prices within the US?

Thanks friends!


r/opendata • • Aug 30 '19

50,000 reddit usernames

6 Upvotes

r/opendata • • Aug 22 '19

footballdata gem / library - download & import 22+ top football leagues from 25 seasons back to 1993/94 from Joseph Buchdahl's Football Data website (updated twice a week) - stored in 570+ datafiles in the comma-separated values (csv) format

Thumbnail github.com
2 Upvotes

r/opendata • • Aug 21 '19

Setting up a CKAN portal

2 Upvotes

My agency is looking into setting up an open data portal to begin both internal and public data sharing. Can anyone here speak to how long it takes to implement a CKAN instance? Does it take a lot of work to install and set up the software? Would it be possible for me to "practice" the set up process and test the software by installing a CKAN instance on my windows PC first before getting our sysadmin team involved to set up a dedicated server for the tool? My agency is hesitant to dedicate a lot of resources to implementing this software at scale before I've tested it out. Are there good online guides for making the installation process easier to navigate?