## Predict Condo Prices in New Jersey (R Machine Learning class Final Project Presentation)

Posted by **manager**

Updated: Mar 26, 2015

The Meetup this past Tuesday was held in the NYC Data Science Academy space near Grand Central Station. Yi Wang gave a presentation on his machine learning final project. He was part of a machine learning in R class held through the NYC Data Science Academy. His project was to build a model that would predict the value of individual condos along the Hudson in New Jersey. Using data from many different sources, he collected many different data points about each condo and the buildings they were in and used these to build several different models for predicting the value of any given condo.

You can view the slides of his presentation online here.

**The Data**

The data sources for this project were a combination of public access data as well as data from the civic hacking group Beta NYC. The sale price of all condo purchases are public record and can be found using the search function of NJ MOD IV (the equivalent for NYC is called Acris). For his project, Yi grabbed only the most recent sales, ignoring older ones.

This data was less than clean, however. Some listings had obviously incorrect records, such as a sales price of $10. In addition, the addresses of the condos was a plain text string that had to be deciphered and sometimes unscrambled. In addition, the condo number and floor number could be inferred from the listing.

Sources of other data included the Google Maps API (for computing coordinates associated with addresses). Walkscore.com was used to grab the “walkability score” (walking convenience) associated with any condo building by inputting its address. He also used publicly available census data.

In addition to, Yi used the number of units in the building, the year built, as well as the price per square foot of the most recent sale. (This price per square foot value was not differentiated by floor, which the model was designed to take into account.) In addition, Yi calculated the distance of the building from the Hudson waterfront as well as distance from the nearest Path station (the special subway connecting NJ to downtown Manhattan that many use for commuting), since both of these should affect the market value.

After all is said and done, 89% of existing condos were covered in the data, while the rest were presumably lost due to noisy data.

After spending some time modeling without much success, Yi realized his models were inaccurate because he was missing an important value that affected sales price: the view. Some condos had a view of the Hudson and downtown Manhattan to the east, whereas others looked west over New Jersey, the former view being more highly valued. He found floor plans for the condos and assigned each unit a score corresponding to its view: a 2 corresponding to an ideal view, a 1 to a partial view, and a 0 designated a view of nothing special.

In addition, Yi needed some way of taking into account how condo prices changed over time with the market. To do this, he simply used the data he had acquired about the price per square foot and calculated a rough index of how the market developed over time.

**Modeling**

The models were designed to predict the current price per square foot of each condo (which is roughly in the $500s). Yi decided to use Partial Least Squares Fit (PLSF) to grade the fit each model had with the data. He used four different modeling methods, some were more accurate than others. He used multi-linear regression, Model Tree, GBM, and Random Forest.

Multi-Linear Regression | 99.17 |

Model Tree | 86.64 |

GBM | 90.6 |

Random Forest | 64.50 |

To produce these models, Yi used his entire data set. To ensure that the models were not overfitting the data, he did a check where training and test data was clearly separated. The models were robust through this check.

### manager

View all articlesTopics from this blog: Meetup

### Subscribe Here

### Posts by Tag

- Meetup (101)
- data science (68)
- Community (60)
- R (48)
- Alumni (46)
- NYC (43)
- Data Science News and Sharing (41)
- nyc data science academy (38)
- python (32)
- alumni story (28)
- data (28)
- Featured (14)
- Machine Learning (14)
- data science bootcamp (14)
- Big Data (13)
- NYC Open Data (12)
- statistics (11)
- visualization (11)
- Hadoop (10)
- hiring partner events (10)
- D3.js (9)
- Data Scientist (9)
- NYCDSA (8)
- Web Scraping (8)
- Career (7)
- Data Scientist Jobs (6)
- Data Visualization (6)
- Hiring (6)
- Open Data (6)
- R Workshop (6)
- APIs (5)
- Alumni Spotlight (5)
- Best Bootcamp (5)
- Best Data Science 2019 (5)
- Best Data Science Bootcamp (5)
- Data Science Academy (5)
- Demo Day (5)
- Job Placement (5)
- NYCDSA Alumni (5)
- Tableau (5)
- alumni interview (5)
- API (4)
- Career Education (4)
- Deep Learning (4)
- Get Hired (4)
- Kaggle (4)
- NYC Data Science (4)
- Networking (4)
- Student Works (4)
- employer networking (4)
- prediction (4)
- Data Analyst (3)
- Job (3)
- Maps (3)
- New Courses (3)
- Python Workshop (3)
- R Shiny (3)
- Shiny (3)
- Top Data Science Bootcamp (3)
- bootcamp (3)
- recommendation (3)
- 2019 (2)
- Alumnus (2)
- Book-Signing (2)
- Bootcamp Alumni (2)
- Bootcamp Prep (2)
- Capstone (2)
- Career Day (2)
- Data Science Reviews (2)
- Data science jobs (2)
- Discount (2)
- Events (2)
- Full Stack Data Scientist (2)
- Hiring Partners (2)
- Industry Experts (2)
- Jobs (2)
- Online Bootcamp (2)
- Spark (2)
- Testimonial (2)
- citibike (2)
- clustering (2)
- jp morgan chase (2)
- pandas (2)
- python machine learning (2)
- remote data science bootcamp (2)
- #trainwithnycdsa (1)
- ACCET (1)
- AWS (1)
- Accreditation (1)
- Alex Baransky (1)
- Alumni Reviews (1)
- Application (1)
- Best Data Science Bootcamp 2020 (1)
- Best Data Science Bootcamp 2021 (1)
- Best Ranked (1)
- Book Launch (1)
- Bundles (1)
- California (1)
- Cancer Research (1)
- Coding (1)
- Complete Guide To Become A Data Scientist (1)
- Course Demo (1)
- Course Report (1)
- Finance (1)
- Financial Data Science (1)
- First Step to Become Data Scientist (1)
- How To Learn Data Science From Scratch (1)
- Instructor Interview (1)
- Jon Krohn (1)
- Lead Data Scienctist (1)
- Lead Data Scientist (1)
- Medical Research (1)
- Meet the team (1)
- Neural networks (1)
- Online (1)
- Part-time (1)
- Portfolio Development (1)
- Prework (1)
- Programming (1)
- PwC (1)
- R Programming (1)
- R language (1)
- Ranking (1)
- Remote (1)
- Selenium (1)
- Skills Needed (1)
- Special (1)
- Special Summer (1)
- Sports (1)
- Student Interview (1)
- Student Showcase (1)
- Switchup (1)
- TensorFlow (1)
- Weekend Course (1)
- What to expect (1)
- artist (1)
- bootcamp experience (1)
- data scientist career (1)
- dplyr (1)
- interview (1)
- linear regression (1)
- nlp (1)
- painter (1)
- python web scraping (1)
- python webscraping (1)
- regression (1)
- team (1)
- twitter (1)