Thursday, April 2, 2009

How to set your grails app to different environments in IntelliJ

This is something everyone needs to do but my google search did not come up with anything (too easy I suppose). Use the -Dgrails.env as a VM parameter.

Wednesday, April 1, 2009

I pick on the WSJ again: A true cost analysis of home prices

Today's Wall Street Journal article Home Prices: Low, But Still No Bargain by Brett Arends featured a chart comparing the Case-Shiller home price index to average earnings - a metric used to measure true housing cost from Jan 1987 to the present.

Compared to the Case-Shiller index alone this is a useful analysis, but it doesn't take into account that most homes are bought using mortgages, not cash, so the cost of money must be factored in.

It is easy enough to access historical mortgage rates to see the rates people paid to buy homes over this period:
http://research.stlouisfed.org/fred2/series/MORTG/downloaddata?cid=114

The raw WSJ index data behind their snazzy chart can be gleaned from
http://online.wsj.com/public/resources/documents/info-ROI_0904_data.xml

Using a Groovy script I parsed their index data and used a multiplier based on the 30-year mortgage rate. As was done in the article, the resulting data was normalized to the first point in Jan '87 so the graphs would be comparable.
http://en.wikipedia.org/wiki/Fixed_rate_mortgage#Monthly_payment_formula

WSJ index
~prices/earnings


My index
~prices*rates/earnings


Using my "True Cost" index, the summer of 2006 was still very elevated (my index of 150 compared to 100 in Jan '87) but not quite as crazy as it would appear by not taking into account the prevailing mortgage rates (WSJ index 200 compared to 100 in Jan '87).

March of 1989, with its 30-year rate at 11.03%, was also a crappy time to buy a house. The true cost of housing actually did not return to the '89 level until the height of the boom in '06. Refinancing would only offer some comfort to the '89ers- you would have had to wait until August of 1992 to refinance below 8% and until Jan of 2003 to get below 6%.

With today's insanely low rates we see my index is at a manageable 84, similar to May of 1999, instead of the alarming 128 Arends has used as a metric for his article. A dip much below 5% would mean the cheapest mortgaged houses relative to earnings of in over 20 years.