Next Article in Journal
Queues with Working Vacations: A Survey
Next Article in Special Issue
Information-Theoretic Sequential Framework to Elicit Dynamic High-Order Interactions in High-Dimensional Network Processes
Previous Article in Journal
Modeling Time Series with SARIMAX and Skew-Normal and Zero-Inflated Skew-Normal Errors
Previous Article in Special Issue
Disentangling Sources of Multifractality in Time Series
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Linear Trend, HP Trend, and bHP Trend

Graduate School of Humanities and Social Sciences, Hiroshima University, 1-2-1 Kagamiyama, Higashihiroshima 739-8525, Japan
Mathematics 2025, 13(11), 1893; https://doi.org/10.3390/math13111893
Submission received: 14 May 2025 / Revised: 3 June 2025 / Accepted: 4 June 2025 / Published: 5 June 2025
(This article belongs to the Special Issue Recent Advances in Time Series Analysis)

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.

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 L 2 -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 I ( 1 ) 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 y t denote a macroeconomic variable y at time t for t = 1 , , n and y = [ y 1 , , y n ] . Let Π be the n × 2 matrix whose t-th row is [ 1 , t ] for t = 1 , , n . We assume that y does not belong to the column space of Π . That is, y cannot be expressed as Π α , where α is a two-dimensional column vector. The case where y 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
β ^ = arg min β 1 , β 2 R t = 1 n ( y t β 1 β 2 t ) 2 = arg min β R 2 y Π β 2 = ( Π Π ) 1 Π y ,
where β = [ β 1 , β 2 ] . Here, for a column vector g , g 2 denotes the squared 2 -norm of g , and it thus identical to g g .
  • HP trend:
The HP trend, denoted by x ^ HP , is
x ^ HP = arg min x 1 , , x n R t = 1 n ( y t x t ) 2 + λ t = 3 n ( x t 2 x t 1 + x t 2 ) 2 = arg min x R n y x 2 + λ D x 2 = S y ,
where λ ( 0 , ) is a smoothing parameter, x = [ x 1 , , x n ] , D is the ( n 2 ) × n matrix such that D x = [ x 3 2 x 2 + x 1 , , x n 2 x n 1 + x n 2 ] , and
S = ( I n + λ D D ) 1 .
Here, I n is the n × n identity matrix. Since I n + λ D D in (4) is a positive definite matrix (Danthine and Girardin, 1989 [22]), it is nonsingular. Given that
S = { ( I n + λ D D ) 1 } = { ( I n + λ D D ) } 1 = ( I n + λ D D ) 1 = S ,
S is a symmetric matrix.
As is widely acknowledged, there is a relationship between x ^ HP and τ ^ , as follows:
x ^ HP τ ^ , ( λ ) .
Here, (5) follows by applying the Sherman–Morrison–Woodbury formula to S . More specifically, it follows from
S = I n D 1 λ I n 1 + D D 1 D I n D ( D D ) 1 D = P Π , ( λ ) .
where P Π = Π ( Π Π ) 1 Π . Here, D D is an ( n 2 ) × ( n 2 ) positive definite matrix. Note that the last equality in (6) holds because [ Π , D ] is a nonsingular matrix such that
( D ) Π = D Π = 0 n 2 , 2 ,
where 0 r , s denotes the r × s matrix of zeros.
  • bHP trend:
The bHP trend, denoted by x ^ ( m ) , can be considered a generalization of the HP filter. It is defined using the smoother matrix of the HP filter, S in (4), as follows:
x ^ ( m ) = S m y , m = 1 , 2 , ,
where
S m = I n ( I n S ) m .
Given that S 1 = I n ( I n S ) = S , it follows that
x ^ ( 1 ) = x ^ HP .
Therefore, as stated, the bHP trend can be considered a generalization of the HP trend.
Given that S is a symmetric matrix, it follows that
S m = I n ( I n S ) m = I n ( I n S ) m = I n ( I n S ) m = I n ( I n S ) m = S m .
Hence, S m is also a symmetric matrix.

3. A Unified Perspective of the Three Trends

