Git Product home page Git Product logo

sg-rental-analytics's Introduction

SG-rental-analytics

Explore the rental market and find out where to rent a house in Singapore using data and analytics!

dashboard

Project Background

An analytics that I do for myself to find out where I should rent a flat in Singapore and learn about the price drivers of the rental market.

Process

Data Scraping

In order not to increase server burden to the rental website or get myself into trouble, the scraping script as well as the original scraped data are excluded from this repo.

Data Cleaning & Engineering

Script: data_cleaning_and_engineering.py

Data quality check, data cleaning, supplementary info joining and feature engineering are done within this script. Two datasets are generated from this scirpt:

  • engineered_data.csv, used for later dashboard building and visualization purpose.
  • model_data.csv, used for machine learning model building, all the features have been transformed into numerical or dummy-categorical values.

Modelling

Script: modelling.py

To validate whether the features that we have and generate really make sense, I built machine learning models to check:

  • Prediction (explaining) Ability: Random forest model is built, out-of-sample MAE is roughly 3% of the average price, which means the model is able to give a very accurate estimate of a house rental price given the data.

  • Important Features: Feature importance from random forest model is leveraged to find out what are some of the most important features that will affect rental price in Singapore.

  • Quantified Effects: Lasso regression is built to check each feature's dollar effect on the rental price. For example, 1 unit increase in the housing area (sqft) will lead to 2.26 SGD increase on the monthly rental price.

Detail results can be found in SG_rental_analytics_2019_AUG.pptx.

Dashboard

Visualization is implemented to explore more logical insights into the market.
Check details in SG_rental_dashboard_2019_AUG.pbix.

Screenshots

dashboard2


dashboard3

sg-rental-analytics's People

Contributors

hzjken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bellyfat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.