Written on 15 Feb 2020

Dizzying Democratic delegate... math

A short rant about Democratic delegates and a calculator tool to go along with it.

Elections in the U.S. are weird. So many of them aren't measured in the number of people who vote for a candidate but instead are measured in how many points a campaign can score.

The most famous example of this is the Electoral College. But we're well into the Democratic presidential primary, and it has its own set of points: "delegates".

The goal for each campaign is still to get the most votes possible but the winner isn't as simple as that. The winner is the person who can get to 1,991 delegates, which would give them 50%+ at the Democratic National Convention later this year in Wisconsin. Having a majority of delegates means the candidate gets the party's nomination.

Delegates are mostly based on vote counts, but there are some sharp edges to the delegate math. For example any candidate with less than 15% gets 0 delegates.

So small fluctuations within an election can matter for the eventual delegate count. I wanted to see the allocation algorithim in action so I made a small tool to determine how delegates are awarded within a single jurisdiction. Delegates are awarded at multiple jurisdications, such as the state level and generally the Congressional district level, though depends on the state.

We're starting with an assumption that each candidate got 100 votes and that there are 50 delegates available in the jurisdiction. You can change either of those assumptions below. When you change any of the fields below, the delegate count will update.

If you're done playing around or looking for a place to start, expand this section to see something I find interesting.

Let's assume that everybody's doing reasonably well and getting 20,000 votes. Except one candidate is clearly leading. Imagine that Bloomberg bought enough ad space and paid enough influencers to garner 33,333 votes.

Well, that's all well and good and everybody's getting some delegates, though Mike is winning in the vote count and therefore is also winning in the delegate race. He gets 12 while everybody else is getting 8.

But what if he gets just one more vote? What if one of his supporters got their neighbor to come with them to the polls and cast that 33,334th vote for El Bloombito?

That one vote throws everybody else below the 15% threshold and all the delegates go to a single candidate. In the calculator, Bloomberg's percentage doesn't change with just one vote because of rounding.

Now, of course there's going to be a point that triggers the threshold. This isn't to argue the merits of a 15% threshold, just showing one consequential effect of it.

Methodology

I used the algorithim presented on The Green Papers website. As I understand it, (which is also how the calculator works), delegate allocation is as follows:

  1. Take all the candidates and calculate their percentage of the vote
  2. Drop all of the candidates (and associated votes) if they do not clear the threshold, which is generally 15%
  3. Recalculate the percentage of the remaining vote that each candidate got
  4. Multiply the percentage by the total number of delegates for that jurisdiction
  5. Take note of the fractional remainders, if any, but remove them to determine the number of delegates awarded
  6. Give a single delegate to the candidate who had the highest fractional remainder