The three trends defined in the previous section, τ ^ , x ^ HP , and x ^ ( m ) , 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 S 1 Π = ( I n + λ D D ) Π = Π , which leads to
S Π = Π .
Therefore, it follows that
S τ ^ = S P Π y = P Π y = τ ^ ,
from which we obtain
x ^ HP = τ ^ + S ( y τ ^ ) .
Given that S is a low-pass filter (Yamada, 2018 [3], Figure 1), S ( y τ ^ ) in (14) is a low-frequency component of the linear trend residuals, y τ ^ . Therefore, x ^ HP is the sum of the linear trend and a low-frequency component of the linear trend residuals.
Let x ^ ( 0 ) = τ ^ . Then, since x ^ ( 1 ) = x ^ HP , (14) can be represented as
x ^ ( 1 ) = x ^ ( 0 ) + S ( y x ^ ( 0 ) ) .
Next, consider x ^ ( 2 ) . Given that
S 2 = I n ( I n S ) 2 = S + S ( I n S ) ,
it follows that
x ^ ( 2 ) = x ^ ( 1 ) + S ( y x ^ ( 1 ) ) .
Then, substituting (15) into (17) yields
x ^ ( 2 ) = x ^ ( 0 ) + S ( y x ^ ( 0 ) ) + S ( y x ^ ( 1 ) ) .
The next proposition generalizes (15) and (18).
Proposition 1. 
x ^ ( m ) in (8) can be decomposed as
x ^ ( m ) = x ^ ( 0 ) + S ( y x ^ ( 0 ) ) + S ( y x ^ ( 1 ) ) + + S ( y x ^ ( m 1 ) )
for m = 1 , 2 , , where x ^ ( 0 ) = τ ^ in (1).
Proof. 
Let R = I n S . Given that
S m = I n R m = ( I n R ) ( I n + R + + R m 1 ) = S ( I n + R + + R m 1 ) = S + S R + + S R m 1 ,
the bHP trend, x ^ ( m ) , can be represented as
x ^ ( m ) = S m y = S y + S R y + + S R m 1 y .
Here, since S k = I n R k , it follows that R k = I n S k , which yields R k y = y x ^ ( k ) for k = 1 , , m 1 . In addition, S y = x ^ ( 1 ) . Accordingly, (21) can be rewritten using x ^ ( 1 ) , , x ^ ( m 1 ) as
x ^ ( m ) = x ^ ( 1 ) + S ( y x ^ ( 1 ) ) + + S ( y x ^ ( m 1 ) ) .
Finally, by substituting (15) into (22), we obtain (19). □
Remark 1. 
(a) Again, given that S is a low-pass filter, S ( y x ^ ( k ) ) for k = 0 , , m 1 in (19) are trend components retained in the trend residuals, y x ^ ( k ) . 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.
x ^ ( 0 ) = τ ^ , ( Linear trend ) ,
x ^ ( 1 ) = τ ^ + S ( y τ ^ ) , ( HP trend ) ,
x ^ ( 2 ) = τ ^ + S ( y τ ^ ) + S ( y x ^ HP ) , ( bHP trend , twicing ) ,
x ^ ( 3 ) = τ ^ + S ( y τ ^ ) + S ( y x ^ HP ) + S ( y x ^ ( 2 ) ) , ( bHP trend ) .
Here, the term ‘twicing’ is used in Hall and Thompson (2024) [16]. Interestingly, not only S ( y x ^ HP ) and S ( y x ^ ( 2 ) ) but also S ( y τ ^ ) can be considered as the gains from boosting. (c) From Proposition 1, we immediately obtain the following recursive formula:
x ^ ( m ) = x ^ ( m 1 ) + S ( y x ^ ( m 1 ) ) ,
x ^ ( 0 ) = τ ^
for m = 1 , 2 , .
Let S 0 = P Π . Then, it follows that S 0 Π = P Π Π = Π . In addition, given that S 1 = S , (12) can be represented as S 1 Π = Π . Moreover, for k = 2 , , m 1 , it follows that
S k Π = { I n ( I n S ) k } Π = Π ( I n S ) k 1 ( I n S ) Π = Π .
Combining these results, we obtain
S k Π = Π , k = 0 , , m 1 .
This is a generalization of (12).
Given that S k is symmetric, from (29), it follows that
Π S k = Π S k = ( S k Π ) = Π , k = 0 , , m 1 .
Thereby, we obtain
Π ( y x ^ ( k ) ) = Π y Π x ^ ( k ) = Π y Π S k y = Π y Π y = 0 2 , 1 , k = 0 , , m 1 .
From (30) and (31), we have the following results.
Proposition 2. 
S ( y x ^ ( k ) ) for k = 0 , , m 1 in (19) belong to the orthogonal complement of the column space of Π.
Proof. 
From (30) and (31), it follows that
Π S ( y x ^ ( k ) ) = Π ( y x ^ ( k ) ) = 0 2 , 1 , k = 0 , , m 1 .
Therefore, S ( y x ^ ( k ) ) for k = 0 , , m 1 belong to the orthogonal complement of the column space of Π . □
Remark 2. 
(a) Proposition 2 implies that the total gains of boosting, S ( y x ^ ( 0 ) ) + + S ( y x ^ ( m 1 ) ) , in (19) is orthogonal to τ ^ ( = x ^ ( 0 ) ) . In other words, the right-hand side of (19) shows an orthogonal decomposition of x ^ ( m ) . (b) Denote the t-th entry of S ( y x ^ ( k ) ) by ζ t ( k ) for k = 0 , , m 1 . Proposition 2 implies that
t = 1 n ζ t ( k ) = 0 , t = 1 n t ζ t ( k ) = 0 , k = 0 , , m 1 .

