# Predicting on data consisting of many independent short time series?

I have a dataset which contains many (hundreds) of short (3-30 obs) timeseries of different lengths. Each series is currently represented as a number indicating how long it took to the next event.

To give you an idea:

0, 30, 34, 39, 45, 47, 51, 51
0, 5, 5, 7, 40


I'm sure that the values do not depend on time of day/week/month/... and that the timeseries do not influence each other. I do expect that the previous times between events have predictive value for how long it will take to see the next event.

The source of my data are many (those hundreds) of devices being monitored and all these devices are identical.

What i'm trying to figure out is how to build a single model to make predictions on how long it will take for the next event to happen in a device.

My problem is that there are models enough when having one time series or even multiple time series if they are aligned in time (also not the case with my data).

So what model to use that allows leveraging as much of the data as possible? If necessary, i could limit my analysis to a subset of the data having equal amounts of data points in their time series.

In the R software there are many packages implementing these methods. The function glm and the package survreg can be used to apply some of these models. This reference can be helpful as an introduction.