Enhancing inflation nowcasting with online search data: a random forest application for Colombia
Loading...
Borradores de Economía; No.1318
Date published
2025-07-02
Date
Part of book title
ISSN
ISBN
Document language
eng
Cargando estadísticas...
Las opiniones contenidas en el presente documento son responsabilidad exclusiva de los autores y no comprometen al Banco de la República ni a su Junta Directiva.
The opinions contained in this document are the sole responsibility of the author and do not commit Banco de la República or its Board of Directors.
Abstract
This paper evaluates the predictive capacity of a machine learning model based on Random Forests (RF), combined with Google Trends (GT) data, for nowcasting monthly inflation in Colombia. The proposed RF-GT model is trained using historical inflation data, macroeconomic indicators, and internet search activity. After optimizing the model’s hyperparameters through time series cross-validation, we assess its out-of-sample performance over the period 2023–2024. The results are benchmarked against traditional approaches, including SARIMA, Ridge, and Lasso regressions, as well as professional forecasts from the Banco de la República’s monthly survey of financial analysts (MES). In terms of forecast accuracy, the RF-GT model consistently outperforms the statistical models and performs comparably to the analysts’ median forecast, while offering the additional advantage of producing predictions approximately one and a half weeks earlier. These findings highlight the practical value of integrating alternative data sources and machine learning techniques into the inflation monitoring toolkit of emerging economies.
Description
Este artículo evalúa la capacidad predictiva de un modelo de aprendizaje automático basado en Random Forest (RF), combinado con datos de Google Trends (GT), para realizar nowcasting de la inflación mensual en Colombia. El modelo propuesto, denominado RF-GT, se entrena utilizando datos históricos de inflación, indicadores macroeconómicos y actividad de búsqueda en internet. Tras la optimización de los hiperparámetros mediante validación cruzada para series de tiempo, se evalúa su desempeño fuera de muestra durante el periodo 2023–2024. Los resultados se comparan con enfoques tradicionales, incluidos los modelos SARIMA, regresiones Ridge y Lasso, así como con los pronósticos profesionales de la Encuesta Mensual de Expectativas (EME) del Banco de la República. En términos de precisión predictiva, el modelo RF-GT supera de forma consistente a los modelos estadísticos y muestra un desempeño comparable al pronóstico mediano de los analistas, con la ventaja adicional de generar predicciones aproximadamente semana y media antes. Estos hallazgos destacan el valor práctico de integrar fuentes de datos alternativas y técnicas de aprendizaje automático en los sistemas de monitoreo de inflación de economías emergentes.
JEL Codes
C14 - Semiparametric and Nonparametric Methods: General
C53 - Forecasting and Prediction Methods; Simulation Methods
E17 - General Aggregative Models: Forecasting and Simulation: Models and Application
E31 - Price Level; Inflation; Deflation
E37 - Prices, Business Fluctuations, and Cycles: Forecasting and Simulation: Models and Application
C53 - Forecasting and Prediction Methods; Simulation Methods
E17 - General Aggregative Models: Forecasting and Simulation: Models and Application
E31 - Price Level; Inflation; Deflation
E37 - Prices, Business Fluctuations, and Cycles: Forecasting and Simulation: Models and Application
Temática
Keywords
Citation
URI
https://repositorio.banrep.gov.co/handle/20.500.12134/11241
https://hdl.handle.net/20.500.12134/11241
https://ideas.repec.org/p/bdr/borrec/1318.html
https://doi.org/10.32468/be.1318
https://investiga.banrep.gov.co/es/borradores/be-1318
https://www.banrep.gov.co/es/publicaciones-investigaciones/borradores-economia/mejorando-nowcasting-inflacion-datos-busquedas
https://hdl.handle.net/20.500.12134/11241
https://ideas.repec.org/p/bdr/borrec/1318.html
https://doi.org/10.32468/be.1318
https://investiga.banrep.gov.co/es/borradores/be-1318
https://www.banrep.gov.co/es/publicaciones-investigaciones/borradores-economia/mejorando-nowcasting-inflacion-datos-busquedas
Collections
Seleccionar año de consulta:

Esta obra está bajo licencia internacional Creative Commons Reconocimiento-NoComercial 4.0.
Este documento ha sido depositado por parte de el(los) autor(es) bajo la siguiente constancia de depósito