Forecasting short-term inflation in Argentina with Random Forest Models

Federico Daniel Forte
DOI: https://doi.org/10.48550/arXiv.2410.01175
2024-10-02
Abstract:This paper examines the performance of Random Forest models in forecasting short-term monthly inflation in Argentina, based on a database of monthly indicators since 1962. It is found that these models achieve forecast accuracy that is statistically comparable to the consensus of market analysts' expectations surveyed by the Central Bank of Argentina (BCRA) and to traditional econometric models. One advantage of Random Forest models is that, as they are non-parametric, they allow for the exploration of nonlinear effects in the predictive power of certain macroeconomic variables on inflation. Among other findings, the relative importance of the exchange rate gap in forecasting inflation increases when the gap between the parallel and official exchange rates exceeds 60%. The predictive power of the exchange rate on inflation rises when the BCRA's net international reserves are negative or close to zero (specifically, below USD 2 billion). The relative importance of inflation inertia and the nominal interest rate in forecasting the following month's inflation increases when the nominal levels of inflation and/or interest rates rise.
Econometrics
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the monthly inflation forecast in Argentina in the short - term (especially in the current month or the next month). Specifically, the author uses the Random Forest model to predict Argentina's short - term inflation and evaluates its forecasting performance relative to traditional econometric models and the consensus of market analysts. ### Research Background and Motivation 1. **High - inflation Environment**: Since 2022, Argentina has experienced a sharp acceleration of inflation, rising from an annual growth rate of about 50% in 2021 to over 200% in 2023 and approaching 300% in the first half of 2024. Such a high inflation rate poses challenges to the budget decisions of enterprises and economic agents, especially in cases where prices need to be adjusted frequently. 2. **Importance of Forecasting**: In a high - inflation environment, traditional econometric models may produce large forecasting errors, which can lead enterprises to face serious financial risks. Therefore, accurate monthly inflation forecasting is crucial for enterprises' pricing strategies and other economic decisions. ### Solutions To meet this challenge, the author adopts the Random Forest model, which is a machine - learning method with the following advantages: - **Non - parametric**: Random Forest is a non - parametric model that can capture non - linear relationships between variables without the need to pre - assume a specific functional form. - **Robustness**: This model is highly robust to outliers, missing data, and problems such as multicollinearity. - **Multivariable - handling Ability**: It can handle a large number of predictor variables and will not be severely affected by including insignificant variables. ### Main Findings 1. **Forecasting Accuracy**: The research results show that the forecasting accuracy of the Random Forest model is comparable to that of the market analyst consensus and traditional econometric models, and even performs better in some cases. Specifically, the mean absolute error (MAE) of the Random Forest model on the test set is 2.13%, and the MAE in the 1 - month out - of - sample forecast is 1.31%. 2. **Variable Importance**: By analyzing the importance of each predictor variable, the author finds that variables such as the lagged inflation rate (i.e., inflation inertia), monetary conditions (such as interest rates and money supply), wage levels, exchange rate market conditions, and economic activities have a high explanatory power for inflation forecasting. 3. **Non - linear Relationships**: The research also reveals some important non - linear relationships, for example: - When the gap between the parallel exchange rate and the official exchange rate exceeds 60%, the exchange rate's forecasting ability for inflation increases. - When the central bank's net international reserves are less than $2 billion, the impact of exchange rate changes on inflation becomes more significant. - In a high - inflation and high - interest - rate environment, the forecasting ability of the lagged inflation rate and the nominal interest rate for the next - month inflation increases. ### Conclusions This study shows that the Random Forest model performs well in predicting Argentina's short - term inflation and can provide forecasting accuracy comparable to that of the market analyst consensus and traditional econometric models. In addition, this model can also reveal some non - linear relationships that are difficult to capture by traditional methods, providing valuable reference information for policymakers and enterprises.