Skip to content

Analysis of US Residential Real Estate data using Jupyter Notebook, Python, Pandas, Matplotlib

Notifications You must be signed in to change notification settings

ramkumarpj/project-one

Repository files navigation

Abnormal Distribution

Project 1

In this project we are attempting to answer critical questions regarding the best return on investment(ROI) of Oklahoma residential real estate.

Questions

  • Which ZIP code gives the best home value ROI?

  • What is the impact of intrest rate on median sales price?

  • Which ZIP code is the best to own rental property?

Data sets

  • Zillow : Home Value, Median Sales and Rental data.

  • FRED API : 30 Year Mortgage rates and 10 Year Treasury Yield.

Analysis

  • Best Home Value ROI : Monthly Home value for years 2013 thru 2022 was obtained from Zillow. The difference in home value as a percentage for each year was aggregated for each zip. The zip that produced top returns were plotted to a scatter plot.

  • Impact of interest rate on Median Sales Price: 30 Year Mortage rates for 2013 thru 2022 was obtained using FRED API. The weekly mortgage rates data was aggregated to monthly buckets so that it can be compared against the monthly median sales price data obtained from Zillow. A line plot of both 30 year mortgage rates and median sales price changes were plotted in a single plot to identify the impact. The pearson correlation coeffcient was also calculated to confirm our observation.

  • Zipcode that provides best Rental ROI: 10 year Treasury rates was obtained from FRED API. The home value and monthly rental data for 2014 thru 2021 were obtained from Zillow. The rental ROI for each zipcode was calculated based on this data.

Findings

  • 74534 Centrahoma (Southern Oklahoma) had the best home value ROI.

  • Generally interest rates and median sales price are inversely correlated. The pearson correlation coefficient of -0.51 confirms this observation.

  • 73016 Oklahoma City had the best rental ROI.

Documents

Project Proposal

Code

Jupyter Notebooks:

  • code/HomeRental_ROI_Analysis.ipynb
  • code/HomeSales_IntrestRate_Analysis.ipynb
  • code/Homesales_ROI_Analysis.ipynb

Resources

Output

  • Best Home Value ROI

    • image info
    • image info
  • Impact of interest rate on Median Sales Price:

    • image info
    • image info
    • image info
    • image info
  • Zipcode that provides best Rental ROI

    • image info
    • image info
    • image info
    • image info
    • image info

Disclaimer

This repo was published for educational purpose only. Copyright 2023-2024 edX Boot Camps LLC. All rights reserved.

About

Analysis of US Residential Real Estate data using Jupyter Notebook, Python, Pandas, Matplotlib

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •