statsmodels.tsa.filters.filtertools.recursive_filter¶
-
statsmodels.tsa.filters.filtertools.recursive_filter(x, ar_coeff, init=
None)[source]¶ Autoregressive, or recursive, filtering.
- Parameters:¶
- Returns:¶
Filtered array, number of columns determined by x and ar_coeff. If x is a pandas object than a Series is returned.
- Return type:¶
array_like
Notes
Computes the recursive filter
y[n] = ar_coeff[0] * y[n-1] + ... + ar_coeff[n_coeff - 1] * y[n - n_coeff] + x[n]where n_coeff = len(n_coeff).