Filtering the time series data