Forecasting of the epidemiological situation: Case of COVID-19 in Morocco


  • El Mehdi Chouit RAISS Laboratory, Department of Mathematics and Computer Science, National Institute of Posts and Telecommunications (INPT), Rabat, Morocco
  • Mohamed RACHDI School of Engineering - School of Management (ISGA), Casablanca, Morocco
  • Mostafa BELLAFKIH National Institute of Posts and Telecommunications (INPT), Rabat, Morocco
  • Brahim RAOUYANE Faculty of Sciences Ain Chock, University Hassan II (FSAC), Casablanca, Morocco.


ARIMA, COVID-19, Pandemic, FBProphet, Time series forecasting


Since the coronavirus pandemic started, many people have died due to the disease. The epidemic has been challenging to predict, as it progresses and spreads throughout the world. We used Auto-Regressive Integrated Moving Average (ARIMA) models to predict the outbreak of COVID-19 in the upcoming months in Morocco. In this work, we measured the effective reproduction number using the real data and the forecasted data produced by the two commonly used approaches, to reveal how effective the measures taken by the Moroccan government have been in controlling the COVID-19 outbreak. The prediction results for the next few months show a strong evolution in the number of confirmed and death cases in Morocco. We study the spread of COVID-19 in Morocco to see how many cases are discovered, recovered, and dead, and the forecasting of further cases is used as a basic novel method. It is based on time series models. We used coronavirus outbreak data from March 02, 2020, to August 04, 2021. ARIMA (Autoregressive integrated moving average) and Prophet time-series models are used to forecast the development of COVID-19, which is not a novel method. The mean absolute error, root mean square error, and coefficient of determination R2 were computed to assess the model's performance. Our study aims to provide a better understanding of the infectious disease outbreak that affected Morocco. It also provides information on the disease outbreak's epidemiology. Our study shows that the FBProphet model is more accurate in predicting the prevalence of COVID-19. It can help guide the government's efforts to prevent the virus' spread.


C. Sohrabi, Z. Alsafi, N. Oneill, M. Khan, A. Kerwan, A. Al-Jabir, C. Iosi-´ fidis & R. Agha, “World Health Organization declares global emergency: A review of the 2019 novel coronavirus (COVID-19),” International Journal of Surgery 76 (2020) 71. doi: 10.1016/j.ijsu.2020.02.034. DOI:

Y. Hao, T. Xu, H. Hu, P.Wang Y. Bai, “Prediction and analysis of corona virus disease 2019”, PloS one 15 (2020) e0239960. DOI:

“COVID Live - Coronavirus Statistics - Worldometer.” (accessed 24 December 2021).

M. Mandal, S. Jana, S. K. Nandi, A. Khatua, S. Adak & T. K. Kar, “A model based study on the dynamics of COVID-19: Prediction and control”, Chaos, Solitons Fractals 136 (2020). DOI:

R. Pal, A. A. Sekh, S. Kar, and D. K. Prasad, “Neural network based country wise risk prediction of COVID-19”, Applied Sciences 10 (2020) 6448. DOI:

M. H. D. M. Ribeiro, R. G. da Silva, V. C. Mariani, and L. dos Santos Coelho, “Short-term forecasting COVID-19 cumulative confirmed cases: Perspectives for Brazil”, Chaos, Solitons Fractals 135 (2020) 109853. DOI:

X. Zhang, R. Ma, and L. Wang, “Predicting turning point, duration and attack rate of COVID-19 outbreaks in major Western countries”, Chaos, Solitons & Fractals 135 (2020) 109829. DOI:

I. COVID and C. J. Murray, “Forecasting COVID-19 impact on hospital bed-days, ICU-days, ventilator-days and deaths by US state in the next 4 months”, MedRxiv 2020.

S. S. Wulff, “Time series analysis: Forecasting and control,” Journal of Quality Technology 49 (2017) 418. DOI:

S. C. Hillmer and G. C. Tiao, “An ARIMA-model-based approach to seasonal adjustmen”, Journal of the American Statistical Association 77 (1982) 63. DOI:

S. J. Taylor and B. Letham, “Forecasting at scale,” The American Statistician 72 (2018) 37. DOI:

I. Cooper, A. Mondal, and C. G. Antonopoulos, “A SIR model assumption for the spread of COVID-19 in different communities”, Chaos, Solitons & Fractals 139 (2020) 110057. DOI:

A. G. Amiranashvili, K. R. Khazaradze, and N. D. Japaridze, “Analysis of twenty-week time-series of confirmed cases of New Coronavirus COVID19 and their simple short-term prediction for Georgia and Neighboring Countries (Armenia, Azerbaijan, Turkey, Russia) in amid of a global pandemic”, MedRxiv (2020). DOI:

R. Tyagi, M. Bramhankar, M. Pandey, and M. Kishore, “COVID 19: Realtime Forecasts of confirmed cases, active cases, and health infrastructure requirements for India and its states using the ARIMA model”, MedRxiv, 2020. DOI:

M. Ali, D. M. Khan, M. Aamir, U. Khalil, and Z. Khan, “Forecasting COVID-19 in Pakistan”, PloS one 15 (2020) e0242762. DOI:

A. F. Adedotun, T. Latunde, and O. A. Odusanya, “Modelling and Forecasting Climate Time Series with State-Space Model”, Journal of the Nigerian Society of Physical Sciences 2 (2020) 149. DOI:

M. Perc, N. Gorisek Miksic, M. Slavinec & A. Stozer, “Forecasting covid19”, Frontiers in Physics (2020) 127. DOI:

N. Khan, A. Arshad, M. Azam, A. H. Al-marshadi, and M. Aslam, “Modeling and forecasting the total number of cases and deaths due to pandemic”, Journal of Medical Virology 94 (2022) 1592. DOI:

M. R. Abonazel and N. M. Darwish, “Forecasting confirmed and recovered COVID-19 cases and deaths in Egypt after the genetic mutation of the virus: ARIMA Box-Jenkins approach”, Commun. Math. Biol. Neurosci. 2022 (2022) 17.

F. O. Aweda, J. A. Akinpelu, T. K. Samson, M. Sanni & B. S. Olatinwo, “Modeling and Forecasting Selected Meteorological Parameters for the Environmental Awareness in Sub-Sahel West Africa Stations”, Journal of the Nigerian Society of Physical Sciences 4 (2022) 820. DOI:

F. A. Awwad, M. A. Mohamoud & M. R. Abonazel, “Estimating COVID19 cases in Makkah region of Saudi Arabia: Space-time ARIMA modeling” PLoS One 16 (2021) e0250149. DOI:

CSSEGISandData, “COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University.” accessed 20 December 2021. [Online]. Available:



How to Cite

Chouit, E. M., RACHDI, M. ., BELLAFKIH, M., & RAOUYANE, B. . (2022). Forecasting of the epidemiological situation: Case of COVID-19 in Morocco. Journal of the Nigerian Society of Physical Sciences, 4(4), 843.



Original Research