Abstract
By applying the Sherman–Morrison–Woodbury (SMW) formula and a discrete cosine transformation matrix, De Jong and Sakarya [De Jong, R. M., and N. Sakarya. 2016. “The Econometrics of the Hodrick–Prescott Filter.” Review of Economics and Statistics 98 (2): 310–317] recently derived an explicit formula for the smoother weights of the Hodrick–Prescott filter. More recently, by applying the SMW formula and the spectral decomposition of a symmetric tridiagonal Toeplitz matrix, Cornea-Madeira [Cornea-Madeira, A. 2017. “The Explicit Formula for the Hodrick–Prescott Filter in Finite Sample.” Review of Economics and Statistics 99: 314–318] provided a simpler formula. This paper provides an alternative simpler formula for it and explains the reason why our approach leads to a simpler formula.
Funding source: Japan Society for the Promotion of Science
Award Identifier / Grant number: 16H03606
Funding statement: The Japan Society for the Promotion of Science supported this work through KAKENHI Grant Number 16H03606.
Acknowledgments
We appreciate two anonymous referees for their valuable suggestions and comments. An earlier draft entitled “An Alternative Explicit Formula for the Hodrick-Prescott Filter in Finite Sample” was presented at the 26th Annual Symposium of the Society for Nonlinear Dynamics and Econometrics held at Keio University in Japan. Our thanks to the participants for their useful comments. The usual caveat applies.
A Appendix
A.1 Proof of (5)
From (4),
Let
The last equality follows from
A.2 Proof of (6)
From (4),
Let
Here, since
where
A.3 Application of the SMW formula to (B − αVV⊤)−1
As in Cornea-Madeira (2017), by applying the SMW formula to
where
On the other hand, by applying the SMW formula to
By comparing (29) with (27) and (28), it is observable that (29) is preferable to (27), mainly because (29) is symmetric with respect to q1 and qT.
A.4 A MATLAB/GNU Octave function to calculate (IT + α D⊤D)−1 in (1) based on (23)
function HP_hat_matrix = calc_HP_hat_matrix(T, alpha) % T: sample size % alpha: smoothing parameter Lam = diag( 4*(sin((1:T-2)*pi/(2*(T-1))).^2) ); G = zeros(T-2,T-2); for i = 1:T-2 for j = 1:T-2 G(i,j) = sqrt(2/(T-1))*sin(i*j*pi/(T-1)); end end invC = zeros(T-2,T-2); for i = 1:T-2 for j = 1:T-2 s = 0; for k = 1:T-2 s = s + G(i,k)*G(j,k)/( (1/alpha)+Lam(k,k)^2 ); end invC(i,j) = s; end end Xi = zeros(T,T); DG = diff([zeros(2,T-2);G;zeros(2,T-2)],2); for i = 1:T for j = 1:T s = 0; for k = 1:T-2 s = s+DG(i,k)*DG(j,k)/((1/alpha)+Lam(k,k)^2); end Xi(i,j) = s; end end Up1 = zeros(T,1); Up2 = zeros(T,1); for i=1:T s1 = 0; s2 = 0; for k = 1:T-2 s1 = s1+DG(i,k)*G(1,k)/((1/alpha)+Lam(k,k)^2); s2 = s2+DG(i,k)*G(end,k)/((1/alpha)+Lam(k,k)^2); end Up1(i) = s1; Up2(i) = s2; end c11 = invC(1,1); c22 = invC(end,end); c12 = invC(1,end); c21 = invC(end,1); den = (1+c11)*(1+c22)-c12*c21; Tau = zeros(T,T); for i=1:T for j=1:T num = (1+c22)*Up1(i)*Up1(j)-c12*Up1(i)*Up2(j)-c21*Up2(i)*Up1(j) ... +(1+c11)*Up2(i)*Up2(j); Tau(i,j) = num/den; end end Z = zeros(T,T); I = eye(T); for i=1:T for j=1:T Z(i,j) = I(i,j)-Xi(i,j)+Tau(i,j); end end HP_hat_matrix = Z; endReferences
Ahmed, N., T. Natarajan, and K. R. Rao. 1974. “Discrete Cosine Transform.” IEEE Transactions on Computers C-23 (1): 90–93.10.1109/T-C.1974.223784Suche in Google Scholar
Bierens, H. 1997. “Testing the Unit Root with Drift Hypothesis Against Nonlinear Trend Stationarity, with an Application to the U.S. Price Level and Interest Rate.” Journal of Econometrics 81: 29–64.10.1016/S0304-4076(97)00033-XSuche in Google Scholar
Cornea-Madeira, A. 2017. “The Explicit Formula for the Hodrick–Prescott Filter in Finite Sample.” Review of Economics and Statistics 99 (2): 314–318.10.1162/REST_a_00594Suche in Google Scholar
Craven, P., and G. Wahba. 1979. “Smoothing Noisy Data with Spline Functions: Estimating the Correct Degree of Smoothing by the Method of Generalized Cross-Validation.” Numerical Mathematics 31: 377–403.10.1007/BF01404567Suche in Google Scholar
De Jong, R. M., and N. Sakarya. 2016. “The Econometrics of the Hodrick–Prescott Filter.” Review of Economics and Statistics 98 (2): 310–317.10.1162/REST_a_00523Suche in Google Scholar
Diele, F., and L. Lopez. 1998. “The Use of the Factorization of Five-Diagonal Matrices by Tridiagonal Toeplitz Matrices.” Applied Mathematics Letters 11 (3): 61–69.10.1016/S0893-9659(98)00034-2Suche in Google Scholar
Golub, G. H., M. Heath, and G. Wahba. 1979. “Generalized Cross-Validation as a Method for Choosing a Good Ridge Parameter.” Technometrics 21 (2): 215–223.10.1080/00401706.1979.10489751Suche in Google Scholar
Graybill, F. A. 2001. Matrices with Applications in Statistics. 2nd ed. Belmont: Cengage Learning.Suche in Google Scholar
Hamming, R. W. 1973. Numerical Methods for Scientists and Engineers. 2nd ed. New York: McGraw-Hill.Suche in Google Scholar
Hodrick, R. J., and E. C. Prescott. 1997. “Postwar U.S. Business Cycles: An Empirical Investigation.” Journal of Money, Credit and Banking 29 (1): 1–16.10.4324/9780203070710.pt8Suche in Google Scholar
Hoerl, A. E., and R. W. Kennard. 1970. “Ridge Regression: Biased Estimation for Nonorthogonal Problems.” Technometrics 12 (1): 55–67.10.1080/00401706.1970.10488634Suche in Google Scholar
Kim, S., K. Koh, S. Boyd, and D. Gorinevsky. 2009. “ℓ1 Trend Filtering.” SIAM Review 51 (2): 339–360.10.1137/070690274Suche in Google Scholar
King, R. G., and S. T. Rebelo. 1993. “Low Frequency Filtering and Real Business Cycles.” Journal of Economic Dynamics and Control 17 (1–2): 207–231.10.1016/S0165-1889(06)80010-2Suche in Google Scholar
Marr, R. B., and G. H. Vineyard. 1988. “Five-Diagonal Toeplitz Determinants and their Relation to Chebyshev Polynomials.” SIAM Journal on Matrix Analysis and Applications 9 (4): 579–586.10.1137/0609048Suche in Google Scholar
Montaner, J. M., and M. Alfaro. 1995. “On Five-Diagonal Toeplitz Matrices and Orthogonal Polynomials on the Unit Circle.” Numerical Algorithms 10 (1): 137–153.10.1007/BF02198300Suche in Google Scholar
Paige, R. L., and A. A. Trindade. 2010. “The Hodrick–Prescott Filter: A Special Case of Penalized Spline Smoothing.” Electronic Journal of Statistics 4: 856–874.10.1214/10-EJS570Suche in Google Scholar
Strang, G. 1999. “The Discrete Cosine Transform.” SIAM Review 41 (1): 135–147.10.1137/S0036144598336745Suche in Google Scholar
Strang, G., and S. MacNamara. 2014. “Functions of Difference Matrices are Toeplitz Plus Hankel.” SIAM Review 56 (3): 525–546.10.1137/120897572Suche in Google Scholar
Tibshirani, R. 1996. “Regression Shrinkage and Selection via the Lasso.” Journal of the Royal Statistical Society Series B 58: 267–288.10.1111/j.2517-6161.1996.tb02080.xSuche in Google Scholar
Yamada, H. 2015. “Ridge Regression Representations of the Generalized Hodrick–Prescott Filter.” Journal of the Japan Statistical Society 45 (2): 121–128.10.14490/jjss.45.121Suche in Google Scholar
Yamada, H. 2018. “Several Least Squares Problems Related to the Hodrick–Prescott Filtering.” Communications in Statistics – Theory and Methods 47 (5): 1022–1027.10.1080/03610926.2017.1285934Suche in Google Scholar
Yamada, H., and F. T. Jahra. 2018. “Explicit Formulas for the Smoother Weights of the Whittaker–Henderson Graduation of Order 1.” Communications in Statistics – Theory and Methods. DOI: 10.1080/03610926.2018.1476713.Suche in Google Scholar
Wang, C., H. Li, and D. Zhao. 2015. “An Explicit Formula for the Inverse of a Pentadiagonal Toeplitz Matrix.” Journal of Computational and Applied Mathematics 278 (15): 12–18.10.1016/j.cam.2014.08.010Suche in Google Scholar
Weinert, H. L. 2007. “Efficient Computation for Whittaker–Henderson Smoothing.” Computational Statistics and Data Analysis 52: 959–974.10.1016/j.csda.2006.11.038Suche in Google Scholar
©2019 Walter de Gruyter GmbH, Berlin/Boston
Artikel in diesem Heft
- Research Articles
- Variance reduction estimation for return models with jumps using gamma asymmetric kernels
- Threshold models with time-varying threshold values and their application in estimating regime-sensitive Taylor rules
- Smart or stupid depends on who is your counterpart: a cobweb model with heterogeneous expectations
- An explicit formula for the smoother weights of the Hodrick–Prescott filter
- An intuitive skewness-based symmetry test applicable to stationary time series data
- An elementary business cycle mechanism: learning from Harrod and Kaldor
Artikel in diesem Heft
- Research Articles
- Variance reduction estimation for return models with jumps using gamma asymmetric kernels
- Threshold models with time-varying threshold values and their application in estimating regime-sensitive Taylor rules
- Smart or stupid depends on who is your counterpart: a cobweb model with heterogeneous expectations
- An explicit formula for the smoother weights of the Hodrick–Prescott filter
- An intuitive skewness-based symmetry test applicable to stationary time series data
- An elementary business cycle mechanism: learning from Harrod and Kaldor