Open Access Research Article

A Comparative Analysis of Hedonic OLS and Random Forest Models for Apartment Price Estimation

Authors

  • Tarek Yalouli Faculty of Economics, Commerce and Management Sciences, Badji Mokhtar University-Annaba, Annaba, Algeria.
  • Raimonda Dervishi * Department of Mathematical Engineering, Faculty of Mathematical Engineering and Physical Engineering, Polytechnic University of Tirana, Tirana, Albania.
  • Robert Rogaczewski Faculty of Economic and Technical Sciences, State University of Applied Sciences in Konin, Konin, Poland.

https://doi.org/10.22105/kmisj.v3i1.117

Abstract

This study investigates apartment price formation through a comparative assessment of econometric and Machine Learning (ML) models applied to a micro-level dataset of residential properties in Tirana, Albania. The research addresses the challenge of modelling housing prices in emerging real estate markets characterized by heterogeneous property attributes and spatial variation. To ensure comparability across dwellings of different sizes, the dependent variable is defined as price per square meter. The methodological framework combines a hedonic Ordinary Least Squares (OLS) model and a nonlinear Random Forest (RF) model, allowing the evaluation of both model interpretability and predictive performance. Elastic Net and Extreme Gradient Boosting (XGBoost) models are additionally employed as robustness benchmarks. Model performance is assessed using standard prediction accuracy measures, while variable effects and importance metrics are analysed to identify the main determinants of housing prices. The results reveal that location-related factors and structural housing characteristics constitute the dominant drivers of apartment values. Apartment size is negatively associated with price per square meter, whereas the number of bathrooms is positively and statistically significantly associated. The number of rooms becomes insignificant after controlling for other explanatory variables. Strong neighbourhood effects confirm substantial spatial heterogeneity in the housing market. The comparative analysis demonstrates that RF achieves superior predictive accuracy relative to the alternative models, highlighting the ability of nonlinear methods to capture complex relationships in housing price data. The findings contribute to the application of statistical and ML techniques in real estate valuation and provide evidence on the relative strengths of interpretable and predictive modelling approaches.

Keywords

Housing price modelling Hedonic regression Random forest Real estate valuation Machine learning Spatial heterogeneity
References (41)
  1. [1] Zhao, C., & Liu, F. (2023). Impact of housing policies on the real estate market-systematic literature review. Heliyon, 9(10), e20704. https://www.cell.com/heliyon/fulltext/S2405-8440(23)07912-4

  2. [2] Han, F., Lu, M., Qin, D., Zheng, G., Zeng, G., Tan, Y., ... & He, H. (2025). Exploring housing price dynamics in sustainable cities through a cooperated big data driven machine learning method: Case study on a typical city in China. City and environment interactions, 28, 100223. https://doi.org/10.1016/j.cacint.2025.100223

  3. [3] Çılgın, C., & Gökçen, H. (2023). Machine learning methods for prediction real estate sales prices in Turkey. Revista de la construcción, 22(1), 163-177. http://dx.doi.org/10.7764/rdlc.22.1.163

  4. [4] Pojani, D. (2010). Tirana. Cities, 27(6), 483–495. https://doi.org/10.1016/j.cities.2010.02.002

  5. [5] Thanasi, M. (2016). Hedonic appraisal of apartments in Tirana. International journal of housing markets and analysis, 9(2), 239–255. https://doi.org/10.1108/IJHMA-03-2015-0016

Article Metrics

How to Cite

Yalouli, T., Dervishi, R., & Rogaczewski, R. (2026). A Comparative Analysis of Hedonic OLS and Random Forest Models for Apartment Price Estimation. Karshi Multidisciplinary International Scientific Journal, 3(1), 41-61. https://doi.org/10.22105/kmisj.v3i1.117

Similar Articles

1-10 of 48

You may also start an advanced similarity search for this article.