Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EDA Summary — Airbnb Open Data
|
| 2 |
+
|
| 3 |
+
## 1. Dataset Overview
|
| 4 |
+
The dataset consists of 102,599 Airbnb listings in the United States. It includes 26 original features covering listing attributes, host characteristics, availability details, and review metrics.
|
| 5 |
+
|
| 6 |
+
### Key Feature Types (full list in the notebook)
|
| 7 |
+
**Categorical Features:**
|
| 8 |
+
- `room_type`
|
| 9 |
+
- `neighbourhood_group`
|
| 10 |
+
- `host_identity_verified`
|
| 11 |
+
- `cancellation_policy`
|
| 12 |
+
- `instant_bookable`
|
| 13 |
+
|
| 14 |
+
**Numerical Features:**
|
| 15 |
+
- `price`
|
| 16 |
+
- `service_fee`
|
| 17 |
+
- `review_rate_number`
|
| 18 |
+
- `minimum_nights`
|
| 19 |
+
- `number_of_reviews`
|
| 20 |
+
- `availability_365`
|
| 21 |
+
|
| 22 |
+
### Prediction Goal
|
| 23 |
+
The primary task is a regression problem:
|
| 24 |
+
Predict the numeric `review_rate_number` (1.0–5.0) for each listing based on features such as price, room type, and neighbourhood group.
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## 2. Data Cleaning
|
| 29 |
+
A series of preprocessing steps were performed to prepare the dataset for analysis and modeling.
|
| 30 |
+
|
| 31 |
+
### Columns Removed
|
| 32 |
+
- `host_id`, `host_name`, `name` — Identifier/text fields not useful for prediction
|
| 33 |
+
- `country_code`, `country` — All entries are within the US
|
| 34 |
+
- `cancellation_policy`, `house_rules` — Non-numeric and removable per instructions
|
| 35 |
+
- `last_review` — Not relevant to the analysis
|
| 36 |
+
- `license` — Mostly empty
|
| 37 |
+
|
| 38 |
+
### Data Quality Fixes
|
| 39 |
+
- Corrected spelling issues in `neighbourhood_group`:
|
| 40 |
+
- "brooklm" → Brooklyn
|
| 41 |
+
- "manhatan" → Manhattan
|
| 42 |
+
- Handled rare categories by checking frequency
|
| 43 |
+
- Filled missing values
|
| 44 |
+
- Resolved contradictions (e.g., listings with 0 reviews but a rating)
|
| 45 |
+
- Removed duplicate listings using the `id` field
|
| 46 |
+
|
| 47 |
+
### Outliers handling
|
| 48 |
+
I handled outliers using box plot:
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
it is noticable that minumus nights has outliers as it is not possible to have negative value, and it is weird to have values larger than 365
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
**number of reviews and reviews per month** : I see a lot of data points far from the regular range.
|
| 56 |
+
That popular listing is an outlier, but it's one of the most important data points! We definitely keep these, it just implies about the property popularity.
|
| 57 |
+
|
| 58 |
+
**calculated host listings count** - there are many "Far" data point but, it might be "superhosts" or property managers who own many listings. we will keep it.
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## 3. Visualizations and Insights
|
| 63 |
+
The EDA included various visual explorations of the dataset to examine relationships between listing characteristics and review ratings.
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
|
| 78 |
+

|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
|
| 82 |
+
The prices per room type varies, and there doens't seem to be an outlier. no changes will be done to the data.
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
## 4. Research Questions and Findings
|
| 87 |
+
|
| 88 |
+
### Q1 — Is Room Type Related to Being Highly Rated?
|
| 89 |
+

|
| 90 |
+
Room type shows only a weak relationship with high ratings.
|
| 91 |
+
- Hotel rooms have the highest proportion of 5-star reviews
|
| 92 |
+
- Shared rooms have the lowest
|
| 93 |
+
- Overall, differences across room types are modest, suggesting room type alone is not a strong predictor of guest satisfaction
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
### Q2 — What Is the Price Distribution of Highly-Rated vs. Not-Highly-Rated Listings?
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
|
| 104 |
+
Key observations:
|
| 105 |
+
- Listings with a rating of 0 tend to have much lower median prices
|
| 106 |
+
- This is likely because new or unrated properties set lower prices to attract initial guests
|
| 107 |
+
- Once listings begin receiving ratings, their prices increase and become more consistent
|
| 108 |
+
|
| 109 |
+
This suggests that hosts raise prices after building credibility through reviews.
|
| 110 |
+
|
| 111 |
+
---
|
| 112 |
+
|
| 113 |
+
### Q3 — Does Neighbourhood Group Affect Rating?
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
|
| 119 |
+
There is an important difference between raw counts and percentages:
|
| 120 |
+
- Manhattan has the highest number of 5-star reviews because it has the most listings
|
| 121 |
+
- Staten Island and Queens have the highest proportion of 5-star ratings
|
| 122 |
+
|
| 123 |
+
This indicates that while Manhattan has high volume, its rating consistency is lower. In contrast, smaller markets like Staten Island show more uniform guest satisfaction.
|
| 124 |
+
|
| 125 |
+
---
|
| 126 |
+
|
| 127 |
+
### Q4 — Does the Number of Listings a Host Manages Influence Their Ratings?
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
|
| 131 |
+
A clear pattern emerges:
|
| 132 |
+
- Hosts who manage more properties tend to have higher average ratings
|
| 133 |
+
|
| 134 |
+
This may suggest that professional or experienced hosts provide more consistent service and maintain higher-quality listings.
|
| 135 |
+
|