IN THIS POST we’ll collect several visualizations of house prices I’ve shared on Twitter the past few days and have a little discussion. In prior posts I’ve also included code for some of these graphs, and the others are mostly straightforward extensions of the earlier examples.
This is Part 4 of my series of posts on visualizing house prices. Below are the earlier posts that have data and R code for generating plots:
There are some cases where I blended unemployment data from the U.S. Bureau of Labor Statistics (BLS) with the house price data. I’ve got some code that downloads BLS data directly from their webpage and merges it with the house price data. As that involves some additional data wrangling considerations we’ll cover that in a future post.
Let’s get to the graphs.
Throughout, we’ll be looking at the Freddie Mac House Price Index (FMHPI) for the 50 states plus the District of Columbia and over 300 metros areas. The history of the U.S. index vs the 50 states plus D.C. and the history of the U.S. index vs over 300 metros are contained in the plots below:
U.S. vs States:
And here’s an individual line plot for each of the 50 states:
And and animated gif version:
U.S. vs Metros:
We’ll be manipulating these series to create a variety of views on house prices.
House price lollipop
A lollipop chart (link for R code) is a special type of chart that connect a line segment to a dot. They combine the feature of dot plot that allows you to compare position with bar charts which allow you to compare length. We can use this chart to compare the position of house prices (their level) vs their change (their percent difference). Here is one for the 50 states plus D.C. for March of 2016:
This chart shows the Freddie Mac House Price Index (FMHPI) for the 50 states plus the District of Columbia. The dot corresponds to the value of the index in March of 2016. The tail extends to the range of the minimum and maximum value in the last 12 months for the house price index in that state. Each state is color coded according to the percentage change in the house price index over the past 12 months.
Here’s an animated version of this chart, rolling through each month since January of 2000. Because the index is normalized at 100 in December of 2000 the dots all line up 12 frames. Then as we roll forward through the last decade and a half, we see states rise and fall through motion, the length of the tail, and color.
Here’s another version of the chart, where I’ve added a pink box corresponding to the pre-2008 maximum in the FMHPI and the post-2008 minimum.
After I created this chart I realized that the y axis, where I’ve encoded state, doesn’t add any information. What if we added another dimension to the chart? Because the FMHPI is displayed on a log scale, the length of the segments corresponds to annual percentage changes (if the endpoints are the current month and 12 months ago). In the following chart, I encoded the percentage change in the y axis for over 300 metro areas:
Here the vertical distance measures the annual percentage change in index, while the x axis measures the level of the index. I’ve also added histograms to the x and y axis, capturing the relative frequency of observations.
After I created this chart I realized I was missing an opportunity. I could extend the tail to the value from a year ago in both the x and y axis. Here’s the modified version, for March of each year since 2005:
Seasonality in house prices
If you study housing markets, you’ll quickly learn that seasonality is a big deal. Housing market activity varies widely throughout the year, be it home purchases or housing construction. The chart below which I blogged about last time shows seasonal patterns in metro house prices.
House Price and Unemployment
I’ve made several graphs recently comparing the unemployment rate for a state or metro to house prices.
This one shows states and was compared to a bug:
@lenkiefer I love that it looks like a bug crawling around!— Mara Averick (@dataandme) May 12, 2016
This one compares metros:
And here’s a panel version of the metro chart:
Correlation of metro house prices and U.S. index
Correlation of house price movements is an active area of research, with many researchers studying in depth the relationships between house price movements across areas. Here are some visualizations that demonstrate the correlations.
Metro house price index and U.S. index
This gif compares each metro area (grouped by principal state) to the U.S. in terms of the index. I’ve plotted the U.S. index on the x axis (using a log scale) and the metro index (using a log scale) on the y axis. In general there’s fairly strong correlation, but some markets seem to permanently depart from the regression line.
Let’s consider Dallas and Los Angeles:
In Dallas, there seem to be permanent departures from the solid regression line. Los Angeles on the other hand, seems to follow the national trend very closely (though the slope of the Los Angles line is well above the 45 degree line).
Let’s try to estimate it using the monthly percent change (at an annualized rate):
Again we can focus in on just Dallas and Los Angeles:
Here we see that the points tend to cluster around the regression loan, but with very different slopes. Dallas, which lies below the 45 degree line tends to experience house price growth that is subdued with respect to national trends. Los Angeles, seems more responsive. Let’s examine these relationships across all the metros.
In the plots below we compare the slope coefficient from each scatterplot. We can quickly notice some regularities:
Focus in on a four large states:
All the metros in California and all but two in Florida have a coefficient greater than one, while all the metros in Pennsylvania and Texas have a coefficient less than one. This means that on average when house prices rise (fall) 3 percent for the U.S., California and Florida tend to rise (fall) more than 3 percent, while Pennsylvania and Texas tend to rise (fall) less than 3 percent.
Update Dot plot distribution
This plot shows the distribution of house price appreciation (month-over-month percent change) across each metro area compared to the U.S. index. Values that are appreciating (depreciating) are colored blue (red) and the orange line corresponds to the U.S. index for that month. I’ve written up instructions on how to make such a plot in an earlier post.
There’s a lot of different visualization hers, but I wanted to collect them all in one place. I’ve got several more ideas for visualizations of house price trends, and we’ll see them in a sequel.