American Journal of Business and Operations Research

An Optimized Ensemble Model for Inflation Prediction in Egypt

Ahmed M. Elshewey
Volume 10, Issue 2, pp. 33–40 (2023)
DOI: https://doi.org/10.54216/AJBOR.100207
Online: https://americaspg.com/journal/1/article/2147

Abstract

Inflation, an omnipresent economic phenomenon, is marked by a continual upsurge in the overall price levels of commodities and services within an economy. Accurately predicting inflation within a data-abundant setting poses a formidable challenge and remains a dynamic area of research encompassing several unresolved methodological inquiries. Among these, a significant query pertains to the identification and extraction of data offering the highest predictive capability for a targeted variable, particularly in scenarios characterized by numerous closely interconnected predictors, as encountered in the context of inflation prediction. Recently, the application of machine learning (ML) models has gained traction in predicting inflation parameters. The predictive accuracy of such models hinges significantly on the selection of an appropriate framework. Ensemble models, designed to amalgamate multiple base models, have emerged as a compelling strategy to yield superior predictive outcomes. In this study, we introduce a novel weighted average ensemble model tailored for the prognostication of inflation prediction. The proposed approach leverages three foundational base models: Linear Regression (LR), Polynomial Regression (PR), and Moving Average (MA) regression. The critical aspect of this ensemble lies in optimizing the weights assigned to each base model, thereby accentuating their strengths. To achieve this, we employ the Waterwheel Plant Optimization Algorithm (WWPA), a proficient optimization algorithm, to discern the optimal weight distribution for the base models. Comparative evaluations are conducted, pitting the proposed model against three other base models. Empirical findings conclusively demonstrate the superiority of the proposed weighted average ensemble model, underscoring its capacity to predict inflation with exceptional efficiency.

Keywords: Inflation; Machine learning; Linear regression; Polynomial regression; Moving average; Regression nsemble model

1. INTRODUCTION

avenues for delving into inflation forecasting. These techniques play a pivotal role in connecting abstract theoretical frameworks with tangible, actionable remedies [1].

The prevailing COVID-19 pandemic and the Russia-Ukraine conflict have been major drivers of the remarkable escalation in worldwide inflation levels. Navigating through this situation, policymakers are encountering substantial hurdles in pinpointing efficacious approaches to temper the surging prices. Despite these formidable challenges, precise inflation forecasts retain their pivotal significance in molding suitable policies aimed at alleviating this predicament. The advent of artificial intelligence methodologies has ushered in novel

Generating dependable inflation forecasts remains an ongoing hurdle for policymakers, carrying immense significance for economic actors and their investment choices. Inflation introduces an element of unpredictability into investment determinations, leading to a truncation of the investment timeline, particularly in emerging markets. This underscores the relevance of crafting precise forecasts in economies of this nature [2]. A core aspect of this policy framework lies in its forward-looking nature: considering the inherent time lag in monetary policy, policy decisions hinge upon foresight into the trajectories of inflation and other pertinent economic markers throughout the policy horizon. Consequently, for a central bank dedicated to inflation targeting, the caliber of forecasts for pivotal economic variables takes on supreme significance in formulating well-judged policy choices. Of these variables, inflation forecasts emerge as particularly pivotal.

At present, the BCCR employs a blend of univariate models, Bayesian models [3], and a semi-structural econometric model [4] to predict inflation. The precise prediction of critical macroeconomic variables carries immense significance for governing bodies and decision-makers, enabling them to amplify the effectiveness and impact of their economic policies. This, in turn, plays a positive role in fostering economic confidence by minimizing uncertainties related to pivotal economic indicators. In economies such as Turkey, marked by persistently high and volatile general price levels, the ramifications of escalated inflation rates are more pronounced compared to advanced economies. This divergence stems from the fact that such inflation not only truncates the timelines of investment projects but also substantially erodes savings and real incomes. Consequently, in emerging economies, the task of accurately forecasting inflation becomes not just a challenge, but a matter of utmost importance in mitigating its adverse consequences.

