Link to libraries : here.
The study of time series consists in the study of time-stamped series of observations of quantities of interest:
There are two main types of time series studies:
This understanding can eventually help in preconditioning, but not necessarily. It is often technically complex, requiring assumptions and a modeling effort, and frequently involves a decomposition of the original signal into its various components, such as
the last three components being optional.
We can try to predict the value of the observation during the next time interval (t+1, "one-step forecasting"), or for a larger time interval ("multi-step forecasting").
One can also try to predict only one observation, such as temperature ("univariate time series"), or be interested in the prediction of several quantities in parallel ("multivariate time series"). Univariate time series are generally the only ones studied, the multivariate approach being generally much more delicate to deal with.
The sliding window (or lag method) allows to reformulate the prediction for time series into a machine learning problem.
To do so, it is sufficient to use one (or more) previous time step(s) as input variables, and the next time step as output variable. The number of previous time steps is called the window width or the lag size.