4. Some More Details to the Perspective

In this section, we add some more results concerning S ( y x ^ ( k ) ) for k = 0 , , m 1 in (19).
Denote a spectral decomposition of an n × n real symmetric matrix D D by V Γ V , where Γ = diag ( γ 1 , , γ n ) and V = [ v 1 , , v n ] . Here, the eigenvalues, γ 1 , , γ n , are in ascending order. Given that D D is a positive semi-definite matrix whose rank is n 2 , the eigenvalues satisfy the inequalities given by
0 = γ 1 = γ 2 < γ 3 γ n 16 .
Note that γ n 16 follows from the Gershgorin circle theorem (Estrada and Knight, 2015 [24]). Figure 1 plots the eigenvalues γ 1 , , γ n for n = 100 . V is an orthogonal matrix. Given that D Π = 0 n 2 , 2 , it follows that
D D Π = 0 n , 2 = 0 · Π .
Accordingly, given that Π is of full column rank, we can let
v 1 = 1 n ι , v 2 = 1 ξ Q ι ξ Q ι ξ ,
where ι = [ 1 , , 1 ] R n , ξ = [ 1 , , n ] , and Q ι = I n ι ( ι ι ) 1 ι . Note that, since Π = [ ι , ξ ] , both v 1 and v 2 belong to the column space of Π . Denote the i-th entry of V y by η i for i = 1 , , n , i.e., V y = [ η 1 , , η n ] . Accordingly, η 1 = v 1 y = n y ¯ , where y ¯ = 1 n t = 1 n y t .
The next proposition shows how the residuals, y x ^ ( 0 ) , , y x ^ ( m 1 ) , are smoothed by the smoother matrix S .
Proposition 3. 
S ( y x ^ ( k ) ) can be represented by
S ( y x ^ ( k ) ) = i = 3 n ϕ i ( k ) 1 + λ γ i v i , k = 0 , , m 1 ,
where ϕ i ( k ) denotes the i-th entry of V ( y x ^ ( k ) ) . Moreover, in (36), the eigenvectors, v 3 , , v n , satisfy the inequalities given by
0 < D v 3 2 D v n 2 16
and the coefficients on the eigenvectors satisfy the inequalities given by
1 > 1 1 + λ γ 3 1 1 + λ γ n > 0 .
Proof. 
See Appendix B. □
Remark 3. 
(a) The inequalities in (37) show that the degree of smoothness of v i is higher than that of v i + 1 for i = 3 , , n 1 . Figure 2 illustrates the latter results by plotting v 3 , v 5 , v 10 , and v 20 for n = 100 . (b) The inequalities in (38) are the core of smoothing. This is because only relatively short-period fluctuations are compressed. For example, 1 1 + λ γ n is close to zero, whereas 1 1 + λ γ 3 is close to unity. We note that 1 1 + λ γ 1 , , 1 1 + λ γ n are the eigenvalues of S in descending order. See Figure 3, which plots 1 1 + λ γ 3 , , 1 1 + λ γ 30 for λ = 1600 and n = 100 .
The next proposition shows the results concerning the squared 2 -norm of S ( y x ^ ( k ) ) for k = 0 , , m 1 .
Proposition 4. 
If y does not belong to the column space of Π, then it follows that
S ( y x ^ ( k ) ) 2 = i = 3 n 1 1 + λ γ i 2 1 1 1 + λ γ i 2 k η i 2 > 0 , k = 0 , , m 1 .
Proof. 
See Appendix B. □
Remark 4. 
From Proposition 4, it follows that
S ( y x ^ ( 0 ) ) 2 = i = 3 n η i 1 + λ γ i 2 .
Here, we show that this result is reasonable. Given that { v 1 , v 2 } is an orthonormal basis of the column space of Π, it follows that P Π = V 1 ( V 1 V 1 ) 1 V 1 = V 1 V 1 , where V 1 = [ v 1 , v 2 ] , from which we have
x ^ ( 0 ) = τ ^ = η 1 v 1 + η 2 v 2 .
In addition, given that S x ^ ( 0 ) = S τ ^ = τ ^ and γ 1 = γ 2 = 0 , we have
S ( y x ^ ( 0 ) ) = S y S τ ^ = V ( I n + λ Γ ) 1 V y τ ^ = i = 1 n η i 1 + λ γ i v i ( η 1 v 1 + η 2 v 2 ) = i = 3 n η i 1 + λ γ i v i ,
which is consistent with (40).
The next proposition documents the results for the arithmetic mean and the variance of S ( y x ^ ( k ) ) for k = 0 , , m 1 .
Proposition 5. 
(i) The sum of the entries of S ( y x ^ ( k ) ) is equal to zero for k = 0 , , m 1 . (ii) If y does not belong to the column space of Π, then it follows that
S ( y x ^ ( 0 ) ) 2 > S ( y x ^ ( 1 ) ) 2 > > S ( y x ^ ( m 1 ) ) 2 .
Proof. 
See Appendix B. □
Remark 5. 
(a) (i) shows that the arithmetic mean of S ( y x ^ ( k ) ) equals zero for k = 0 , , m 1 . (b) (i) and (ii) imply that the variance of S ( y x ^ ( k ) ) strictly decreases as k increases from zero. Moreover, in addition to (43), given that 1 1 1 + λ γ i = λ γ i 1 + λ γ i ( 0 , 1 ) for i = 3 , , n , from Proposition 4, it follows that
S ( y x ^ ( k ) ) 2 0 + , ( k ) .

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, y . 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, ( y τ ^ ) . It clearly shows that the linear trend residuals contain long-period fluctuations. The solid line in the panel plots S ( y τ ^ ) is estimated with λ = 1600 . Recall that
x ^ HP = τ ^ + S ( y τ ^ ) .
The two panels presented here are identical to those shown in Yamada (2018, Figure 2) [3].
The dashed line in the bottom panel plots the HP detrended series, y x ^ HP . The solid line in the panel plots its low-frequency component, S ( y x ^ HP ) , which is again estimated with λ = 1600 . From the bottom panel, we observe that the HP detrended series, y x ^ HP still contain long-period fluctuations and they are extracted by S ( y x ^ HP ) . Recall that
x ^ ( 2 ) = τ ^ + S ( y τ ^ ) + S ( y x ^ HP ) = x ^ HP + S ( y x ^ HP ) ,
which is twicing. Finally, we report that the following inequalities hold:
S ( y τ ^ ) 2 = 4 , 227.0 > S ( y x ^ HP ) 2 = 30.9 > S ( y x ^ ( 2 ) ) 2 = 7.1 > S ( y x ^ ( 3 ) ) 2 = 3.1 > S ( y x ^ ( 4 ) ) 2 = 1.8 > S ( y x ^ ( 5 ) ) 2 = 1.3 > 0 ,
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:
S ( y τ ^ ) 2 = 2 , 346.9 > S ( y x ^ HP ) 2 = 81.5 > S ( y x ^ ( 2 ) ) 2 = 5.1 > S ( y x ^ ( 3 ) ) 2 = 1.7 > S ( y x ^ ( 4 ) ) 2 = 1.2 > S ( y x ^ ( 5 ) ) 2 = 0.9 > 0 .
Regarding (47) and (48), we make a remark. If y does not belong to the column space of Π , then it follows that
( I n + λ 1 D D ) 1 ( y τ ^ ) 2 > ( I n + λ 2 D D ) 1 ( y τ ^ ) 2 , λ 1 < λ 2 .
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 tr ( S m ), 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 y belongs to the column space of Π , which is excluded in the main text. If y belongs to the column space of Π , then y can be expressed as Π α , where α = [ α 1 , α 2 ] , i.e., y t = α 1 + α 2 t for t = 1 , , n . In the case, from (29), it follows that
S k y = S k Π α = Π α = y , k = 0 , , m 1 .
In other words, we have
τ ^ = x ^ HP = x ^ ( m ) = y , m = 2 , 3 , .
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 y belongs to the column space of Π, then it follows that
S ( y x ^ ( k ) ) = 0 n , 1 , k = 0 , , m 1 .