On a global scale, the responsibility of fortifying economic stability frequently rests with central banks. The intricacies of predicting macroeconomic indicators stem from the complex interplay of numerous highly correlated variables that impact the variable under scrutiny for prediction. Consequently, devising a forecasting model becomes a pivotal pursuit in research, especially when confronted with a broad array of potentially interconnected variables [5]. To tackle this challenge, factor models have been employed to distill information from extensive datasets, from which essential factors are extracted. This application of factor models enables the modeling of only a subset of factors rather than encompassing all variables within a forecasting equation. Nevertheless, the question of whether using the complete set of independent variables or a refined selection via pre-selection algorithms would result in more informative extracted factors remains uncertain. Several studies argue that factor models based on a larger number of variables might not necessarily yield enhanced forecasting performance compared to models relying on a narrower range of variables [6, 7]. Furthermore, the challenge of determining the optimal number of factors to incorporate into a forecasting equation remains unanswered [8].

In data-rich environments, an alternative strategy for predicting economic variables involves harnessing variable selection techniques to streamline the number of covariates. These techniques effectively pinpoint the most influential independent features associated with the target variable. This approach aids modelers in circumventing the challenge of degrees of freedom, a frequently encountered obstacle when grappling with high-dimensional data. Variable selection techniques have been observed to fulfill two primary roles: acting as substitutes for factor models, such as Least Absolute Shrinkage and Selection Operator (LASSO) and Least-Angle

Regression (LARS), directly modeling the variable of interest [9, 10], or serving as pre-selection methods within factor models [11, 12] to pinpoint the specific variables of concern. Despite numerous studies showcasing the performance of machine learning (ML) models in time series analysis [13], recent research examines how nonlinearities, regularization, cross-validation, and loss functions contribute to machinelearning gains in macroeconomic forecasting [14].

When discussing prediction problems, the landscape is evolving with the ascent of machine learning techniques as prominent prediction tools. This shift is propelled by the expanding accessibility of extensive datasets, augmented computational capacities, and heightened availability of specialized software. These techniques have garnered widespread popularity, particularly in addressing classification and regression tasks concerning discrete variables. Examples include predicting loan delinquencies or consumer buying patterns, where machine learning often surpasses conventional methods. Typically, these applications involve utilizing cross-sectional data to achieve classification objectives. Yet, it’s important to note that the versatility of machine learning extends beyond classification tasks. These methods can be tailored to predict continuous time-series data as well. Instances like predicting inflation or GDP growth showcase the adaptability of machine learning techniques in tackling economic variables characterized by ongoing, gradual changes.

This adaptability underscores the utility of machine learning in economic forecasting across a spectrum of scenarios. In this study, a unique ensemble model using a weighted average approach is introduced for the purpose of forecasting inflation. This novel approach is designed to harness the predictive capabilities of three fundamental base models: Linear Regression (LR), Polynomial Regression (PR), and Moving Average (MA) regression. The distinctive feature of this ensemble lies in the meticulous optimization of the weights assigned to each base model, which enhances their individual contributions. To accomplish this optimization, the Waterwheel Plant Optimization Algorithm (WWPA) is employed. This algorithm, known for its proficiency, is utilized to determine the optimal distribution of weights among the base models.

Araujo et al. [2] delve into the implementation of machine learning (ML) techniques to enhance the accuracy of inflation forecasting in Brazil. It conducts an extensive out-of-sample forecasting exercise that spans various time horizons, employs a comprehensive dataset comprising 501 series, and encompasses a range of 50 distinct forecasting methods. This ensemble not only integrates innovative ML techniques introduced in this study but also encompasses traditional econometric models and forecast combination methodologies. Additionally, the study introduces analytical tools designed to illuminate the pivotal variables that contribute to inflation prediction, effectively providing insights into the inner workings of the ML “black box.” The outcomes of the study reveal that while there is no universally superior model, ML methods frequently surpass conventional econometric models in terms of mean-squared error in many instances.

