Analysis of time series data