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
It's Thanksgiving Week 2017, and here at Political Calculations, that means that we'll be devoting the whole week to exploring the centerpiece of this uniquely American holiday in keeping with our annual traditions.
But that doesn't mean that we won't be discussing things like the stock market either - we'll just be loading it up with a healthy serving of Thanksgiving turkey.
Let's get started by doing just that, where we'll update the chart showing our favorite spurious correlation of all time - the apparent relationship that exists between the average live weight of U.S. farm-raised turkeys and world stock prices. The following chart updates that relationship through this point of time in 2017!
If you're the type of person who believes that they can divine the future from any synchronous patterns you identify on charts showing apparently strongly correlated data like this - and the correlation here is indeed strong with an R² of 0.9717 - you should be very worried about the potential for a stock market crash in the near term, seeing as the chart shows that every time that the MSCI world stock index has risen higher than the proportionately scaled average live weight of U.S. farm-raised turkeys, a major correction hasn't been far behind.
We'll also tell you that even after detrending the data to account for the rising linear trends for both data series, the correlation doesn't disappear as you might suspect would happen for a fully spurious correlation. Instead, the R² drops to 0.5315, which might be considered to be a moderately-strong correlation.
And yet, we're happy to confirm that the apparent correlation is genuinely spurious. It's total garbage - the growth of the average weight of turkeys raised on farms in the U.S. is not, in any way that we can identify, connected to the growth of global stock prices.
If you want proof of how worthless this apparent relationship is, just consider that we first featured the spurious correlation between the average live weight of U.S. farm-raised turkeys and global stock prices back in 2014 - and as yet, the major sustained correction in stock prices that would seem to be imminent from this apparent relationship has not occurred.
So when you see charts showing these kinds of seemingly-correlated relationships, take them with a strong grain of salt! You should, at the very least, be able to identify some connection that logically links the two data series being compared. Without such a connection, you're likely just looking at something that, while it might be fun to consider, probably doesn't have much bearing upon or connection to the real world.
Speaking of which, since we've opened the door, if you're reading this article on a site that republishes our RSS news feed that also allows comments, please share your links to examples of fun-but-false correlations. At the very least, the exercise might help you avoid the social disaster minefield that you would find yourself in if you're foolish enough to start talking up politics at this year's Thanksgiving feast by arming you with better and more interesting discussion topics.
Update: If you like puzzles and would like to take on an extra challenge over the holiday, you might consider looking into our detrending observation, where the trends that need to be subtracted from both series to properly detrend them are perhaps not linear ones!
Labels: junk science, stock market, thanksgiving
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.