Exploration of Machine Learning Algorithms for Housing Price Prediction in Megacities

Authors

Keywords:

Bayesian Regression, Machine Learning, Mean Absolute Error, Ridge Regression, R-squared, Support Vector Regressor.

Abstract

Effective predictive models are good for tackling pressing issues faced by residents and stakeholders regarding the cost of houses in cities. Thus, buyers and sellers of houses have challenges in making decisions due to a lack of adequate data-driven decision-making. This study explores the feasibility of using machine learning techniques to predict house prices in Lagos and Abuja, Nigeria. The data used for this research were obtained from a property listing website and encompass key features such as location, number of rooms, property type and other basic characteristics. Several models including Linear Regression, Bayesian Linear Regression, Support Vector Regressor and Ridge Regression, were trained using these data. The performances of models considered for this study were evaluated using the Mean Absolute Error and the R-Squared scores, and the Support Vector Regressor performed best. Also, the model predicted Lagos house prices better than Abuja house prices with the highest R-squared and lowest Mean Absolute Error (MAE) values. An independent t-test was also conducted to test for significant differences in the price of houses in Lagos and Abuja. The results indicate there is no significant difference in the prices. The study concludes that machine learning is a useful tool for house price prediction to its accuracy in predictions, highly dependent on the availability and quality of comprehensive datasets.

Downloads

Download data is not yet available.

Author Biographies

  • Rotimi Kayode Ogundeji , Department of Statistics, Faculty of Science, University of Lagos, Lagos, Nigeria.

    Rotimi Ogundeji is a lecturer in the Department of Statistics with specialization in Bayesian Statistics, Bayesian Methods and Applied Statistics. He had his undergraduate (B.Sc. in Mathematics/Statistics) and postgraduate for both M.Sc. (Statistics) and Ph.D. (Statistics) training at the prestigious University of Lagos. He teaches Statistics courses; mentored over 50 students at both undergraduate and postgraduate levels His research works has been presented in both local and international conferences. He has published several research papers in both local and international Journals and also a research reviewer for some Journals. He is a member of several academic organizations including: The Nigerian Mathematical Society (NMS); Nigerian Statistical Association (NSA); Professional Statisticians Society of Nigeria (PSSN) and International Statistical Institute (ISI). Before joining University of Lagos, he served Yaba College of Technology as a visiting Lecturer in the Department of Statistics, School of Science and Lagos State Polytechnic, Ikorodu (now: Lagos State University of Science and Technology).

  • Nofiu Idowu Badmus , Department of Statistics, Faculty of Science, University of Lagos, Akoka, Nigeria.

    Badmus Nofiu Idowu (Ph.D) is a lecturer in the Department of Statistics, University of Lagos, Akoka, Nigeria, since February 2020. He obtained his certificates from reputable universities: Olabisi Onabanjo University, Ago-Iwoye, Nigeria (B.Sc. Statistics (2004), and University of Ibadan, Ibadan, Nigeria, for his M.Sc. (2007) and PhD Statistics (2017). He has worked as a Lecturer in several institutions, including Adesanya Polytechnic, Ogun State, Nigeria, and Yaba College of Technology, Lagos, Nigeria, from September 2007 to February 2020. His research interests include Statistical Inference, Distribution Theory, Applied Statistics, Computational Statistics, and Data Science and Analytics. He has contributed articles to prestigious national and international journals in his field of interest. Badmus is a member of many local and international associations

  • Malik Olasubomi Akintola

    Malik Akintola is a statistics graduate and data analyst with a strong focus on solving real-world problems through data-driven thinking. He has applied advanced analytics techniques to optimize business performance, automate reporting pipelines, and uncover trends that guide strategic decisions. His work spans industries and includes building predictive models, delivering insights from large datasets, and leading data training programs for aspiring analysts. Malik combines statistical knowledge with hands-on experience in tools like Python, SQL, and Power BI to drive measurable impact

Downloads

Published

2025-08-08

Issue

Section

Engineering & Physical Sciences

How to Cite

Exploration of Machine Learning Algorithms for Housing Price Prediction in Megacities. (2025). Journal of Science and Technology, 43(3), 92-108. https://journal.knust.edu.gh/index.php/just/article/view/1883