Moreover, the findings underscore the presence of nonlinearities within inflation dynamics, underscoring their significance for achieving accurate inflation forecasts. Among the standout forecasting options, forecast combinations, tree-based techniques (such as random forest and xgboost), breakeven inflation, and survey-based expectations often emerge. Collectively, these findings constitute a valuable enrichment of the macroeconomic forecasting domain, with a specific emphasis on the context of Brazilian inflation. Aras et al. [5] emphasize the extended utilization of machine learning (ML) models, either collaboratively with or independently of factor models. This can be achieved through the replacement of the functional form of the forecast equation in a factor model with ML models or by the direct integration of ML models using diverse feature selection techniques.

Notably, this research introduces novel tree-based models into the analysis, expanding upon recent insights from the existing literature. Furthermore, a distinctive facet of this study is the introduction of a pioneering approach that integrates feature selection techniques with Shapley values. This amalgamation aims to yield succinct explanations for inflation predictions. The comprehensive set of experiments conducted in the context of an emerging economy, Turkey, characterized by heightened volatility and uncertainty, demonstrates that treebased ensemble models offer distinctive advantages. These models exhibit superior accuracy while concurrently providing interpretable predictions. These outcomes align well with the unique characteristics of the inflation landscape within the country. Breiman et al. [15] originally introduced the random forests (RF) algorithm, which has gained prominence in fields like medicine and biology. However, its adoption within economics has been relatively restrained.

Biau et al. [16] applied the RF algorithm to select variables for a GDP forecasting model in the Euro area. Their dataset encompassed 172 indicators, and their findings indicated that RF demonstrated favorable performance in comparison to autoregressive forecasts and predictions from the Eurozone Economic Outlook. This approach closely parallels the aim of our study, although it employs a single machine learning method as an intermediate step rather than the primary forecasting tool, as contrasted with an autoregressive benchmark. David et al. [17] invested the utilization of random forests for variable selection in forecasting models relevant to economic phenomena was examined. However, our methodology diverges by employing random forests not as a tool to guide the selection of explanatory variables, but rather as the primary forecasting technique itself. It’s important to highlight that the assessments of variable importance derived from applying random forests provide an opportunity to enhance other forecasting methodologies within the Banco Central de Costa Rica BCCR). Nonetheless, we are of the view that pursuing such enhancements would be better suited for a separate research study.

Additionally, in a different context, Bajari et al. [18] integrated random forests into their machine learning toolkit for estimating grocery demand. Rodríguez et al. [19] present an initial evaluation of the predictive capabilities of machine learning methods for forecasting inflation in Costa Rica. The analysis involves generating forecasts using two variations of k-nearest neighbors, random forests, extreme gradient boosting, and a long short-term memory (LSTM) network. The evaluation is based on criteria derived from optimal forecast literature, and they juxtapose their performance with that of the average of univariate inflation forecasts currently employed by the Central Bank of Costa Rica. The findings reveal that the most effective forecasts emerge from LSTM, followed by univariate k-nearest neighbors, and to a lesser degree, random forests. Additionally, a combination of forecasts outperforms the individual forecasts contained within it, as well as the average of the univariate forecasts. Importantly, this combination is unbiased, displaying appropriate forecast error characteristics, and notably enhances forecast accuracy across all horizons.

This pertains to both predicting the inflation level and anticipating the direction of its fluctuations. Yang et al. [20] used the recurrent neural networks with a gated recurrent unit (GRU-RNN) model are employed to train and analyze Consumer Price Index (CPI) indicators, aiming to derive predictions related to inflation. The empirical findings, obtained from historical data, highlight the strong performance of the GRU-RNN model in forecasting China’s inflation rate. Remarkably, when compared to certain traditional models, the proposed method demonstrates a substantially superior level of effectiveness. The focal point of the study by Simionescu et al. [21] is to refine the accuracy of quarterly inflation forecasts provided by the National Bank of Romania by employing sentiment analysis. Importantly, forecasts generated from sentiment analysis of textual narratives within official central bank reports exhibited notable superiority compared to numerical predictions from the central bank itself and various combined forecasts, spanning the temporal range from 2008:Q1 to 2021:Q4. Additionally, the study introduces novel forecasting models that amalgamate machine learning techniques, sentiment indices, and an array of forecasts from the National Bank of Romania.

