Death Spiral Warning Graph

[This article was first published on Timely Portfolio, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

In the death spiral scenario, rates go up while the currency goes down.  Here is the way to watch that.  I’m not saying that death spiral of US Dollar and interest rates occurs, but without significant action to restore confidence in fiscal and monetary policies, it is almost certain.  Fortunately free markets and a democracy might stop the spiral early, but it appears a mini-crisis is necessary to force action.

via StockCharts.com

And when we add this as the denominator or pricing mechanism for the S&P 500 (transformation requires removing natural $ pricing first), the chart looks like this.  The transitory fake improvement in stock prices since 2008 driven by aggressive monetary action is much clearer.  Anything through 14.3 on the green line is indicative of the first phase of this spiral.

 fed fred rates dollar sp500

And to throw a little R into this, let’s look at the rolling correlation of the SP500 to the 10y/US$ ratio.  The correlation magically increases in Summer 1998 with Long Term Capital Management and Russia default, and the Fed put became entrenched.

From TimelyPortfolio

 

 

R code:

require(quantmod)
require(PerformanceAnalytics)

#get currency rate and stock data from the FED FRED data series
getSymbols(“DGS10″,src=”FRED”) #load Fed 10y rate
getSymbols(“DTWEXM”,src=”FRED”) #load Fed Dollar
getSymbols(“DTWEXO”,src=”FRED”) #load Fed Dollar Other
getSymbols(“SP500″,src=”FRED”) #load Fed SP500

returns<-merge(monthlyReturn(to.monthly(DGS10/DTWEXM)),monthlyReturn(to.monthly(SP500)))

corSP10USD<-runCor(returns["1973::2011-02",1],returns["1973::2011-02",2],n=6)

chartSeries(corSP10USD,theme=’white’,name=”S&P 500 Rolling 1y Correlation with US$ and US10y Rates”)

To leave a comment for the author, please follow the link and comment on their blog: Timely Portfolio.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)