Berlin Airbnb New Listing Price Estimator

Comentarios · 2043 Puntos de vista

Developed R Shiny interface employing Gradient Boosting algorithm to estimate new Airbnb listing price

Shiny app link: https://sharisan.shinyapps.io/shiny/ 

Our objective is two-fold. First, we identify the important parameters or features which affect Airbnb’s listing price and estimate the price per night. Second, we develop an R shiny app that provides an interface to input the parameters or features of a new listing and display the estimated price per night.  

Listing a home on Airbnb requires considerable investment from a host (our stakeholder). But, how will a host know how to price his/her listing? How will the inclusion or exclusion of certain amenities influence the listing’s price? We would like to develop an app to enable hosts to obtain answers to the above questions and price their listings accordingly.

We developed a Random Forest Regression model to identify the key features which influence the pricing of a listing. Then, we used a Gradient Boosting Model (GBM) to estimate the price of a listing based on the inputs provided for the selected features. Once the model was developed, we built an R shiny app to obtain the feature’s value from the hosts, pass the values as input to GBM, and display the estimated price for the listing.

  1. Business Problem:

Estimate the price of a new Airbnb listing based on the features of the listing. Features include the location of the listing, number of bedrooms, amenities (such as TV, Internet), etc. The hosts of Airbnb listings will be the stakeholder.

Solving this problem requires us to know how each feature affects pricing. For this, we can leverage analytics and identify not only how each feature affects pricing, but also the most important features which affect pricing. This would provide hosts a considerable idea about which feature to include or exclude and to also price their listings correctly

  1. Analytics Problem:

Identify the key factors of an Airbnb listing which affect its pricing and estimate the price of a new listing. We will also need to identify the monetary effect each feature has on the estimated price. Key metrics of success is accurately estimating the price for a new listing and enabling the adoption of the app among hew Airbnb hosts.

  1. Data:

We are using files of web-scrapped data of Berlin Airbnb listings in csv formats. The main file is at the listing level and has 96 attributes of listings for ~22k listings. For data cleaning, we first removed variables such as URLs, web-scraping IDs and license-related columns from the dataset which had no business significance. We then identified columns that had a high number NULLs (we set a threshold of 40%) and dropped such columns. After removing unnecessary columns, we performed Exploratory Data Analysis (EDA) to identify which columns had outliers and capped/floored outliers based which were two-standard deviations higher/lower than the mean.

  1. Methodology Selection:

As mentioned above, we performed Exploratory Data Analysis (EDA) to outlier-detection. We also leveraged descriptive analytics and performed visualizations and text analytics (word-clouds) to understand the current business trends to make informed decisions.

Prices are higher on Fridays and Saturdays compared to other days of the week

Analysis of amenities in existing Airbnb listings at Berlin

Very few houses having a higher price, which is at the heart of the city.

 

 

Text analysis based on existing database. It will help a new host to set his house rules and location based on connectivity.

We also performed predictive modeling to predict which features affected a listing’s price. Predictive analytics was essential for us to understand the effect of how each feature affected a listing’s price and estimate the price of a listing.

  1. Model Building:

We first ran a multiple linear regression to predict the price of the listing by partitioning the dataset into train (80%) and test. Next, we ran a random forest model to identify the important features which affect the price of the listing. Once we have the most important features, we developed a Gradient Boosting Model (GBM) with 1000 trees. We used cross-validation with k=10 folds to identify the RMSE on the test dataset and selected GBM since it had the least test RMSE.

The model is the crucial link that bridges the host’s inputs to the predicted price and the integration will be done in the server function of the R shiny app.

  1. Functionality:

The R shiny app takes inputs (the values of the important features identified from the random forest model) from the host and passes them as an argument to the GBM. The GBM predicts the listing price based on the values or selection made by the hosts and prints them through a renderText().

  1. GUI Design and Functionality:

We used selectInput, sliderInput and radioButtons functionalities to obtain the values of the features selected from the host. The layout of the app was designed using fluidRow. The host can select values from the given input functions and click on “Update” to obtain the estimated price for the new listing.

  1. Conclusions:

We can extend this app to develop a dynamic generation of word clouds for text attributes that the host needs to create while enlisting (eg. summary of the listing, transit options, house rules, etc.). We can also predict the occupancy rate for the listing and calculate the expected annual revenue based on the predicted price and occupancy rates. This functionality would enable a host to assess whether he/she will be able to recover the investment costs.

  1. References:
    1. R shiny layout:
      1. https://shiny.rstudio.com/articles/layout-guide.html
      2. https://www.rdocumentation.org/packages/shinybootstrap2/versions/0.2.1/topics/fluidPage
    2. Word Clouds: https://datascienceplus.com/building-wordclouds-in-r/
    3. ggplot: https://ggplot2.tidyverse.org/reference/scale_gradient.html
Comentarios