Time Series Trend and Cycle Filters
Examples applied to long term Australian unemployment rate.
Baxter-King Band Pass Filter
Baxter King Filter is an approximation to the band pass filter for a time series, that applies a moving average over a window (n).
The weights
The weights are normalised, ie constrained to sum to zero, by subtracting from the weights over the window
References
Marianne Baxter & Robert G. King, 1995, "Measuring Business Cycles Approximate Band-Pass Filters for Economic Time Series," NBER Working Papers, National Bureau of Economic Research, Inc, number 5022, Feb.
Christiano-Fitzgerald Band Pass Filter
The cycle measure at a point in time (t) for the time series
The weights are given as:
The upper and lower cycle bands are converted to radians:
Example application of the Christiano-Fitzgerald Band Pass Filter to Australian Unemployment rate. Adjust the upper and lower thresholds of the band pass filter to determine the cycle span.
References
Lawrence J. Christiano & Terry J. Fitzgerald, 1999, "The Band pass filter," Working Papers (Old Series), Federal Reserve Bank of Cleveland, number 9906, DOI: 10.26509/frbc-wp-199906.
Butterworth Filter
The Butterworth Filter is a band pass filter which builds on the structure of the Baxter-King and Christiano-Fitzgerald filters. Where those filters require require heuristic tuning of cutoff frequencies (by setting
The filter, ie trend, observation is derived by combining the time series before (\lambda} is derived specified from the frequency (s) and the filter order (n).
Example application of the Butterworth Filter to Australian Unemployment rate.
References
Gomez, Victor, 2001, "The Use of Butterworth Filters for Trend and Cycle Estimation in Economic Time Series," Journal of Business & Economic Statistics, American Statistical Association, volume 19, issue 3, pages 365-373, July.
Exponential Weighted Moving Average
The Expontential Weighted Moving Average (EWMA) is a simple filter that applies a weight to each observation in the time series. The weight is determined by the parameter beta which adjusts the trend to weight proportionally between the most recent observation
As the EWMA filter only uses information available at time t (it is backward looking), it is a causal filter and tends to lag level shifts in the time series.
Hoderick Prescott Filter
The Hoderick Prescott Filter is a two-sided filter that separates a time series into a trend and cyclical component. The filter is given by:
The filter is solved by minimizing the sum of squared residuals between the observed time series and the trend component, subject to a penalty term that minimizes the second derivative of the trend component. The penalty term is determined by the parameter lambda.
Hamilton's Regression Filter
The Hamilton filter decomposes
Hamilton recommends h=8 on quarterly data, or 24 on monthly data.
Kalman Filter
The Kalman Filter is a state space model that estimates the trend component of the time series. The filter is given by the observation equation and the transition equation. The observation equation describes the relationship between the observed time series and the trend component. The transition equation describes the evolution of the trend component over time.
The parameter below apportions the variance of the observed time series between the trend component
Henderson's Moving Average Filter
The Henderson's Moving Average Filter is a two-sided filter that separates a time series into a trend and residual component. The filter applies a weighted moving average over a time series to estimate the trend component. The weights are determined by the parameter n which determines the number of observations to before and after the observation point to average. For example a span of 13 includes:
- 6 observations before;
- 6 observations after;
- the current observation;
Loess Regression Filter
ABS X11/X12 ARIMA Filter
The ABS X11/X12ARIMA filter is implemented using SEASABS.