StudentGuiders
Arima Forecasting Model for Uganda’s Consumer Price Index
Arima Forecasting Model for Uganda’s Consumer Price Index In Uganda, the Central Bank watches closely inflation which happens to be one of the key macroeconomic indicators for which the central bank rate is anchored on. Uganda Bureau of Statistics disseminates monthly Consumer Price Indices (CPIs) to the various stakeholders. Currently, the CPI is computed for eight urban centres spread across the country. The monthly CPIs serve mostly those users who require past and current inflation rates. The main objective of this study is to identify and estimate an ARIMA model for the CPI and use it to make short term forecasts. We relied upon monthly Consumer Price Indices from January 2010 to July 2020 obtained from Uganda Bureau of Statistics. The time series was transformed so as to make it stationary, before identification and estimation of ARIMA (p, d, q) x (P, D, Q)12 models. An ARIMA (1, 1, 1) (0, 1, 1)12 with no constant was selected as the best model, because it had the least AIC and BIC. Additionally, all the coefficients of the ARs and MAs were significant at 1% level. Using the selected model, inflation forecasts were generated for 12 months (August 2020 to July 2021) and found to fluctuate between 4.7 and 6 percent. We recommend this model to Uganda Bureau of Statistics and Central Bank to use it to make forecasts and disseminate them to users. In conclusion, generally good forecasts are vital for better resource allocation, planning and decision making.
1. Introduction
The monetary and fiscal authorities in any country closely monitor key macroeconomic indicators. These indicators comprise of economic growth, unemployment, balance of trade and inflation. Knowledge of such indicators is the basis for making informed decisions and sound judgment regarding investment and allocation of scare resources [1]. In Uganda, the Bank of Uganda is the apex bank which regulates and supervises commercial banks and other non-bank financial institutions. The Bank of Uganda adjusts the central bank rate (CBR) as a policy tool in line with inflation rates with the aim of influencing commercial banks and other money lenders to adjust their interest rates [2, 3]. The Bank of Uganda issues monetary policy statements monthly soon after Uganda Bureau of Statistics (UBOS) releases the previous month’s consumer price index (CPI). Currently, the CPI covers eight urban centres spread across the country. These centres are: Kampala, Jinja, Mbale, Masaka, Mbarara, Fort Portal, Gulu and Arua [4].
The policy makers, planners, investors and other stakeholders
are interested in overall inflation because it throws some light on price movements in the national economy. Inflation is also useful for: wage indexing and negotiations, deflating the gross domestic product (GDP), costing of contracts, investment decisions among others [5]. UBOS monitors the headline inflation and its sub-components of food, core and energy, fuels & utilities. Food inflation is mainly driven by weather patterns (first rainy season runs from February to June/July and the second from August to December) experienced annually in most parts of the country [6].
The current monthly CPIs serve mostly those users who require past and current inflation rates. Investors, traders and other economic actors make decisions based upon both current and forecasts of CPI. No inflation forecasts are usually released during the monthly dissemination of the CPI in Uganda. Making good predictions is not easy and as such a number of researchers have come up with different models and analytical techniques which may be applied to generate reliable forecasts [7, 8]. Montgomery et. al applied the Box Jenkins Methodology using Autoregressive Integrated Moving Average (ARIMA) model to make business forecasts [10].
This study attempted to come up with forecasting models and short run forecasts for headline inflation. The main aim of the study was to estimate an ARIMA forecasting model for inflation. More specifically, the study identified the most appropriate forecasting model, then used it to generate a few monthly forecasts.
2. Literature Review
The governments worldwide are faced with a number of challenges some of which are unprecedented in nature like corona viruses pandemics ravaging the world and credit crunches among others. These factors have generally contributed to economic slowdowns, loss of employment and worsening of balance of payments especially for developing countries. In order promote economic growth the governments including Uganda promote foreign direct investment through a number of incentives such as those spelt out in the Investment Code Act 1991 [1, 2]. Furthermore, the macroeconomic environment had to be stable which includes control of inflation.
Time Series forecasting is a feature in a number of fields, including: business, government statistics, economics, medicine and social science [9]. Time series forecasting models are basically mathematical techniques which rely upon historical series to make forecasts. Forecasting may be classified into short term, medium term and long term depending on the period in focus. Short-term forecasting problems involve predicting events only a few periods (days, weeks, and months) into the future whereas medium-term forecasts extend for 1 to 2 years into the future. The longterm forecasting problems can may extend for a number of years. UBOS makes monthly releases of the Consumer price index with virtually no forecasts [4].
A number of researchers have used Autoregressive Moving Average (ARIMA) Models on Consumer Price Index series to make forecasts for developing and developed countries. Habimana et. al estimated an ARIMA (4, 1, 6) model for
Rwanda which was used to make monthly forecasts for January to December 2016 [12]. Similarly, Adams et. al came up with ARIMA (1, 2, 1) to make CPI forecasts for Nigeria [14]. On the basis of the German CPI time series 1960 to 2017, Nyoni modeled using ARIMA and made forecasts for seven years [15]. Likewise, Zhang used ARIMA model on China CPI series for the period January 2008 to December 2016 to make forecasts [13]. Apparently, the literature point to unique ARIMA forecasting models for every country which implies that no one model fits all countries. It is therefore, inevitable for us to estimate an ARIMA forecasting model for the Uganda CPI series.
3. Materials and Research Methodology
This study relied on the monthly Headline Consumer Price Index series from January 2010 to July 2020 obtained from
Uganda Bureau of Statistics (UBOS). The reference period for this series was 2009/10=100. An Autoregressive Integrated Moving Average (ARIMA) method was used to model the Consumer Price Index data [7]. This model relied upon differencing to transform the non-stationary series to a stationary one and autocorrelation functions (ACFs) and partial autocorrelation functions (PACFs) for identification of the ARIMA model. The ARIMA modeling procedure has four major steps, namely: identification, estimation, diagnostic checking and forecasting.
3.1. Identification
A time series is said to be stationary if it has a constant mean and variance. A series is non-stationary if it has to be differenced and at times it may have to be transformed more than once in order to realize stationarity [7, 9]. The headline CPI series was made stationary by first differencing, then a possible Autoregressive Moving Average (ARIMA) model was identified. The process of identification started with the generation of autocorrelation functions (ACFs) and partial autocorrelation functions (PACFs). The ACFs and PACFs for the time series are computed as follows:
The autoregressive model of order p, AR (p) is as follows:
= + + + ⋯ + + (1)
Where:
=actual series at time t
=autocorrelation parameter
=irregular term at time t
And the moving average model of order q, MA (q);
= + − − (2)
Where:
=actual series at time t
=autocorrelation parameter
=irregular term at time t
The autoregressive and moving average model of order p and q, ARMA (p,q) is a combination of the AR (p) and MA (q), and stated as:
= + + ⋯ + + + − −
(3)
Where:
=actual series at time t
=autocorrelation parameter
=autocorrelation parameter
=irregular term at time t
The series was found non-stationary and as such it was first differenced to achieve stationarity, thereafter the series had to be integrated. Therefore d was introduced in the model, the order of integration and the model became an Autoregressive Integrated Moving Average (ARIMA) expressed as ARIMA (p, d, q). Since the series was monthly, it introduced a possibility of seasonality and the model therefore may be expressed as ARIMA (p, d, q) (P, D, Q). The P represented the number of parameters of the seasonal
AR component while Q represented the parameters of the seasonal MA and D the number of differencing of the seasonal component to realize stationarity.
The ACFs and PACFs were used to determine if the series was stationary. After differencing to obtain stationarity, the ACFs and PACFs were used to determine the type of model to be estimated and the number of parameters to be included in the model.
3.2. Estimation
A nonlinear iterative process was used in the estimation of parameters. The possible models were identified and estimated. The model with the least Akaike Info Criterion (AIC) and Schwarz Bayesian Information Criterion (BIC) values was selected. The t-statistic was used to determine the significant coefficients.
3.3. Diagnostic Checking
The fitted models were checked for appropriateness by testing the residuals for normality using the Bartlett's test for white noise [7, 9]. Once the residuals were normally distributed with zero mean and constant variance then the model was considered appropriate for estimation and it was therefore selected. The histogram of the residuals of the selected model were also computed.
4. Results
4.1. Stationarity Tests
The stationarity of the time series is required before fitting an ARIMA model. It is evident from Figure 1, that the Headline Consumer Price Index was trended. However, in order to confirm if the series was indeed trended/non-stationary a unit root test was performed. The hypothesis tested was that the series had a unit root against the alternative that the series does not have a unit root.

