Monday, 14 January 2013

The Supreme Court Justice Death Calculator

61975253 WASHINGTON - OCTOBER 08: U.S. Supreme Court Associate Justice Antonin Scalia (L) and Chief Justice John Roberts talk while posing for photographs in the East Conference Room at the Supreme Court building October 8, 2010 in Washington, DC. This is the first time in history that three women are simultaneously serving on the court. (Photo by Chip Somodevilla/Getty Images) *** Local Caption *** Antonin Scalia;John Roberts

Chip Somodevilla

') .addClass(justices[justiceid]['ideology']) .css('background','url('+path+'/graphics/tombs/tomb'+(justiceid+1)+'.png)') .appendTo('#graves') .attr('id','grave_'+justiceid) .data('justiceid',justiceid) .click(function(){ revive($(this).data('justiceid')); $(this).remove(); assess(); }) .hover(function(){ $(this).append(''); },function(){ $(this).find('.angel').remove(); }) criteria['specific'].push(justiceid); var ideology = justices[justiceid]['ideology']; available[ideology]-=1; available['any']-=1; $('#count_'+ideology).html(available[ideology]) $('#count_any').html(available['any']); } function revive(justiceid){ criteria['specific'].splice(criteria['specific'].indexOf(justiceid),1); $('#grave_'+justiceid).remove(); $('#btn_justice'+justiceid) .addClass('active') var ideology = justices[justiceid]['ideology']; available[ideology]+=1; available['any']+=1; $('#count_'+ideology).html(available[ideology]) $('#count_any').html(available['any']); } $('#btns_generic .btn').click(function(){ var ideology = $(this).data('ideology'); if(available[ideology]>0 && available['any']>0){ addGeneric(ideology); assess(); } }) $.fn.reviveGeneric = function(){ var ideology = $(this).data('ideology'); criteria[ideology]--; if(ideology!='any'){available[ideology]++}; available['any']++; $('#count_'+ideology).html(available[ideology]); $('#count_any').html(available['any']); $(this).unbind().remove(); } function addGeneric(ideology){ //add a generic justice to the graveyard criteria[ideology]++; available[ideology]--; $('#count_'+ideology).html(available[ideology]); if(ideology!='any'){ available['any']--; $('#count_'+'any').html(available['any']); } $('') .addClass(ideology) .appendTo('#graves') .data('ideology',ideology) .click(function(){ $(this).reviveGeneric(); assess(); }) .hover(function(){ $(this).append(''); },function(){ $(this).find('.angel').remove(); }) } function killAllSpecificOfIdeology(ideology){ for(var a=justices.length-1;a>=0;a--){ if(justices[a]['ideology']==ideology){ kill(a); } } } function reviveAllOfIdeology(ideology){ $('.grave.'+ideology).each(function(){ if($(this).hasClass('generic')){ $(this).reviveGeneric(); } else{ revive($(this).data('justiceid')); } }) var max = ideology=='l'?4:5; available[ideology]=max; criteria[ideology]=0; } function consolidateCriteria(){ if(criteria['any']==9||available['any']==0){ reviveAll(); killAllSpecificOfIdeology('l'); killAllSpecificOfIdeology('c'); criteria['any']=0; } if(criteria['l']==4||available['l']==0){ reviveAllOfIdeology('l'); killAllSpecificOfIdeology('l'); } if(criteria['c']==5||available['c']==0){ reviveAllOfIdeology('c'); killAllSpecificOfIdeology('c'); } var ideos = ['any','c','l'] for(var i=0;i 0){ $('#btns_generic').find('.'+ideos[i]).addClass('active'); } } } function assess(){ consolidateCriteria(); if(criteria['specific'].length>0||criteria['c']>0||criteria['l']>0||criteria['any']>0){ theReadout .html(buildString(criteria)+':') theProbabilityHere .html(simulate(10000,criteria['specific'],criteria['c'],criteria['l'],criteria['any'])); theGraveyard.add(theProbability).show(); } else{ theGraveyard.add(theProbability).hide(); } } function buildString(criteria){ var s = ''; s+='The probability of at least '; var ideology_deaths = {'l':0,'c':0}; if(criteria['specific'].length>0){ for(var i=0;i'+justices[criteria['specific'][i]]['name']+'' if(i0){ if(criteria['specific'].length>0){ s+=' and'; } s+=' '+''+criteria['l']+(ideology_deaths['l']>0?' more':'')+' liberal justice'+(criteria['l']>1?'s':'')+''; } if(criteria['c']>0){ if(criteria['specific'].length>0 || criteria['l']>0){ s+=' and'; } s+=' '+''+criteria['c']+(ideology_deaths['c']>0?' more':'')+' conservative justice'+(criteria['c']>1?'s':'') + ''; } if(criteria['any']>0){ if(criteria['specific'].length>0 || criteria['l']>0 || criteria['c']>0){ s+=' and'; } s+=' '+''+criteria['any']+(ideology_deaths['c']>0||ideology_deaths['l']>0||criteria['c']>0||criteria['l']>0?' more':'')+' justice'+(criteria['any']>1?'s':'') + ''; } s+=' dying by 2017'; return s; } function toss(){ //returns an array indicating whether each justice has died in this toss permutation = [] var len = justices.length; for(var i=0;i=0;i--){ if(permutation[specific[i]]){ return false } } //check if, excluding the specific dead, at least n justices are dead, n = $ls var lsDead=0; for(var i=permutation.length-1;i>=0;i--){ //for every person in permutation if(specific.indexOf(i)==-1){ //exclude people specifically dead if(justices[i]['ideology']=='l'){ //include only ls if(!permutation[i]){ lsDead++; } } } } if(lsDead=0;i--){ //for every person in permutation if(specific.indexOf(i)==-1){ //exclude people specifically dead if(justices[i]['ideology']=='c'){ //include only cs if(!permutation[i]){ csDead++; } } } } if(csDead=0;i--){ if(permutation[i]==false){ totalDead++; } } if(totalDead-(specific.length+ls+cs)0?(100*conditionsMet/n)+'%':'Less than .01%'; } }) if(!Array.indexOf){ Array.prototype.indexOf = function(obj){ for(var i=0; i

Add to the Graveyard

Add a Generic Justice

Any Justice

9 remaining

Any Conservative Justice

5 remaining

Any Liberal Justice

4 remaining

Add a Specific Justice

Scalia

Kennedy

Thomas

Alito

Roberts

Ginsburg

Breyer

Sotomayor

Kagan

Graveyard ? Click a gravestone to resurrect ? Resurrect All

Probability ? Based on 10,000 simulations

Odds are at least one Supreme Court Justice will die in the next four years. President Obama surely knows this. And when the American public voted last November, they surely knew it, too.

What are the odds that it will be Justice Scalia? How likely is it that two conservatives will die? Justice Ginsberg? Using publicly available data from the Centers for Disease Control, we can get rough odds for many different scenarios. It's rough because it assumes, to put it briefly, that Clarence Thomas has the life expectancy of the average 62-year-old black man. Which is likely not true. But it is true that with four justices in their 70s?and Ginsburg turning 80 this year?this Supreme Court is one of the oldest in a long time. As the late great statistician John Tukey put it, ?without assumptions there can be no conclusions.? So let?s make some assumptions, for the sake of grim fun.

MySlate is a new tool that lets you track your favorite parts of Slate. You can follow authors and sections, track comment threads you're interested in, and more.

?

Source: http://feeds.slate.com/click.phdo?i=e7f037320c8456afe6547d0188745561

road conditions newt gingrich wives at last al green gina carano burger king delivery etta james at last

No comments:

Post a Comment