Research Article

Housing Value Drivers: OLS vs Random Forest

Jingyue Zhang*
Aquinas High School

* Corresponding author: [email protected]

Abstract

This study examines the determinants of California house prices using the 1990 census block-group dataset (n = 20,640) and a unified evaluation protocol with a fixed train/validation/test split (60/20/20). This study compares two linear hedonic baselines, OLS without distances (A1) and OLS with five geographic distances (A2), to a Random Forest (RF) trained on log prices and back-transformed to dollars via Duan smearing, while A1/A2 are estimated in levels (USD). Models are compared primarily by test-set R2in dollars. RF attains the highest accuracy (test R2≈0.834, RMSE≈$47k), outperforming A2 (R2≈0.648), while A2 improves modestly over A1, quantifying the incremental value of explicit geographic accessibility. Cross-method evidence converges on a stable core of determinants: median income and distance to coast rank first and second, followed by latitude/longitude and distances to major cities; structural count variables are comparatively weaker at the block-group level. Price-tier analysis (Low/Mid/High, defined at training P30/P70) shows stronger fit in the low tier and larger errors/heterogeneity at the high end. Robustness checks (Winsorization, Huber, dropping distances, higher-order lat/long polynomials) do not overturn conclusions; dropping distances degrades performance most. Overall, purchasing power and spatial accessibility jointly organize the cross-section of California house prices, with nonlinearities favoring RF for prediction and A2 for interpretation.

Keywords: Linear Regression; Random Forest; Housing Prices
Published: October 23, 2025
DOI: 10.54254/2753-8818/2025.DL27981
Volume: TNS Vol.142
pp. 167-179
Download PDF

References

  1. National Association of Home Builders. (n.d.) Housing’s Contribution to Gross Domestic Product. Retrieved from https: //www.nahb.org/news-and-economics/housing-economics/housings-economic-impact/housings-contribution-to-gross-domestic-product
  2. Rosen, S. (1974) Hedonic Prices and Implicit Markets: Product Differentiation in Pure Competition. Journal of Political Economy, 82, 34-55.
  3. Sirmans, G.S., Macpherson, D.A. and Zietz, E.N. (2005) The Composition of Hedonic Pricing Models. Journal of Real Estate Literature, 13, 1-44.
  4. Zietz, J., Zietz, E.N. and Sirmans, G.S. (2008) Determinants of House Prices: A Quantile Regression Approach. The Journal of Real Estate Finance and Economics, 37, 317-333.
  5. Čeh, M., Kilibarda, M., Lisec, A. and Bajat, B. (2018) Estimating the Performance of Random Forest versus Multiple Regression for Predicting Prices of the Apartments. ISPRS International Journal of Geo-Information, 7, 168.
  6. Ho, W.K.O., Li, B.S.W. and Wong, S.W. (2021) House Price Prediction Using Machine Learning Algorithms: A Case Study of Hong Kong. Journal of Property Research, 38, 48-70.
  7. Basu, S. and Thibodeau, T.G. (1998) Analysis of Spatial Autocorrelation in House Prices. The Journal of Real Estate Finance and Economics, 17, 61-85.
  8. Friedman, J.H. (2001) Greedy Function Approximation: A Gradient Boosting Machine. The Annals of Statistics, 29, 1189-1232.
  9. Koenker, R. and Bassett, G. (1978) Regression Quantiles. Econometrica, 46, 33-50.
  10. Molnar, C. (2022) Interpretable Machine Learning. Retrieved from https: //christophm.github.io/interpretable-ml-book/