Figure 1. Uganda’s Headline Consumer Price Index.
5. Discussions
The results of the study were consistent with the CPI models estimated by other authors for Nigeria, Rwanda and Somaliland [12, 14, 16]. However, those models did not have a seasonal component in the ARIMA models. The study for Nigeria found that inflation increased modestly all through the period 1990 –2010 [11]. Inflation forecasts for 2020/21 for Uganda averaged 5.3% which is more than twice (2.4%) the average forecasts by Adams et. al. for Nigeria for 2011 – 2013 [11]. Seasonality was found to be significant in the ARIMA model for Uganda’s CPI and the forecasts should incorporate it for better predictions.
6. Conclusion
The central bank in Uganda makes monthly monetary policy stance pronouncements which are anchored on inflation rates. Therefore, accurate forecasts in the medium term are very important for this purpose and for making decisions by other users in the economy. ARIMA models are univariate and they rely on the time series mostly to come up with estimates of coefficients and forecasts. The Seasonal ARIMA (1, 1, 1) x (0, 1, 1)12 was found to be the most appropriate model hence it was used to forecast CPI and hence inflation. We recommend this model to Uganda Bureau of Statistics and Central Bank to use it to make forecasts and disseminate to the users. In conclusion, generally good forecasts are vital for better resource allocation, planning and decision making.
References
Government of Uganda, "Investment Code Act 1991," Uganda Printing and Publishing Corporation, Kampala, 1991.
Uganda Revenue Authority, "A Guide on Tax
Incentives/Exemptions Avialbale to the Uganda Investors," 9
September 2019. [Online]. Available: https://www.ugandainvest.go.ug/wpcontent/uploads/2019/12/Tax-Incentives-for-2019.pdf.
Bank of Uganda, "State of the Economy," Bank of Uganda, Kampala, 2019.
A. Mugume, "The Inflation Targeting Monetary Policy Framework, Seminar for Business Editors and Reporters," Bank of Uganda, Kampala, 2011.
D. N. Mubiru, E. Komutunga, A. Agona, A. Apok and T. Ngara, "Characterising agrometeorological climate risks and uncertainties: Crop production in Uganda," South African Journal of Science, pp. 1-11, 2011.
Bank of Uganda, "monetary policy," 17 August 2020. [Online]. Available: https://www.bou.or.ug/bou/bouwebsite/MonetaryPolicy/.
International Labour Organization, "Consumer Price Index Manual, Theory and Practice," International Labour Organization, Geneva, 2004.
R. Adhikari and K. R. Agrawal, "An Introductory Study on Time Series Modeling and Forecasting," LAP LAMBERT Academic Publishing, New Dehli, 2013.
E. Stellwagen and L. Tashman, "ARIMA: The Models of Box and Jenkins," The International Journal of Applied Forecasting, 2013.
D. C. Montgomery, C. L. Jennings and M. Kulahci, Introduction to Time Series Analysis & Foresating, Canada: John Wiley & Sons, 2008.
Uganda Bureau of Statistics, "Consumer Price Index: 2009/2010=100: July 2020," Uganda Bureau of Statitics, Kampala, 2020.
N. Habimana, A. Wanjoya and A. Waititu, "Modeling and Forecasting Consumer Price Index (Case Study of Rwanda," American Journal of Theoretical and Applied Statistics, pp. 101-107, 2026.
X. Zhang, "CPI Prediction Based on ARIMA Model," in 7th
International Conference on Education, Management, Information and Computer Science (ICEMC 2017), Shanghai, 2017.
S. O. Adams, A. Awujola and A. I. Alumgudu, "Modeling
Nigeria's Consumer Price Index using ARIMA Model," International Journal of Development and Economic
Sustainability, pp. 37-47, 2014.
T. Nyoni, "ARIMA Modeling and Focasting of CPI in Germany," Munich Personal RePEc Archive, pp. 1-13, 2019.
J. Mohamed, "Time Series Modeling and Forecasting of Somaliland Consumer Price Index: A comparision of ARIMA and Regression with ARIMA Error," American Journal of Theoretical and Applied Statistics, pp. 143-153, 2020.