Revision

Back to Time series


Decomposition

A non stationary process can be split in different part: a trend, a seasonality and residuals that will likely be stationnary.


Trend

The trend represent the global evolution of the serie.

The trend can be estimated rr we can get rid of this trend by differentiating the serie.

Suppose the process \(X_t\) is composed of a deterministic trend \(m_t\) and a random process (white noise) \(\varepsilon_t\).


Parametric estimation

For the parametric estimation we assume that the trend \(m_t\) has a linear form: \(m_t=a+bt\).

We estimate \(\hat{a}\) and \(\hat{b}\) using the least squares:

\[\{\hat{a}, \hat{b}\} = \min_{\{a, b\}} \sum_{t=0}^T(x_t - a - bt)^2\]


The solutions are:

\[\begin{cases} \hat{a} = \frac{6}{T(T-1)} \left( - \sum_{t=1}^{T} tx_t + \frac{2T + 1}{3} T \bar{x}\right)\\ \hat{b} = \frac{12}{T(T^2-1)} \left( \sum_{t=1}^{T} tx_t - \frac{T + 1}{2} T \bar{x} \right) \end{cases}\]


Non parametric estimation: moving average

The trend can be estimated using a moving average of a given window size for example \(2h\): \([t-h; t+h]\).

\[\bar{m}_t = \frac{1}{2h+1} \sum_{s=-h}^{h}x_{t+s}\]


Seasonality

The seasonality is a repetition of pattern at a given interval.

The seasonality correction factor can be estimated as in the Holt-Winters method with seasonality. Or we can get rid of this seasonnality by differentiating the serie.


Differentiation

We can get rid of trend and seasonality using differentiation. Let define the operator \(\Delta_h\) as:

\[\Delta_h X_t = X_t - X_{t-h}\]

Let also define the operator \(\Delta_h^k\) as \(k\) repetition of the operator \(\Delta_h\) on the serie. \(\Delta_h\) is \(\Delta_h^1\).

The operator \(\Delta_h^k\) is used to suppress polynomial trend of order \(k\).


Proposition

Let \(X_t\) be a process with a trend and a seasonality:

\[X_t = m_t + s_t + \varepsilon_t\]

Where:

Then:

\[\Delta_h X_t = X_t - X_{t-h} = (m_t - m_{t-h}) + (\varepsilon_t - \varepsilon_{t-h})\]

If \(m_t\) has a linear trend, hence \(m_t - m_{t-h}\) does not depend on \(t\) and hence \(\Delta_h X_t\) is a stationary process.


Resources

See: