Constructing Confidence Bands for the Hodrick-Prescott Filter

Similar documents
Chapter 1. Vector autoregressions. 1.1 VARs and the identi cation problem

DEMB Working Paper Series N. 53. What Drives US Inflation and Unemployment in the Long Run? Antonio Ribba* May 2015

Testing for Granger causality between stock prices and economic growth

Business Cycles and Natural Gas Prices

Empirical Test of Okun s Law in Nigeria

Forecasting Geographic Data Michael Leonard and Renee Samy, SAS Institute Inc. Cary, NC, USA

Forecasting the US Dollar / Euro Exchange rate Using ARMA Models

Macroeconomics of the Labor Market

Fitting Subject-specific Curves to Grouped Longitudinal Data

TIME SERIES ANALYSIS

THE UNIVERSITY OF CHICAGO, Booth School of Business Business 41202, Spring Quarter 2014, Mr. Ruey S. Tsay. Solutions to Homework Assignment #2

Business cycles and natural gas prices

Big data in macroeconomics Lucrezia Reichlin London Business School and now-casting economics ltd. COEURE workshop Brussels 3-4 July 2015

REAL BUSINESS CYCLE THEORY METHODOLOGY AND TOOLS

VI. Real Business Cycles Models

AUTOMATION OF ENERGY DEMAND FORECASTING. Sanzad Siddique, B.S.

Adaptive Demand-Forecasting Approach based on Principal Components Time-series an application of data-mining technique to detection of market movement

Univariate and Multivariate Methods PEARSON. Addison Wesley

Performing Unit Root Tests in EViews. Unit Root Testing

TEMPORAL CAUSAL RELATIONSHIP BETWEEN STOCK MARKET CAPITALIZATION, TRADE OPENNESS AND REAL GDP: EVIDENCE FROM THAILAND

11. Time series and dynamic linear models

Introduction to Matrix Algebra

A Regime-Switching Model for Electricity Spot Prices. Gero Schindlmayr EnBW Trading GmbH

Trend and Seasonal Components

COURSES: 1. Short Course in Econometrics for the Practitioner (P000500) 2. Short Course in Econometric Analysis of Cointegration (P000537)

Chapter 4: Vector Autoregressive Models

Time Series Analysis

Joint models for classification and comparison of mortality in different countries.

INDIRECT INFERENCE (prepared for: The New Palgrave Dictionary of Economics, Second Edition)

Energy consumption and GDP: causality relationship in G-7 countries and emerging markets

Standard errors of marginal effects in the heteroskedastic probit model

I. Introduction. II. Background. KEY WORDS: Time series forecasting, Structural Models, CPS

Time Series Analysis of Aviation Data

Analysis of algorithms of time series analysis for forecasting sales

Note on growth and growth accounting

Can we rely upon fiscal policy estimates in countries with a tax evasion of 15% of GDP?

Software Review: ITSM 2000 Professional Version 6.0.

Lecture 4: Seasonal Time Series, Trend Analysis & Component Model Bus 41910, Time Series Analysis, Mr. R. Tsay

1 Short Introduction to Time Series

Time-series filtering techniques in Stata

Sales forecasting # 2

APPLICATION OF THE VARMA MODEL FOR SALES FORECAST: CASE OF URMIA GRAY CEMENT FACTORY

Forecasting of Economic Quantities using Fuzzy Autoregressive Model and Fuzzy Neural Network

MGT 267 PROJECT. Forecasting the United States Retail Sales of the Pharmacies and Drug Stores. Done by: Shunwei Wang & Mohammad Zainal

Simple Inventory Management

SYSTEMS OF REGRESSION EQUATIONS

Luciano Rispoli Department of Economics, Mathematics and Statistics Birkbeck College (University of London)

Examining the Relationship between ETFS and Their Underlying Assets in Indian Capital Market

Vector Time Series Model Representations and Analysis with XploRe

Studying Achievement

Red Signals: Trade Deficits and the Current Account

Time Series Analysis

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model

Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model

Unit root properties of natural gas spot and futures prices: The relevance of heteroskedasticity in high frequency data

Chapter 6: Multivariate Cointegration Analysis

Java Modules for Time Series Analysis

Internet Appendix to Stock Market Liquidity and the Business Cycle

Least Squares Estimation

A Trading Strategy Based on the Lead-Lag Relationship of Spot and Futures Prices of the S&P 500

Revisiting Inter-Industry Wage Differentials and the Gender Wage Gap: An Identification Problem

Forecasting areas and production of rice in India using ARIMA model

Regression and Time Series Analysis of Petroleum Product Sales in Masters. Energy oil and Gas

How do oil prices affect stock returns in GCC markets? An asymmetric cointegration approach.

