Welcome to my detailed analysis of how house prices change against bedrooms, bathrooms, and living area. I chose to go in-depth on these three features because I personally think they are the most important characteristics of a house. I've separated my analysis by home type, with single family homes on the left and manufactured homes on the right, to better illustrate how the trends differ based on the type of house. For this analysis, I chose to not exclude outliers because I wanted to see the full range of data. Keep in mind that we will perform a feature-wise comparison of how much each feature correlates with price on the next page, so for now we are just focusing on the general trends.
Here, we observe a clear correlation between the number of bathrooms and the price in single family homes, with the price of the single family home increasing as the number of bathrooms increases. This makes sense - I'd certainly pay more for a home with more bathrooms.
The trend for bedrooms in single family homes is quite similar to that of bathrooms. With each additional bedroom, the median home price increases, signaling the premium homeowners place on this feature. Furthermore, the single family homes seem to be more expensive than manufactured homes, on average. As an interesting note, it seems that the median home price seems to somewhat plateu after 4 bedrooms for both single family and manufactured homes.
Here is a plot for living area. As we can see, prices increase as living area increases - no surprises there. However, as shown by how the dots are colored by the number of bedrooms in the house, there seems to be some correlation between the number of bedrooms and the living area. This will be explored more on the next page.
For manufactured homes, we see a similar, but less pronounced, pattern with regards to the number of bathrooms. The increase in price is not as steep as in single family homes. This will also be seen on the next page, where (as a spoiler) the correlation between bathrooms and price is noticeably lower for manufactured houses compared to single family houses.
Comparing the number of bedrooms to the home price in manufactured homes reveals a similar trend to that of single family homes. However, the median price of manufactured homes with the same number of bedrooms is lower, reflecting the general market perception of manufactured homes as a more affordable housing option.
Here is a plot for living area. As we can see, prices increase as living area increases, but it seems that this has a slightly more pronounced effect on manufactured houses compared to single family houses. Once again, this will be reiterated on the next page.
By far the coolest tidbit I learned through this analysis is how house prices seem to plateu a little after four bedrooms, which means that the price increase per bedroom on average is higher for houses with less than four bedrooms. This means that, if you want to get a house with four bedrooms, then all else being equal, you might want to look into getting a house with more bedrooms since it won't cost much more, on average. This is a great example of how data science can be used to make better decisions in real life.
However, this analysis is lacking something extremely important - correlation between features! Check out the next page to see some of that.
Next Page: Correlation AnalysisYillow was created by Brandon Bonifacio with the help of a variety of sources which are credited on our References page.
Come check out my personal website or connect with me on LinkedIn!
Disclaimer: Yillow is an independent project, not affiliated with or endorsed by Zillow in any way. It is created for educational purposes and is not intended to infringe on any rights of Zillow.
No rights reserved - whatsoever.