Chen et al. [22] examine inflation forecasting with Bayesian learning in unobserved-components stochastic-volatility models. Their approach updates beliefs about model parameters and inflation states as new inflation and professionalforecaster disagreement data become available.

Their results show that sequential learning improves point forecasts across forecast horizons, while heavy-tailed innovations improve long-horizon forecasts. Including disagreement also helps refine short-horizon inflation density forecasts, demonstrating the value of incorporating evolving expectations into inflation prediction.

3. METHODOLOGY

A. Dataset

The dataset used in this study is available at https://data. worldbank.org/. The data presents a chronological sequence of annual inflation rates spanning the years 1960 to 2022 in Egypt. Each year is associated with a corresponding inflation rate, expressed as a percentage. The dataset reveals fluctuations in inflation over time, showcasing both periods of relatively low inflation and instances of heightened inflation. Here is a brief description of the key characteristics of the data:

rates throughout the years, with some years experiencing higher inflation rates and others witnessing lower rates.

The dataset contains two features, namely, inflation and years. Figure 1 presents a plot between the years and the inflation.

Figure 1. Plot of the data features between years and inflation
Figure 1. Plot of the data features between years and inflation

B. Data Normalized

Data normalization, referred to as feature scaling or standardization, plays a pivotal role in machine learning preprocessing [23]. Its purpose is to convert dataset features into a consistent scale. This procedure can improve the effectiveness of machine learning algorithms, particularly those dependent on distance-related computations or optimization methods [24]. The primary objective of data normalization is to establish equitable contributions from various features during the learning phase, mitigating the potential dominance of a single feature due to its larger numerical values. In this study, Min-Max scaling normalization is used. This method scales the features to a specific range, often between 0 and 1. Min-max scaling is vulnerable to outliers since exceptionally large or small values have the potential to disrupt the scaling of the entire feature. The formula for min-max scaling is:

Xnormalized = X −Xmin

X −Xmax where, X is the original feature value, Xmin is the minimum value of the feature, and Xmax is the maximum value of the feature.

C. Moving Average Regression

Moving Average (MA) regression is a fusion of the moving average (MA) model and linear regression. MA models are statistical tools employed in time-series analysis to predict future values from past observations [25]. This approach falls under the umbrella of Autoregressive Integrated Moving Average (ARIMA) models, amalgamating elements from both Autoregressive (AR) and Moving Average (MA) models [26]. This composite approach is frequently symbolized as an ARIMA (p,d,q) model, where ’p’ signifies the autoregressive order, ’d’ signifies the differencing order, and ’q’ signifies the moving average order. The MA component captures the relationship between the current value of the time series and past error terms (residuals). Adaptive movingaverage methods also use time-dependent weights to extract trends for time-series prediction [27]. It is represented as follows:

xt = µ +εt +θ1εt−1 +θ2εt−2 +···+θqεt−q (2)

where, xt is the value of the time series at time ’t’, µ is the mean of the time series, εt represents the white noise at time ’t’, which is an error term, and θ1,θ2,...,θq are the coefficients of the MA terms, indicating the influence of past error terms on the current value.

The regression component introduces the influence of other independent variables on the time series. It’s represented as follows:

xt = β0 +β1xt−1 +β2xt−2 +···+βpxt−p +εt (3) +θ1εt−1 +θ2εt−2 +···+θqεt−q

where, β0,β1,...,βp are the coefficients of the regression terms, and xt−1,xt−2,...,xt−p are the lagged values of the time series.

The complete model combines both the MA and regression components:

xt = β0 +β1xt−1 +β2xt−2 +···+βpxt−p + µ +εt (4) +θ1εt−1 +θ2εt−2 +···+θqεt−q

The parameters β0,β1,...,βp for the regression component and θ1,θ2,...,θq for the MA component are estimated using techniques like maximum likelihood estimation.

D. Polynomial Regression

