to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
If you're going to a social event with lots of people, what is your risk of coming into contact with someone who has been infected by the coronavirus?
Alex Tabarrok posted the math that can provide insight into the answer to that question, which we'll convert into a tool you can use to run your own scenarios. Here's how he describes the math:
The mathematics for calculating the probability of exposure given the number of carriers in a population and group size aren’t difficult but they can be surprising. Even a low number of carriers can generate a relatively high probability for reasonably sized groups. For example, assume you run a firm of 1000 people in the San Francisco Bay Area (population 8 million.) Let’s suppose that there are just 500 carriers in the area. In this case, assuming random draws, the probability that at least one of your employees is a carrier is 6%. You can run your own calculations at Wolfram Alpha following this format:
p=8000000, c=500, g=1000, 1-1(1-c/p)^g //N
where p is the population size, c is the number of carriers, g is the group size and the //N at the end isn’t a division but a command to Wolfram Alpha to give you a numerical answer.
We're huge fans of Wolfram Alpha, but since the data entry is a bit cumbersome, you'll hopefully find the user interface in the following tool to be a bit more friendly. If you're accessing this article on a site that republishes our RSS news feed, please click through to our site to access a working version.
One important thing to note is that the probability the tool calculates assumes that carriers are randomly distributed among the whole population. In practice, many will be concentrated within smaller groups of the population, where effective quarantine practices, or what the kids are calling "social distancing" these days, will reduce the probability of exposure.
Alex makes the key point for what we can learn from the math if you're thinking of going to a public event while the risk of viral infection remains high:
Now here is the most important point. It’s the size of the group, not the number of carriers that most drives the result. For example, suppose our estimate of the number of carriers if off by a factor of 10–that is instead of 20,000 there are just 2000 carriers in the United States. In this case, the probability of at least one carrier at a big event of 100,000 drops not by a factor of ten but just to 45%. In other words, large events are a bad idea even in scenarios with just a small number of carriers.
You can confirm that insight using the tool above, or if you prefer, here is Joshua Weitz' COVID-19 Event Risk Assessment Planner that presents the data visually:
Numbers like these are why the NBA has suspended its season.
Labels: coronavirus, health, probability, tool
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.