# Time series with a sequence of zeros

I am trying to model a time series that contains a sequence of zeros. I tried fitting an ARIMA model using auto.arima function from the forecast package in R but the MAPE is reported as infinity (probably due to division by zero). Moreover, the auto.arima fits an ARIMA(0,1,0) model over the data.

Can you suggest any types of models that may be appropriate for such data?

• I am curious what that data represents. Could you give us a little background information? I agree that MAPE may be zero because of division by zero. – Richard Hardy Feb 28 '16 at 17:16
• Such series can be found in hydrology and meteorology. For example we may have 0 precipitation for several hours or 0 temperature for several hours or no sales (business application) for several days etc. – user111093 Feb 28 '16 at 18:09
• @RichardHardy Such a time series could also be representative of interest rate data that has hit the zero lower bound. – Graeme Walsh Feb 28 '16 at 18:54
• Thanks to both of you. I was not interested in the general case but in this particular one so as to get a better idea of modelling choices that are relevant to this particular question. – Richard Hardy Feb 28 '16 at 22:23
• @RichardHardy I am applying it to precipitation and temperature series. Both values have zeros as described in the question. – user111093 Feb 29 '16 at 3:58

A common approach to handle many zeroes in a time series is to use a Croston Model. To implement this model with your time series there are two R packages forecast and tsintermittent. The tsintermittent package optimizes the Croston model $\alpha$ parameter whereas the forecast package produces a forecast for a given $\alpha$ value.