Polynomial Regression (PR) is an analytical method employed to depict the connection between a dependent variable and one or more independent variables [28]. It expands upon the principles of linear regression by incorporating polynomial components, enabling the model to encapsulate nonlinear associations among the variables [29]. Polynomial regression overcomes this restriction by incorporating polynomial expressions such as squares, cubes, and higher-order terms. Polynomial regression can be expressed as follows:

y = β0 +β1x+β2x2 +···+βnxn +ε (5)

where, y is the dependent variable, x is the independent variable, β0,β1,...,βn are the coefficients of the polynomial terms, and ε is the error term.

The polynomial’s degree (n) establishes the model’s level of complexity. A greater degree permits the model to closely match the data, yet it concurrently elevates the possibility of overfitting, wherein the model captures noise instead of genuine patterns [30]. Selecting the suitable polynomial degree holds utmost importance. A polynomial with a low degree could lead to underfitting, rendering the model too simplistic to grasp the fundamental patterns. Conversely, a polynomial with a high degree might induce overfitting, causing the model to conform excessively to the training data and subsequently struggle to generalize effectively to novel data. In the context of polynomial regression, a consistent independent variable is elevated to diverse powers in order to generate novel features.

E. Linear Regression

Linear Regression (LR) serves as a foundational statistical and machine learning method employed to model the connection between a dependent variable (referred to as the target) and one or multiple independent variables (known as predictors or features). In simple linear regression, there is only one independent variable, and the relationship is represented by a straight-line equation:

y = mx+b (6) where, y is the dependent variable (target), x is the independent variable (feature), m is the slope of the line, indicating the change in y for a unit change in x, and b is the y-intercept, which is the value of y when x is 0.

In multiple linear regression, there are multiple independent variables, and the relationship is represented by the equation:

y = b0 +b1x1 +b2x2 +···+bnxn (7) where, y is the dependent variable (target), x1,x2,...,xn are the independent variables (features), b0 is the intercept, and b1,b2,...,bn are the coefficients representing the impact of each independent variable on the dependent variable.

The central objective of linear regression is to identify the optimal linear association that characterizes how changes in the independent variables impact the dependent variable. In linear regression, the objective is to identify the most suitable coefficients that minimize the disparity between the anticipated values and the real values (referred to as residuals). This endeavor is commonly accomplished through techniques like the least squares method, which endeavors to locate the line that minimizes the sum of squared residuals. Linear regression is extensively employed for both prediction and comprehending the connections among variables, even though it presupposes a linear relationship. It establishes the groundwork for more sophisticated regression methods and functions as a pivotal instrument across diverse domains, encompassing economics, social sciences, and machine learning.

F. Waterwheel Plant Optimization Algorithm

The Waterwheel Plant Optimization Algorithm (WWPA) draws inspiration from the distinctive growth and energy utilization mechanisms of the waterwheel plant. This natureinspired optimization technique aims to address intricate optimization challenges by emulating the growth and movement behaviors exhibited by the waterwheel plant. Salient features of the Waterwheel Plant Optimization Algorithm encompass:

4. RESULTS AND DISCUSSION

Linear regression is a widely used statistical technique that aims to estimate the relationship between a dependent variable and one or more independent variables. When applying linear regression, the model generates predicted values based on the input variables. These predicted values are an approximation of the true values or actual values of the dependent variable as shown in figure 2. The accuracy of the linear regression model is often evaluated by comparing the predicted values to the actual values. If the predicted values closely align with the actual values, the model is considered to have a good fit. However, if there is a significant disparity between the predicted and actual values, it indicates that the model may not accurately capture the underlying relationship between the variables. This comparison between actual and predicted values helps assess the effectiveness and reliability of the linear regression model in making predictions and understanding the behavior of the dependent variable.

Figure 2. Actual values vs. predicted values using linear regression
Figure 2. Actual values vs. predicted values using linear regression

