NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > Data Visualization > Data Study on Financial Decisions in NYC

Data Study on Financial Decisions in NYC

Lorenzo Mangubat
Posted on Mar 10, 2021
The skills I demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Link to app: https://enzo-borja.shinyapps.io/buy_value/

An embedded video of my presentation can be found at the bottom of this post.

Motivation

Whether to buy property or continue renting in New York City is a financial decision with significant impact. Renting may appear more affordable on a month-to-month basis. However, there may be long-term financial benefit to buying property even if it can be capital-intensive. This app is meant to be an access to data and tool for New Yorkers to factor in their own financial situation in making this important decision.

Methodology

This app will helps the user answer the following questions:

  1. What is the inventory of properties out there I can afford that is better than renting?
  2. What is the most expensive property I can afford (herein referred to as "best buy option"), and what will my recurring costs be?
  3. If I buy my best-buy option, after how many years will I be better off than if I had continued renting?

Data

Buying Renting
  • accumulates as personal value
  • property value increases over time
  • requires big money up front
  • closing costs
  • lack of flexibility
  • personal responsbility to maintain
  • cheaper monthly payment
  • more cash for alternative investments
  • flexibility
  • rent payments are lost value

The data used for this model is a list of tax class 2 properties sold in Manhattan in 2019. Financial attractiveness is than evaluated within a 30-year horizon, which is a common mortgage lifetime.

In this model, we are making predictions on market distribution based on what 2019 looked like. How the coming years actually turn out could be different, so it is important to keep in mind that this model is only an estimate. Nevertheless, this model is most useful in evaluating how sensitive the rent-or-buy decision is to the provided parameters. 

Another key assumption is that user has enough saved for a down payment. In the rent option, this down payment value is assumed to be instead invested in alternate securities.

Source of Data

Data was taken from the New York City Department of Finance (link). Only the Manhattan data was used. From this dataset, only tax class 2 condos and co-ops were used.

Inputs in Modelling

There are several inputs used in the modelling.

  • Monthly housing budget: the amount of money you have available for either buying or renting. Any money left over after monthly rent or mortgage is assumed to be invested in alternate securities (i.e. index funds in the stock market).
  • Alternative monthly rent: how much you pay in rent monthly. The model will analyze properties that are more affordable than rental options with this monthly rent.
  • Mortgage rate: the annual rate your mortgage increases in value. This is usually the number that banks quote you. The monthly mortgage rate used in the model is calculated as (annual) mortgage rate / 12. There is some error in doing this, but it is not significant.
  • Income tax rate: determined by your income level. This will be used to calculate how much of a tax refund you get because mortgage interest payments are tax-deductible.
  • Down payment: The fraction of the sale price you pay at the time of purchase. A lot of properties require 20% minimum. Most banks have penalties for paying less than 20% down. Therefore, the model limits down payment to above 20%.
  • tax rate as percent of market value: calculation of the actual tax rate is complicated in New York City. To make the model simpler, use a tax rate suggested in this StreetEasy article.
  • common charges as percent of market value
  • Property value annual growth rate: the average annual rate the market value of propertie increases.
  • Alternative investment growth rate: the average annual growth rate of other investments such as stocks.
  • Closing costs: fees paid to brokers, lawyers, and taxes at time of purchase.

Price to Value Ratio

To help make a comparison between rentals and purchases, I used a price-to-value ratio (P/V ratio) over a 30-year period. P/V ratio is defined as the amount paid divided by the value of assets. The amount paid is simply the housing budget over 30 years. This table helps explain the P/V ratio:

  buy rent
price monthly housing budget*12*30 monthly housing budget*12*30
value future portfolio value of alt. investments and of property future portfolio value of alt. investments

For the rent option, price includes cash going to rent, and left-over cash going into alternative investments. For the buy option, price includes cash going to mortgage, taxes, and common charges, and left-over cash going into alternative investments.

Analysis 

The model takes the inputs and calculates a P/V ratio for all properties and outputs those that are within the monthly housing budget. A distribution of affordable buy options by P/V ratio is reported in figure 1. For comparision, a P/V ratio of the rent option is also provided.

Figure 2 plots P/V ratio vs. sale price. The best buy option is the property in this distrbution that has the highest sale price. The monthly mortgage, tax and common charges of this option is reported. At this point, questions 1 and 2 can be answered.

The financials of the best-buy option is further evaluated throughtout a 30-year period. Figure provides total personal value over the years for each scenario. For the rent option, total personal value is the value of the investment portfolio. FOr the buy option, it is the sum of investment portfolio and property value minus mortgage debt.

Figure 5 shows the cummulative cash out over the years.

  • rent option: - (rent payments)
  • buy option: - (interest + taxes + common charges) + tax refund

Figure 6 takes the ratio of data from the previous figures to explore how worthy each option is through the years.

Data Analysis

Default case

In the default case, there is a strong case to buy. Based on 2019 data, there should be a good number of properties in the market that are better than the rent option. It is also observed that the monthly housing budget is more limiting than the financial attractiveness of buy options. In other words, if you can afford to buy something, then it is highly likely that it is better than renting.

In the default case, the best buy option is a market value of $541,250 with monthly mortgage of $1,870.21, monthly taxes of $676.56 and monthly common charges of $451.04. Figures 4, 5 and 6 show that from the beginning, the buy option not only results in higher value but also requires less overall cash.

Sensitivity analysis

Let's say that we want to buy more expensive property without increasing our monthly budget. We can then look at properties that have a significant tax abatement such that the tax rate would only be 0.05%. Perhaps we may also receive a gift fund from parents that would enable a down payment of 50%. In this case, the best buy option shoots up to $988,000 with monthly mortgage of $2,133.69, monthly taxes of $41.17 and monthly common charges of $823.33.

What or how much to buy can be sensitive to the property value growth rate and the alternative investments growth rate. The the property value growth rate is below the alternative investment rate, figure 2 has a positive slope which suggests it is better to buy as cheap as possible. However, when the property value growth rate exceeds the alternative investment rate, the it would be more financially attractive to buy as expensive as one can afford.

Finally, we can try to make a case for renting by adjusting the alternative investment rate. By setting this to 11% while the property value growth rate is at a default 4%, the financial picture is the same at the end of 30 years. This will be shown on figure 6. If the alternative investment rate increases further, then renting becomes more attractive sooner.

Conclusions

In general, if one can afford to buy, then it is better to buy. However, buying property requires significant capital cost for the down payment and closing costs. There is also the unquantified value of flexibility. When one buys property, then they are geographically less mobile to move to a different location that could perhaps provide a higher net income. This model also does not consider the quality of living and of the properties themselves. In general, this app should help the user provide bounds to their different financial scenarios and understand the sensitivity of their decision to the right factors.

About Author

Lorenzo Mangubat

I enable technologies to scale. My experience ranges from start-up development to high-volume manufacturing. I bring together structured problem-solving, data science, and operational discipline to drive improvements in products, processes and organizations.
View all posts by Lorenzo Mangubat >

Leave a Comment

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application