An Empirical Study on the Relationship between Stock Index and the National Economy: The Case of China

Intermediate Macroeconomics: The Real Business Cycle Model

96 PROC. OF THE 10th PYTHON IN SCIENCE CONF. (SCIPY 2011) Time Series Analysis in Python with statsmodels

A Century of PPP: Supportive Results from non-linear Unit Root Tests

CONTROL SYSTEMS, ROBOTICS, AND AUTOMATION - Vol. V - Relations Between Time Domain and Frequency Domain Prediction Error Methods - Tomas McKelvey

Integrating Financial Statement Modeling and Sales Forecasting

1 Teaching notes on GMM 1.

TIME SERIES ANALYSIS

Univariate Time Series Analysis; ARIMA Models

Exponential Smoothing with Trend. As we move toward medium-range forecasts, trend becomes more important.

IS THERE A LONG-RUN RELATIONSHIP

Standardization and Estimation of the Number of Factors for Panel Data

Chapter 5. Analysis of Multiple Time Series. 5.1 Vector Autoregressions

Comparison of resampling method applied to censored data

ijcrb.com INTERDISCIPLINARY JOURNAL OF CONTEMPORARY RESEARCH IN BUSINESS AUGUST 2014 VOL 6, NO 4

Time Series Analysis

Section A. Index. Section A. Planning, Budgeting and Forecasting Section A.2 Forecasting techniques Page 1 of 11. EduPristine CMA - Part I

Getting Correct Results from PROC REG

EXAMINING THE RELATIONSHIP BETWEEN EMPLOYMENT AND ECONOMIC GROWTH IN THE TEN LARGEST STATES

Investment based on Merrill Lynch Investment Cycle

Predictability of Non-Linear Trading Rules in the US Stock Market Chong & Lam 2010

THE SVM APPROACH FOR BOX JENKINS MODELS

Department of Economics

The VAR models discussed so fare are appropriate for modeling I(0) data, like asset returns or growth rates of macroeconomic time series.

STOCK MARKET VOLATILITY AND REGIME SHIFTS IN RETURNS

State Space Time Series Analysis

EXPORT INSTABILITY, INVESTMENT AND ECONOMIC GROWTH IN ASIAN COUNTRIES: A TIME SERIES ANALYSIS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Observing the Changing Relationship Between Natural Gas Prices and Power Prices

1 Example of Time Series Analysis by SSA 1

Linear Programming. March 14, 2014

Financial predictors of real activity and the financial accelerator B

TOURISM DEMAND FORECASTING USING A NOVEL HIGH-PRECISION FUZZY TIME SERIES MODEL. Ruey-Chyn Tsaur and Ting-Chun Kuo

Conditional guidance as a response to supply uncertainty

USING SEASONAL AND CYCLICAL COMPONENTS IN LEAST SQUARES FORECASTING MODELS

Testing for Unit Roots: What Should Students Be Taught?

Transcription:

Econometrics Working Paper EWP10 ISSN 15-1 Department of Economics Constructing Confidence Bands for the Hodrick-Prescott Filter David E. Giles Department of Economics, University of Victoria April 01 Abstract By noting that the Hodrick-Prescott filter can be expressed as the solution to a particular regression problem, we are able to show how to construct confidence bands for the filtered time-series. This procedure requires that the data are stationary. The construction of such confidence bands is illustrated using annual U.S. data for real value-added output; and monthly U.S. data for the unemployment rate. Keywords: JEL classifications: Hodrick-Prescott filter; time-series decomposition; confidence bands C13; C0; E3 Author Contact: David E. Giles, Dept. of Economics, University of Victoria, P.O. Box 1700, STN CSC, Victoria, B.C., Canada VW Y; e-mail: dgiles@uvic.ca; Phone: (50) 71-50; FAX: (50) 71-1

1. Introduction The Hodrick-Prescott (H-P) filter is very widely used for the decomposition of economic timeseries into their trend and cyclical components. Although economists generally attribute this filter to Hodrick and Prescott (190, 1997), it actually dates at least from Leser (191), and it is based on much earlier contributions by Whittaker (19) and by Henderson (19). Although the weaknesses of the H-P filter are well-documented, and various competing filters are available, it remains one of the standard tools used by empirical macroeconomists. The application of the H-P filter to extract the trend from a time-series amounts to signal extraction. Similarly, the estimation of a regression model extracts a signal about the dependent variable from the data, and separates it from the noise. In the case of a regression model it would be unthinkable to report estimated coefficients without their standard errors; or predictions without confidence bands. So, it is somewhat surprising that the trend that we extract from a time-series using the H-P filter is always reported without any indication of the uncertainty associated with it. In this paper we show how asymptotically valid confidence bands can be constructed for the H-P filter. The key insight is to recognize that the H-P filter can be represented as the solution to a regression problem. This interpretation of the filter is discussed in the next section. Section 3 illustrates the application of our results using U.S. unemployment rate data. Our conclusions appear in section.. A regression interpretation Suppose that we have a stationary time-series, y t, for t = 1,, 3,..., T. We assume that the data can be described as y c, where τ t represents the non-linear trend in the series, and c t is the t t t cyclical component. A multiplicative representation of the time-series can be accommodated by taking the logarithms of the data. Then, the H-P filter involves solving the following optimization problem: T T 1 min. ( yt t ) ( t 1 t ) ( t t 1), (1) ( t ) t 1 t for t = 1 to T.