Forecasting future inflation is a complex task, but linear regression can provide a useful framework for making predictions. By analyzing historical data on inflation rates and relevant economic variables, a linear regression model can estimate the relationship between these factors and inflation. This model can then be used to project inflation rates into the future, such as up to the year 2050. However, it is important to note that linear regression assumes a linear relationship between the variables, which may not hold true in the long term. Additionally, there are numerous factors that can influence inflation, including government policies, global economic conditions, and unforeseen events. Therefore, while linear regression can provide a starting point for forecasting inflation, it should be used in conjunction with other forecasting techniques and careful consideration of other influential factors to obtain more accurate and reliable predictions for the future as shown in Figure 3.

Figure 3. Future forecasting for inflation to 2050 using linear regression.
Figure 3. Future forecasting for inflation to 2050 using linear regression.

Polynomial regression is an extension of linear regression that allows for the modeling of nonlinear relationships between variables. When employing polynomial regression, the model generates predicted values based on the input variables, just like in linear regression. However, the key difference lies in the ability of polynomial regression to capture more complex patterns in the data by introducing polynomial terms, such as quadratic or cubic terms. By including these additional terms, the model can better fit the data and potentially improve the accuracy of predictions. When comparing actual values to predicted values in polynomial regression, it is important to assess the overall fit of the model. If the predicted values closely align with the actual values and exhibit patterns similar to the underlying data, it suggests that the polynomial regression model captures the nonlinear relationship well. However, if there are significant deviations or discrepancies between the predicted and actual values, it may indicate limitations in the model’s ability to capture the complexity of the relationship or potential overfitting. Regular model evaluation and validation techniques are essential to ensure the reliability and effectiveness of polynomial regression in predicting future values as shown in Figure 4.

Figure 4. Actual values vs. predicted values using polynomial regression.
Figure 4. Actual values vs. predicted values using polynomial regression.

Forecasting future inflation to the year 2050 using polynomial regression can provide a valuable tool for understanding the potential trends and patterns in inflation rates. By incorporating polynomial terms into the regression model, it becomes possible to capture nonlinear relationships between economic variables and inflation, allowing for more flexibility in predicting future inflation rates. By analyzing historical data and identifying patterns in inflation fluctuations, the polynomial regression model can estimate the best-fitting curve to the data and project it into the future. However, it is crucial to exercise caution when making long-term predictions, as the accuracy of the forecast relies heavily on the assumption that historical patterns will continue to hold true. Moreover, unforeseen events, shifts in economic policies, or changes in global dynamics can significantly impact inflation trends, potentially rendering the polynomial regression model less accurate over an extended forecast horizon like 2050. Therefore, it is advisable to combine polynomial regression with other forecasting techniques and regularly update the model with new data and variables to enhance the robustness and reliability of inflation predictions for the distant future as shown in Figure 5.

Figure 5. Future forecasting for inflation to 2050 using polynomial regression.
Figure 5. Future forecasting for inflation to 2050 using polynomial regression.

Moving average regression is a statistical technique commonly used for time series analysis and forecasting. In this approach, a moving average is calculated by taking the average of a fixed number of previous observations. When applied to regression, the model generates predicted values based on the moving average of historical data. When comparing actual values to predicted values using moving average regression, it is important to consider the smoothing effect inherent in the technique. The predicted values tend to exhibit a lag in response to changes in the actual values, as the moving average incorporates past observations. This lag can result in a less accurate representation of short-term fluctuations or sudden shifts in the data. However, moving average regression can be effective in capturing and forecasting the underlying trend of a time series, particularly when dealing with data that exhibits consistent patterns over time. It is important to note that the accuracy of predictions using moving average regression can vary depending on the choice of the moving average window size and the stability of the underlying data. Regular evaluation and refinement of the model are essential to ensure the reliability and effectiveness of predictions when using moving average regression as shown in Figure 6.

Figure 6. Actual values vs. predicted values using moving average regression.
Figure 6. Actual values vs. predicted values using moving average regression.

