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 latest edition of the Federal Reserve Board of San Francisco's letter, economists John Fernald and Bharat Trehan ask the our headline question for the day (via Greg Mankiw). Unlike the most avid recession hounds, they've been using the method developed by Jonathan Wright, for which we've dedicated a tool here at Political Calculations!
Here's the key graph from the SF Fed letter, which tracks the recent history of the probability of recession from 1964 through November 8, 2006:
It certainly appears that the risk of recession is rising, so it seems like a good idea to update the SF Fed's calculations with the latest numbers. Now, to use Wright's method, you need to average a quarter's worth of data for the spread between the 3-month and 10-year Constant Maturity Treasury yields, as well as for the Federal Funds Rate.
Going back over a one-quarter period, beginning August 23, 2006 and ending November 24, 2006, we find the following average data:
10-Year = 4.70%
3-Month = 5.02%
Federal Funds Rate = 5.25%
Using our tool, this gives the current probability of a recession beginning in the U.S. sometime within the next 12 months to be 46.4%. Looking at this data over the past several weeks, the probability of recession is trending higher.
Regular users of our tool know that we point to Yahoo's composite bond rates for the Treasury data. These yields are discounted from the Constant Maturity series and so far, we've found them to be a fairly good substitute for the data averaged over a quarter, which isn't directly available on the web.
Using this daily data, we find the probability of recession beginning in the next 12 months to be 47.4%, which we obtained using the discounted daily treasury rates for the 10-Year = 4.54% and the 3-Month = 4.89% with the same Federal Funds Rate for November 24, 2006.
Finally, if we use the closing bell data for the Constant Maturity Treasuries for November 24, 2006, the tool returns a recession probability figure of 51.6%. As with any single data point, this may be a spike, it may be random noise, or it may be a real trend. That's why Wright uses the data averaged over a one quarter period of time. In any case, it provides a point of comparison for Fernald's and Trehan's November 8 data point in the table above, which appears to be slightly under the 50% mark.
We'll go more into this topic in the days ahead, but for now, we're not prepared to make the call for an imminent recession, as the conditions we've previously noted as being essential in making the call have yet to occur.
Fernand and Trehan conclude the SF Fed's letter by noting that:
... not only are recessions hard to predict, it is even hard to tell that the economy is in a recession once it has begun.
Well, for that, we would rely on the recession probability index developed by James Hamilton and Marcelle Chauvet, which would provide the earliest, best indication that the U.S. economy has entered into recession.
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.