Appendix B. Proofs of Propositions 3–5 and (49)

Let
Ψ = I n ( I n + λ Γ ) 1 .
Then, Ψ = diag ( ψ 1 , , ψ n ) , where
ψ i = 1 1 1 + λ γ i , i = 1 , , n .
From the spectral decomposition of D D and the definition of Ψ , we have the following results.
Lemma A1. 
I n S can be spectrally decomposed as
I n S = V Ψ V .
The eigenvalues of I S satisfy the inequalities given by
0 = ψ 1 = ψ 2 < ψ 3 ψ n < 1 .
Proof. 
Given that D D = V Γ V , it follows that
I n S = I n ( I n + λ D D ) 1 = V { I n ( I n + λ Γ ) 1 } V = V Ψ V .
Next, by definition of ψ i , we have
ψ i = 1 1 1 + λ γ i = λ γ i 1 + λ γ i , i = 1 , , n .
Then, given that λ ( 0 , ) and 0 = γ 1 = γ 2 < γ 3 γ n , it follows that 0 = ψ 1 = ψ 2 < ψ 3 ψ n < 1 . □
From (A4) in Lemma A1, S ( y x ^ ( k ) ) for k = 0 , , m 1 in (19) can be represented as follows.
S ( y x ^ ( k ) ) = S y S { I n ( I n S ) k } y = S ( I n S ) k y = V ( I n Ψ ) V ( V Ψ V ) k y = V ( I n Ψ ) Ψ k V y , k = 0 , , m 1 .
Recall that V y = [ η 1 , , η n ] . Regarding the entries of V y , we have the following result.
Lemma A2. 
If y does not belong to the column space of Π, then it follows that [ η 3 , , η n ] 0 n 2 , 1 .
Proof. 
Given that { v 1 , , v n } is an orthonormal basis of R n , y can be represented by θ 1 v 1 + + θ n v n . Since the column space of [ v 1 , v 2 ] is identical to that of Π , if y does not belong to the column space of Π , then it follows that
[ θ 3 , , θ n ] 0 n 2 , 1 .
In addition, it also follows that
η k = v k y = v k ( θ 1 v 1 + + θ n v n ) = θ k v k v k = θ k , k = 1 , , n .
Combining (A7) and (A8), we have [ η 3 , , η n ] 0 n 2 , 1 . □