The first term in the objective function in (1) can be viewed as measuring goodness of fit ; while the second term imposes a penalty for roughness. The smoothing parameter, λ, is chosen by the user and there are well-known rules regarding its choice, depending on the frequency of the data. Beginning with Danthine and Girardin (199), several authors have noted that the optimization problem (1) can be re-written in the following vector-matrix form: min. ( ) ( c' c ( K )'( K ). () Here, c and τ are (T 1) vectors with typical elements c t and τ t respectively; and K = {k ij } is a [(T - ) T ] second-differencing matrix, with k ij = 1 (if i = j, or j = i + ) = - (if j = i + 1) = 0 (otherwise). The solution to the problem in () is: 1 I T K' K y ˆ, (3) where I T is an identity matrix of order T. (In practice, care has to be taken over the inversion of the matrix in (3), as it can be close to being singular.) We see from (3) that the H-P filter can be interpreted as an application of Ridge Regression. Specifically, if we consider the regression model y IT c, () then any (generalized) ridge estimator of τ is of the general form: 1 1 I ' I A I ' y I A y ~ T T T T, (5) for some positive semi-definite matrix, A. Setting A K' K in (5), we see that ~ ˆ. Schlicht (005) extended this analysis to allow for the simultaneous estimation of the smoothing parameter, λ, and T t t 1. However, this possibility is not pursued here. 3

It is also clear that, when written in the form (3), the H-P filter can also has a Bayesian interpretation, as was noted originally by Ley (00), and more recently by Polasek (011). If the cyclical component in () is assumed to be normally distributed with a variance of σ and we use the natural-conjugate prior for the parameters, so that p (τ σ ) ~ N [0, ( σ / λ ) (K 'K) -1 ], and p ( ) is inverted-gamma, then the Bayes estimator of τ is given by (3). As the H-P filter can be interpreted as an estimator for a particular regression model, we can easily construct the covariance matrix for this estimator. From this, we can get confidence intervals for each value in the τ series. That is, we can obtain a confidence band for the extracted trend component. From (3), note that the covariance matrix for the elements of ˆ is given by 1 ' I K' K V ( y) I K K 1 V ( ˆ). () T T The form of V(y) will depend on the particular time-series being filtered, and under suitable assumptions this covariance matrix can be estimated from the data. The square roots of the diagonal elements of the estimated matrix corresponding to () will be asymptotic standard errors and a 95 (say) confidence band series for the extracted trend can be constructed as { ˆ t - 1.9 s.e. ( ˆ t ), ˆ t + 1.9 s.e. ( ˆ t ) }; t = 1,,..., T. In general, it would be unrealistic to assume that V(y) = σ I. Instead, if the data are stationary, then an ARIMA model for the series can be identified and estimated, yielding an estimate of the V(y) matrix for substitution into (). The stationarity of the data is crucial requirement to the application of (). This imposes an important limitation on this analysis. For example, real GDP for most countries is I(1), so in that context confidence bands for the H-P filter could be constructed for output growth, but not for output itself. 3. Applications We consider three applications of these results. In each case, application of the (augmented) Dickey-Fuller and KPSS tests indicates that the data are stationary. The associated EViews workfiles and program files can be downloaded from web.uvic.ca/~dgiles/downloads/hp_filter/. Our first example relates to multifactor productivity. Specifically, we consider the annual rate of

growth in real value-added output (private business sector, excluding government enterprises) for the U.S. over the period 199 to 010. See Bureau of Labor Statistics (01). The data and the H-P filtered trend, obtained using the EViews package and λ = 100, are shown in Figure 1. The correlogram for the series indicates that it is white noise, so Figure provides 95 confidence bands constructed using equation () with V(y) = σ I, and with σ estimated by the sample variance. Our second application relates to the seasonally adjusted unemployment rate for all full-time U.S. workers. The decomposition of such data is of some interest as it offers one way of measuring the NAIRU. We use the monthly time-series, LNS1100000, from the FRED database (Federal Reserve Bank of St. Louis, 01), for the period 19M01 to 01M03. Using EViews to apply the H-P filter with the value (1,00) of λ chosen according to the Ravn and Uhlig (00) criterion for monthly data, we obtain the results in Figure 3. Under the very restrictive assumption that V(y) = σ I, estimating σ by using the sample variance of the original data, equation () yields the 95 confidence bands shown in Figure. However, the correlogram for the unemployment rate (U) data suggests that this series can be modeled by an AR() process. Simplifying the model using the SIC, the following restricted AR() process was selected: ˆ t 0.0779 1.13U t 1 0.1953U t ; R 0.990 ; s U (0.070) (0.013) (0.013) 0.0313 Asymptotic standard errors appear in parentheses, and the roots of the characteristic equation for this autoregression lie outside the unit circle. To construct V(y) in this case, we use the results of Hamilton (199, pp.5-59), and his exercise 10.1 (p.90). His F matrix (p.7) is constructed using 1 1.13, 3 0, and 0. 1953, and s in the above regression results provides a consistent estimator of σ. Then, using equation () we obtain the (much wider) 95 confidence bands shown in Figure 5. The importance of reporting the confidence bands can be seen by considering the H-P trend value of 9.3 in February 193, when the 95 confidence interval was (., 1.) 5

Fig. 1 U.S. Value-Added Output Growth: Private Business Sector (annual change) 1 10 Value-Added Output Growth 0 19 1953 195 193 19 1973 197 193 19 1993 199 003 00 - - - Fig. U.S. Value-Added Output Growth: H-P Filtered Trend and 95 Confidence Band (scalar covarance matrix) Lower Upper 0 19 1953 195 193 19 1973 197 193 19 1993 199 003 00 - -

Fig. 3 U.S. Unemployment Rate: Full-Time Workers (Seasonally Adjusted) 1 11 10 9 7 5 3 Unemployment Rate Jan- Jun-73 Dec-7 Jun- Nov-9 May-95 Nov-00 May-0 Oct-11 Fig. U.S. Unemployment Rate: H-P Filtered Trend and 95 Confidence Band (scalar covariance matrix) 11 9 7 5 3 Lower Upper 1 Jan- Jun-73 Dec-7 Jun- Nov-9 May-95 Nov-00 May-0 Oct-11 7

Fig. 5 U.S. Unemployment Rate: H-P Filtered Trend and 95 Confidence Band (restricted AR() model) 1 1 10 Lower Upper 0 Jan- Jun-73 Dec-7 Jun- Nov-9 May-95 Nov-00 May-0 Oct-11 -. Conclusions We have shown that asymptotically valid confidence bands can be constructed very easily for trend series extracted using the Hodrick-Prescott filter. This is achieved by noting that this filter can be viewed as the solution to a ridge regression problem. We have illustrated the application of these results to macroeconomic data of types that are commonly subjected to the Hodrick- Prescott filter. Acknowledgement I am grateful to Riccardo (Jack) Luccetti and Graham Voss for their helpful comments on an informal earlier version of this work.

References Bureau of Labor Statistics, 01. Multifactor productivity. http://www.bls.gov/mfp/. Accessed 1 April 01. Danthine, J-P., Girardin, M., 199. Business cycles in Switzerland. European Economic Review 33, 31-50. Federal Reserve Bank of St. Louis, 01. FRED data. http://research.stlouisfed.org/fred/. Accessed 13 April 01. Hamilton, J.D., 199. Time Series Analysis. Princeton University Press, Princeton, NJ. Henderson, R., 19. A new method of graduation. Transactions of the Actuarial Society of America 5, 9-0. Hodrick, R.J., Prescott, E.C. 190. Postwar U.S. business cycles: An empirical investigation. Discussion Paper No. 51, Department of Economics, Carnegie Mellon University. Hodrick, R.J., Prescott, E.C., 1997. Postwar U.S. business cycles: An empirical investigation. Journal of Money, Credit, and Banking 9, 1-1. Leser, C.E.V., 191. A simple method of trend construction. Journal of the Royal Statistical Society, B 3, 91-107. Ley, E., 00. The Hodrick-Prescott filter. Knowledge Brief for Bank Staff. The World Bank, Washington DC. Polasek, W., 011. The Hodrick-Prescott (HP) filter as a Bayesian regression model. WP 11-, The Rimini Centre for Economic Analysis, Rimini, Italy. Ravn, M.O., Uhlig, H., 00. On adjusting the Hodrick-Prescott filter for the frequency of observations. Review of Economics and Statistics, 371-37. Schlicht, E., 005. Estimating the smoothing parameter in the so-called Hodrick-Prescott filter. Journal of the Japan Statistical Society 35, 99-119. Whittaker, E.T., 19. On a new method of graduation. Proceedings of the Edinburgh Mathematical Society 1, 3-75.. 9