Regression Algorithm-Based Machine Learning Model for Apartments' Price Prediction in Nairobi City

The real estate industry in Nairobi has shown a phenomenal growth due to the economic dynamics in the city and prices of apartments differ depending on the area, facilities and the market forces. Traditional techniques of valuation which are based on experience are generally unrealistic and ineffective. This paper developed a machine learning predictive model, specific to the Nairobi real estate market, based on internet listing and KNBS data. Three regression algorithms; linear regression, random forest (RF) and gradient boosting machines (GBM) were trained, tested and validated under a comparative framework. Its findings indicated that RF (86.30%) and GBM (84.40%) performed better than linear regression and support vector machines (SVM) when it comes to the prediction of apartment prices. According to a key feature analysis, apartment size was the most important factor, then came the number of bedrooms and bathrooms. The last web-based model is a RF and GBM based model that offers a more precise and transparent pricing tool to buyers, sellers and real estate professionals. Such results indicate the effectiveness of the machine learning models grounded in the algorithms, in capturing the non-linear nature of the apartment pricing, in comparison with the more conventional methods of valuation.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-10-31
DOI
https://doi.org/10.5281/zenodo.17797749
Primary Topic
Housing Market and Economics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Regression Algorithm-Based Machine Learning Model for Apartments' Price Prediction in Nairobi City

Zenodo (CERN European Organization for Nuclear Research)
Housing Market and Economics
article

Regression Algorithm-Based Machine Learning Model for Apartments' Price Prediction in Nairobi City

article en

Abstract

The real estate industry in Nairobi has shown a phenomenal growth due to the economic dynamics in the city and prices of apartments differ depending on the area, facilities and the market forces. Traditional techniques of valuation which are based on experience are generally unrealistic and ineffective. This paper developed a machine learning predictive model, specific to the Nairobi real estate market, based on internet listing and KNBS data. Three regression algorithms; linear regression, random forest (RF) and gradient boosting machines (GBM) were trained, tested and validated under a comparative framework. Its findings indicated that RF (86.30%) and GBM (84.40%) performed better than linear regression and support vector machines (SVM) when it comes to the prediction of apartment prices. According to a key feature analysis, apartment size was the most important factor, then came the number of bedrooms and bathrooms. The last web-based model is a RF and GBM based model that offers a more precise and transparent pricing tool to buyers, sellers and real estate professionals. Such results indicate the effectiveness of the machine learning models grounded in the algorithms, in capturing the non-linear nature of the apartment pricing, in comparison with the more conventional methods of valuation.

Zenodo (CERN European Organization for Nuclear Research)
University of Nairobi (KE)
Sustainable cities and communities
Openalex Percentile: Top 27%
Housing Market and Economics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.