Appendix B.1. Proof of Proposition 3

From the spectral decomposition of D D , we have
S ( y x ^ ( k ) ) = ( I n + λ D D ) 1 ( y x ^ ( k ) ) = V ( I n + λ Γ ) 1 V ( y x ^ ( k ) ) = i = 1 n ϕ i ( k ) 1 1 + λ γ i v i ,
where ϕ i ( k ) = v i ( y x ^ ( k ) ) for i = 1 , , n . Here, as shown in (35), both v 1 and v 2 belong to the column space of Π . Then, from (31), we have ϕ 1 = ϕ 2 = 0 in (A9). Next, (37) follows 0 < γ 3 γ n 16 and
D v i 2 = v i D D v i = γ i v i v i = γ i , i = 3 , , n .
(38) follows from λ ( 0 , ) and 0 < γ 3 γ n .

Appendix B.2. Proof of Proposition 4

Given that ψ 1 = ψ 2 = 0 , from (A6), we have
S ( y x ^ ( k ) ) = V ( I n Ψ ) Ψ k V y = i = 1 n η i ( 1 ψ i ) ψ i k v i = i = 3 n η i ( 1 ψ i ) ψ i k v i , k = 0 , , m 1 .
Then, given that [ η 3 , , η n ] 0 n 2 , 1 by Lemma A2 and ψ i ( 0 , 1 ) for i = 3 , , n , from (A10), it follows that
S ( y x ^ ( k ) ) 2 = i = 3 n η i 2 ( 1 ψ i ) 2 ψ i 2 k > 0 , k = 0 , , m 1 .

