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
In the process of testing out and selecting a new color scheme for displaying complex data on a Microsoft Excel chart, we somehow managed to accurately forecast the overall trajectory of stock prices last week. Over a week in advance.
Here's how we did that. The complex data we were displaying was generated from our standard model of how stock prices work, which combines future-oriented data related to the amount of dividends expected in future quarters with historic stock prices, which our model uses as base reference points for projecting stock prices into the future.
Specifically, our standard model for forecasting stock prices incorporates the historic value of the S&P 500 from 13 months earlier, 12 months earlier and one month earlier in projecting a particular day's most likely stock prices. The chart below shows the trajectories for each that apply in 2015 (the heavy black line represents current day stock prices).
If you pay close attention to our chart, you'll find that the current day S&P 500 is almost perfectly following the trajectory that stock prices did exactly one month earlier, when investors were weighing the potential negative impact of falling oil prices on the growth prospects upon the U.S. stock market in the future. That dynamic is what our model has picked up upon.
The fact that it would appear to be repeating is a phenomenon that's largely driven by the U.S. bond market. Our thinking is that the investment decisions that were made in December 2014 are being repeated again in January 2014 with the maturation of one-month U.S. Treasuries. It's kind of like an aftershock after an earthquake, or in this case, a noise event in the U.S. stock market, where a past event is actually driving stock prices in the current day, to the extent that such an event can.
The degree to which events in the past might drive today's aftershocks or to more often dissipate as yesterday's echoes would really appear to depend greatly upon what investors expect for the future as the maturity and option expiration dates associated with their previous investment choices come to pass and provide the means for executing new decisions. If the future doesn't change in the interim, why should the investment decisions of investors change?
So it's actually luck that is behind that our model's ability to have accurately projected the trajectory that stock prices followed last week. It's just fun to see that it's possible to build a particular kind of luck into a mathematical model!
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.