ARIMA models for predicting the end of COVID-19 pandemic and the risk of second rebound