Appendix B.3. Proof of Proposition 5

(i) It immediately follows from Proposition 2. Next, we prove (ii) by showing the inequalities given by
S ( y x ^ ( k 1 ) ) 2 > S ( y x ^ ( k ) ) 2 , k = 1 , , m 1 .
Given that [ η 3 , , η n ] 0 n 2 , 1 by Lemma A2 and ψ i ( 0 , 1 ) for i = 3 , , n , from Proposition 4, it follows that
S ( y x ^ ( k 1 ) ) 2 S ( y x ^ ( k ) ) 2 = i = 3 n η i 2 ( 1 ψ i ) 2 ψ i 2 ( k 1 ) i = 3 n η i 2 ( 1 ψ i ) ψ i 2 k = i = 3 n η i 2 ( 1 ψ i ) 2 ( ψ i 2 ( k 1 ) ψ i 2 k ) = i = 3 n η i 2 ( 1 ψ i ) 2 ψ i 2 ( k 1 ) ( 1 ψ i 2 ) > 0
for k = 1 , , m 1 .

Appendix B.4. Proof of (49)

From (40), we have
( I n + λ 1 D D ) 1 ( y τ ^ ) 2 ( I n + λ 2 D D ) 1 ( y τ ^ ) 2 = i = 3 n η i 1 + λ 1 γ i 2 i = 3 n η i 1 + λ 2 γ i 2 = i = 3 n η i 1 + λ 1 γ i 2 η i 1 + λ 2 γ i 2 = i = 3 n η i 1 + λ 1 γ i + η i 1 + λ 2 γ i η i 1 + λ 1 γ i η i 1 + λ 2 γ i .
Here, it follows that
η i 1 + λ 1 γ i η i 1 + λ 2 γ i = η i ( 1 + λ 2 γ i 1 λ 1 γ i ) ( 1 + λ 1 γ i ) ( 1 + λ 2 γ i ) = η i γ i ( λ 2 λ 1 ) ( 1 + λ 1 γ i ) ( 1 + λ 2 γ i ) .
Therefore, given that λ 2 > λ 1 , [ η 3 , , η n ] 0 n 2 , 1 by Lemma A2, and γ i > 0 for i = 3 , , n , from (A11) and (A12), we have
( I n + λ 1 D D ) 1 ( y τ ^ ) 2 ( I n + λ 2 D D ) 1 ( y τ ^ ) 2 > 0 .

References

  1. Mills, T.C. Modelling Trends and Cycles in Economic Time Series; Palgrave Macmillan: Basingstoke, UK, 2003. [Google Scholar]
  2. King, R.G.; Rebelo, S.T. Low frequency filtering and real business cycles. J. Econ. Dyn. Control 1993, 17, 207–231. [Google Scholar] [CrossRef]
  3. 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]
  4. 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]
  5. 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]
  6. Weinert, H.L. Efficient computation for Whittaker–Henderson smoothing. Comput. Stat. Data Anal. 2007, 52, 959–974. [Google Scholar] [CrossRef]
  7. Phillips, P.C.B.; Jin, S. Business cycles, trend elimination, and the HP filter. Int. Econ. Rev. 2021, 62, 469–520. [Google Scholar] [CrossRef]
  8. Phillips, P.C.B.; Shi, Z. Boosting: Why you can use the HP filter. Int. Econ. Rev. 2021, 62, 521–570. [Google Scholar] [CrossRef]
  9. Bühlmann, P. Boosting for high-dimensional linear models. Ann. Stat. 2006, 34, 559–583. [Google Scholar] [CrossRef]
  10. Tutz, G.; Binder, H. Boosting ridge regression. Comput. Stat. Data Anal. 2007, 51, 6044–6059. [Google Scholar] [CrossRef]
  11. 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).
  12. 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]
  13. 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]
  14. Xu, C. Do households react to policy uncertainty by increasing savings? Econ. Anal. Policy 2023, 80, 770–785. [Google Scholar] [CrossRef]
  15. 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]
  16. 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]
  17. 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]
  18. 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]
  19. 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]
  20. Jin, Z.; Yamada, H. Boosted Whittaker–Henderson graduation. Mathematics 2024, 12, 3377. [Google Scholar] [CrossRef]
  21. 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]
  22. Danthine, J.-P.; Girardin, M. Business cycles in Switzerland: A comparative study. Eur. Econ. Rev. 1989, 33, 31–50. [Google Scholar] [CrossRef]
  23. Kim, S.; Koh, K.; Boyd, S.; Gorinevsky, D. 1 trend filtering. SIAM Rev. 2009, 51, 339–360. [Google Scholar] [CrossRef]
  24. Estrada, E.; Knight, P. A First Course in Network Theory; Oxford University Press: Oxford, UK, 2015. [Google Scholar]
  25. 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]
  26. 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]
