PRICING AND FORECASTING RESIDENTIAL PROPERTY PRICES IN JACAREÍ, BRAZIL, WITH MACHINE LEARNING AND TIME SERIES
Abstract
Medium-sized Brazilian cities rarely have their own property price indices, which makes valuation and planning harder. The aim of this study is to analyse and forecast the residential market of Jacareí, São Paulo, through two complementary lines. In the first, the asking price per square metre of 14,246 listings from the VivaReal portal, collected in March 2026, was estimated with linear regression and gradient boosting models (HistGradientBoosting, LightGBM and CatBoost), enriched with neighbourhood variables, 2022 Census tracts and listing text, under temporal validation. In the second, ARIMA models, Long Short-Term Memory (LSTM) networks trained on a panel of 50 cities and a global gradient boosting model were compared in forecasting the national FipeZAP index and that of São José dos Campos, a neighbouring city, with walk-forward evaluation and the Diebold-Mariano test. The final ensemble explained 73% (apartments) and 80% (houses) of the variation in price per square metre on the most recent listings, with mean absolute percentage errors of 11% and 15%, respectively, and well-calibrated prediction intervals. For the national index, ARIMA(0,2,3) had the lowest error at every horizon; in São José dos Campos, the LSTM networks erred less at 6 and 12 months, although without statistical significance, and macroeconomic indicators brought no gains. The central scenario projects a rise of about 8% over 12 months, with wide uncertainty. Combining open data and online listings therefore yields useful estimates for medium-sized cities without official indices, provided that assumptions and limitations are made explicit.
Author Biographies
Undergraduate student in Systems Analysis and Development at the Federal Institute of São Paulo (IFSP).
PhD in Space Geophysics from the National Institute for Space Research (INPE) and professor of Computing at the Federal Institute of São Paulo (IFSP).
References
AKIBA, T.; SANO, S.; YANASE, T.; OHTA, T.; KOYAMA, M. Optuna: a next-generation hyperparameter optimization framework. In: ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY & DATA MINING, 25., 2019, Anchorage. Proceedings [...]. New York: ACM, 2019. p. 2623–2631.
BANCO CENTRAL DO BRASIL. Sistema Gerenciador de Séries Temporais (SGS). Brasília, DF: BCB, 2026. Disponível em: https://www3.bcb.gov.br/sgspub/ Acesso em: 12 nov. 2026.
BASTOS, J. A.; PAQUETTE, J. On the uncertainty of real estate price predictions. Lisboa: ISEG, Universidade de Lisboa, 2024. (REM Working Paper, 0314-2024). Disponível em: https://rem.rc.iseg.ulisboa.pt/wps/pdf/REM_WP_0314_2024.pdf Acesso em: 12 nov. 2026.
BOX, G. E. P.; JENKINS, G. M.; REINSEL, G. C.; LJUNG, G. M. Time series analysis: forecasting and control. 5. ed. Hoboken: Wiley, 2015.
BREIMAN, L. Random forests. Machine Learning, v. 45, n. 1, p. 5–32, 2001.
DICKEY, D. A.; FULLER, W. A. Distribution of the estimators for autoregressive time series with a unit root. Journal of the American Statistical Association, v. 74, n. 366, p. 427–431, 1979.
DIEBOLD, F. X.; MARIANO, R. S. Comparing predictive accuracy. Journal of Business & Economic Statistics, v. 13, n. 3, p. 253–263, 1995.
FIPE – FUNDAÇÃO INSTITUTO DE PESQUISAS ECONÔMICAS. Índice FipeZAP: séries históricas. São Paulo: Fipe, 2026. Disponível em: https://www.fipe.org.br/pt-br/indices/fipezap/ Acesso em: 12 nov. 2026.
FRABASILE, D. Qual o desconto médio que se consegue na hora de fechar a compra de imóvel? Bora Investir, São Paulo, 11 nov. 2025. Disponível em: https://borainvestir.b3.com.br/objetivos-financeiros/organizar-as-contas/qual-o-desconto-medio-que-se-consegue-na-hora-de-fechar-a-compra-de-imovel/ Acesso em: 12 nov. 2026.
FRIEDMAN, J. H. Greedy function approximation: a gradient boosting machine. The Annals of Statistics, v. 29, n. 5, p. 1189–1232, 2001.
HANSSON, F.; ROSTAMI, J. Time series forecasting of house prices: an evaluation of a support vector machine and a recurrent neural network with LSTM cells. 2019. Trabalho de Conclusão de Curso (Bacharelado) – Uppsala Universitet, Uppsala, 2019.
HARVEY, D.; LEYBOURNE, S.; NEWBOLD, P. Testing the equality of prediction mean squared errors. International Journal of Forecasting, v. 13, n. 2, p. 281–291, 1997.
HOCHREITER, S.; SCHMIDHUBER, J. Long short-term memory. Neural Computation, v. 9, n. 8, p. 1735–1780, 1997.
HYNDMAN, R. J.; ATHANASOPOULOS, G. Forecasting: principles and practice. 3. ed. Melbourne: OTexts, 2021. Disponível em: https://otexts.com/fpp3/ Acesso em: 12 nov. 2026.
IBGE – INSTITUTO BRASILEIRO DE GEOGRAFIA E ESTATÍSTICA. Censo Demográfico 2022: malha de setores censitários e agregados por setores. Rio de Janeiro: IBGE, 2023. Disponível em: https://www.ibge.gov.br/estatisticas/sociais/populacao/22827-censo-demografico-2022.html Acesso em: 12 nov. 2026.
IPEA – INSTITUTO DE PESQUISA ECONÔMICA APLICADA. Ipeadata: dados macroeconômicos, regionais e sociais. Brasília, DF: Ipea, 2026. Disponível em: http://www.ipeadata.gov.br/ Acesso em: 12 nov. 2026.
KE, G.; MENG, Q.; FINLEY, T.; WANG, T.; CHEN, W.; MA, W.; YE, Q.; LIU, T.-Y. LightGBM: a highly efficient gradient boosting decision tree. In: ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS, 30., 2017, Long Beach. Proceedings [...]. Red Hook: Curran Associates, 2017. p. 3146–3154.
KISHI, R. Y.; STEKEL, T. C. Aprendizado de máquina na modelagem de preços imobiliários: uma abordagem multivariada em Jacareí-SP. International Contemporary Management Review, [S. l.], v. 6, n. 2, p. e340, 2025. Disponível em: https://icmreview.com/icmr/article/view/340 Acesso em: 25 nov. 2026 DOI: https://doi.org/10.54033/icmrv6n2-025
KWIATKOWSKI, D.; PHILLIPS, P. C. B.; SCHMIDT, P.; SHIN, Y. Testing the null hypothesis of stationarity against the alternative of a unit root. Journal of Econometrics, v. 54, n. 1–3, p. 159–178, 1992.
NERI, E. H. M. Modelo preditivo do preço de venda de apartamentos em Belo Horizonte utilizando Random Forest. 2020. Trabalho de Conclusão de Curso (Especialização em Estatística) – Universidade Federal de Minas Gerais, Belo Horizonte, 2020.
PEDREGOSA, F. et al. Scikit-learn: machine learning in Python. Journal of Machine Learning Research, v. 12, p. 2825–2830, 2011.
PEREIRA, G. J. Uso de aprendizado de máquina na modelagem preditiva dos valores de imóveis na cidade de João Pessoa. 2025. Trabalho de Conclusão de Curso (Bacharelado em Estatística) – Universidade Federal da Paraíba, João Pessoa, 2025.
PROKHORENKOVA, L.; GUSEV, G.; VOROBEV, A.; DOROGUSH, A. V.; GULIN, A. CatBoost: unbiased boosting with categorical features. In: ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS, 31., 2018, Montréal. Proceedings [...]. Red Hook: Curran Associates, 2018. p. 6638–6648.
ROSEN, S. Hedonic prices and implicit markets: product differentiation in pure competition. Journal of Political Economy, v. 82, n. 1, p. 34–55, 1974.
SHEN, L.; ROSS, S. L. Information value of property description: a machine learning approach. Journal of Urban Economics, v. 121, art. 103299, 2021.
SIAMI-NAMINI, S.; SIAMI NAMIN, A. Forecasting economics and financial time series: ARIMA vs. LSTM. arXiv, 2018. Disponível em: https://arxiv.org/abs/1803.06386 Acesso em: 12 nov. 2026.
TASHMAN, L. J. Out-of-sample tests of forecasting accuracy: an analysis and review. International Journal of Forecasting, v. 16, n. 4, p. 437–450, 2000.
VIVAREAL. Imóveis à venda em Jacareí – SP. [S. l.]: VivaReal, 2026. Disponível em: https://www.vivareal.com.br/venda/sp/jacarei/ Acesso em: 21 mar. 2026.
VOVK, V.; GAMMERMAN, A.; SHAFER, G. Algorithmic learning in a random world. New York: Springer, 2005.
ZHANG, H.; LI, Y.; BRANCO, P. Describe the house and I will tell you the price: house price prediction with textual description data. Natural Language Engineering, v. 30, p. 661–695, 2024.
ZILLI, C. A.; BASTOS, L. C. Avaliação em massa de apartamentos com uso dos algoritmos Randon Forest e Gradient Boosting: estudo de caso de Florianópolis, Brasil. Revista do Departamento de Geografia, v. 44, e212297, 2024 DOI: https://doi.org/10.11606/eISSN.2236-2878.rdg.2024.212297