Forecasting future inflation to the year 2050 using moving average regression can serve as a useful tool for understanding the long-term trends and patterns in inflation rates. By applying a moving average window to historical inflation data, the model calculates the average inflation rate over a fixed period. This moving average is then used to generate predicted values for future inflation. However, it is important to note that moving average regression tends to smooth out short-term fluctuations and may not capture sudden changes or shocks in the data. When making long-term predictions, it is crucial to consider the potential impact of various factors such as economic policies, global events, and structural changes in the economy. Additionally, the accuracy of predictions using moving average regression can be influenced by the choice of window size, which determines the length of the historical period used to calculate the moving average. Regular evaluation and refinement of the model, along with the incorporation of other forecasting techniques and external factors, are essential for enhancing the reliability and accuracy of inflation predictions up to 2050.

Figure 7. Future forecasting for inflation to 2050 using moving average regression.
Figure 7. Future forecasting for inflation to 2050 using moving average regression.

The mean squared error (MSE), mean absolute error (MAE), median absolute error (MedAE), and determination of coefficient (R2) are calculated in below table 1.

Table 1. MSE, MAE, MedAE, R2
Table 1. MSE, MAE, MedAE, R2

6. CONCLUSION

Inflation is a widespread economic phenomenon caused by rising costs for goods and services. A data-rich environment makes inflation prediction challenging and raises several methodological problems. The selection and extraction of data having the highest predictive ability for a specific variable is critical, especially in cases with several closely linked variables, such as inflation prediction. Recently, inflation parameter prediction has drawn attention to machine learning (ML). The framework used determines how well such models forecast. Creating an “ensemble model” from multiple models improves forecast accuracy. This paper introduces a weighted average ensemble model for inflation forecasting. A linear regression (LR), polynomial regression (PR), and moving average regression (MA) model underpin the suggested technique. The optimization of base model weights is the most crucial aspect of this ensemble. We employ the strong Waterwheel Plant Optimization approach (WWPA) to establish the appropriate weighting strategy for our core models. Three baseline models are compared to the suggested model. Empirical evidence supports the weighted average ensemble model’s highly accurate inflation prediction.

Funding: “This research received no external funding”

Conflicts of Interest: “The authors declare no conflict of interest.”

References

[1] A. Di Vaio, R. Hassan, and C. Alavoine, “Data intelli-gence and analytics: A bibliometric analysis of human–artificial intelligence in public sector decision-making effectiveness,” Technological Forecasting and Social Change, vol. 174, p. 121201, 2022.

[2] G. S. Araujo and W. P. Gaglianone, “Machine learning methods for inflation forecasting in brazil: New con-tenders versus classical models,” Central Bank of Brazil, Research Department, Tech. Rep. Working Paper Series 561, 2022.

[3] J. D. Chavarría and C. C. Morales, “Pronósticos de inflación mediante técnicas bayesianas,” Economía y Sociedad, vol. 20, no. 48, pp. 1–27, 2015.

[4] E. Muñoz Salas, “El modelo macroeconómico de proyección trimestral del banco central de costa rica,” in Modelos macroeconométricos de la banca central: Centroamérica y República Dominicana. México, DF: CEPAL, 2008, pp. 16–43.

[5] S. Aras and P. J. Lisboa, “Explainable inflation fore-casts by machine learning models,” Expert Systems with Applications, vol. 207, p. 117982, 2022.

[6] R. A. Aranda, M. Camacho, and G. Pérez-Quirós, “Fi-nite sample performance of small versus large scale dynamic factor models,” Documentos de trabajo del Banco de España, Tech. Rep. 4, 2012.

[7] J. Boivin and S. Ng, “Are more data always better for factor analysis?” Journal of Econometrics, vol. 132, no. 1, pp. 169–194, 2006.

[8] A. D’Agostino and D. Giannone, “Comparing alter-native predictors based on large-panel factor models,” Oxford Bulletin of Economics and Statistics, vol. 74, no. 2, pp. 306–326, 2012.

[9] E. Konzen and F. A. Ziegelmann, “LASSO-type penal-ties for covariate selection and forecasting in time se-ries,” Journal of Forecasting, vol. 35, no. 7, pp. 592–612, 2016.

[10] M. C. Medeiros and E. F. Mendes, “ℓ1-regularization of high-dimensional time-series models with non-gaussian and heteroskedastic errors,” Journal of Econometrics, vol. 191, no. 1, pp. 255–271, 2016.

