Document Type : Original Research


Department of ICT and Mathematics, College of Business Education (CBE) P.O. Box 2077, Dodoma, Tanzania


People must be well-informed on market swings in today's difficult economic times in order to cut excessive spending. Rising expenditures in a variety of sectors, including business, education, and healthcare can be burdensome for consumers, and accurate forecasting of household is necessary given the current technological innovation. The Consumer Price Index (CPI) is one of the statistical indicators used to estimate the changes in prices for commodities. Forecasting CPI can assist individuals in developing a plan for making decisions on their daily consumption.  This study seeks to develop a SARIMA model for forecasting consumer price indices (CPI) in Tanzania by using data collected from International Monetary Fund (IMF) website from January 2010 to December 2022. Data were evaluated using time series methods such as time plots and stationarity tests. It was discovered that there is seasonality in the CPI index. However, a serial correlogram test was performed using a residual correlogram after which the variable was estimated using the SARIMA model and SARIMA (0, 1, 0) (1, 1, 1)12 was fitted to the time series variable. The residual analysis was explored and because almost all correlations are zero, the SARIMA (1,1,1) (0,1,2)12 model was appropriate for forecasting CPI index in Tanzania. Consumer price index was predicted for the next eighteen months and it has been observed that the trend of CPI is likely to increase in the next eighteen months.


Main Subjects

