Source: Time-series-dummies-3-step-process

Source: Time-series-dummies-3-step-process

Definitions

A time series is a set of observations x_t, each one being recorded at a specific time t. A time series is a set of statistics, usually collected at regular intervals of time. Time series data occur naturally in many application areas. These areas include(not exhaustively):

Stationary Time Series- A time series is stationary if the properties of the process such as the mean and variance are constant throughout time. For a stationary timeseries the following properties must apply:

The mean of the series should not be a function of time rather should be a constant. The variance of the series should not a be a function of time. This property is known as homoscedasticity. The covariance of the ith term and the (i + m) th term should not be a function of time.

Nonstationarity- A time series is nonstationary if the properties of the process are not constant throughout time.

If the autocorrelation dies out slowly this indicates that the process is non-stationary.

Forecasting involves taking models on historical data and using them to predict future observations.

Why is a stationarity of a timeseries important?

This is because you cannot build a time series model with unstationary data. In cases where the stationary criterion are violated, the first requisite becomes to stationarize the time series and then try stochastic models to predict this time series. There are multiple ways of bringing this stationarity. Some of them are Detrending, Differencing etc.

Types of time series

There are 2 types of a time series:

  • Continuous time time series are obtained when observations are recorded continuously over some time interval, e.g, T_0=[0,1].

  • A discrete-time time series is one in which the set T_0 of times at which observations are made is a discrete set, as is the case, for example, when observations are made at fixed time intervals.

Disclaimer!!!!!

This is going to be a series with three parts.
The first part will be the introduction which will cover what a time series is, components of a time series and various examples of time series in real life. The second part we will explore different data sets in R that are of the class timeseries. The third part we will be exploring real life timeseries datasets.