Sun Phases: The Sound of the Eclipse

Craig and I mashed up of two of his creations – Sun Boxes and Moon Phases – for the eclipse on the 21st. If you let the app know your location, it will use local data to begin at dawn, climax during the eclipse’s maximum obscuration, and end at dusk. If you aren’t in the US (or if you want to know what the eclipse “sounds like” in a different location), you’ll also be able to choose a location instead.

Check it out here when the time comes: http://www.craigcolorusso.com/apps/sun-phases/

RSVP on Facebook

Sun Phases: The Sound of the Eclipse

Purple America: 2016 Edition

As I tend to do after presidential elections, I’ve been diving into the data from November 9th, 2016 in order to convince myself that things are much more complex than the narratives on offer in our news media.

This year I came up with a more interactive visualization:
http://deadletterenterprises.com/purple-america/

I also wanted to figure out where my presidential vote might “count” the most, so I made a little table for that that shows both Electoral College weight, as well as “competitiveness” weight: http://deadletterenterprises.com/purple-america/vote-weight.html

Enjoy!

Purple America: 2016 Edition

American Oligarchy by the Numbers

The original wonder twins, John Adams and John Quincy Adams
The original wonder twins, John Adams and John Quincy Adams

Already during my lifetime we’ve had one president (George W. Bush) who hailed from the immediate family of another (George H. W. Bush), and there’s a good chance we’ll be repeating the phenomenon with our next president.

In total, we’ve had five presidents (11.6%) who were at least second cousin¹ to a previous president:

  • John Quincy Adams was John Adams’ son
  • Zachary Taylor was James Madison’s second cousin
  • Benjamin Harrison was William Henry Harrison’s grandson
  • Franklin Delano Roosevelt was both Theodore Roosevelt’s fifth cousin and his nephew
  • George W. Bush is George H. W. Bush’s son

Four of them (9.3%) shared the last name of their familial predecessor: Adams, Harrison, Roosevelt, and Bush.

If Hillary Clinton is elected to the 45th presidency², it will bump those two stats up to 13.6% and 11.4%, respectively.

My question to the sociologically-minded statisticians of the world is: What numbers would we expect if we lived in a true meritocracy, rather than the oligarchy we evidently live in?

Put another way: Given what we know about the genetic makeup of the US population, how often would we expect a president to be at least second cousin to another president sheerly by chance?

¹ If we want to roll super deep with this, it appears that 42 out of our 43 presidents so far have all been related to the British King John Lackland who signed the Magna Carta in 1215.

² Thanks to Grover Cleveland serving two non-consecutive terms, we’ve so far had 44 presidencies but only 43 presidents.


Soon after I posted this to Facebook, my cousin-in-law Daniel Roston came forward with exactly the sort of math I was seeking:

so…i think i can put an upper limit at around [a snowball’s chance in hell] that it would happen by random chance.

assuming an average family size of 4 offspring (high for now, but maybe less high for 1790), and including the presidents’ and their [partner’s] families, i get 256 people with the level of relation of 2nd cousin (i.e., either the president or their partner shares at least as much DNA as a second cousin). Let’s assume all people live at the same time and there are 10^8 people eligible for the presidency.

Then let’s calculate the total number of family members to choose from, since there could be overlap there. The probability that some family member of some president will be among the 256 family members of some other president is 256/10^8. So the probability that they won’t be is 1-256/10^8. We can calculate the probability that none of the family members will be the same person by multiplying together all the individual probabilities that they won’t be the same: (1-256/10^8)^(256*43)=0.972. So removing the family members we expect to be the same person, the total number to choose from is .972*43*256=10,700.

Then the probability that a randomly chosen president will not be among those people is 1-10,700/10^8 and the probability that all 43 will not be is (1-10,700/10^8)^43=0.9954. So the probability that one of our presidents would have been so closely related is 0.0046 and the probability that it would have happened 5 times is…0.0046^5 = 2 x 10^-12.

American Oligarchy by the Numbers

Centering text, but only when there’s just one line of it

I just spent a fair bit of time figuring this out and thought I’d document it in case someone else is looking for the same thing.

What I wanted to do was center some text if there was only one line, but left-align it if the text spilled over to a second (or more) line:

Screenshot 2016-02-21 19.09.50

After going down a bit of a rabbit hole w/r/t ::first-line and :text-align-last, and even considering employing some JavaScript, I realized there’s actually a pretty vanilla way of achieving the effect:

div.parent { text-align: center; }
p.child { display: inline-block; clear: both; margin: 0 auto; text-align: left; }
Centering text, but only when there’s just one line of it