Team members: Ahmed Belahcen, Nandini Rathod, Sanjana Kiran, Akanksha Dhumal

We followed one city through four weeks: what decides the rent of a home in Mumbai, and can a machine learn it? One dataset of 23,405 rental listings, and a new method every week: cleaning, prediction, clustering and neural networks.

Marine Lines at night. Photo: Dr Vikramjit Kakati, CC BY-SA 4.0, edited, via Wikimedia Commons

Week 1 · Data cleaning and exploration

Size is the rent.

The raw table (scraped from Magicbricks) held 23,405 listings, with rents and areas stored as text, mixed units and missing balconies (54.8% blank). We parsed every number, standardised the labels and dropped impossible values and layouts. 18,846 listings survived.

Then one relationship dominated everything: the bigger the home, the higher the rent (Spearman 0.81). Up to 4 BHK, each extra bedroom roughly doubles the median rent.

Week 2 · Supervised learning

Rent is predictable. Furniture isn’t.

First question: can a model guess whether a flat is furnished? A decision tree reached 44.4% accuracy, against 43.8% for always guessing “semi-furnished”. Deeper trees only memorised the training data.

Second question: can it predict rent? We compared five models with cross-validation and tuned a random forest. On unseen homes it explained 62% of the variation in rent and missed by about ₹38,000 a month. Area alone carried almost all of that.

Worli skyline from Lotus Colony. Photo: A.Savin, Free Art License, edited, via Wikimedia Commons

Week 3 · Unsupervised learning

Mumbai has five kinds of home.

This time we gave the machine no answers. Using only area, bedrooms and bathrooms, K-Means sorted the 18,846 listings into five profiles. Rent was never shown to the algorithm, yet the groups line up with price: from compact one-bath flats at ₹31,000 to large multi-room homes at ₹300,000.

Five scored best on silhouette, and the grouping held: re-runs with other seeds and on 80% subsamples gave almost identical groups (ARI ≈ 0.99).

Week 4 · Neural networks

We built a small brain. It tied with a forest.

We trained a neural network (23 inputs → 64 → 32 → 1, 3,649 weights) on exactly the same rows as the Week 2 forest. It cut the error of always guessing the median by 43%. Against the forest it won by ₹39 a month: a tie.

We also found 752 test listings identical to listings in training. Without them, both models get worse (₹41,615 vs ₹42,189) and still tie. Honest numbers beat flattering ones.

Four things we’ll keep.

Rent in Mumbai is mostly about space, and the data says so whichever method you use. What it can’t tell us (neighbourhood quality, view, the age of the building) is what a real valuation needs next.

Data: Property Rental Listings Dataset by Harshal Honde (Kaggle, CC BY 4.0), original listings from Magicbricks.

Code: Group 3 repositories on github.com/iaac-maai (Day 1–4 assignments).

Photos: Dr Vikramjit Kakati (CC BY-SA 4.0, edited) and A.Savin (Free Art License, edited), via Wikimedia Commons.