Figure 1. Eigenvalues γ 1 , , γ n for n = 100 .
Figure 1. Eigenvalues γ 1 , , γ n for n = 100 .
Mathematics 13 01893 g001
Figure 2. Eigenvectors v 3 , v 5 , v 10 , v 20 for n = 100 .
Figure 2. Eigenvectors v 3 , v 5 , v 10 , v 20 for n = 100 .
Mathematics 13 01893 g002
Figure 3. Eigenvalues 1 1 + λ γ 3 , , 1 1 + λ γ 30 for λ = 1600 and n = 100 .
Figure 3. Eigenvalues 1 1 + λ γ 3 , , 1 1 + λ γ 30 for λ = 1600 and n = 100 .
Mathematics 13 01893 g003
Figure 4. Top panel: Log of US real GDP, y (dashed line), and the linear trend, τ ^ (solid line). Middle panel: The linearly detrended series, y τ ^ (dashed line), and its low-frequency component, S ( y τ ^ ) , estimated with λ = 1600 (solid line). Bottom panel: The HP detrended series, y x ^ HP (dashed line), and its low-frequency component, S ( y x ^ HP ) , estimated with λ = 1600 (solid line).
Figure 4. Top panel: Log of US real GDP, y (dashed line), and the linear trend, τ ^ (solid line). Middle panel: The linearly detrended series, y τ ^ (dashed line), and its low-frequency component, S ( y τ ^ ) , estimated with λ = 1600 (solid line). Bottom panel: The HP detrended series, y x ^ HP (dashed line), and its low-frequency component, S ( y x ^ HP ) , estimated with λ = 1600 (solid line).
Mathematics 13 01893 g004
Figure 5. Top panel: Log of US real GDP, y (dashed line), and the linear trend, τ ^ (solid line). Middle panel: The linearly detrended series, y τ ^ (dashed line), and its low-frequency component, S ( y τ ^ ) , estimated with λ = 800,000 (solid line). Bottom panel: The HP detrended series, y x ^ HP (dashed line), and its low-frequency component, S ( y x ^ HP ) , estimated with λ = 800,000 (solid line).
Figure 5. Top panel: Log of US real GDP, y (dashed line), and the linear trend, τ ^ (solid line). Middle panel: The linearly detrended series, y τ ^ (dashed line), and its low-frequency component, S ( y τ ^ ) , estimated with λ = 800,000 (solid line). Bottom panel: The HP detrended series, y x ^ HP (dashed line), and its low-frequency component, S ( y x ^ HP ) , estimated with λ = 800,000 (solid line).
Mathematics 13 01893 g005
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.

Share and Cite

MDPI and ACS Style

Yamada, H. Linear Trend, HP Trend, and bHP Trend. Mathematics 2025, 13, 1893. https://doi.org/10.3390/math13111893

AMA Style

Yamada H. Linear Trend, HP Trend, and bHP Trend. Mathematics. 2025; 13(11):1893. https://doi.org/10.3390/math13111893

Chicago/Turabian Style

Yamada, Hiroshi. 2025. "Linear Trend, HP Trend, and bHP Trend" Mathematics 13, no. 11: 1893. https://doi.org/10.3390/math13111893

APA Style

Yamada, H. (2025). Linear Trend, HP Trend, and bHP Trend. Mathematics, 13(11), 1893. https://doi.org/10.3390/math13111893

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop