This is a problem in the forecasting domain. A series of observations of one or more variables that are sequential in time poses a difficulty called autocorrelation (essentially, what has been in the immediate past is likely to be in the immediate future) that violates the independence assumption of standard regression approaches like ordinary least square regression.
The best place to start with getting a handle on this class of problems is with the Hyndman and Athanosopolus text