For Udacity Data Science Nanodegree. Finds top predictors of high review scores
@mad.kehl/dissecting-review-scores-what-makes-a-top-scoring-airbnb-960de66186a1">Go to blog post
The following code uses Kaggle’s Boston Airbnb dataset to examine what features are most related to high Airbnb review scores and answer the following questions:
It first uses a random forest regressor to rank features on aggregated data. Based on these rankings it selects features with > mean importance, and runs multilevel models on them to look at significance as well as directionality and effect size.
Clone repository: git clone https://github.com/madkehl/Airbnb
If the repo is cloned, the Jupyter notebook should run smoothly from start to finish, and contains all necessary code.
pandas, numpy, seaborn, re, statistics, sklearn, nltk, plotly, statsmodels
The most important predictors of Airbnb scores tended to be amenities (WiFi, AC, Laptop-Friendly Workspace, Hair Dryer). Location in Boston might be important (no individual neighborhoods were extremely significant, however based on latitude and longitude, perhaps south west neighborhoods receive higher reviews. Hard to say with current info). Aside from this superhosts tended to receive higher reviews.
Madeline Kehl (mad.kehl@gmail.com)
Copyright (c) 2020 Madeline Kehl
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.