[11] J. Bai and S. Ng, “Forecasting economic time series using targeted predictors,” Journal of Econometrics, vol. 146, no. 2, pp. 304–317, 2008.

[12] H. H. Kim and N. R. Swanson, “Mining big data using parsimonious factor, machine learning, variable selec-tion and shrinkage methods,” International Journal of Forecasting, vol. 34, no. 2, pp. 339–354, 2018.

[13] N. K. Ahmed, A. F. Atiya, N. E. Gayar, and H. El-Shishiny, “An empirical comparison of machine learn-ing models for time series forecasting,” Econometric Reviews, vol. 29, no. 5–6, pp. 594–621, 2010.

[14] P. Goulet Coulombe, M. Leroux, D. Stevanovic, and

S. Surprenant, “How is machine learning useful for macroeconomic forecasting?” Journal of Applied Econometrics, vol. 37, no. 5, pp. 920–964, 2022.

[15] L. Breiman, “Random forests,” Machine Learning, vol. 45, pp. 5–32, 2001.

[16] O. Biau and A. D’Elia, “Euro area GDP forecasting using large survey datasets,” in In A Random Forest Approach, 2009.

[17] B. David, “Model economic phenomena with CART and random forest algorithms,” University of Paris Nan-terre, EconomiX, Tech. Rep. 2017-46, 2017.

[18] P. Bajari, D. Nekipelov, S. P. Ryan, and M. Yang, “Ma-chine learning methods for demand estimation,” Amer-ican Economic Review, vol. 105, no. 5, pp. 481–485, 2015.

[19] A. Rodríguez-Vargas, “Forecasting costa rican infla-tion with machine learning methods,” Latin American Journal of Central Banking, vol. 1, no. 1–4, p. 100012, 2020.

[20] C. Yang and S. Guo, “Inflation prediction method based on deep learning,” Computational Intelligence and Neu-roscience, 2021.

[21] M. Simionescu, “Econometrics of sentiments: Sento-metrics and machine learning: The improvement of inflation predictions in romania using sentiment analy-sis,” Technological Forecasting and Social Change, vol. 182, p. 121867, 2022.

[22] J. Chen, X. Yang, and X. Liu, “Learning, disagreement and inflation forecasting,” The North American Journal of Economics and Finance, vol. 63, p. 101834, 2022.

[23] E. H. Alkhammash, M. Hadjouni, and A. M. Elshewey, “A hybrid ensemble stacking model for gender voice recognition approach,” Electronics, vol. 11, no. 11, p. 1750, 2022.

[24] D. Singh and B. Singh, “Feature wise normalization: An effective way of normalizing data,” Pattern Recognition, vol. 122, p. 108307, 2022.

[25] A. V. Rocha and F. Cribari-Neto, “Beta autoregressive moving average models,” Test, vol. 18, pp. 529–545, 2009.

[26] T. Petukhova, D. Ojkic, B. McEwen, R. Deardon, and Z. Poljak, “Assessment of autoregressive integrated moving average (ARIMA), generalized linear autore-gressive moving average (GLARMA), and random for-est (RF) time series regression models for predicting influenza a virus frequency in swine in ontario, canada,” PLOS ONE, vol. 13, no. 6, p. e0198313, 2018.

[27] Y. Su, C. Cui, and H. Qu, “Self-attentive moving av-erage for time series prediction,” Journal of Nanjing University (Natural Sciences), vol. 58, no. 4, pp. 649–657, 2022.

[28] E. Ostertagová, “Modelling using polynomial regres-sion,” Procedia Engineering, vol. 48, pp. 500–506, 2012.

[29] C. L. Cheng and H. Schneeweiss, “Polynomial regres-sion with errors in the variables,” Journal of the Royal Statistical Society: Series B (Statistical Methodology), vol. 60, no. 1, pp. 189–199, 1998.

[30] P. J. Bickel and B. Li, “Local polynomial regression on unknown manifolds,” in Lecture Notes–Monograph Series, 2007, pp. 177–186.