Abstract
The modelling of the trend component of economic time series has a long history, and the most primitive and popular model displays the trend as a linear function of time. However, the residuals of such a linear trend frequently exhibit long-period fluctuations. The Hodrick–Prescott (HP) filter is able to capture such long-period fluctuations well, resulting in a very realistic trend-cycle decomposition. It may be queried whether the HP trend residuals no longer contain useful long-period fluctuations. If such long-period fluctuations are present, then taking them into consideration could improve the HP trend. In a recent article, a new approach to address this issue, the boosted HP (bHP) filter, was proposed. The three trends mentioned above, i.e., the linear trend, the HP trend, and the bHP trend, can be treated in a unified manner. In this paper, we demonstrate the relationship in detail. We show how the bHP trend is constructed from the linear/HP trend, and long-period fluctuations remained in their trend residuals.
MSC:
62G05
JEL Classification:
C22
1. Introduction
The modelling of the trend component of economic time series has a long history (Mills, 2003 [1]). The most primitive and popular model displays the trend as a linear function of time. However, the residuals of such a linear trend frequently exhibit long-period fluctuations (see, for example, King and Rebelo (1993, Figure 1) [2] and Yamada (2018, Figure 2) [3]). The Hodrick–Prescott (HP) filter (Hodrick and Prescott, 1997 [4]) is able to capture such long-period fluctuations well, resulting in a very realistic trend-cycle decomposition. This is probably why the HP trend is often used instead of the linear trend. It removes a smooth trend as one would draw it with a free hand (Pedersen, 2001 [5]). For a historical review of the HP filter, see Weinert (2007) [6] and Phillips and Jin (2021) [7].
It may be queried whether the HP trend residuals no longer contain useful long-period fluctuations. If such long-period fluctuations are present, then taking them into consideration could improve the HP trend. In a recent article, Phillips and Shi (2021) [8] proposed a new approach to address this issue. They applied the -boosting (Bühlmann, 2006 [9]; Tutz and Binder, 2007 [10]), a popular technique in machine learning. They called it the boosted HP (bHP) filter. For unit root nonstationary time series, the HP filter cannot properly estimate the trend (Phillips and Jin, 2021, Theorem 3 [7]). However, the bHP filter is capable of doing so (Phillips and Shi, 2021, Theorem 1 [8]), making it a highly promising alternative.
Several studies concerning the bHP filter have since emerged: (i) Knight (2021) [11] established the properties of the bHP filter by deriving the penalized least-squares problems corresponding to the bHP filter; (ii) Tomal (2022) [12], Trojanek et al. (2023) [13], Xu (2023) [14], and Andrián et al. (2024) [15] conducted empirical studies using the bHP filter; (iii) Hall and Thomson (2024) [16] provided a way to use the bHP filter as a frequency-selective filter; (iv) Mei et al. (2024) [17] and Biswas et al. (2024) [18] provided further results that demonstrate the usefulness of the bHP filter; (v) Yamada (2024) [19] established the properties of the bHP filter following Knight (2021) [11]; and (vi) Jin and Yamada (2024) [20] and Bao and Yamada (2025) [21] studied the boosted version of the Whittaker–Henderson graduation (Weinert, 2007 [6]).
The three trends mentioned above, (i.e., the linear trend, the HP trend, and the bHP trend) can be treated in a unified manner. In this paper, we demonstrate the relationship in detail. We show how the bHP trend is constructed from the linear/HP trend and long-period fluctuations remained in their trend residuals.
The organization of the paper is as follows: In Section 2, we describe the three trends. In Section 3, we present a unified perspective of them. In Section 4, we add some more details to the perspective. In Section 5, we provide an empirical illustration of the obtained results. Section 6 concludes the paper. In Appendices Appendix A and Appendix B, we provide additional results and several proofs.
2. Preliminaries
In this section, we review the three trends mentioned in Section 1.
Let denote a macroeconomic variable y at time t for and . Let be the matrix whose t-th row is for . We assume that does not belong to the column space of . That is, cannot be expressed as , where is a two-dimensional column vector. The case where belongs to the column space of is discussed in Appendix A.
- Linear trend:
The linear trend estimated by ordinary least squares, denoted by , is
where
where . Here, for a column vector , denotes the squared -norm of , and it thus identical to .
- HP trend:
The HP trend, denoted by , is
where is a smoothing parameter, , is the matrix such that , and
Here, is the identity matrix. Since in (4) is a positive definite matrix (Danthine and Girardin, 1989 [22]), it is nonsingular. Given that
is a symmetric matrix.
As is widely acknowledged, there is a relationship between and , as follows:
Here, (5) follows by applying the Sherman–Morrison–Woodbury formula to . More specifically, it follows from
where . Here, is an positive definite matrix. Note that the last equality in (6) holds because is a nonsingular matrix such that
where denotes the matrix of zeros.
- bHP trend:
The bHP trend, denoted by , can be considered a generalization of the HP filter. It is defined using the smoother matrix of the HP filter, in (4), as follows:
where
Given that , it follows that
Therefore, as stated, the bHP trend can be considered a generalization of the HP trend.
Given that is a symmetric matrix, it follows that
Hence, is also a symmetric matrix.
3. A Unified Perspective of the Three Trends
The three trends defined in the previous section, , , and , can be treated in a unified way. In this section, we show this.
This perspective can be regarded as an extension of the result presented in Kim et al. (2009) [23] and Yamada (2018) [3]. Thus, here, we review the result. Using (7), it follows that , which leads to
Therefore, it follows that
from which we obtain
Given that is a low-pass filter (Yamada, 2018 [3], Figure 1), in (14) is a low-frequency component of the linear trend residuals, . Therefore, is the sum of the linear trend and a low-frequency component of the linear trend residuals.
Let . Then, since , (14) can be represented as
Next, consider . Given that
it follows that
Then, substituting (15) into (17) yields
Proof.
Remark 1.
(a) Again, given that is a low-pass filter, for in (19) are trend components retained in the trend residuals, . In this regard, see also Proposition 3 in the next section. (b) The next (23)–(26) illustrate how the linear trend, the HP trend, and the bHP trend can be treated in a unified way.
Here, the term ‘twicing’ is used in Hall and Thompson (2024) [16]. Interestingly, not only and but also can be considered as the gains from boosting. (c) From Proposition 1, we immediately obtain the following recursive formula:
for .
Let . Then, it follows that . In addition, given that , (12) can be represented as . Moreover, for , it follows that
Combining these results, we obtain
This is a generalization of (12).
Proposition 2.
for in (19) belong to the orthogonal complement of the column space of Π.
Proof.
4. Some More Details to the Perspective
In this section, we add some more results concerning for in (19).
Denote a spectral decomposition of an real symmetric matrix by , where and . Here, the eigenvalues, , are in ascending order. Given that is a positive semi-definite matrix whose rank is , the eigenvalues satisfy the inequalities given by
Note that follows from the Gershgorin circle theorem (Estrada and Knight, 2015 [24]). Figure 1 plots the eigenvalues for . is an orthogonal matrix. Given that , it follows that
Accordingly, given that is of full column rank, we can let
where , , and . Note that, since , both and belong to the column space of . Denote the i-th entry of by for , i.e., . Accordingly, , where .
Figure 1.
Eigenvalues for .
The next proposition shows how the residuals, , are smoothed by the smoother matrix .
Proposition 3.
can be represented by
where denotes the i-th entry of . Moreover, in (36), the eigenvectors, , satisfy the inequalities given by
and the coefficients on the eigenvectors satisfy the inequalities given by
Proof.
See Appendix B. □
Remark 3.
(a) The inequalities in (37) show that the degree of smoothness of is higher than that of for . Figure 2 illustrates the latter results by plotting , , , and for . (b) The inequalities in (38) are the core of smoothing. This is because only relatively short-period fluctuations are compressed. For example, is close to zero, whereas is close to unity. We note that are the eigenvalues of in descending order. See Figure 3, which plots for and .
Figure 2.
Eigenvectors , , , for .
Figure 3.
Eigenvalues for and .
The next proposition shows the results concerning the squared -norm of for .
Proposition 4.
If does not belong to the column space of Π, then it follows that
Proof.
See Appendix B. □
Remark 4.
From Proposition 4, it follows that
Here, we show that this result is reasonable. Given that is an orthonormal basis of the column space of Π, it follows that , where , from which we have
In addition, given that and , we have
which is consistent with (40).
The next proposition documents the results for the arithmetic mean and the variance of for .
Proposition 5.
(i) The sum of the entries of is equal to zero for . (ii) If does not belong to the column space of Π, then it follows that
Proof.
See Appendix B. □
Remark 5.
(a) (i) shows that the arithmetic mean of equals zero for . (b) (i) and (ii) imply that the variance of strictly decreases as k increases from zero. Moreover, in addition to (43), given that for , from Proposition 4, it follows that
5. An Empirical Illustration
The dashed line in the top panel of Figure 4 depicts the log of US real gross domestic product (GDP) from 1947:1 to 1998:2, . This is the same data used by Morley et al. (2003) [25] and Perron and Wada (2009) [26]. The solid line in the panel is the linear trend, . The dashed line in the middle panel plots the linearly detrended series, . It clearly shows that the linear trend residuals contain long-period fluctuations. The solid line in the panel plots is estimated with . Recall that
The two panels presented here are identical to those shown in Yamada (2018, Figure 2) [3].
Figure 4.
Top panel: Log of US real GDP, (dashed line), and the linear trend, (solid line). Middle panel: The linearly detrended series, (dashed line), and its low-frequency component, , estimated with (solid line). Bottom panel: The HP detrended series, (dashed line), and its low-frequency component, , estimated with (solid line).
The dashed line in the bottom panel plots the HP detrended series, . The solid line in the panel plots its low-frequency component, , which is again estimated with . From the bottom panel, we observe that the HP detrended series, still contain long-period fluctuations and they are extracted by . Recall that
which is twicing. Finally, we report that the following inequalities hold:
which illustrate Propostions 4 and 5.
As a supplementary examination, the same analysis was conducted with = 800,000. Note that both 1600 and 800,000 are the values used in Perron and Wada (2009, Figure 5) [26]. The results are illustrated in Figure 5. Even in this case, the following inequalities hold:
Figure 5.
Top panel: Log of US real GDP, (dashed line), and the linear trend, (solid line). Middle panel: The linearly detrended series, (dashed line), and its low-frequency component, , estimated with = 800,000 (solid line). Bottom panel: The HP detrended series, (dashed line), and its low-frequency component, , estimated with = 800,000 (solid line).
Regarding (47) and (48), we make a remark. If does not belong to the column space of , then it follows that
A proof of (49) is provided in Appendix B.
6. Concluding Remarks
Yamada (2018) [3] clarified the relationship between the linear trend in (1) and the HP trend in (3) and explained why the HP trend seems to be more plausible than the linear trend. This paper is an extension of Yamada (2018) [3]. In this paper, we treated the three trends, the linear trend, the HP trend, and the recently proposed bHP trend in (8), in a unified manner and clarified their relationship in detail. We showed how the bHP trend is constructed from the linear/HP trend, and long-period fluctuations remained in their trend residuals. The results obtained are summarized in Propositions 1–5 and illustrated in Figure 4 and Figure 5.
Finally, we make one remark. It concerns the value of m. As stated by Phillips and Shi (2021) [8], when is fixed, the effective degrees of freedom of the bHP filter, defined as ), is an increasing function of m. Thus, increasing m reduces the sum of squares of the bHP trend residuals. (As shown in Proposition 1 of Yamada (2024) [19], it tends to 0 as m goes to ∞.) This relationship is similar to that between the number of explanatory variables and the sum of squares of residuals in a linear regression model. For selecting the value of m, Phillips and Shi (2021) [8] proposed an information criterion.
Funding
The Japan Society for the Promotion of Science supported this work through KAKENHI Grant Number 23K01377.
Data Availability Statement
The data used in this article is the same data used by Morley et al. (2003) [25] and Perron and Wada (2009) [26]. It was obtained from Pierre Perron’s website.
Acknowledgments
The author thanks two anonymous referees for their valuable comments. He also thanks Pierre Perron and Tatsuma Wada for providing the data used in this article, which was obtained from Pierre Perron’s website. The usual caveat applies.
Conflicts of Interest
The author declares no conflict of interest.
Appendix A. The Case Where y Belongs to the Column Space of Π
In this section, we briefly mention what happens when belongs to the column space of , which is excluded in the main text. If belongs to the column space of , then can be expressed as , where , i.e., for . In the case, from (29), it follows that
In other words, we have
Because no smoothing is needed for the case, the results are reasonable. Accordingly, from (A1), in contrast to Proposition 4, we obtain the following results.
Proposition A1.
If belongs to the column space of Π, then it follows that
Appendix B. Proofs of Propositions 3–5 and (49)
Let
Then, , where
From the spectral decomposition of and the definition of , we have the following results.
Lemma A1.
can be spectrally decomposed as
The eigenvalues of satisfy the inequalities given by
Proof.
Given that , it follows that
Next, by definition of , we have
Then, given that and , it follows that . □
Recall that . Regarding the entries of , we have the following result.
Lemma A2.
If does not belong to the column space of Π, then it follows that .
Proof.
Appendix B.1. Proof of Proposition 3
Appendix B.2. Proof of Proposition 4
Appendix B.3. Proof of Proposition 5
(i) It immediately follows from Proposition 2. Next, we prove (ii) by showing the inequalities given by
Given that by Lemma A2 and for , from Proposition 4, it follows that
for .
Appendix B.4. Proof of (49)
References
- Mills, T.C. Modelling Trends and Cycles in Economic Time Series; Palgrave Macmillan: Basingstoke, UK, 2003. [Google Scholar]
- King, R.G.; Rebelo, S.T. Low frequency filtering and real business cycles. J. Econ. Dyn. Control 1993, 17, 207–231. [Google Scholar] [CrossRef]
- Yamada, H. Why does the trend extracted by the Hodrick–Prescott filtering seem to be more plausible than the linear trend? Appl. Econ. Lett. 2018, 25, 102–105. [Google Scholar] [CrossRef]
- Hodrick, R.J.; Prescott, E.C. Postwar U.S. business cycles: An empirical investigation. J. Money Credit. Bank. 1997, 29, 1–16. [Google Scholar] [CrossRef]
- Pedersen, T.M. The Hodrick–Prescott filter, the Slutzky effect, and the distortionary effect of the filters. J. Econ. Dyn. Control 2001, 25, 1081–1101. [Google Scholar] [CrossRef]
- Weinert, H.L. Efficient computation for Whittaker–Henderson smoothing. Comput. Stat. Data Anal. 2007, 52, 959–974. [Google Scholar] [CrossRef]
- Phillips, P.C.B.; Jin, S. Business cycles, trend elimination, and the HP filter. Int. Econ. Rev. 2021, 62, 469–520. [Google Scholar] [CrossRef]
- Phillips, P.C.B.; Shi, Z. Boosting: Why you can use the HP filter. Int. Econ. Rev. 2021, 62, 521–570. [Google Scholar] [CrossRef]
- Bühlmann, P. Boosting for high-dimensional linear models. Ann. Stat. 2006, 34, 559–583. [Google Scholar] [CrossRef]
- Tutz, G.; Binder, H. Boosting ridge regression. Comput. Stat. Data Anal. 2007, 51, 6044–6059. [Google Scholar] [CrossRef]
- Knight, K. The Boosted Hodrick–Prescott Filter, Penalized Least Squares, and Bernstein Polynomials, Unpublished Manuscript. 2021. Available online: https://utstat.utoronto.ca/keith/papers/hp-pls.pdf (accessed on 3 June 2025).
- Tomal, M. Testing for overall and cluster convergence of housing rents using robust methodology: Evidence from Polish provincial capitals. Empir. Econ. 2022, 62, 2023–2055. [Google Scholar] [CrossRef]
- Trojanek, R.; Gluszak, M.; Kufel, P.; Tanas, J.; Trojanek, M. Pre and post-financial crisis convergence of metropolitan housing markets in Poland. J. Hous. Built Environ. 2023, 38, 515–540. [Google Scholar] [CrossRef]
- Xu, C. Do households react to policy uncertainty by increasing savings? Econ. Anal. Policy 2023, 80, 770–785. [Google Scholar] [CrossRef]
- Andrián, L.; Hirs-Garzon, J.; Urrea, I.L.; Valencia, O. Fiscal rules and economic cycles: Quality (always) matters. Eur. J. Political Econ. 2024, 85, 102591. [Google Scholar] [CrossRef]
- Hall, V.B.; Thomson, P. Selecting a boosted HP filter for growth cycle analysis based on maximising sharpness. J. Bus. Cycle Res. 2024, 20, 193–217. [Google Scholar] [CrossRef]
- Mei, Z.; Phillips, P.C.B.; Shi, Z. The boosted Hodrick–Prescott filter is more general than you might think. J. Appl. Econom. 2024, 39, 1260–1281. [Google Scholar] [CrossRef]
- Biswas, E.; Sabzikar, F.; Phillips, P.C.B. Boosting the HP filter for trending time series with long-range dependence. Econom. Rev. 2024, 44, 41–79. [Google Scholar] [CrossRef]
- Yamada, H. Boosted HP filter: Several properties derived from its spectral representation. In Computational Science and Its Applications—ICCSA 2024; Gervasi, O., Murgante, B., Garau, C., Taniar, D., Rocha, A.M.A.C., Lago, M.N.F., Eds.; Springer: Cham, Switzerland, 2024. [Google Scholar] [CrossRef]
- Jin, Z.; Yamada, H. Boosted Whittaker–Henderson graduation. Mathematics 2024, 12, 3377. [Google Scholar] [CrossRef]
- Bao, R.; Yamada, H. Boosted Whittaker–Henderson graduation of order 1: A graph spectral filter using discrete cosine transform. Contemp. Math. 2025, 6, 2027–2037. [Google Scholar] [CrossRef]
- Danthine, J.-P.; Girardin, M. Business cycles in Switzerland: A comparative study. Eur. Econ. Rev. 1989, 33, 31–50. [Google Scholar] [CrossRef]
- Kim, S.; Koh, K.; Boyd, S.; Gorinevsky, D. ℓ1 trend filtering. SIAM Rev. 2009, 51, 339–360. [Google Scholar] [CrossRef]
- Estrada, E.; Knight, P. A First Course in Network Theory; Oxford University Press: Oxford, UK, 2015. [Google Scholar]
- Morley, J.C.; Nelson, C.R.; Zivot, E. Why are the Beveridge–Nelson and unobserved-components decompositions of GDP so different? Rev. Econ. Stat. 2003, 85, 235–243. [Google Scholar] [CrossRef]
- Perron, P.; Wada, T. Let’s take a break: Trend and cycles in US real GDP. J. Monet. Econ. 2009, 56, 749–765. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).




