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
We've been peering into our crystal ball here at Political Calculations - the one that only looks at the past to tell us the future - to tell us where the U.S. Gross Domestic Product will be. When we want to forecast GDP, we turn to our "Climbing Limo" tool to create our crystal ball predictions. And what we've found in the future of the next three quarters is presenting more questions than we have answers.
What kind of questions, you ask? Well, for starters, how about these:
We present the following table, which we generated using historical data and the forecasts viewed through our crystal ball to underscore why we're asking these questions. We've highlighted the data for the economic quarter that will be released later this week:
Historical and Forecast Quarterly U.S. Real GDP | ||||
---|---|---|---|---|
Year-Quarter | GDP (Real, $billions) | Smoothed Growth Rate (2 Quarters) | BEA Growth Rate (1 Quarter) | Comment |
2007-Q1 | 11733.0 | 5.72% | 3.76% | Forecast Using 2005 Q4 thru 2006 Q2 GDP data. |
2006-Q4 | 11625.2 | 4.21% | 7.71% | Forecast Using 2005 Q3 thru 2006 Q1 GDP data. |
2006-Q3 | 11411.3 | 1.68% | 0.82% | Forecast Using 2005 Q2 thru 2005 Q4 GDP data. |
2006-Q2 | 11388.1 | 4.06% | 2.56% | Historical data. |
2006-Q1 | 11316.4 | 3.65% | 5.58% | Historical data. |
2005-Q4 | 11163.8 | 2.97% | 1.76% | Historical data. |
2005-Q3 | 11115.1 | N/C | 4.18% | Historical data. |
2005-Q2 | 11001.8 | N/C | N/C | Historical data. |
In looking at this backward-looking data, we observed that the lousy real-GDP number we expect this upcoming Thursday was set by the impact of the two major hurricanes that knocked out the U.S.' Gulf Coast's economic production back in the third and fourth quarter of 2005! Why might this be the case, nearly a year after the hurricanes?!
Our best thinking is that a major economic shock, like the effect of a hurricane, shifts economic activity away from when it happens into the future. Where an event is largely forecastable, like a hurricane, this generally means that short term economic activity is shifted - you see a dip for the month of the hurricane that's fully recovered in the following months. Intermediate term economic activity, which is driven primarily by business contracts between six and eighteen months of duration, is largely unaffected, while long term economic activity is nearly entirely unaffected.
What separates the effects of Hurricane Katrina and Hurricane Rita from regular, garden-variety hurricanes is that they caused enough damage, and worse, unpredictibility, to enter the economic calculations of millions of people and thousands of businesses that the effect of these hurricanes is affecting intermediate term economic activity. People and businesses shifted when they started their intermediate term contracts enough, until the full hurricane season of 2005 had passed - and even until when the hurricane season of 2006 would pass, to avoid this risk. We hypothesize that's why our tool may well forecast why this week's GDP data will come in far below the previous quarter's level.
That also leads us to the GDP forecasts for the quarters following this quarter: our tool foretells of some really impressive growth levels! In looking at this data, which will come out three to six months from this week, we can't help but remember the old investor's axiom that the stock market "looks ahead" six months. We wonder if the market isn't anticipating the same growth that our tool seems to indicate is coming.
Hey, if all these predictions pan out, maybe we'll open up a fortune-telling shop!
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.