Developing a predictive model for time series data