©2023 The Author(s). This is an open access article distributed under the terms of the Creative Commons Attribution (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, as long as the original authors and source are cited. No permission is required from the authors or the publishers.

A, M. Adnan., J, P. I., & S, R. M. (2023). Forecasting Consumer Price Index (CPI) Using Deep Learning and Hybrid Ensemble Technique. 2023 International Conference on Advances in Computing, Communication and Applied Informatics (ACCAI), 1–8.
Aparicio, D., & Bertolotto, M. I. (2020). Forecasting inflation with online prices. International Journal of Forecasting, 36(2), 232–247.
Boniface, A., & Martin, A. (2019). Time Series Modeling and Forecasting of Consumer Price Index in Ghana. Journal of Advances in Mathematics and Computer Science, 1–11.
Chhorn, T., & Chaiboonsri, C. (2018). Modelling and Forecasting Tourist Arrivals to Cambodia: An Application of ARIMA-GARCH Approach. Journal of Management, Economics and Industrial Organization, 1–19.
Corpin, S. J. T., Marbella, J. N. P., Kua, S. J. J., Mabborang, R. C., & Lamprea, C. T. (2023). Forecasting Inflation Rate in the Philippines Using Seasonal Autoregressive Integrated Moving Average (SARIMA) Model. European Journal of Computer Science and Information Technology, 11(2), 13–36.
Costales, J. A. (2021). Cost Modeling and Analysis of the Consumer Price Index in the Philippines. 2021 10th International Conference on Software and Computer Applications, 32–38.
Divisekara, R. W., Jayasinghe, G. J. M. S. R., & Kumari, K. W. S. N. (2021). Forecasting the red lentils commodity market price using SARIMA models. SN Business & Economics, 1(1), 20.
Dum, Z., & Essi, I. D. (2017). Modeling Price Volatility of Nigerian Crude Oil Markets Using GARCH Model: 1987-2017. 3(4).
Emong Herbert Robert, A. M. M., & Mahmoud A. Abdel-Fattah. (2022). Evaluation of a Functional Time Series Model for Forecasting Inflation in Uganda. Journal of Statistics Applications & Probability, 11(2), 523–534.
Fahrudin, R., & Sumitra, I. D. (2019). Forecasting Inflation Using Seasonal Autoregressive Integrated Moving Average Method for Estimates Decent Living Costs. IOP Conference Series: Materials Science and Engineering, 662(2), 022062.
Gjika Dhamo, E., Puka, L., & Zaçaj, O. (2018, September 6). Forecasting Consumer Price Index (Cpi) Using Time Series Models And Multi Regression Models (Albania Case Study). 10th International Scientific Conference “Business and Management 2018.” Business and Management 2018, Vilnius Gediminas Technical University, Lithuania.
Hadwan, M., M. Al-Maqaleh, B., N. Al-Badani, F., Ullah Khan, R., & A. Al-Hagery, M. (2022). A Hybrid Neural Network and Box-Jenkins Models for Time Series Forecasting. Computers, Materials & Continua, 70(3), 4829–4845.
Ibrahim, A., Sani, U. M., & Olokojo, V. O. (2023). Forecasting Consumer Price Index and Exchange Rate Using Arima Models: Empirical Evidence from Nigeria. Fudma Journal of Sciences, 6(6), 114–124.
Konarasinghe, K. M. U. B. (2022). Modeling Consumer Price Index of Thailand.
Koula, J., Tiho, T., & Christophe Chiapo, A. (2020). On the Analysis and Modelling of the Harmonized Consumer Price Indices of West African Economic and Monetary Union Member States. American Journal of Theoretical and Applied Statistics, 9(6), 283.
Lidiema, C. (2017). Modelling and Forecasting Inflation Rate in Kenya Using SARIMA and Holt-Winters Triple Exponential Smoothing. American Journal of Theoretical and Applied Statistics, 6(3), 161.
Magnus Ogolo, I., & Lekia, N. (2022). Univariate Time Series Analysis of Consumer Price Index on Food and Non-alcoholic Beverages. Journal of Mathematical Sciences & Computational Mathematics, 3(4), 416–440.
Majhi, S. K., Bano, R., Srichan, S. K., Acharya, B., Al-Rasheed, A., Alqahtani, M. S., Abbas, M., & Soufiene, B. O. (2023). Food price index prediction using time series models: A study of Cereals, Millets and Pulses [Preprint]. In Review.
Milunovich, G. (2020). Forecasting Australia’s real house price index: A comparison of time series and machine learning methods. Journal of Forecasting, 39(7), 1098–1118.
Mustapha, M., Seri, M., & Abubakar, Z. M. (2021). Forecasting Nigeria’s Inflation Using Sarima Modeling.
Muthu, N. S., Kannan, K. S., Deneshkumar, V., & Thangasamy, P. (2021). SARIMA Model for Forecasting Price Indices Fluctuations. European Journal of Mathematics and Statistics, 2(6), 1–6.
Naden, T. P., & Etuk, E. H. (2017). Sarima Modeling of Nigerian Food Consumer Price Indices. 2(4).
Ngailo, E., Luvanda, E., & Massawe, E. S. (2014). Time Series Modelling with Application to Tanzania Inflation Data. Journal of Data Analysis and Information Processing, 02(02), 49–59.
Nyoni, T. (2019). Modeling and forecasting inflation in Tanzania using ARIMA models.
Rapoo, M. I., Chanza, M. M., & Motlhwe, G. (2022). Inflation Rate Modelling Through a Hybrid Model of Seasonal Autoregressive Moving Average and Multilayer Perceptron Neural Network: In I. R. Management Association (Ed.), Research Anthology on Macroeconomics and the Achievement of Global Stability (pp. 551–567). IGI Global.
Rohmah, M. F., Putra, I. K. G. D., Hartati, R. S., & Ardiantoro, L. (2021). Comparison Four Kernels of SVR to Predict Consumer Price Index. Journal of Physics: Conference Series, 1737(1), 012018.
Sibai, F. N., Asaduzzaman, A., El-Moursy, A., & Sibai, A. (2021). Forecasting the Consumer Price Index: A Comparative Study of Machine Learning Methods.
Tang, X., Wang, L., Cheng, J., & Chen, J. (2019). Forecasting model based on information-granulated GA-SVR and ARIMA for producer price index.
Uwilingiyimana, C., Munga’Tu, J., & Harerimana, J. de D. (2015). Forecasting Inflation in Kenya Using Arima—Garch Models. 3(2).
Wanjuki, T. M., Wagala, A., & Muriithi, D. K. (2022). Evaluating the Predictive Ability of Seasonal Autoregressive Integrated Moving Average (SARIMA) Models using Food and Beverages Price Index in Kenya. European Journal of Mathematics and Statistics, 3(2), 28–38.
Wanto, A., Fauzan, M., Suhendro, D., Parlina, I., Damanik, B. E., Siregar, P. A., & Hidayati, N. (2018). Epoch Analysis and Accuracy 3 ANN Algorithm using Consumer Price Index Data in Indonesia: Proceedings of the 3rd International Conference of Computer, Environment, Agriculture, Social Science, Health Science, Engineering and Technology, 35–41.
Xu, X., & Zhang, Y. (2023). Retail Property Price Index Forecasting through Neural Networks. Journal of Real Estate Portfolio Management, 29(1), 1–28.
Zahara, S., Sugianto, & Ilmiddaviq, M. B. (2020). Consumer price index prediction using Long Short Term Memory (LSTM) based cloud computing. Journal of Physics: Conference Series, 1456(1), 012022.
Zhang, S.-Y., Lin, Z., & Yhang, W.-J. (2023). Forecasting CPI of restaurants and hotels in Korea using the seasonal autoregressive integrated moving average (SARIMA) model. International Journal of Tourism and Hospitality Research, 37(4), 85–94.
Zhang, X. (2023). Forecast and Analysis of China’s CPI Based on SARIMA Model. In D. Qiu, Y. Jiao, & W. Yeoh (Eds.), Proceedings of the 2022 International Conference on Bigdata Blockchain and Economy Management (ICBBEM 2022) (Vol. 5, pp. 1354–1361). Atlantis Press International BV.
Zhao, L. L., Wang, B., Mbachu, J., & Egbelakin, T. (2020). Using artificial neural networks to forecast producer price index for New Zealand. International Journal of Internet Manufacturing and Services, 7(3), 191.