Extracting statistics from time series data