The design of the filter in the ARIMA-model-based decomposition procedure relies on the following result. The minimum mean squared error estimator of the component is given by the ACGF of the model:
where theta(L) is the MA of the model fitted to the observed data, thetas(L) is the MA of the component (signal) to be estimated and phin(L) is the product of the AR polynomials of the remaining components. The estimate of the signal, s[t], is obtained by means of a double-sided symmetrical filter where the weights, w, are the theoretical autocovariances of the model above:
Returns
filtering returns a list of class tsdecFilter containing the series extended with forecasts (if extend > 0) (based on the ARMA model given as input), the weights of one side of the filter for each component and the corresponding estimate of the components.